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
f5f32b47
Kaydet (Commit)
f5f32b47
authored
Tem 17, 2005
tarafından
Tim Peters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Whitespace normalization.
üst
c48a7408
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
53 additions
and
53 deletions
+53
-53
IN.py
Lib/plat-freebsd7/IN.py
+4
-4
test_enumerate.py
Lib/test/test_enumerate.py
+1
-1
test_urllib2.py
Lib/test/test_urllib2.py
+1
-1
urllib2.py
Lib/urllib2.py
+4
-4
filesupport.py
Mac/Modules/file/filesupport.py
+38
-38
scantools.py
Tools/bgen/bgen/scantools.py
+5
-5
No files found.
Lib/plat-freebsd7/IN.py
Dosyayı görüntüle @
f5f32b47
...
@@ -23,13 +23,13 @@ __CC_SUPPORTS_WARNING = 1
...
@@ -23,13 +23,13 @@ __CC_SUPPORTS_WARNING = 1
__CC_SUPPORTS_VARADIC_XXX
=
1
__CC_SUPPORTS_VARADIC_XXX
=
1
__CC_SUPPORTS_DYNAMIC_ARRAY_INIT
=
1
__CC_SUPPORTS_DYNAMIC_ARRAY_INIT
=
1
__CC_INT_IS_32BIT
=
1
__CC_INT_IS_32BIT
=
1
def
__P
(
protos
):
return
protos
def
__P
(
protos
):
return
protos
def
__STRING
(
x
):
return
#x
def
__STRING
(
x
):
return
#x
def
__XSTRING
(
x
):
return
__STRING
(
x
)
def
__XSTRING
(
x
):
return
__STRING
(
x
)
def
__P
(
protos
):
return
()
def
__P
(
protos
):
return
()
def
__STRING
(
x
):
return
"x"
def
__STRING
(
x
):
return
"x"
...
...
Lib/test/test_enumerate.py
Dosyayı görüntüle @
f5f32b47
...
@@ -193,7 +193,7 @@ class TestReversed(unittest.TestCase):
...
@@ -193,7 +193,7 @@ class TestReversed(unittest.TestCase):
else
:
else
:
self
.
fail
(
"non-callable __reversed__ didn't raise!"
)
self
.
fail
(
"non-callable __reversed__ didn't raise!"
)
self
.
assertEqual
(
rc
,
sys
.
getrefcount
(
r
))
self
.
assertEqual
(
rc
,
sys
.
getrefcount
(
r
))
def
test_main
(
verbose
=
None
):
def
test_main
(
verbose
=
None
):
testclasses
=
(
EnumerateTestCase
,
SubclassTestCase
,
TestEmpty
,
TestBig
,
testclasses
=
(
EnumerateTestCase
,
SubclassTestCase
,
TestEmpty
,
TestBig
,
...
...
Lib/test/test_urllib2.py
Dosyayı görüntüle @
f5f32b47
...
@@ -40,7 +40,7 @@ class TrivialTests(unittest.TestCase):
...
@@ -40,7 +40,7 @@ class TrivialTests(unittest.TestCase):
buf
=
f
.
read
()
buf
=
f
.
read
()
f
.
close
()
f
.
close
()
def
test_statudict
(
self
):
def
test_statudict
(
self
):
# test the new-in-2.5 httpresponses dictionary
# test the new-in-2.5 httpresponses dictionary
self
.
assertEquals
(
urllib2
.
httpresponses
[
404
],
"Not Found"
)
self
.
assertEquals
(
urllib2
.
httpresponses
[
404
],
"Not Found"
)
...
...
Lib/urllib2.py
Dosyayı görüntüle @
f5f32b47
...
@@ -1298,7 +1298,7 @@ class OpenerFactory:
...
@@ -1298,7 +1298,7 @@ class OpenerFactory:
httpresponses
=
{
httpresponses
=
{
100
:
'Continue'
,
100
:
'Continue'
,
101
:
'Switching Protocols'
,
101
:
'Switching Protocols'
,
200
:
'OK'
,
200
:
'OK'
,
201
:
'Created'
,
201
:
'Created'
,
202
:
'Accepted'
,
202
:
'Accepted'
,
...
@@ -1306,7 +1306,7 @@ httpresponses = {
...
@@ -1306,7 +1306,7 @@ httpresponses = {
204
:
'No Content'
,
204
:
'No Content'
,
205
:
'Reset Content'
,
205
:
'Reset Content'
,
206
:
'Partial Content'
,
206
:
'Partial Content'
,
300
:
'Multiple Choices'
,
300
:
'Multiple Choices'
,
301
:
'Moved Permanently'
,
301
:
'Moved Permanently'
,
302
:
'Found'
,
302
:
'Found'
,
...
@@ -1315,7 +1315,7 @@ httpresponses = {
...
@@ -1315,7 +1315,7 @@ httpresponses = {
305
:
'Use Proxy'
,
305
:
'Use Proxy'
,
306
:
'(Unused)'
,
306
:
'(Unused)'
,
307
:
'Temporary Redirect'
,
307
:
'Temporary Redirect'
,
400
:
'Bad Request'
,
400
:
'Bad Request'
,
401
:
'Unauthorized'
,
401
:
'Unauthorized'
,
402
:
'Payment Required'
,
402
:
'Payment Required'
,
...
@@ -1334,7 +1334,7 @@ httpresponses = {
...
@@ -1334,7 +1334,7 @@ httpresponses = {
415
:
'Unsupported Media Type'
,
415
:
'Unsupported Media Type'
,
416
:
'Requested Range Not Satisfiable'
,
416
:
'Requested Range Not Satisfiable'
,
417
:
'Expectation Failed'
,
417
:
'Expectation Failed'
,
500
:
'Internal Server Error'
,
500
:
'Internal Server Error'
,
501
:
'Not Implemented'
,
501
:
'Not Implemented'
,
502
:
'Bad Gateway'
,
502
:
'Bad Gateway'
,
...
...
Mac/Modules/file/filesupport.py
Dosyayı görüntüle @
f5f32b47
...
@@ -205,44 +205,44 @@ PyMac_BuildHFSUniStr255(HFSUniStr255 *itself)
...
@@ -205,44 +205,44 @@ PyMac_BuildHFSUniStr255(HFSUniStr255 *itself)
static OSErr
static OSErr
_PyMac_GetFullPathname(FSSpec *fss, char *path, int len)
_PyMac_GetFullPathname(FSSpec *fss, char *path, int len)
{
{
FSRef fsr;
FSRef fsr;
OSErr err;
OSErr err;
*path = '
\0
';
*path = '
\0
';
err = FSpMakeFSRef(fss, &fsr);
err = FSpMakeFSRef(fss, &fsr);
if (err == fnfErr) {
if (err == fnfErr) {
/* FSSpecs can point to non-existing files, fsrefs can't. */
/* FSSpecs can point to non-existing files, fsrefs can't. */
FSSpec fss2;
FSSpec fss2;
int tocopy;
int tocopy;
err = FSMakeFSSpec(fss->vRefNum, fss->parID, "", &fss2);
err = FSMakeFSSpec(fss->vRefNum, fss->parID, "", &fss2);
if (err)
if (err)
return err;
return err;
err = FSpMakeFSRef(&fss2, &fsr);
err = FSpMakeFSRef(&fss2, &fsr);
if (err)
if (err)
return err;
return err;
err = (OSErr)FSRefMakePath(&fsr, path, len-1);
err = (OSErr)FSRefMakePath(&fsr, path, len-1);
if (err)
if (err)
return err;
return err;
/* This part is not 100
%
safe: we append the filename part, but
/* This part is not 100
%
safe: we append the filename part, but
** I'm not sure that we don't run afoul of the various 8bit
** I'm not sure that we don't run afoul of the various 8bit
** encodings here. Will have to look this up at some point...
** encodings here. Will have to look this up at some point...
*/
*/
strcat(path, "/");
strcat(path, "/");
tocopy = fss->name[0];
tocopy = fss->name[0];
if ((strlen(path) + tocopy) >= len)
if ((strlen(path) + tocopy) >= len)
tocopy = len - strlen(path) - 1;
tocopy = len - strlen(path) - 1;
if (tocopy > 0)
if (tocopy > 0)
strncat(path, fss->name+1, tocopy);
strncat(path, fss->name+1, tocopy);
}
}
else {
else {
if (err)
if (err)
return err;
return err;
err = (OSErr)FSRefMakePath(&fsr, path, len);
err = (OSErr)FSRefMakePath(&fsr, path, len);
if (err)
if (err)
return err;
return err;
}
}
return 0;
return 0;
}
}
"""
"""
...
...
Tools/bgen/bgen/scantools.py
Dosyayı görüntüle @
f5f32b47
...
@@ -374,7 +374,7 @@ if missing: raise "Missing Types"
...
@@ -374,7 +374,7 @@ if missing: raise "Missing Types"
tmp
=
self
.
scanmine
and
self
.
scanfile
tmp
=
self
.
scanmine
and
self
.
scanfile
self
.
scanfile
=
None
self
.
scanfile
=
None
if
tmp
:
tmp
.
close
()
if
tmp
:
tmp
.
close
()
def
closehtml
(
self
):
def
closehtml
(
self
):
if
self
.
htmlfile
:
self
.
htmlfile
.
write
(
ENDHTMLREPORT
)
if
self
.
htmlfile
:
self
.
htmlfile
.
write
(
ENDHTMLREPORT
)
tmp
=
self
.
htmlmine
and
self
.
htmlfile
tmp
=
self
.
htmlmine
and
self
.
htmlfile
...
@@ -415,7 +415,7 @@ if missing: raise "Missing Types"
...
@@ -415,7 +415,7 @@ if missing: raise "Missing Types"
self
.
htmlfile
=
file
self
.
htmlfile
=
file
self
.
htmlmine
=
mine
self
.
htmlmine
=
mine
self
.
htmlfile
.
write
(
BEGINHTMLREPORT
)
self
.
htmlfile
.
write
(
BEGINHTMLREPORT
)
def
openoutput
(
self
,
filename
):
def
openoutput
(
self
,
filename
):
try
:
try
:
file
=
open
(
filename
,
'w'
)
file
=
open
(
filename
,
'w'
)
...
@@ -728,10 +728,10 @@ if missing: raise "Missing Types"
...
@@ -728,10 +728,10 @@ if missing: raise "Missing Types"
classname
,
listname
=
self
.
destination
(
tp
,
name
,
arglist
,
modifiers
)
classname
,
listname
=
self
.
destination
(
tp
,
name
,
arglist
,
modifiers
)
else
:
else
:
classname
,
listname
=
self
.
destination
(
tp
,
name
,
arglist
)
classname
,
listname
=
self
.
destination
(
tp
,
name
,
arglist
)
if
not
classname
or
not
listname
:
if
not
classname
or
not
listname
:
self
.
htmlreport
(
"*** no output generated: self.destination() returned None"
,
klass
=
"blacklisted"
)
self
.
htmlreport
(
"*** no output generated: self.destination() returned None"
,
klass
=
"blacklisted"
)
return
return
if
not
self
.
specfile
:
if
not
self
.
specfile
:
self
.
htmlreport
(
"*** no output generated: no output file specified"
,
klass
=
"blacklisted"
)
self
.
htmlreport
(
"*** no output generated: no output file specified"
,
klass
=
"blacklisted"
)
return
return
self
.
specfile
.
write
(
"f =
%
s(
%
s,
%
r,
\n
"
%
(
classname
,
tp
,
name
))
self
.
specfile
.
write
(
"f =
%
s(
%
s,
%
r,
\n
"
%
(
classname
,
tp
,
name
))
...
@@ -800,7 +800,7 @@ if missing: raise "Missing Types"
...
@@ -800,7 +800,7 @@ if missing: raise "Missing Types"
if
not
line
or
line
[
-
1
]
!=
'
\n
'
:
if
not
line
or
line
[
-
1
]
!=
'
\n
'
:
oline
+=
'
\n
'
oline
+=
'
\n
'
self
.
htmlfile
.
write
(
oline
)
self
.
htmlfile
.
write
(
oline
)
class
Scanner_PreUH3
(
Scanner
):
class
Scanner_PreUH3
(
Scanner
):
"""Scanner for Universal Headers before release 3"""
"""Scanner for Universal Headers before release 3"""
def
initpatterns
(
self
):
def
initpatterns
(
self
):
...
...
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