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
fc158e25
Kaydet (Commit)
fc158e25
authored
Kas 15, 2007
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch 1144 by David Binger, fix for parser module. With unittest.
(I also cleared out all trailing whitespace in the C file.)
üst
a1e9ec4e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
test_parser.py
Lib/test/test_parser.py
+1
-0
parsermodule.c
Modules/parsermodule.c
+1
-1
No files found.
Lib/test/test_parser.py
Dosyayı görüntüle @
fc158e25
...
@@ -136,6 +136,7 @@ class RoundtripLegalSyntaxTestCase(unittest.TestCase):
...
@@ -136,6 +136,7 @@ class RoundtripLegalSyntaxTestCase(unittest.TestCase):
def
test_class_defs
(
self
):
def
test_class_defs
(
self
):
self
.
check_suite
(
"class foo():pass"
)
self
.
check_suite
(
"class foo():pass"
)
self
.
check_suite
(
"class foo(object):pass"
)
def
test_import_from_statement
(
self
):
def
test_import_from_statement
(
self
):
self
.
check_suite
(
"from sys.path import *"
)
self
.
check_suite
(
"from sys.path import *"
)
...
...
Modules/parsermodule.c
Dosyayı görüntüle @
fc158e25
...
@@ -992,7 +992,7 @@ validate_class(node *tree)
...
@@ -992,7 +992,7 @@ validate_class(node *tree)
if
(
res
)
{
if
(
res
)
{
if
(
nch
==
7
)
{
if
(
nch
==
7
)
{
res
=
((
validate_lparen
(
CHILD
(
tree
,
2
))
&&
res
=
((
validate_lparen
(
CHILD
(
tree
,
2
))
&&
validate_
test
list
(
CHILD
(
tree
,
3
))
&&
validate_
arg
list
(
CHILD
(
tree
,
3
))
&&
validate_rparen
(
CHILD
(
tree
,
4
))));
validate_rparen
(
CHILD
(
tree
,
4
))));
}
}
else
if
(
nch
==
6
)
{
else
if
(
nch
==
6
)
{
...
...
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