Skip to content

Commit 1e8fad4

Browse files
CJ-Wrightchiahaoliu
authored andcommitted
FIX: py3k syntax issues
(cherry picked from commit 4dd186a)
1 parent 496e382 commit 1e8fad4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

diffpy/pdfmorph/pdfmorphapp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def main():
231231
chain[0] = morphs.Morph()
232232
chain(xobj, yobj, xref, yref)
233233

234-
items = config.items()
234+
items = list(config.items())
235235
items.sort()
236236
output = "\n".join("# %s = %f"%i for i in items)
237237
output += "\n# Rw = %f" % rw
@@ -245,7 +245,7 @@ def main():
245245
if opts.savefile == "-":
246246
outfile = sys.stdout
247247
else:
248-
outfile = file(opts.savefile, 'w')
248+
outfile = open(opts.savefile, 'w')
249249
print(header, file=outfile)
250250
import numpy
251251
numpy.savetxt(outfile, zip(chain.xobjout, chain.yobjout))

0 commit comments

Comments
 (0)