diff options
Diffstat (limited to 'tests/wpt/web-platform-tests/tools/pywebsocket/mod_pywebsocket/memorizingfile.py')
-rw-r--r-- | tests/wpt/web-platform-tests/tools/pywebsocket/mod_pywebsocket/memorizingfile.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/wpt/web-platform-tests/tools/pywebsocket/mod_pywebsocket/memorizingfile.py b/tests/wpt/web-platform-tests/tools/pywebsocket/mod_pywebsocket/memorizingfile.py index a24e7ee3821..07bcbd5876c 100644 --- a/tests/wpt/web-platform-tests/tools/pywebsocket/mod_pywebsocket/memorizingfile.py +++ b/tests/wpt/web-platform-tests/tools/pywebsocket/mod_pywebsocket/memorizingfile.py @@ -36,9 +36,6 @@ A memorizing file wraps a file and memorizes lines read by readline. """ -import sys - - class MemorizingFile(object): """MemorizingFile wraps a file and memorizes lines read by readline. @@ -48,7 +45,7 @@ class MemorizingFile(object): the control reaches WebSocketRequestHandler. """ - def __init__(self, file_, max_memorized_lines=sys.maxint): + def __init__(self, file_, max_memorized_lines=0x7FFFFFFF): """Construct an instance. Args: |