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
956c6c2d
Commit
956c6c2d
authored
Nov 09, 2012
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Plain Diff
#13301: merge with 3.2.
parents
a3ad8a0c
9bf379e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
Misc/NEWS
Misc/NEWS
+6
-0
Tools/i18n/msgfmt.py
Tools/i18n/msgfmt.py
+3
-3
No files found.
Misc/NEWS
View file @
956c6c2d
...
...
@@ -227,6 +227,12 @@ Build
-
Issue
#
15819
:
Make
sure
we
can
build
Python
out
-
of
-
tree
from
a
read
-
only
source
directory
.
(
Somewhat
related
to
issue
#
9860.
)
Tools
/
Demos
-----------
-
Issue
#
13301
:
use
ast
.
literal_eval
()
instead
of
eval
()
in
Tools
/
i18n
/
msgfmt
.
py
Patch
by
Serhiy
Storchaka
.
Documentation
-------------
...
...
Tools/i18n/msgfmt.py
View file @
956c6c2d
...
...
@@ -24,8 +24,9 @@ Options:
Display version information and exit.
"""
import
sys
import
os
import
sys
import
ast
import
getopt
import
struct
import
array
...
...
@@ -180,8 +181,7 @@ def make(filename, outfile):
l
=
l
.
strip
()
if
not
l
:
continue
# XXX: Does this always follow Python escape semantics?
l
=
eval
(
l
)
l
=
ast
.
literal_eval
(
l
)
if
section
==
ID
:
msgid
+=
l
.
encode
(
encoding
)
elif
section
==
STR
:
...
...
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