summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2012-12-22 00:27:23 +0100
committerFlorent Xicluna <florent.xicluna@gmail.com>2012-12-22 00:27:23 +0100
commit272571d14c2c07cf3008ab59782c554a1344ee3f (patch)
treeae859d7314f1840c7be360d7a61811533b86eed3
parent9c077136840a4c960816ebd32fc188186e943a83 (diff)
downloadpep8-272571d14c2c07cf3008ab59782c554a1344ee3f.tar.gz
Missing docstrings
-rwxr-xr-xpep8.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pep8.py b/pep8.py
index b07388f..dba1c81 100755
--- a/pep8.py
+++ b/pep8.py
@@ -1142,6 +1142,9 @@ def mute_string(text):
def parse_udiff(diff, patterns=None, parent='.'):
+ """Return a dictionary of matching lines."""
+ # For each file of the diff, the entry key is the filename,
+ # and the value is a set of row numbers to consider.
rv = {}
path = nrows = None
for line in diff.splitlines():
@@ -1486,6 +1489,7 @@ class BaseReport(object):
class FileReport(BaseReport):
+ """Collect the results of the checks and print only the filenames."""
print_filename = True