Ignore:
Timestamp:
May 4, 2017 9:14:19 AM (5 years ago)
Author:
vondreele
Message:

fix printing of nonascii characters (e.g. "umlaut-o") in file names, etc. in exporters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/exports/G2export_examples.py

    r2136 r2819  
    114114                        vals.append(G2mth.ValEsd(val,sig))
    115115                    self.Write(fmt.format(*vals))
    116             print('Phase '+str(phasenam)+' written to file '+str(self.fullpath))
     116            print('Phase '+phasenam+' written to file '+self.fullpath)
    117117        self.CloseFile()
    118118
     
    164164        hist = self.histnam[0] # there should only be one histogram, in any case take the 1st
    165165        self.Writer(hist)
    166         print(str(hist)+' written to file '+str(self.fullpath))
     166        print(hist+' written to file '+self.fullpath)
    167167       
    168168class ExportPowderReflText(G2IO.ExportBaseclass):
     
    244244                            s,g,FWHM,prfo))
    245245        self.CloseFile()
    246         print(str(hist)+'reflections written to file '+str(self.fullpath))                       
     246        print(hist+'reflections written to file '+self.fullpath)                       
    247247
    248248class ExportSingleText(G2IO.ExportBaseclass):
     
    287287                self.Write(fmt.format(hklfmt.format(h,k,l),dsp,Fobs,sigFobs,Fcalc,phase,twin))
    288288        self.CloseFile()
    289         print(str(hist)+' written to file '+str(self.fullpath))                       
    290 
     289        print(hist+' written to file '+self.fullpath)                       
     290
Note: See TracChangeset for help on using the changeset viewer.