1. Michał Górny
  2. flaggie

Commits

Michał Górny  committed 1e1df40

Fix octal literals for Python3.

  • Participants
  • Parent commits c25aff7
  • Branches master

Comments (0)

Files changed (1)

File lib/flaggie/packagefile.py

View file
  • Ignore whitespace
 			if backup is not None:
 				shutil.copymode(backup, self.path)
 			else:
-				umask = os.umask(022)
+				umask = os.umask(0o22)
 				os.umask(umask)
-				os.chmod(self.path, 0666 & ~umask)
+				os.chmod(self.path, 0o666 & ~umask)
 
 			for e in self:
 				e.modified = False