summaryrefslogtreecommitdiffstats
path: root/bin/dispatch-conf
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-20 11:47:45 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-20 11:47:45 +0000
commit199228d412c83e00f0c4af7ba34f166a891b4e87 (patch)
tree8aba71db4ea0e3b6539eccaf1dc0fd9e3920fca1 /bin/dispatch-conf
parentcf4c50ffa68ce110c40ae3926d60b241bbe230c2 (diff)
downloadportage-199228d412c83e00f0c4af7ba34f166a891b4e87.tar.gz
portage-199228d412c83e00f0c4af7ba34f166a891b4e87.tar.bz2
portage-199228d412c83e00f0c4af7ba34f166a891b4e87.zip
Update syntax of numbers for compatibility with Python 3.
(2to3-3.1 -f numliterals -nw ${FILES}) svn path=/main/trunk/; revision=14292
Diffstat (limited to 'bin/dispatch-conf')
-rwxr-xr-xbin/dispatch-conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/dispatch-conf b/bin/dispatch-conf
index f2228d37c..38359c5b3 100755
--- a/bin/dispatch-conf
+++ b/bin/dispatch-conf
@@ -37,7 +37,7 @@ DIFF_CVS_INTERP = "diff -Nu '%s' '%s' | grep '^[+-][^+-]' | grep -v '# .Hea
DIFF_WSCOMMENTS = "diff -Nu '%s' '%s' | grep '^[+-][^+-]' | grep -v '^[-+]#' | grep -v '^[-+][:space:]*$'"
# We need a secure scratch dir and python does silly verbose errors on the use of tempnam
-oldmask = os.umask(0077)
+oldmask = os.umask(0o077)
SCRATCH_DIR = None
while SCRATCH_DIR is None:
try:
@@ -81,7 +81,7 @@ class dispatch:
if os.path.isfile(self.options["log-file"]) \
or not os.path.exists(self.options["log-file"]):
open(self.options["log-file"], 'w').close() # Truncate it
- os.chmod(self.options["log-file"], 0600)
+ os.chmod(self.options["log-file"], 0o600)
else:
self.options["log-file"] = "/dev/null"