diff options
Diffstat (limited to 'systrace/catapult/common/py_vulcanize/py_vulcanize/strip_js_comments.py')
-rw-r--r-- | systrace/catapult/common/py_vulcanize/py_vulcanize/strip_js_comments.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/systrace/catapult/common/py_vulcanize/py_vulcanize/strip_js_comments.py b/systrace/catapult/common/py_vulcanize/py_vulcanize/strip_js_comments.py index 73c3a88..d63c667 100644 --- a/systrace/catapult/common/py_vulcanize/py_vulcanize/strip_js_comments.py +++ b/systrace/catapult/common/py_vulcanize/py_vulcanize/strip_js_comments.py @@ -51,14 +51,14 @@ def StripJSComments(text): token_stream = _TokenizeJS(text).__iter__() while True: try: - t = next(token_stream) + t = token_stream.next() except StopIteration: break if t == '//': while True: try: - t2 = next(token_stream) + t2 = token_stream.next() if t2 == '\n': break except StopIteration: @@ -67,7 +67,7 @@ def StripJSComments(text): nesting = 1 while True: try: - t2 = next(token_stream) + t2 = token_stream.next() if t2 == '/*': nesting += 1 elif t2 == '*/': |