[Reproducible-commits] [misc] 04/05: Avoid "fd" as its not a "file descriptor" in the UNIX sense; it's a Python file object.
Chris Lamb
lamby at moszumanska.debian.org
Tue Jul 28 15:33:27 UTC 2015
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository misc.
commit e1fe2d2eb34685a76a5034fae87f2f179b552f28
Author: Chris Lamb <lamby at debian.org>
Date: Tue Jul 28 16:22:18 2015 +0100
Avoid "fd" as its not a "file descriptor" in the UNIX sense; it's a Python file object.
---
clean-notes | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/clean-notes b/clean-notes
index 459c5b5..4620b63 100755
--- a/clean-notes
+++ b/clean-notes
@@ -176,8 +176,8 @@ def query_udd(query):
def load_reproducible_status():
status = {}
try:
- with open('reproducible.json') as fd:
- rstatus = json.load(fd)
+ with open('reproducible.json') as f:
+ rstatus = json.load(f)
except FileNotFoundError:
rstatus = requests.get(REPRODUCIBLE_JSON).json()
@@ -207,8 +207,8 @@ def load_reproducible_status():
return status
def load_notes():
- with open(NOTES_YAML, encoding='utf-8') as fd:
- return yaml.safe_load(fd)
+ with open(NOTES_YAML, encoding='utf-8') as f:
+ return yaml.safe_load(f)
def check_notes_validity(notes, testedpkgs):
@@ -418,8 +418,8 @@ def write_out(notes):
out += " bugs:\n"
for bug in values['bugs']:
out += " - %s\n" % bug
- with open(NOTES_YAML, 'wb') as fd:
- fd.write(out.encode('utf-8'))
+ with open(NOTES_YAML, 'wb') as f:
+ f.write(out.encode('utf-8'))
if __name__ == '__main__':
if 'not-usertagged' not in args.disable or \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/misc.git
More information about the Reproducible-commits
mailing list