summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/src/Lib/filecmp.py
diff options
context:
space:
mode:
authorshadchin <[email protected]>2022-02-10 16:44:39 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:44:39 +0300
commite9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (patch)
tree64175d5cadab313b3e7039ebaa06c5bc3295e274 /contrib/tools/python3/src/Lib/filecmp.py
parent2598ef1d0aee359b4b6d5fdd1758916d5907d04f (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'contrib/tools/python3/src/Lib/filecmp.py')
-rw-r--r--contrib/tools/python3/src/Lib/filecmp.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/contrib/tools/python3/src/Lib/filecmp.py b/contrib/tools/python3/src/Lib/filecmp.py
index ee286da9660..1893f909de8 100644
--- a/contrib/tools/python3/src/Lib/filecmp.py
+++ b/contrib/tools/python3/src/Lib/filecmp.py
@@ -13,7 +13,7 @@ Functions:
import os
import stat
from itertools import filterfalse
-from types import GenericAlias
+from types import GenericAlias
__all__ = ['clear_cache', 'cmp', 'dircmp', 'cmpfiles', 'DEFAULT_IGNORES']
@@ -36,9 +36,9 @@ def cmp(f1, f2, shallow=True):
f2 -- Second file name
- shallow -- treat files as identical if their stat signatures (type, size,
- mtime) are identical. Otherwise, files are considered different
- if their sizes or contents differ. [default: True]
+ shallow -- treat files as identical if their stat signatures (type, size,
+ mtime) are identical. Otherwise, files are considered different
+ if their sizes or contents differ. [default: True]
Return value:
@@ -158,12 +158,12 @@ class dircmp:
ok = 1
try:
a_stat = os.stat(a_path)
- except OSError:
+ except OSError:
# print('Can\'t stat', a_path, ':', why.args[1])
ok = 0
try:
b_stat = os.stat(b_path)
- except OSError:
+ except OSError:
# print('Can\'t stat', b_path, ':', why.args[1])
ok = 0
@@ -249,9 +249,9 @@ class dircmp:
self.methodmap[attr](self)
return getattr(self, attr)
- __class_getitem__ = classmethod(GenericAlias)
-
-
+ __class_getitem__ = classmethod(GenericAlias)
+
+
def cmpfiles(a, b, common, shallow=True):
"""Compare common files in two directories.