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/GSASIIconstrGUI.py

    r4624 r4635  
    18201820            if dlg.ShowModal() == wx.ID_OK:
    18211821                macfile = dlg.GetPath()
    1822                 macro = open(macfile,'Ur')
     1822                macro = open(macfile,'r')
    18231823                head = macro.readline()
    18241824                if macName not in head:
     
    18411841                txtfile = dlg.GetPath()
    18421842                ext = os.path.splitext(txtfile)[1]
    1843                 text = open(txtfile,'Ur')
     1843                text = open(txtfile,'r')
    18441844            else: # cancel was pressed
    18451845                ext = ''
     
    25832583        filename = filelist[0]
    25842584        rd = reader
    2585         with open(filename, 'Ur'):
     2585        with open(filename, 'r'):
    25862586            rd.ReInitialize()
    25872587            rd.errors = ""
Note: See TracChangeset for help on using the changeset viewer.