From 1d947b30342163b723c96db563967323535fef45 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Thu, 25 Oct 2012 12:23:11 +0900 Subject: Even more coding style cleanup Fixing some more pylint warnings: W1401: Anomalous backslash in string W0623: Redefining name 'name' from outer scope W0702: No exception type(s) specified E0102: name: function already defined line n Change-Id: I5afcdb4771ce210390a79981937806e30900a93c --- git_refs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git_refs.py') diff --git a/git_refs.py b/git_refs.py index 18c9230c..cfeffba9 100644 --- a/git_refs.py +++ b/git_refs.py @@ -138,14 +138,14 @@ class GitRefs(object): def _ReadLoose1(self, path, name): try: fd = open(path, 'rb') - except: + except IOError: return try: try: mtime = os.path.getmtime(path) ref_id = fd.readline() - except: + except (IOError, OSError): return finally: fd.close() -- cgit v1.2.3-54-g00ecf