mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Use PEP 8 and true booleans.
This commit is contained in:
parent
eb5f27ec9c
commit
55689c9240
1 changed files with 6 additions and 6 deletions
|
@ -4,7 +4,7 @@ Classes:
|
||||||
dircmp
|
dircmp
|
||||||
|
|
||||||
Functions:
|
Functions:
|
||||||
cmp(f1, f2, shallow=1) -> int
|
cmp(f1, f2, shallow=True) -> int
|
||||||
cmpfiles(a, b, common) -> ([], [], [])
|
cmpfiles(a, b, common) -> ([], [], [])
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
@ -19,7 +19,7 @@ __all__ = ["cmp","dircmp","cmpfiles"]
|
||||||
_cache = {}
|
_cache = {}
|
||||||
BUFSIZE = 8*1024
|
BUFSIZE = 8*1024
|
||||||
|
|
||||||
def cmp(f1, f2, shallow=1):
|
def cmp(f1, f2, shallow=True):
|
||||||
"""Compare two files.
|
"""Compare two files.
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
|
@ -238,7 +238,7 @@ class dircmp:
|
||||||
self.methodmap[attr](self)
|
self.methodmap[attr](self)
|
||||||
return getattr(self, attr)
|
return getattr(self, attr)
|
||||||
|
|
||||||
def cmpfiles(a, b, common, shallow=1):
|
def cmpfiles(a, b, common, shallow=True):
|
||||||
"""Compare common files in two directories.
|
"""Compare common files in two directories.
|
||||||
|
|
||||||
a, b -- directory names
|
a, b -- directory names
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue