]> git.pld-linux.org Git - packages/python-pyflakes.git/commitdiff
- IMO bugfixes
authorKarol Krenski <charles@pld-linux.org>
Fri, 18 Nov 2005 15:39:21 +0000 (15:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pyflakes-IOError.patch -> 1.1

pyflakes-IOError.patch [new file with mode: 0644]

diff --git a/pyflakes-IOError.patch b/pyflakes-IOError.patch
new file mode 100644 (file)
index 0000000..8e39c0f
--- /dev/null
@@ -0,0 +1,25 @@
+--- pyflakes-0.2.1/bin/pyflakes.orig   2005-10-07 16:58:28.000000000 +0200
++++ pyflakes-0.2.1/bin/pyflakes        2005-11-18 16:23:52.000000000 +0100
+@@ -10,7 +10,11 @@
+         tree = compiler.parse(codeString)
+     except (SyntaxError, IndentationError):
+         value = sys.exc_info()[1]
+-        (lineno, offset, line) = value[1][1:]
++        try:
++            (lineno, offset, line) = value[1][1:]
++        except IndexError:
++            print >> sys.stderr, 'could not compile %r' % (filename,)
++            return
+         if line.endswith("\n"):
+             line = line[:-1]
+         print >> sys.stderr, 'could not compile %r:%d:' % (filename, lineno)
+@@ -24,7 +28,8 @@
+ def checkPath(filename):
+-    return check(file(filename).read(), filename)
++    if os.path.exists(filename):
++        return check(file(filename).read(), filename)
+ args = sys.argv[1:]
+ if args:
This page took 0.110471 seconds and 4 git commands to generate.