diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-01-27 10:12:18 +0100 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-01-27 10:36:28 +0100 |
commit | 8c375383148f100f03aed52827ac513f145078c2 (patch) | |
tree | dbae3b5d4d603e5e226477f1938119e2acfcfc1f /libmproxy/filt.py | |
parent | c2bb29f669cd80509f4efe205551a9cf5fc29770 (diff) | |
download | mitmproxy-8c375383148f100f03aed52827ac513f145078c2.tar.gz mitmproxy-8c375383148f100f03aed52827ac513f145078c2.tar.bz2 mitmproxy-8c375383148f100f03aed52827ac513f145078c2.zip |
code formatting: fix whitespace issues
Diffstat (limited to 'libmproxy/filt.py')
-rw-r--r-- | libmproxy/filt.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libmproxy/filt.py b/libmproxy/filt.py index acbf4ef9..aa62b717 100644 --- a/libmproxy/filt.py +++ b/libmproxy/filt.py @@ -38,6 +38,7 @@ import pyparsing as pp class _Token: + def dump(self, indent=0, fp=sys.stdout): print >> fp, "\t" * indent, self.__class__.__name__, if hasattr(self, "expr"): @@ -46,6 +47,7 @@ class _Token: class _Action(_Token): + @classmethod def make(klass, s, loc, toks): return klass(*toks[1:]) @@ -261,6 +263,7 @@ class FDst(_Rex): class _Int(_Action): + def __init__(self, num): self.num = int(num) @@ -275,6 +278,7 @@ class FCode(_Int): class FAnd(_Token): + def __init__(self, lst): self.lst = lst @@ -288,6 +292,7 @@ class FAnd(_Token): class FOr(_Token): + def __init__(self, lst): self.lst = lst @@ -301,6 +306,7 @@ class FOr(_Token): class FNot(_Token): + def __init__(self, itm): self.itm = itm[0] |