Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Unified Diff: third_party/upload.py

Issue 2075923003: Simplify octal constants in Python code (e.g. 0o0700 -> 0o700). (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/git_hyper_blame_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/upload.py
diff --git a/third_party/upload.py b/third_party/upload.py
index baeb214e8f19cf6a8d00f28bd02f76b3e9f2d363..261485a33ea6b154bca8085e9e949a4ec177aa22 100755
--- a/third_party/upload.py
+++ b/third_party/upload.py
@@ -528,10 +528,10 @@ class HttpRpcServer(AbstractRpcServer):
pass
else:
# Create an empty cookie file with mode 600
- fd = os.open(self.cookie_file, os.O_CREAT, 0o0600)
+ fd = os.open(self.cookie_file, os.O_CREAT, 0o600)
os.close(fd)
# Always chmod the cookie file
- os.chmod(self.cookie_file, 0o0600)
+ os.chmod(self.cookie_file, 0o600)
else:
# Don't save cookies across runs of update.py.
self.cookie_jar = cookielib.CookieJar()
« no previous file with comments | « tests/git_hyper_blame_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698