summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorSalvatore Bonaccorso <carnil@debian.org>2020-11-21 15:34:38 +0100
committerSalvatore Bonaccorso <carnil@debian.org>2020-11-21 16:45:47 +0100
commit0251b48b7b65d779511a40b7df98169b932fd783 (patch)
tree85bf1151098073d5035f4c0587301e28cd9b2192 /bin
parentb539c549a247968b5525be18957f9084e86ff31f (diff)
tracker_data.py: Use explicitly octal mode on mkdir call
Although this is probably subject to personal preference, switch to octal representation directly instead of specifying the mode in decimal variant. Reading 0o700 makes it immediately clear what is meant.
Diffstat (limited to 'bin')
-rw-r--r--bin/tracker_data.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/tracker_data.py b/bin/tracker_data.py
index a3eb2b3d23..f0bbb0de70 100644
--- a/bin/tracker_data.py
+++ b/bin/tracker_data.py
@@ -76,9 +76,9 @@ class TrackerData(object):
self.DATA_URL))
response = requests.get(self.DATA_URL, allow_redirects=True)
response.raise_for_status()
- # if ~/.cache does not exist, then open() will fail; dec 448 -> octal 0700
+ # if ~/.cache does not exist, then open() will fail
if not os.path.exists(self.cached_data_dir):
- os.mkdir(self.cached_data_dir, mode=448)
+ os.mkdir(self.cached_data_dir, mode=0o700)
with open(self.cached_data_path, 'w') as cache_file:
cache_file.write(response.text)
with open(self.cached_revision_path, 'w') as rev_file:

© 2014-2024 Faster IT GmbH | imprint | privacy policy