diff options
author | Georg Brandl <georg@python.org> | 2009-05-17 12:19:44 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-05-17 12:19:44 (GMT) |
commit | 55689c9240ee225c3974b814bf950381765e9e30 (patch) | |
tree | 51997eed06b7ced983ada86404bf7bf0dd191ef4 /Lib/filecmp.py | |
parent | eb5f27ec9c19e2b2a125be8a5635cc0b257a4c02 (diff) | |
download | cpython-55689c9240ee225c3974b814bf950381765e9e30.zip cpython-55689c9240ee225c3974b814bf950381765e9e30.tar.gz cpython-55689c9240ee225c3974b814bf950381765e9e30.tar.bz2 |
Use PEP 8 and true booleans.
Diffstat (limited to 'Lib/filecmp.py')
-rw-r--r-- | Lib/filecmp.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/filecmp.py b/Lib/filecmp.py index 4cbb0d6..1a86e06 100644 --- a/Lib/filecmp.py +++ b/Lib/filecmp.py @@ -4,7 +4,7 @@ Classes: dircmp Functions: - cmp(f1, f2, shallow=1) -> int + cmp(f1, f2, shallow=True) -> int cmpfiles(a, b, common) -> ([], [], []) """ @@ -14,12 +14,12 @@ import stat import contextlib from itertools import filterfalse -__all__ = ["cmp","dircmp","cmpfiles"] +__all__ = ["cmp", "dircmp", "cmpfiles"] _cache = {} -BUFSIZE=8*1024 +BUFSIZE = 8*1024 -def cmp(f1, f2, shallow=1): +def cmp(f1, f2, shallow=True): """Compare two files. Arguments: @@ -77,7 +77,7 @@ def _do_cmp(f1, f2): class dircmp: """A class that manages the comparison of 2 directories. - dircmp(a,b,ignore=None,hide=None) + dircmp(a, b, ignore=None, hide=None) A and B are directories. IGNORE is a list of names to ignore, defaults to ['RCS', 'CVS', 'tags']. @@ -238,7 +238,7 @@ class dircmp: self.methodmap[attr](self) return getattr(self, attr) -def cmpfiles(a, b, common, shallow=1): +def cmpfiles(a, b, common, shallow=True): """Compare common files in two directories. a, b -- directory names |