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",