mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-protocol
synced 2025-12-26 22:55:30 +00:00
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>
This commit is contained in:
parent
9625b45edb
commit
4a2a996674
@ -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])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user