1. Michał Górny
  2. flaggie

Commits

Michał Górny  committed af4cb0a

Open the temporary file in binary mode to fix py3 compat.

  • Participants
  • Parent commits b5afe5f
  • Branches master

Comments (0)

Files changed (1)

File lib/flaggie/packagefile.py

View file
 			if not self.modified:
 				return
 
-			f = tempfile.NamedTemporaryFile('w', delete = False, \
+			f = tempfile.NamedTemporaryFile('wb', delete = False, \
 					dir = os.path.dirname(os.path.realpath(self.path)))
 			tmpname = f.name