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
154324a8
Kaydet (Commit)
154324a8
authored
Eyl 30, 2006
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bug #1560617: in pyclbr, return full module name not only for classes,
but also for functions.
üst
05b3c450
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
pyclbr.py
Lib/pyclbr.py
+1
-1
test_pyclbr.py
Lib/test/test_pyclbr.py
+3
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/pyclbr.py
Dosyayı görüntüle @
154324a8
...
@@ -172,7 +172,7 @@ def _readmodule(module, path, inpackage=None):
...
@@ -172,7 +172,7 @@ def _readmodule(module, path, inpackage=None):
# else it's a nested def
# else it's a nested def
else
:
else
:
# it's a function
# it's a function
dict
[
meth_name
]
=
Function
(
module
,
meth_name
,
file
,
lineno
)
dict
[
meth_name
]
=
Function
(
full
module
,
meth_name
,
file
,
lineno
)
stack
.
append
((
None
,
thisindent
))
# Marker for nested fns
stack
.
append
((
None
,
thisindent
))
# Marker for nested fns
elif
token
==
'class'
:
elif
token
==
'class'
:
lineno
,
thisindent
=
start
lineno
,
thisindent
=
start
...
...
Lib/test/test_pyclbr.py
Dosyayı görüntüle @
154324a8
...
@@ -93,6 +93,9 @@ class PyclbrTest(TestCase):
...
@@ -93,6 +93,9 @@ class PyclbrTest(TestCase):
py_item
=
getattr
(
module
,
name
)
py_item
=
getattr
(
module
,
name
)
if
isinstance
(
value
,
pyclbr
.
Function
):
if
isinstance
(
value
,
pyclbr
.
Function
):
self
.
assert_
(
isinstance
(
py_item
,
(
FunctionType
,
BuiltinFunctionType
)))
self
.
assert_
(
isinstance
(
py_item
,
(
FunctionType
,
BuiltinFunctionType
)))
if
py_item
.
__module__
!=
moduleName
:
continue
# skip functions that came from somewhere else
self
.
assertEquals
(
py_item
.
__module__
,
value
.
module
)
else
:
else
:
self
.
failUnless
(
isinstance
(
py_item
,
(
ClassType
,
type
)))
self
.
failUnless
(
isinstance
(
py_item
,
(
ClassType
,
type
)))
if
py_item
.
__module__
!=
moduleName
:
if
py_item
.
__module__
!=
moduleName
:
...
...
Misc/NEWS
Dosyayı görüntüle @
154324a8
...
@@ -63,6 +63,9 @@ Core and builtins
...
@@ -63,6 +63,9 @@ Core and builtins
Library
Library
-------
-------
-
Bug
#
1560617
:
in
pyclbr
,
return
full
module
name
not
only
for
classes
,
but
also
for
functions
.
-
Bug
#
1457823
:
cgi
.(
Sv
)
FormContentDict
's constructor now takes
-
Bug
#
1457823
:
cgi
.(
Sv
)
FormContentDict
's constructor now takes
keep_blank_values and strict_parsing keyword arguments.
keep_blank_values and strict_parsing keyword arguments.
...
...
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