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
b902f4e4
Kaydet (Commit)
b902f4e4
authored
Nis 03, 2006
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use absolute imports
üst
480725d4
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
10 deletions
+11
-10
__init__.py
Lib/compiler/__init__.py
+3
-3
ast.py
Lib/compiler/ast.py
+1
-1
transformer.py
Lib/compiler/transformer.py
+2
-2
test_dict.py
Lib/test/test_dict.py
+1
-1
test_import.py
Lib/test/test_import.py
+1
-1
test_sets.py
Lib/test/test_sets.py
+2
-1
test_urllib2.py
Lib/test/test_urllib2.py
+1
-1
No files found.
Lib/compiler/__init__.py
Dosyayı görüntüle @
b902f4e4
...
@@ -21,6 +21,6 @@ compileFile(filename)
...
@@ -21,6 +21,6 @@ compileFile(filename)
Generates a .pyc file by compiling filename.
Generates a .pyc file by compiling filename.
"""
"""
from
transformer
import
parse
,
parseFile
from
compiler.
transformer
import
parse
,
parseFile
from
visitor
import
walk
from
compiler.
visitor
import
walk
from
pycodegen
import
compile
,
compileFile
from
compiler.
pycodegen
import
compile
,
compileFile
Lib/compiler/ast.py
Dosyayı görüntüle @
b902f4e4
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
This file is automatically generated by Tools/compiler/astgen.py
This file is automatically generated by Tools/compiler/astgen.py
"""
"""
from
consts
import
CO_VARARGS
,
CO_VARKEYWORDS
from
co
mpiler.co
nsts
import
CO_VARARGS
,
CO_VARKEYWORDS
def
flatten
(
seq
):
def
flatten
(
seq
):
l
=
[]
l
=
[]
...
...
Lib/compiler/transformer.py
Dosyayı görüntüle @
b902f4e4
...
@@ -34,8 +34,8 @@ import sys
...
@@ -34,8 +34,8 @@ import sys
class
WalkerError
(
StandardError
):
class
WalkerError
(
StandardError
):
pass
pass
from
consts
import
CO_VARARGS
,
CO_VARKEYWORDS
from
co
mpiler.co
nsts
import
CO_VARARGS
,
CO_VARKEYWORDS
from
consts
import
OP_ASSIGN
,
OP_DELETE
,
OP_APPLY
from
co
mpiler.co
nsts
import
OP_ASSIGN
,
OP_DELETE
,
OP_APPLY
def
parseFile
(
path
):
def
parseFile
(
path
):
f
=
open
(
path
,
"U"
)
f
=
open
(
path
,
"U"
)
...
...
Lib/test/test_dict.py
Dosyayı görüntüle @
b902f4e4
...
@@ -445,7 +445,7 @@ class DictTest(unittest.TestCase):
...
@@ -445,7 +445,7 @@ class DictTest(unittest.TestCase):
self
.
fail_
(
"g[42] didn't raise KeyError"
)
self
.
fail_
(
"g[42] didn't raise KeyError"
)
import
mapping_tests
from
test
import
mapping_tests
class
GeneralMappingTests
(
mapping_tests
.
BasicTestMappingProtocol
):
class
GeneralMappingTests
(
mapping_tests
.
BasicTestMappingProtocol
):
type2test
=
dict
type2test
=
dict
...
...
Lib/test/test_import.py
Dosyayı görüntüle @
b902f4e4
...
@@ -15,7 +15,7 @@ else:
...
@@ -15,7 +15,7 @@ else:
raise
TestFailed
(
"import of RAnDoM should have failed (case mismatch)"
)
raise
TestFailed
(
"import of RAnDoM should have failed (case mismatch)"
)
# Another brief digression to test the accuracy of manifest float constants.
# Another brief digression to test the accuracy of manifest float constants.
import
double_const
# don't blink -- that *was* the test
from
test
import
double_const
# don't blink -- that *was* the test
def
remove_files
(
name
):
def
remove_files
(
name
):
for
f
in
(
name
+
os
.
extsep
+
"py"
,
for
f
in
(
name
+
os
.
extsep
+
"py"
,
...
...
Lib/test/test_sets.py
Dosyayı görüntüle @
b902f4e4
...
@@ -819,7 +819,8 @@ Set(['Jack', 'Jane', 'Janice', 'John', 'Marvin', 'Sam', 'Zack'])
...
@@ -819,7 +819,8 @@ Set(['Jack', 'Jane', 'Janice', 'John', 'Marvin', 'Sam', 'Zack'])
__test__
=
{
'libreftest'
:
libreftest
}
__test__
=
{
'libreftest'
:
libreftest
}
def
test_main
(
verbose
=
None
):
def
test_main
(
verbose
=
None
):
import
test_sets
,
doctest
import
doctest
from
test
import
test_sets
test_support
.
run_unittest
(
test_support
.
run_unittest
(
TestSetOfSets
,
TestSetOfSets
,
TestExceptionPropagation
,
TestExceptionPropagation
,
...
...
Lib/test/test_urllib2.py
Dosyayı görüntüle @
b902f4e4
...
@@ -632,7 +632,7 @@ class HandlerTests(unittest.TestCase):
...
@@ -632,7 +632,7 @@ class HandlerTests(unittest.TestCase):
from
urllib2
import
build_opener
,
HTTPHandler
,
HTTPError
,
\
from
urllib2
import
build_opener
,
HTTPHandler
,
HTTPError
,
\
HTTPCookieProcessor
HTTPCookieProcessor
from
test_cookielib
import
interact_netscape
from
test
.test
_cookielib
import
interact_netscape
cj
=
CookieJar
()
cj
=
CookieJar
()
interact_netscape
(
cj
,
"http://www.example.com/"
,
"spam=eggs"
)
interact_netscape
(
cj
,
"http://www.example.com/"
,
"spam=eggs"
)
...
...
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