From 199228d412c83e00f0c4af7ba34f166a891b4e87 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Sun, 20 Sep 2009 11:47:45 +0000 Subject: Update syntax of numbers for compatibility with Python 3. (2to3-3.1 -f numliterals -nw ${FILES}) svn path=/main/trunk/; revision=14292 --- bin/dispatch-conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/dispatch-conf') 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" -- cgit v1.2.3-1-g7c22