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
a938c747
Commit
a938c747
authored
Apr 16, 2012
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid compiler warning due to stray \x00
parent
a4932353
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Python/freeze_importlib.py
Python/freeze_importlib.py
+2
-2
Python/importlib.h
Python/importlib.h
+1
-1
No files found.
Python/freeze_importlib.py
View file @
a938c747
...
...
@@ -22,9 +22,9 @@ def main(input_path, output_path):
line
.
append
(
'%d,'
%
c
)
lines
.
append
(
''
.
join
(
line
))
lines
.
append
(
'};
\
n
'
)
with
open
(
output_path
,
'w'
)
as
output_file
:
with
open
(
output_path
,
'w'
,
encoding
=
'utf-8'
)
as
output_file
:
output_file
.
write
(
'
\
n
'
.
join
(
lines
))
output_file
.
write
(
'
\
u0000
'
)
output_file
.
write
(
'
/* Mercurial binary marker:
\
x00
*/
'
)
if
__name__
==
'__main__'
:
...
...
Python/importlib.h
View file @
a938c747
No preview for this file type
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