You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed, you can call bytes.replace(old, new) or re.sub(regex, replacement, old), but you can't mix-and-match and call bytes.sub(). Whoops. Fixed now; thanks for the report.
From what I've gathered,
.sub()
appears to be a regex specific function. I believe the correct function for the 'bytes' type is.replace()
.e.g.
should instead be
The text was updated successfully, but these errors were encountered: