diff options
author | Shadab Zafar <dufferzafar0@gmail.com> | 2016-05-31 00:41:44 +0530 |
---|---|---|
committer | Shadab Zafar <dufferzafar0@gmail.com> | 2016-05-31 00:41:44 +0530 |
commit | 769e20f2a9749db802b544531a4ce71575d3a90a (patch) | |
tree | 5b85a8922c43887849a26bf0c70130d4728ad5e6 | |
parent | a7abf8b731658b4e7ed8705f7a94a6a62f08d51d (diff) | |
download | mitmproxy-769e20f2a9749db802b544531a4ce71575d3a90a.tar.gz mitmproxy-769e20f2a9749db802b544531a4ce71575d3a90a.tar.bz2 mitmproxy-769e20f2a9749db802b544531a4ce71575d3a90a.zip |
Py3: Use range from six.moves
-rw-r--r-- | pathod/language/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pathod/language/__init__.py b/pathod/language/__init__.py index 399baa3e..0841196e 100644 --- a/pathod/language/__init__.py +++ b/pathod/language/__init__.py @@ -3,6 +3,7 @@ from __future__ import absolute_import import itertools import time +from six.moves import range import pyparsing as pp from . import http, http2, websockets, writer, exceptions @@ -19,7 +20,7 @@ __all__ = [ def expand(msg): times = getattr(msg, "times", None) if times: - for j_ in xrange(int(times.value)): + for j_ in range(int(times.value)): yield msg.strike_token("times") else: yield msg |