Skip to content

Commit

Permalink
Windows fix for md380_gfx from Wolfgang. Close #710.
Browse files Browse the repository at this point in the history
  • Loading branch information
travisgoodspeed committed Mar 5, 2017
1 parent aee5df2 commit eb4297b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions md380_gfx.py
Expand Up @@ -315,7 +315,7 @@ def ppm(gfx):
@staticmethod
def ppmparse(ppm):
"""Convert PPM(P6) image to sprite object"""
ppml = ppm.split('\n')
ppml = ppm.splitlines()
assert ppml[0] == 'P6'
i = 1
addr = 0
Expand Down Expand Up @@ -644,7 +644,7 @@ def hex_int(x):
sys.exit(5)
with open(args.gfx, 'rb') as f:
pbmfonts = f.read()
pbmfontsl = pbmfonts.split('\n')
pbmfontsl = pbmfonts.splitlines()

gfx, pbmfontsl = md.pbmparse(pbmfontsl)
while gfx is not None:
Expand Down

0 comments on commit eb4297b

Please sign in to comment.