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
a32e8dfe
Kaydet (Commit)
a32e8dfe
authored
Eki 01, 2012
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
merge with 3.3.
üst
86dc732f
44d0c215
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
13 deletions
+15
-13
pyspecific.py
Doc/tools/sphinxext/pyspecific.py
+7
-5
changelog.rst
Doc/whatsnew/changelog.rst
+3
-3
index.rst
Doc/whatsnew/index.rst
+4
-4
NEWS
Misc/NEWS
+1
-1
No files found.
Doc/tools/sphinxext/pyspecific.py
Dosyayı görüntüle @
a32e8dfe
...
...
@@ -149,10 +149,9 @@ class DeprecatedRemoved(Directive):
import
re
import
codecs
from
docutils.statemachine
import
string2lines
from
sphinx.util.nodes
import
nested_parse_with_titles
issue_re
=
re
.
compile
(
'Issue #([0-9]+)'
)
issue_re
=
re
.
compile
(
'([Ii])ssue #([0-9]+)'
)
whatsnew_re
=
re
.
compile
(
r"(?im)^what's new in (.*?)\??$"
)
class
MiscNews
(
Directive
):
has_content
=
False
...
...
@@ -166,8 +165,10 @@ class MiscNews(Directive):
source
=
self
.
state_machine
.
input_lines
.
source
(
self
.
lineno
-
self
.
state_machine
.
input_offset
-
1
)
source_dir
=
path
.
dirname
(
path
.
abspath
(
source
))
fpath
=
path
.
join
(
source_dir
,
fname
)
self
.
state
.
document
.
settings
.
record_dependencies
.
add
(
fpath
)
try
:
fp
=
codecs
.
open
(
path
.
join
(
source_dir
,
fname
)
,
encoding
=
'utf-8'
)
fp
=
codecs
.
open
(
fpath
,
encoding
=
'utf-8'
)
try
:
content
=
fp
.
read
()
finally
:
...
...
@@ -176,8 +177,9 @@ class MiscNews(Directive):
text
=
'The NEWS file is not available.'
node
=
nodes
.
strong
(
text
,
text
)
return
[
node
]
content
=
issue_re
.
sub
(
r'`
Issue #\1 <http://bugs.python.org/\1
>`__'
,
content
=
issue_re
.
sub
(
r'`
\1ssue #\2 <http://bugs.python.org/\2
>`__'
,
content
)
content
=
whatsnew_re
.
sub
(
r'\1'
,
content
)
# remove first 3 lines as they are the main heading
lines
=
content
.
splitlines
()[
3
:]
self
.
state_machine
.
insert_input
(
lines
,
fname
)
...
...
Doc/whatsnew/
news
.rst
→
Doc/whatsnew/
changelog
.rst
Dosyayı görüntüle @
a32e8dfe
+++++++++
++
Python News
+++++++++
++
+++++++++
Changelog
+++++++++
.. raw:: html
...
...
Doc/whatsnew/index.rst
Dosyayı görüntüle @
a32e8dfe
...
...
@@ -25,10 +25,10 @@ anyone wishing to stay up-to-date after a new release.
2.1.rst
2.0.rst
The "
Python News
" is a HTML version of the file :source:`Misc/NEWS` which
contains *all* nontrivial changes to Python.
The "
Changelog
" is a HTML version of the file :source:`Misc/NEWS` which
contains *all* nontrivial changes to Python
for the current version
.
.. toctree::
:maxdepth:
1
:maxdepth:
2
news
.rst
changelog
.rst
Misc/NEWS
Dosyayı görüntüle @
a32e8dfe
...
...
@@ -78,7 +78,7 @@ Library
- Issue #15509: webbrowser.UnixBrowser no longer passes empty arguments to
Popen when %action substitutions produce empty strings.
- Issue
s #12776,
#11839: call argparse type function (specified by add_argument)
- Issue
#12776, issue
#11839: call argparse type function (specified by add_argument)
only once. Before, the type function was called twice in the case where the
default was specified and the argument was given as well. This was especially
problematic for the FileType type, as a default file would always be opened,
...
...
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