Skip to content

Commit

Permalink
added a more portable print method
Browse files Browse the repository at this point in the history
  • Loading branch information
electronut committed Jul 12, 2014
1 parent 1b2536d commit e295b53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ascii/ascii.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ def main():
# open file
f = open(outFile, 'w')
# write to file
for k in range(len(aimg)):
print(aimg[k], file=f)
for row in aimg:
f.write(row + '\n')
# cleanup
f.close()

Expand Down

0 comments on commit e295b53

Please sign in to comment.