environment/lib/python2.7/site-packages/IPython/external/pexpect/_pexpect.py
def _prepare_regex_pattern(self, p):
        "Recompile bytes regexes as unicode regexes."
        if isinstance(p.pattern, bytes):
            p = re.compile(p.pattern.decode(self.encoding), p.flags)
        return p
def _prepare_regex_pattern(self, p):
        "Recompile bytes regexes as unicode regexes."
        if isinstance(p.pattern, bytes):
            p = re.compile(p.pattern.decode(self.encoding), p.flags)
        return p
Recompile bytes regexes as unicode regexes.