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
commit4108d88d2aa8b95c08f346f8c27e0aed8e0d3b14 (patch)
treefd15712fe4b35910f007798e6f45952e0ef740bf /bin
parentd0a10b7d551d7699b3627baf3d01446fc150831c (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