We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0be4d06 commit 3688eddCopy full SHA for 3688edd
prometheus_client/exposition.py
@@ -276,7 +276,7 @@ def write_to_textfile(path, registry):
276
if os.name == 'posix':
277
os.rename(tmppath, path)
278
else:
279
- if sys.version_info <= (3,3):
+ if sys.version_info <= (3, 3):
280
# Unable to guarantee atomic rename on Windows and Python<3.3
281
# Remove and rename instead (risks losing the file)
282
os.remove(path)
0 commit comments