summaryrefslogtreecommitdiffstats
path: root/python_modules/spice_parser.py
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2015-07-21 17:45:31 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2015-07-23 11:10:57 +0200
commit86b0568055443b7d729fb629f07e94409013401e (patch)
tree56302ce68651eedd02cd14d7c2b80462e7cb8479 /python_modules/spice_parser.py
parentf4c729aad399e87140a18518a3a6268afd956782 (diff)
downloadspice-common-86b0568055443b7d729fb629f07e94409013401e.tar.gz
spice-common-86b0568055443b7d729fb629f07e94409013401e.tar.xz
spice-common-86b0568055443b7d729fb629f07e94409013401e.zip
codegen: Import six module before first use
The module is used in the initial try/except so make sure it is already imported. Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'python_modules/spice_parser.py')
-rw-r--r--python_modules/spice_parser.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python_modules/spice_parser.py b/python_modules/spice_parser.py
index d60bb10..80b559b 100644
--- a/python_modules/spice_parser.py
+++ b/python_modules/spice_parser.py
@@ -1,3 +1,5 @@
+import six
+
try:
from pyparsing import Literal, CaselessLiteral, Word, OneOrMore, ZeroOrMore, \
Forward, delimitedList, Group, Optional, Combine, alphas, nums, restOfLine, cStyleComment, \
@@ -8,7 +10,6 @@ except ImportError:
from . import ptypes
-import six
import sys
cvtInt = lambda toks: int(toks[0])