Changeset 3136 for trunk/GSASIIfiles.py
- Timestamp:
- Oct 23, 2017 11:39:16 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIfiles.py
r3012 r3136 21 21 at that point. 22 22 ''' 23 23 from __future__ import division, print_function 24 24 import os 25 25 import sys … … 27 27 import imp 28 28 import inspect 29 import traceback30 29 import platform 30 import numpy as np 31 31 32 32 import GSASIIpath … … 355 355 readerlist.append(reader) 356 356 except AttributeError: 357 print 'Import_' + errprefix + ': Attribute Error ' + filename357 print ('Import_' + errprefix + ': Attribute Error ' + filename) 358 358 if traceback: 359 359 traceback.print_exc(file=sys.stdout) 360 360 except Exception as exc: 361 print '\nImport_' + errprefix + ': Error importing file ' + filename362 print u'Error message: {}\n'.format(exc)361 print ('\nImport_' + errprefix + ': Error importing file ' + filename) 362 print (u'Error message: {}\n'.format(exc)) 363 363 if traceback: 364 364 traceback.print_exc(file=sys.stdout)
Note: See TracChangeset
for help on using the changeset viewer.