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
6f205ed3
Commit
6f205ed3
authored
Apr 20, 2011
by
Éric Araujo
Browse files
Options
Browse Files
Download
Plain Diff
Branch merge
parents
f97255fd
87f3a9aa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
Lib/ast.py
Lib/ast.py
+2
-2
Lib/sysconfig.py
Lib/sysconfig.py
+0
-1
Lib/trace.py
Lib/trace.py
+1
-1
No files found.
Lib/ast.py
View file @
6f205ed3
...
...
@@ -40,8 +40,8 @@ def literal_eval(node_or_string):
"""
Safely evaluate an expression node or a string containing a Python
expression. The string or node provided may only consist of the following
Python literal structures: strings,
numbers, tuples, lists, dicts, boolean
s,
and None.
Python literal structures: strings,
bytes, numbers, tuples, lists, dict
s,
sets, booleans,
and None.
"""
_safe_names
=
{
'None'
:
None
,
'True'
:
True
,
'False'
:
False
}
if
isinstance
(
node_or_string
,
str
):
...
...
Lib/sysconfig.py
View file @
6f205ed3
...
...
@@ -694,7 +694,6 @@ def get_platform():
m
=
re
.
search
(
r'<key>ProductUserVisibleVersion</key>\
s*
' +
r'
<
string
>
(.
*
?
)
</
string
>
', f.read())
f.close()
if m is not None:
macrelease = '
.
'.join(m.group(1).split('
.
')[:2])
# else: fall back to the default behaviour
...
...
Lib/trace.py
View file @
6f205ed3
...
...
@@ -688,7 +688,7 @@ def main(argv=None):
for
opt
,
val
in
opts
:
if
opt
==
"--help"
:
usage
(
sys
.
stdout
)
_
usage
(
sys
.
stdout
)
sys
.
exit
(
0
)
if
opt
==
"--version"
:
...
...
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