Changeset 4635 for trunk/GSASIIfiles.py


Ignore:
Timestamp:
Nov 1, 2020 11:11:13 AM (2 years 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/GSASIIfiles.py

    r4594 r4635  
    644644            G2Print('Read '+lblFil)
    645645        # scan through each line in this .par file, looking for the matching image rootname
    646         fp = open(parFil,'Ur')
     646        fp = open(parFil,'r')
    647647        for iline,line in enumerate(fp):
    648648            items = line.strip().split(' ')
     
    680680    labels = {}
    681681    errors = []
    682     fp = open(lblFil,'Ur')         # read column labels
     682    fp = open(lblFil,'r')         # read column labels
    683683    for iline,line in enumerate(fp): # read label definitions
    684684        line = line.strip()
Note: See TracChangeset for help on using the changeset viewer.