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
f1fc9fb3
Kaydet (Commit)
f1fc9fb3
authored
Kas 27, 2014
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #22314: pydoc now works when the LINES environment variable is set.
üst
5916d530
ab5e9b92
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
pydoc.py
Lib/pydoc.py
+8
-2
NEWS
Misc/NEWS
+5
-0
No files found.
Lib/pydoc.py
Dosyayı görüntüle @
f1fc9fb3
...
@@ -1477,12 +1477,18 @@ def ttypager(text):
...
@@ -1477,12 +1477,18 @@ def ttypager(text):
old
=
tty
.
tcgetattr
(
fd
)
old
=
tty
.
tcgetattr
(
fd
)
tty
.
setcbreak
(
fd
)
tty
.
setcbreak
(
fd
)
getchar
=
lambda
:
sys
.
stdin
.
read
(
1
)
getchar
=
lambda
:
sys
.
stdin
.
read
(
1
)
except
(
ImportError
,
AttributeError
):
except
(
ImportError
,
AttributeError
,
io
.
UnsupportedOperation
):
tty
=
None
tty
=
None
getchar
=
lambda
:
sys
.
stdin
.
readline
()[:
-
1
][:
1
]
getchar
=
lambda
:
sys
.
stdin
.
readline
()[:
-
1
][:
1
]
try
:
try
:
r
=
inc
=
os
.
environ
.
get
(
'LINES'
,
25
)
-
1
try
:
h
=
int
(
os
.
environ
.
get
(
'LINES'
,
0
))
except
ValueError
:
h
=
0
if
h
<=
1
:
h
=
25
r
=
inc
=
h
-
1
sys
.
stdout
.
write
(
'
\n
'
.
join
(
lines
[:
inc
])
+
'
\n
'
)
sys
.
stdout
.
write
(
'
\n
'
.
join
(
lines
[:
inc
])
+
'
\n
'
)
while
lines
[
r
:]:
while
lines
[
r
:]:
sys
.
stdout
.
write
(
'-- more --'
)
sys
.
stdout
.
write
(
'-- more --'
)
...
...
Misc/NEWS
Dosyayı görüntüle @
f1fc9fb3
...
@@ -383,6 +383,11 @@ Library
...
@@ -383,6 +383,11 @@ Library
- Issue #17442: InteractiveInterpreter now displays the full chained traceback
- Issue #17442: InteractiveInterpreter now displays the full chained traceback
in its showtraceback method, to match the built in interactive interpreter.
in its showtraceback method, to match the built in interactive interpreter.
Tools/Demos
-----------
- Issue #22314: pydoc now works when the LINES environment variable is set.
- Issue #10510: distutils register and upload methods now use HTML standards
- Issue #10510: distutils register and upload methods now use HTML standards
compliant CRLF line endings.
compliant CRLF line endings.
...
...
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