Changeset 4022


Ignore:
Timestamp:
Jun 11, 2019 10:21:46 PM (2 years ago)
Author:
toby
Message:

oops, fix Python2 error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIfiles.py

    r4021 r4022  
    6969                    'Use all, warn, error or none.')
    7070       
    71 def G2Print(*args,mode=None,**kwargs):
     71def G2Print(*args,**kwargs):
    7272    '''Print with filtering based level of output (see :func:`G2SetPrintLevel`).
    7373    Use G2Print() as replacement for print().
     
    7979    '''
    8080    if G2printLevel is 'none': return
    81     if mode is None:
     81    if kwargs.get('mode') is None:
    8282        testStr = args[0].lower()
    8383    else:
    8484        testStr = mode[:].lower()
     85        del kwargs['mode']
    8586    level = 2
    8687    for i,mode in enumerate(('error', 'warn')):
Note: See TracChangeset for help on using the changeset viewer.