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
e998aad7
Commit
e998aad7
authored
May 27, 2015
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Issue #24288: Generated opcode.h no longer contains trailing spaces and tabs.
parents
8651a504
3028c955
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
117 additions
and
117 deletions
+117
-117
Include/opcode.h
Include/opcode.h
+115
-115
Tools/scripts/generate_opcode_h.py
Tools/scripts/generate_opcode_h.py
+2
-2
No files found.
Include/opcode.h
View file @
e998aad7
Tools/scripts/generate_opcode_h.py
View file @
e998aad7
...
@@ -43,9 +43,9 @@ def main(opcode_py, outfile='Include/opcode.h'):
...
@@ -43,9 +43,9 @@ def main(opcode_py, outfile='Include/opcode.h'):
fobj
.
write
(
header
)
fobj
.
write
(
header
)
for
name
in
opcode
[
'opname'
]:
for
name
in
opcode
[
'opname'
]:
if
name
in
opmap
:
if
name
in
opmap
:
fobj
.
write
(
"#define %-2
0s
\
t
%-
3s
\
n
"
%
(
name
,
opmap
[
name
]))
fobj
.
write
(
"#define %-2
3s %
3s
\
n
"
%
(
name
,
opmap
[
name
]))
if
name
==
'POP_EXCEPT'
:
# Special entry for HAVE_ARGUMENT
if
name
==
'POP_EXCEPT'
:
# Special entry for HAVE_ARGUMENT
fobj
.
write
(
"#define %-2
0s
\
t
%-
3d
\
n
"
%
fobj
.
write
(
"#define %-2
3s %
3d
\
n
"
%
(
'HAVE_ARGUMENT'
,
opcode
[
'HAVE_ARGUMENT'
]))
(
'HAVE_ARGUMENT'
,
opcode
[
'HAVE_ARGUMENT'
]))
fobj
.
write
(
footer
)
fobj
.
write
(
footer
)
...
...
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