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
ca8b6446
Kaydet (Commit)
ca8b6446
authored
Mar 11, 2015
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #23615: Modules bz2, tarfile and tokenize now can be reloaded with
imp.reload(). Patch by Thomas Kluyver.
üst
62e977f1
cf4a2f29
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
6 deletions
+7
-6
bz2.py
Lib/bz2.py
+1
-2
tarfile.py
Lib/tarfile.py
+1
-1
tokenize.py
Lib/tokenize.py
+1
-2
NEWS
Misc/NEWS
+3
-0
bkfile.py
Tools/freeze/bkfile.py
+1
-1
No files found.
Lib/bz2.py
Dosyayı görüntüle @
ca8b6446
...
...
@@ -9,6 +9,7 @@ __all__ = ["BZ2File", "BZ2Compressor", "BZ2Decompressor",
__author__
=
"Nadeem Vawda <nadeem.vawda@gmail.com>"
from
builtins
import
open
as
_builtin_open
import
io
import
warnings
...
...
@@ -27,8 +28,6 @@ _MODE_WRITE = 3
_BUFFER_SIZE
=
8192
_builtin_open
=
open
class
BZ2File
(
io
.
BufferedIOBase
):
...
...
Lib/tarfile.py
Dosyayı görüntüle @
ca8b6446
...
...
@@ -38,6 +38,7 @@ __credits__ = "Gustavo Niemeyer, Niels Gust\u00e4bel, Richard Townsend."
#---------
# Imports
#---------
from
builtins
import
open
as
bltn_open
import
sys
import
os
import
io
...
...
@@ -2433,7 +2434,6 @@ def is_tarfile(name):
except
TarError
:
return
False
bltn_open
=
open
open
=
TarFile
.
open
...
...
Lib/tokenize.py
Dosyayı görüntüle @
ca8b6446
...
...
@@ -24,6 +24,7 @@ __author__ = 'Ka-Ping Yee <ping@lfw.org>'
__credits__
=
(
'GvR, ESR, Tim Peters, Thomas Wouters, Fred Drake, '
'Skip Montanaro, Raymond Hettinger, Trent Nelson, '
'Michael Foord'
)
from
builtins
import
open
as
_builtin_open
from
codecs
import
lookup
,
BOM_UTF8
import
collections
from
io
import
TextIOWrapper
...
...
@@ -429,8 +430,6 @@ def detect_encoding(readline):
return
default
,
[
first
,
second
]
_builtin_open
=
open
def
open
(
filename
):
"""Open a file in read only mode using the encoding detected by
detect_encoding().
...
...
Misc/NEWS
Dosyayı görüntüle @
ca8b6446
...
...
@@ -16,6 +16,9 @@ Core and Builtins
Library
-------
- Issue #23615: Modules bz2, tarfile and tokenize now can be reloaded with
imp.reload(). Patch by Thomas Kluyver.
- Issue #23605: os.walk() now calls os.scandir() instead of os.listdir().
The usage of os.scandir() reduces the number of calls to os.stat().
Initial patch written by Ben Hoyt.
...
...
Tools/freeze/bkfile.py
Dosyayı görüntüle @
ca8b6446
_orig_open
=
open
from
builtins
import
open
as
_orig_
open
class
_BkFile
:
def
__init__
(
self
,
file
,
mode
,
bufsize
):
...
...
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