Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
55689c92
Kaydet (Commit)
55689c92
authored
May 17, 2009
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use PEP 8 and true booleans.
üst
eb5f27ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
filecmp.py
Lib/filecmp.py
+6
-6
No files found.
Lib/filecmp.py
Dosyayı görüntüle @
55689c92
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment