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
261cbb21
Kaydet (Commit)
261cbb21
authored
Şub 19, 1991
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use readfile from util.py.
üst
56098fa2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
28 deletions
+2
-28
filewin.py
Lib/lib-stdwin/filewin.py
+1
-14
filewin.py
Lib/stdwin/filewin.py
+1
-14
No files found.
Lib/lib-stdwin/filewin.py
Dosyayı görüntüle @
261cbb21
# Module 'filewin'
# File windows, a subclass of textwin (which is a subclass of gwin)
import
stdwin
import
textwin
import
path
builtin_open
=
open
def
readfile
(
fn
):
# Return a string containing the file's contents
fp
=
builtin_open
(
fn
,
'r'
)
a
=
''
n
=
8096
while
1
:
b
=
fp
.
read
(
n
)
if
not
b
:
break
a
=
a
+
b
return
a
from
util
import
readfile
# FILE WINDOW
...
...
Lib/stdwin/filewin.py
Dosyayı görüntüle @
261cbb21
# Module 'filewin'
# File windows, a subclass of textwin (which is a subclass of gwin)
import
stdwin
import
textwin
import
path
builtin_open
=
open
def
readfile
(
fn
):
# Return a string containing the file's contents
fp
=
builtin_open
(
fn
,
'r'
)
a
=
''
n
=
8096
while
1
:
b
=
fp
.
read
(
n
)
if
not
b
:
break
a
=
a
+
b
return
a
from
util
import
readfile
# FILE WINDOW
...
...
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