[Pkg-privacy-commits] [torbrowser-launcher] 03/59: Use octal numbers for mkdir
Roger Shimizu
rogershimizu at gmail.com
Mon Jan 29 13:43:56 UTC 2018
This is an automated email from the git hooks/post-receive script.
rosh pushed a commit to branch debian/sid
in repository torbrowser-launcher.
commit 570e97279388baab69ade18210e17e6e098284e4
Author: sedrubal <dev at sedrubal.de>
Date: Wed Nov 9 02:57:52 2016 +0100
Use octal numbers for mkdir
Behavior will be changed in python3
See #214
---
torbrowser_launcher/common.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/torbrowser_launcher/common.py b/torbrowser_launcher/common.py
index 0dfd8da..8b3bd24 100644
--- a/torbrowser_launcher/common.py
+++ b/torbrowser_launcher/common.py
@@ -103,7 +103,7 @@ class Common:
homedir = '/tmp/.torbrowser-'+os.getenv('USER')
if not os.path.exists(homedir):
try:
- os.mkdir(homedir, 0700)
+ os.mkdir(homedir, 0o700)
except:
self.set_gui('error', _("Error creating {0}").format(homedir), [], False)
if not os.access(homedir, os.W_OK):
@@ -177,7 +177,7 @@ class Common:
def mkdir(path):
try:
if not os.path.exists(path):
- os.makedirs(path, 0700)
+ os.makedirs(path, 0o700)
return True
except:
print _("Cannot create directory {0}").format(path)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/torbrowser-launcher.git
More information about the Pkg-privacy-commits
mailing list