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
84fedf7f
Kaydet (Commit)
84fedf7f
authored
Şub 06, 2010
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
No need to assign the results of expressions used only for side effects.
üst
7d4b759b
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
7 additions
and
9 deletions
+7
-9
UserDict.py
Lib/UserDict.py
+1
-1
genericpath.py
Lib/genericpath.py
+1
-1
mimetypes.py
Lib/mimetypes.py
+0
-1
posixpath.py
Lib/posixpath.py
+1
-1
rexec.py
Lib/rexec.py
+1
-1
subprocess.py
Lib/subprocess.py
+1
-1
threading.py
Lib/threading.py
+0
-1
urllib.py
Lib/urllib.py
+2
-2
No files found.
Lib/UserDict.py
Dosyayı görüntüle @
84fedf7f
...
...
@@ -98,7 +98,7 @@ class DictMixin:
yield
k
def
has_key
(
self
,
key
):
try
:
value
=
self
[
key
]
self
[
key
]
except
KeyError
:
return
False
return
True
...
...
Lib/genericpath.py
Dosyayı görüntüle @
84fedf7f
...
...
@@ -15,7 +15,7 @@ __all__ = ['commonprefix', 'exists', 'getatime', 'getctime', 'getmtime',
def
exists
(
path
):
"""Test whether a path exists. Returns False for broken symbolic links"""
try
:
st
=
os
.
stat
(
path
)
os
.
stat
(
path
)
except
os
.
error
:
return
False
return
True
...
...
Lib/mimetypes.py
Dosyayı görüntüle @
84fedf7f
...
...
@@ -546,7 +546,6 @@ _default_mime_types()
if
__name__
==
'__main__'
:
import
sys
import
getopt
USAGE
=
"""
\
...
...
Lib/posixpath.py
Dosyayı görüntüle @
84fedf7f
...
...
@@ -139,7 +139,7 @@ def islink(path):
def
lexists
(
path
):
"""Test whether a path exists. Returns True for broken symbolic links"""
try
:
st
=
os
.
lstat
(
path
)
os
.
lstat
(
path
)
except
os
.
error
:
return
False
return
True
...
...
Lib/rexec.py
Dosyayı görüntüle @
84fedf7f
...
...
@@ -244,7 +244,7 @@ class RExec(ihooks._Verbose):
m
.
open
=
m
.
file
=
self
.
r_open
def
make_main
(
self
):
m
=
self
.
add_module
(
'__main__'
)
self
.
add_module
(
'__main__'
)
def
make_osname
(
self
):
osname
=
os
.
name
...
...
Lib/subprocess.py
Dosyayı görüntüle @
84fedf7f
...
...
@@ -920,7 +920,7 @@ class Popen(object):
"""Wait for child process to terminate. Returns returncode
attribute."""
if
self
.
returncode
is
None
:
obj
=
WaitForSingleObject
(
self
.
_handle
,
INFINITE
)
WaitForSingleObject
(
self
.
_handle
,
INFINITE
)
self
.
returncode
=
GetExitCodeProcess
(
self
.
_handle
)
return
self
.
returncode
...
...
Lib/threading.py
Dosyayı görüntüle @
84fedf7f
...
...
@@ -10,7 +10,6 @@ except ImportError:
import
warnings
from
functools
import
wraps
from
time
import
time
as
_time
,
sleep
as
_sleep
from
traceback
import
format_exc
as
_format_exc
from
collections
import
deque
...
...
Lib/urllib.py
Dosyayı görüntüle @
84fedf7f
...
...
@@ -234,7 +234,7 @@ class URLopener:
hdrs
=
fp
.
info
()
fp
.
close
()
return
url2pathname
(
splithost
(
url1
)[
1
]),
hdrs
except
IOError
,
msg
:
except
IOError
:
pass
fp
=
self
.
open
(
url
,
data
)
try
:
...
...
@@ -1277,7 +1277,7 @@ def urlencode(query,doseq=0):
else
:
try
:
# is this a sufficient test for sequence-ness?
x
=
len
(
v
)
len
(
v
)
except
TypeError
:
# not a sequence
v
=
quote_plus
(
str
(
v
))
...
...
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