diff --git a/graphics/text/smtextgen b/graphics/text/smtextgen index d15f3a04..9f3fbf42 100755 --- a/graphics/text/smtextgen +++ b/graphics/text/smtextgen @@ -140,9 +140,9 @@ def parse_command_line(args): args = parse_command_line(sys.argv[1:]) if not args: - print "Usage: smtextgen [...text commands...]" - print "Where each text command looks like:" - print " [x,y] [text]" + print("Usage: smtextgen [...text commands...]") + print("Where each text command looks like:") + print(" [x,y] [text]") sys.exit(0) smallfont = Font() diff --git a/lumps/textures/build-textures b/lumps/textures/build-textures index 46f6176b..a48d987c 100755 --- a/lumps/textures/build-textures +++ b/lumps/textures/build-textures @@ -139,7 +139,7 @@ class TextureSet(collections.OrderedDict): filename: Path to file in which to store the resulting lump. """ - with open(filename, "w") as out: + with open(filename, "wb") as out: # Header indicating number of textures: out.write(struct.pack("