Handle Python3's changed octal literal syntax
authorGuido Günther <agx@sigxcpu.org>
Thu, 19 Feb 2015 13:18:00 +0000 (14:18 +0100)
committerGuido Günther <agx@sigxcpu.org>
Fri, 20 Feb 2015 11:59:48 +0000 (12:59 +0100)
gbp/scripts/import_dsc.py

index 3f10d3f65cabfcee4ad7d698c946f81189fae58d..13dba5e81bae192fae60eb189d599b93436112d7 100644 (file)
@@ -143,7 +143,7 @@ def apply_debian_patch(repo, unpack_dir, src, options, tag):
             raise GbpError
 
         if os.path.exists('debian/rules'):
-            os.chmod('debian/rules', 0755)
+            os.chmod('debian/rules', 0o755)
         os.chdir(repo.path)
 
         parents = check_parents(repo,