Changeset 9281:1f2e5dd531b6 in orange


Ignore:
Timestamp:
11/29/11 08:34:28 (2 years ago)
Author:
miha <miha.stajdohar@…>
Branch:
default
Convert:
b78ca387d4db553d0a7df207d4d82da92ab96244
Message:

Replaced printout with warnings.warn

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/orngPCA.py

    r8042 r9281  
    1414    import matplotlib.pyplot as plt 
    1515except: 
    16     print "Warning: importing of matplotlib has failed.\nPlotting functions will be unavailable." 
     16    import warnings 
     17    warnings.warn("Warning: importing of matplotlib has failed.\nPlotting functions will be unavailable.") 
    1718    mathlib_import = False 
    1819     
Note: See TracChangeset for help on using the changeset viewer.