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:
Frediano Ziglio 2015-07-21 17:45:31 +01:00 committed by Christophe Fergeau
parent 9625b45edb
commit 4a2a996674

View File

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