Changeset 4024 for trunk/GSASIIfiles.py


Ignore:
Timestamp:
Jun 12, 2019 1:00:22 PM (2 years ago)
Author:
toby
Message:

fix for print w/optional mode arg

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIfiles.py

    r4023 r4024  
    7676      ('error', 'warn' or anything else). If not specified, the first argument
    7777      of the print command (args[0]) should contain the string 'error' for
    78       error messages and 'warn' for warning messages.
     78      error messages and 'warn' for warning messages
     79      (capitalization and additional letters ignored.)
    7980    '''
    8081    if G2printLevel is 'none': return
     
    8283        testStr = args[0].lower()
    8384    else:
    84         testStr = mode[:].lower()
     85        testStr = kwargs['mode'][:].lower()
    8586        del kwargs['mode']
    8687    level = 2
Note: See TracChangeset for help on using the changeset viewer.