Skip to content

Commit

Permalink
another fix to the writer: the open function only accepts one
Browse files Browse the repository at this point in the history
argument.  How did this *ever* work?
  • Loading branch information
keflavich committed Apr 17, 2017
1 parent 1ed4673 commit bc12dca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyregion/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def write(self, outfile):
print("WARNING: The region list is empty. The region file "
"'{:s}' will be empty.".format(outfile))
try:
outf = open(outfile, 'w')
outf = _builtin_open(outfile, 'w')
outf.close()
return
except IOError as e:
Expand Down

0 comments on commit bc12dca

Please sign in to comment.