Skip to content

Commit

Permalink
No py34 - no pain
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksei Stepanov <penguinolog@gmail.com>

(cherry picked from commit e9f7666)
Signed-off-by: Aleksei Stepanov <penguinolog@gmail.com>
  • Loading branch information
penguinolog committed Mar 5, 2019
1 parent b5e9bee commit 55e5e73
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018 Alexey Stepanov aka penguinolog
# Copyright 2018 - 2019 Alexey Stepanov aka penguinolog

# Copyright 2016 Mirantis, Inc.

Expand Down Expand Up @@ -197,10 +197,6 @@ def get_simple_vars_from_src(src):
try:
if isinstance(node.value, ast_data):
value = ast.literal_eval(node.value)
elif isinstance(node.value, ast.Name) and isinstance( # NameConstant in python < 3.4
node.value.ctx, ast.Load # Read constant
):
value = ast.literal_eval(node.value)
else:
continue
except ValueError:
Expand Down

0 comments on commit 55e5e73

Please sign in to comment.