Ignore:
Timestamp:
08/05/10 16:07:30 (14 years ago)
Author:
Malte Marquarding
Message:

Got rid of redundant print_log. Use asaplog.post directly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asaplotbase.py

    r1836 r1861  
    1414
    1515from asap.parameters import rcParams as asaprcParams
    16 from asap.logging import asaplog, print_log
     16from asap.logging import asaplog
    1717
    1818# API change in mpl >= 0.98
     
    2525    #print "Warning: matplotlib version < 0.87. This might cause errors. Please upgrade."
    2626    asaplog.push( "matplotlib version < 0.99. This might cause errors. Please upgrade." )
    27     print_log( 'WARN' )
     27    asaplog.post( 'WARN' )
    2828
    2929class asaplotbase:
     
    456456            except IOError, msg:
    457457                #print 'Failed to save %s: Error msg was\n\n%s' % (fname, err)
    458                 print_log()
     458                asaplog.post()
    459459                asaplog.push('Failed to save %s: Error msg was\n\n%s' % (fname, str(msg)))
    460                 print_log( 'ERROR' )
     460                asaplog.post( 'ERROR' )
    461461                return
    462462        else:
     
    465465            asaplog.push( "Invalid image type. Valid types are:" )
    466466            asaplog.push( "'ps', 'eps', 'png'" )
    467             print_log('WARN')
     467            asaplog.post('WARN')
    468468
    469469
Note: See TracChangeset for help on using the changeset viewer.