Ignore:
Timestamp:
Nov 1, 2020 11:11:13 AM (20 months ago)
Author:
vondreele
Message:

change all 'Ur' to 'r' in open commands
double all '\' in G2scriptable
close dangling open files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r4628 r4635  
    694694        except UnicodeDecodeError:
    695695            rdmsg = None
     696        fp.close()
    696697        if rdmsg is None or not all([ord(c) < 128 and ord(c) != 0 for c in rdmsg]): # show only if ASCII
    697698            rdmsg = u'File '+ filename +u' is a binary file. Do you want to read this file?'
     
    14641465        fp = 0
    14651466        try:
    1466             fp = open(instfile,'Ur')
     1467            fp = open(instfile,'r')
    14671468            Iparm = {}
    14681469            for S in fp:
Note: See TracChangeset for help on using the changeset viewer.