From: Arun Babu Neelicattu <abn(a)redhat.com>
---
bin/bugzilla | 2 +-
bugzilla/base.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/bugzilla b/bin/bugzilla
index 5798db9..cacaf9e 100755
--- a/bin/bugzilla
+++ b/bin/bugzilla
@@ -63,7 +63,7 @@ def open_without_clobber(name, *args):
orig_name = name
while fd is None:
try:
- fd = os.open(name, os.O_CREAT | os.O_EXCL, 0666)
+ fd = os.open(name, os.O_CREAT | os.O_EXCL, 0o666)
except OSError:
err = sys.exc_info()[1]
if err.errno == os.errno.EEXIST:
diff --git a/bugzilla/base.py b/bugzilla/base.py
index ee384fb..9740d3c 100644
--- a/bugzilla/base.py
+++ b/bugzilla/base.py
@@ -76,7 +76,7 @@ def _build_cookiejar(cookiefile):
if not os.path.exists(cookiefile):
# Make sure a new file has correct permissions
open(cookiefile, 'a').close()
- os.chmod(cookiefile, 0600)
+ os.chmod(cookiefile, 0o600)
cj.save()
return cj
--
1.8.3.1