Branch merge

This commit is contained in:
Éric Araujo 2011-04-20 19:23:26 +02:00
commit 6f205ed37e
3 changed files with 3 additions and 4 deletions

View File

@ -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, booleans,
and None.
Python literal structures: strings, bytes, numbers, tuples, lists, dicts,
sets, booleans, and None.
"""
_safe_names = {'None': None, 'True': True, 'False': False}
if isinstance(node_or_string, str):

View File

@ -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

View File

@ -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":