indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers.
REVISION SUMMARY This is a Python 3'ism. Our intent is to only use this code from Python 2 and Python 2's behavior is essentially the same as re.ASCII AFAIK. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D5047 AFFECTED FILES hgdemandimport/py3tokenize.py CHANGE DETAILS diff --git a/hgdemandimport/py3tokenize.py b/hgdemandimport/py3tokenize.py --- a/hgdemandimport/py3tokenize.py +++ b/hgdemandimport/py3tokenize.py @@ -61,6 +61,7 @@ # * Removed module docstring. # * Adjusted for relative imports. # * absolute_import added. +# * Removed re.ASCII. from __future__ import absolute_import @@ -75,8 +76,8 @@ import re from .py3token import * -cookie_re = re.compile(r'^[ \t\f]*#.*?coding[:=][ \t]*([-\w.]+)', re.ASCII) -blank_re = re.compile(br'^[ \t\f]*(?:[#\r\n]|$)', re.ASCII) +cookie_re = re.compile(r'^[ \t\f]*#.*?coding[:=][ \t]*([-\w.]+)') +blank_re = re.compile(br'^[ \t\f]*(?:[#\r\n]|$)') from . import py3token __all__ = py3token.__all__ + ["tokenize", "detect_encoding", To: indygreg, #hg-reviewers Cc: mercurial-devel _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel