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
2866c6a2
Kaydet (Commit)
2866c6a2
authored
Ock 21, 2014
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
merge with 3.3
üst
7067b5d9
7ed509a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
10 deletions
+24
-10
pyspecific.py
Doc/tools/sphinxext/pyspecific.py
+23
-9
basic.css
Doc/tools/sphinxext/static/basic.css
+1
-1
No files found.
Doc/tools/sphinxext/pyspecific.py
Dosyayı görüntüle @
2866c6a2
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
Sphinx extension with Python doc-specific markup.
Sphinx extension with Python doc-specific markup.
:copyright: 2008-201
3
by Georg Brandl.
:copyright: 2008-201
4
by Georg Brandl.
:license: Python license.
:license: Python license.
"""
"""
...
@@ -145,8 +145,6 @@ class PyDecoratorMethod(PyDecoratorMixin, PyClassmember):
...
@@ -145,8 +145,6 @@ class PyDecoratorMethod(PyDecoratorMixin, PyClassmember):
from
sphinx.locale
import
versionlabels
from
sphinx.locale
import
versionlabels
from
sphinx.util.compat
import
Directive
from
sphinx.util.compat
import
Directive
versionlabels
[
'deprecated-removed'
]
=
\
'Deprecated since version
%
s, will be removed in version
%
s'
class
DeprecatedRemoved
(
Directive
):
class
DeprecatedRemoved
(
Directive
):
has_content
=
True
has_content
=
True
...
@@ -155,24 +153,40 @@ class DeprecatedRemoved(Directive):
...
@@ -155,24 +153,40 @@ class DeprecatedRemoved(Directive):
final_argument_whitespace
=
True
final_argument_whitespace
=
True
option_spec
=
{}
option_spec
=
{}
_label
=
'Deprecated since version
%
s, will be removed in version
%
s'
def
run
(
self
):
def
run
(
self
):
node
=
addnodes
.
versionmodified
()
node
=
addnodes
.
versionmodified
()
node
.
document
=
self
.
state
.
document
node
.
document
=
self
.
state
.
document
node
[
'type'
]
=
'deprecated-removed'
node
[
'type'
]
=
'deprecated-removed'
version
=
(
self
.
arguments
[
0
],
self
.
arguments
[
1
])
version
=
(
self
.
arguments
[
0
],
self
.
arguments
[
1
])
node
[
'version'
]
=
version
node
[
'version'
]
=
version
text
=
self
.
_label
%
version
if
len
(
self
.
arguments
)
==
3
:
if
len
(
self
.
arguments
)
==
3
:
inodes
,
messages
=
self
.
state
.
inline_text
(
self
.
arguments
[
2
],
inodes
,
messages
=
self
.
state
.
inline_text
(
self
.
arguments
[
2
],
self
.
lineno
+
1
)
self
.
lineno
+
1
)
node
.
extend
(
inodes
)
para
=
nodes
.
paragraph
(
self
.
arguments
[
2
],
''
,
*
inodes
)
if
self
.
content
:
node
.
append
(
para
)
self
.
state
.
nested_parse
(
self
.
content
,
self
.
content_offset
,
node
)
else
:
ret
=
[
node
]
+
messages
messages
=
[]
if
self
.
content
:
self
.
state
.
nested_parse
(
self
.
content
,
self
.
content_offset
,
node
)
if
len
(
node
):
if
isinstance
(
node
[
0
],
nodes
.
paragraph
)
and
node
[
0
]
.
rawsource
:
content
=
nodes
.
inline
(
node
[
0
]
.
rawsource
,
translatable
=
True
)
content
.
source
=
node
[
0
]
.
source
content
.
line
=
node
[
0
]
.
line
content
+=
node
[
0
]
.
children
node
[
0
]
.
replace_self
(
nodes
.
paragraph
(
''
,
''
,
content
))
node
[
0
]
.
insert
(
0
,
nodes
.
inline
(
''
,
'
%
s: '
%
text
,
classes
=
[
'versionmodified'
]))
else
:
else
:
ret
=
[
node
]
para
=
nodes
.
paragraph
(
''
,
''
,
nodes
.
inline
(
''
,
'
%
s.'
%
text
,
classes
=
[
'versionmodified'
]))
node
.
append
(
para
)
env
=
self
.
state
.
document
.
settings
.
env
env
=
self
.
state
.
document
.
settings
.
env
env
.
note_versionchange
(
'deprecated'
,
version
[
0
],
node
,
self
.
lineno
)
env
.
note_versionchange
(
'deprecated'
,
version
[
0
],
node
,
self
.
lineno
)
return
ret
return
[
node
]
+
messages
# Support for including Misc/NEWS
# Support for including Misc/NEWS
...
...
Doc/tools/sphinxext/static/basic.css
Dosyayı görüntüle @
2866c6a2
...
@@ -342,7 +342,7 @@ dl.glossary dt {
...
@@ -342,7 +342,7 @@ dl.glossary dt {
padding
:
7px
;
padding
:
7px
;
}
}
div
.deprecated
p
{
div
.deprecated
p
,
div
.deprecated-removed
p
{
margin-bottom
:
0
;
margin-bottom
:
0
;
}
}
...
...
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