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
68ad1d13
Commit
68ad1d13
authored
Jul 21, 2013
by
Terry Jan Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #18439: Make patchcheck work on Windows for ACKS, NEWS.
parent
2c636fd6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
Misc/NEWS
Misc/NEWS
+2
-0
Tools/scripts/patchcheck.py
Tools/scripts/patchcheck.py
+6
-5
No files found.
Misc/NEWS
View file @
68ad1d13
...
...
@@ -137,6 +137,8 @@ Documentation
-
Issue
#
17844
:
Refactor
a
documentation
of
Python
specific
encodings
.
Add
links
to
encoders
and
decoders
for
binary
-
to
-
binary
codecs
.
-
Issue
#
18439
:
Make
patchcheck
work
on
Windows
for
ACKS
,
NEWS
.
What
's New in Python 2.7.5?
===========================
...
...
Tools/scripts/patchcheck.py
View file @
68ad1d13
...
...
@@ -144,13 +144,13 @@ def docs_modified(file_paths):
@
status
(
"Misc/ACKS updated"
,
modal
=
True
)
def
credit_given
(
file_paths
):
"""Check if Misc/ACKS has been changed."""
return
'Misc/ACKS'
in
file_paths
return
os
.
path
.
join
(
'Misc'
,
'ACKS'
)
in
file_paths
@
status
(
"Misc/NEWS updated"
,
modal
=
True
)
def
reported_news
(
file_paths
):
"""Check if Misc/NEWS has been changed."""
return
'Misc/NEWS'
in
file_paths
return
os
.
path
.
join
(
'Misc'
,
'NEWS'
)
in
file_paths
def
main
():
...
...
@@ -158,7 +158,8 @@ def main():
python_files
=
[
fn
for
fn
in
file_paths
if
fn
.
endswith
(
'.py'
)]
c_files
=
[
fn
for
fn
in
file_paths
if
fn
.
endswith
((
'.c'
,
'.h'
))]
doc_files
=
[
fn
for
fn
in
file_paths
if
fn
.
startswith
(
'Doc'
)]
special_files
=
{
'Misc/ACKS'
,
'Misc/NEWS'
}
&
set
(
file_paths
)
misc_files
=
{
os
.
path
.
join
(
'Misc'
,
'ACKS'
),
os
.
path
.
join
(
'Misc'
,
'NEWS'
)}
\
&
set
(
file_paths
)
# PEP 8 whitespace rules enforcement.
normalize_whitespace
(
python_files
)
# C rules enforcement.
...
...
@@ -168,9 +169,9 @@ def main():
# Docs updated.
docs_modified
(
doc_files
)
# Misc/ACKS changed.
credit_given
(
special
_files
)
credit_given
(
misc
_files
)
# Misc/NEWS changed.
reported_news
(
special
_files
)
reported_news
(
misc
_files
)
# Test suite run and passed.
if
python_files
or
c_files
:
...
...
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