Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade wptrunner #13614

Merged
merged 4 commits into from Oct 18, 2016
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

Revert wptrunner 496353104e7ee0969e316c12caf3dc2988efb8e8

  • Loading branch information
jdm committed Oct 18, 2016
commit a9c2dda2997e18d691f0e6727cf65e52a1173f21
@@ -16,8 +16,6 @@

# TODO: keep comments in the tree

from __future__ import unicode_literals

import types
from cStringIO import StringIO

@@ -50,9 +48,8 @@ def __init__(self, filename, line, detail):
"False": False,
"Reset": object()}

def decode(s):
assert isinstance(s, unicode)
return s
def decode(byte_str):
return byte_str.decode("utf8")


def precedence(operator_node):
@@ -477,7 +474,7 @@ def decode_escape(self, length):
value += self.escape_value(c)
self.consume()

return unichr(value)
return unichr(value).encode("utf8")

def escape_value(self, c):
if '0' <= c <= '9':
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.