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
4e0e1b6a
Kaydet (Commit)
4e0e1b6a
authored
Tem 07, 2004
tarafından
Tim Peters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Whitespace normalization.
üst
b7e898a0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
26 additions
and
48 deletions
+26
-48
asyncore.py
Lib/asyncore.py
+3
-4
cmd.py
Lib/cmd.py
+2
-2
pycodegen.py
Lib/compiler/pycodegen.py
+1
-1
symbols.py
Lib/compiler/symbols.py
+3
-3
decimal.py
Lib/decimal.py
+5
-5
doctest.py
Lib/doctest.py
+3
-3
big5.py
Lib/encodings/big5.py
+0
-1
cp932.py
Lib/encodings/cp932.py
+0
-1
cp949.py
Lib/encodings/cp949.py
+0
-1
cp950.py
Lib/encodings/cp950.py
+0
-1
euc_jisx0213.py
Lib/encodings/euc_jisx0213.py
+0
-1
euc_jp.py
Lib/encodings/euc_jp.py
+0
-1
euc_kr.py
Lib/encodings/euc_kr.py
+0
-1
gb18030.py
Lib/encodings/gb18030.py
+0
-1
gb2312.py
Lib/encodings/gb2312.py
+0
-1
gbk.py
Lib/encodings/gbk.py
+0
-1
hz.py
Lib/encodings/hz.py
+0
-1
iso2022_jp.py
Lib/encodings/iso2022_jp.py
+0
-1
iso2022_jp_1.py
Lib/encodings/iso2022_jp_1.py
+0
-1
iso2022_jp_2.py
Lib/encodings/iso2022_jp_2.py
+0
-1
iso2022_jp_3.py
Lib/encodings/iso2022_jp_3.py
+0
-1
iso2022_jp_ext.py
Lib/encodings/iso2022_jp_ext.py
+0
-1
iso2022_kr.py
Lib/encodings/iso2022_kr.py
+0
-1
johab.py
Lib/encodings/johab.py
+0
-1
ptcp154.py
Lib/encodings/ptcp154.py
+0
-0
shift_jis.py
Lib/encodings/shift_jis.py
+0
-1
shift_jisx0213.py
Lib/encodings/shift_jisx0213.py
+0
-1
__init__.py
Lib/logging/__init__.py
+1
-1
handlers.py
Lib/logging/handlers.py
+5
-5
profile.py
Lib/profile.py
+2
-2
site.py
Lib/site.py
+1
-1
stringprep.py
Lib/stringprep.py
+0
-1
No files found.
Lib/asyncore.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -304,7 +304,7 @@ class dispatcher:
if
why
[
0
]
==
EWOULDBLOCK
:
pass
else
:
raise
raise
def
send
(
self
,
data
):
try
:
...
...
@@ -314,7 +314,7 @@ class dispatcher:
if
why
[
0
]
==
EWOULDBLOCK
:
return
0
else
:
raise
raise
return
0
def
recv
(
self
,
buffer_size
):
...
...
@@ -333,7 +333,7 @@ class dispatcher:
self
.
handle_close
()
return
''
else
:
raise
raise
def
close
(
self
):
self
.
del_channel
()
...
...
@@ -529,4 +529,3 @@ if os.name == 'posix':
self
.
_fileno
=
fd
self
.
socket
=
file_wrapper
(
fd
)
self
.
add_channel
()
Lib/cmd.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -149,7 +149,7 @@ class Cmd:
readline
.
set_completer
(
self
.
old_completer
)
except
ImportError
:
pass
def
precmd
(
self
,
line
):
"""Hook method executed just before the command line is
...
...
@@ -172,7 +172,7 @@ class Cmd:
"""
pass
def
parseline
(
self
,
line
):
"""Parse the line into a command name and a string containing
the arguments. Returns a tuple containing (command, args, line).
...
...
Lib/compiler/pycodegen.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -671,7 +671,7 @@ class CodeGenerator:
def
visitGenExprFor
(
self
,
node
):
start
=
self
.
newBlock
()
anchor
=
self
.
newBlock
()
if
node
.
is_outmost
:
self
.
loadName
(
'[outmost-iterable]'
)
else
:
...
...
Lib/compiler/symbols.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -260,13 +260,13 @@ class SymbolVisitor:
def
visitGenExprIf
(
self
,
node
,
scope
):
self
.
visit
(
node
.
test
,
scope
)
def
visitLambda
(
self
,
node
,
parent
,
assign
=
0
):
# Lambda is an expression, so it could appear in an expression
# context where assign is passed. The transformer should catch
# any code that has a lambda on the left-hand side.
assert
not
assign
assert
not
assign
for
n
in
node
.
defaults
:
self
.
visit
(
n
,
parent
)
scope
=
LambdaScope
(
self
.
module
,
self
.
klass
)
...
...
Lib/decimal.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -509,10 +509,10 @@ class Decimal(object):
return
if
isinstance
(
value
,
Decimal
):
self
.
_exp
=
value
.
_exp
self
.
_sign
=
value
.
_sign
self
.
_int
=
value
.
_int
return
self
.
_exp
=
value
.
_exp
self
.
_sign
=
value
.
_sign
self
.
_int
=
value
.
_int
return
raise
TypeError
(
"Can't convert
%
r"
%
value
)
...
...
@@ -2817,7 +2817,7 @@ class _WorkRep(object):
carry
=
1
selfint
[
x
]
+=
10
else
:
carry
=
0
carry
=
0
if
carry
:
selfint
[
x
+
1
]
-=
1
last
=
len
(
selfint
)
-
1
...
...
Lib/doctest.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -205,7 +205,7 @@ Bummers:
docstring, which will preserve your backslahses exactly as you type
them:
>>> def f(x):
>>> def f(x):
... r'''Backslashes in a raw docstring: m\n'''
>>> print f.__doc__
Backslashes in a raw docstring: m\n
...
...
@@ -215,11 +215,11 @@ Bummers:
Alternatively, you can double each backslash in the doctest version
(and not use a raw string):
>>> def f(x):
>>> def f(x):
... '''Backslashes in a raw docstring: m\\n'''
>>> print f.__doc__
Backslashes in a raw docstring: m\n
The starting column doesn't matter:
>>> assert "Easy!"
...
...
Lib/encodings/big5.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -31,4 +31,3 @@ class StreamWriter(Codec, codecs.StreamWriter):
def
getregentry
():
return
(
Codec
()
.
encode
,
Codec
()
.
decode
,
StreamReader
,
StreamWriter
)
Lib/encodings/cp932.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -31,4 +31,3 @@ class StreamWriter(Codec, codecs.StreamWriter):
def
getregentry
():
return
(
Codec
()
.
encode
,
Codec
()
.
decode
,
StreamReader
,
StreamWriter
)
Lib/encodings/cp949.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -31,4 +31,3 @@ class StreamWriter(Codec, codecs.StreamWriter):
def
getregentry
():
return
(
Codec
()
.
encode
,
Codec
()
.
decode
,
StreamReader
,
StreamWriter
)
Lib/encodings/cp950.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -31,4 +31,3 @@ class StreamWriter(Codec, codecs.StreamWriter):
def
getregentry
():
return
(
Codec
()
.
encode
,
Codec
()
.
decode
,
StreamReader
,
StreamWriter
)
Lib/encodings/euc_jisx0213.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -31,4 +31,3 @@ class StreamWriter(Codec, codecs.StreamWriter):
def
getregentry
():
return
(
Codec
()
.
encode
,
Codec
()
.
decode
,
StreamReader
,
StreamWriter
)
Lib/encodings/euc_jp.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -31,4 +31,3 @@ class StreamWriter(Codec, codecs.StreamWriter):
def
getregentry
():
return
(
Codec
()
.
encode
,
Codec
()
.
decode
,
StreamReader
,
StreamWriter
)
Lib/encodings/euc_kr.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -31,4 +31,3 @@ class StreamWriter(Codec, codecs.StreamWriter):
def
getregentry
():
return
(
Codec
()
.
encode
,
Codec
()
.
decode
,
StreamReader
,
StreamWriter
)
Lib/encodings/gb18030.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -31,4 +31,3 @@ class StreamWriter(Codec, codecs.StreamWriter):
def
getregentry
():
return
(
Codec
()
.
encode
,
Codec
()
.
decode
,
StreamReader
,
StreamWriter
)
Lib/encodings/gb2312.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -31,4 +31,3 @@ class StreamWriter(Codec, codecs.StreamWriter):
def
getregentry
():
return
(
Codec
()
.
encode
,
Codec
()
.
decode
,
StreamReader
,
StreamWriter
)
Lib/encodings/gbk.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -31,4 +31,3 @@ class StreamWriter(Codec, codecs.StreamWriter):
def
getregentry
():
return
(
Codec
()
.
encode
,
Codec
()
.
decode
,
StreamReader
,
StreamWriter
)
Lib/encodings/hz.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -31,4 +31,3 @@ class StreamWriter(Codec, codecs.StreamWriter):
def
getregentry
():
return
(
Codec
()
.
encode
,
Codec
()
.
decode
,
StreamReader
,
StreamWriter
)
Lib/encodings/iso2022_jp.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -31,4 +31,3 @@ class StreamWriter(Codec, codecs.StreamWriter):
def
getregentry
():
return
(
Codec
()
.
encode
,
Codec
()
.
decode
,
StreamReader
,
StreamWriter
)
Lib/encodings/iso2022_jp_1.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -31,4 +31,3 @@ class StreamWriter(Codec, codecs.StreamWriter):
def
getregentry
():
return
(
Codec
()
.
encode
,
Codec
()
.
decode
,
StreamReader
,
StreamWriter
)
Lib/encodings/iso2022_jp_2.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -31,4 +31,3 @@ class StreamWriter(Codec, codecs.StreamWriter):
def
getregentry
():
return
(
Codec
()
.
encode
,
Codec
()
.
decode
,
StreamReader
,
StreamWriter
)
Lib/encodings/iso2022_jp_3.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -31,4 +31,3 @@ class StreamWriter(Codec, codecs.StreamWriter):
def
getregentry
():
return
(
Codec
()
.
encode
,
Codec
()
.
decode
,
StreamReader
,
StreamWriter
)
Lib/encodings/iso2022_jp_ext.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -31,4 +31,3 @@ class StreamWriter(Codec, codecs.StreamWriter):
def
getregentry
():
return
(
Codec
()
.
encode
,
Codec
()
.
decode
,
StreamReader
,
StreamWriter
)
Lib/encodings/iso2022_kr.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -31,4 +31,3 @@ class StreamWriter(Codec, codecs.StreamWriter):
def
getregentry
():
return
(
Codec
()
.
encode
,
Codec
()
.
decode
,
StreamReader
,
StreamWriter
)
Lib/encodings/johab.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -31,4 +31,3 @@ class StreamWriter(Codec, codecs.StreamWriter):
def
getregentry
():
return
(
Codec
()
.
encode
,
Codec
()
.
decode
,
StreamReader
,
StreamWriter
)
Lib/encodings/ptcp154.py
Dosyayı görüntüle @
4e0e1b6a
This diff is collapsed.
Click to expand it.
Lib/encodings/shift_jis.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -31,4 +31,3 @@ class StreamWriter(Codec, codecs.StreamWriter):
def
getregentry
():
return
(
Codec
()
.
encode
,
Codec
()
.
decode
,
StreamReader
,
StreamWriter
)
Lib/encodings/shift_jisx0213.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -31,4 +31,3 @@ class StreamWriter(Codec, codecs.StreamWriter):
def
getregentry
():
return
(
Codec
()
.
encode
,
Codec
()
.
decode
,
StreamReader
,
StreamWriter
)
Lib/logging/__init__.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -1162,7 +1162,7 @@ def basicConfig(**kwargs):
root
.
addHandler
(
hdlr
)
level
=
kwargs
.
get
(
"level"
)
if
level
:
root
.
setLevel
(
level
)
root
.
setLevel
(
level
)
#---------------------------------------------------------------------------
# Utility functions at module level.
...
...
Lib/logging/handlers.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -315,9 +315,9 @@ class SocketHandler(logging.Handler):
# is the first time back after a disconnect, or
# we've waited long enough.
if
self
.
retryTime
is
None
:
attempt
=
1
attempt
=
1
else
:
attempt
=
(
now
>=
self
.
retryTime
)
attempt
=
(
now
>=
self
.
retryTime
)
if
attempt
:
try
:
self
.
sock
=
self
.
makeSocket
()
...
...
@@ -366,11 +366,11 @@ class SocketHandler(logging.Handler):
"""
ei
=
record
.
exc_info
if
ei
:
dummy
=
self
.
format
(
record
)
# just to get traceback text into record.exc_text
record
.
exc_info
=
None
# to avoid Unpickleable error
dummy
=
self
.
format
(
record
)
# just to get traceback text into record.exc_text
record
.
exc_info
=
None
# to avoid Unpickleable error
s
=
cPickle
.
dumps
(
record
.
__dict__
,
1
)
if
ei
:
record
.
exc_info
=
ei
# for next handler
record
.
exc_info
=
ei
# for next handler
slen
=
struct
.
pack
(
">L"
,
len
(
s
))
return
slen
+
s
...
...
Lib/profile.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -598,14 +598,14 @@ if __name__ == '__main__':
parser
=
ProfileParser
(
usage
)
parser
.
allow_interspersed_args
=
False
parser
.
add_option
(
'-o'
,
'--outfile'
,
dest
=
"outfile"
,
parser
.
add_option
(
'-o'
,
'--outfile'
,
dest
=
"outfile"
,
help
=
"Save stats to <outfile>"
,
default
=
None
)
parser
.
add_option
(
'-s'
,
'--sort'
,
dest
=
"sort"
,
help
=
"Sort order when printing to stdout, based on pstats.Stats class"
,
default
=-
1
)
(
options
,
args
)
=
parser
.
parse_args
()
sys
.
argv
[:]
=
args
if
(
len
(
sys
.
argv
)
>
0
):
sys
.
path
.
insert
(
0
,
os
.
path
.
dirname
(
sys
.
argv
[
0
]))
run
(
'execfile(
%
r)'
%
(
sys
.
argv
[
0
],),
options
.
outfile
,
options
.
sort
)
...
...
Lib/site.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -210,7 +210,7 @@ def setBEGINLIBPATH():
The library search path needs to be amended so these will be found
during module import. Use BEGINLIBPATH so that these are at the start
of the library search path.
"""
dllpath
=
os
.
path
.
join
(
sys
.
prefix
,
"Lib"
,
"lib-dynload"
)
libpath
=
os
.
environ
[
'BEGINLIBPATH'
]
.
split
(
';'
)
...
...
Lib/stringprep.py
Dosyayı görüntüle @
4e0e1b6a
...
...
@@ -270,4 +270,3 @@ def in_table_d1(code):
def
in_table_d2
(
code
):
return
unicodedata
.
bidirectional
(
code
)
==
"L"
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