diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-10-17 15:43:38 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-10-17 15:43:38 +1300 |
commit | d60ef617e33211cee3808c8b145d576f34ff437a (patch) | |
tree | bda1af29899f63203e459774dd148aaf09c062c5 /pathod/language/base.py | |
parent | 8360f70024330eeeb5c53d29e4a05194f872b511 (diff) | |
download | mitmproxy-d60ef617e33211cee3808c8b145d576f34ff437a.tar.gz mitmproxy-d60ef617e33211cee3808c8b145d576f34ff437a.tar.bz2 mitmproxy-d60ef617e33211cee3808c8b145d576f34ff437a.zip |
pathod: remove six
Diffstat (limited to 'pathod/language/base.py')
-rw-r--r-- | pathod/language/base.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pathod/language/base.py b/pathod/language/base.py index 3446f74c..bdcc6d2f 100644 --- a/pathod/language/base.py +++ b/pathod/language/base.py @@ -1,9 +1,9 @@ import operator import os import abc +import functools import pyparsing as pp -from six.moves import reduce from netlib import strutils from netlib import human @@ -171,14 +171,14 @@ class TokValueGenerate(Token): def expr(cls): e = pp.Literal("@").suppress() + v_integer - u = reduce( + u = functools.reduce( operator.or_, [pp.Literal(i) for i in human.SIZE_UNITS.keys()] ).leaveWhitespace() e = e + pp.Optional(u, default=None) s = pp.Literal(",").suppress() - s += reduce( + s += functools.reduce( operator.or_, [pp.Literal(i) for i in generators.DATATYPES.keys()] ) |