Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8b82ce24
Commit
8b82ce24
authored
May 01, 2012
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Plain Diff
Merge sphinx changes
parents
4f161008
f8169cda
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
9 deletions
+4
-9
Doc/tools/sphinxext/patchlevel.py
Doc/tools/sphinxext/patchlevel.py
+2
-4
Lib/idlelib/EditorWindow.py
Lib/idlelib/EditorWindow.py
+1
-2
Tools/msi/msi.py
Tools/msi/msi.py
+1
-3
No files found.
Doc/tools/sphinxext/patchlevel.py
View file @
8b82ce24
...
...
@@ -34,8 +34,7 @@ def get_header_version_info(srcdir):
release
=
version
=
'%s.%s'
%
(
d
[
'PY_MAJOR_VERSION'
],
d
[
'PY_MINOR_VERSION'
])
micro
=
int
(
d
[
'PY_MICRO_VERSION'
])
if
micro
!=
0
:
release
+=
'.'
+
str
(
micro
)
release
+=
'.'
+
str
(
micro
)
level
=
d
[
'PY_RELEASE_LEVEL'
]
suffixes
=
{
...
...
@@ -51,8 +50,7 @@ def get_header_version_info(srcdir):
def
get_sys_version_info
():
major
,
minor
,
micro
,
level
,
serial
=
sys
.
version_info
release
=
version
=
'%s.%s'
%
(
major
,
minor
)
if
micro
:
release
+=
'.%s'
%
micro
release
+=
'.%s'
%
micro
if
level
!=
'final'
:
release
+=
'%s%s'
%
(
level
[
0
],
serial
)
return
version
,
release
...
...
Lib/idlelib/EditorWindow.py
View file @
8b82ce24
...
...
@@ -28,8 +28,7 @@ def _sphinx_version():
"Format sys.version_info to produce the Sphinx version string used to install the chm docs"
major
,
minor
,
micro
,
level
,
serial
=
sys
.
version_info
release
=
'%s%s'
%
(
major
,
minor
)
if
micro
:
release
+=
'%s'
%
(
micro
,)
release
+=
'%s'
%
(
micro
,)
if
level
==
'candidate'
:
release
+=
'rc%s'
%
(
serial
,)
elif
level
!=
'final'
:
...
...
Tools/msi/msi.py
View file @
8b82ce24
...
...
@@ -122,9 +122,7 @@ pythondll_uuid = {
}
[
major
+
minor
]
# Compute the name that Sphinx gives to the docfile
docfile
=
""
if
int
(
micro
):
docfile
=
micro
docfile
=
micro
if
level
<
0xf
:
if
level
==
0xC
:
docfile
+=
"rc%s"
%
(
serial
,)
...
...
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