py3: unbyteify arguments to warnings.filterwarnings() stable
authorManuel Jacob <me@manueljacob.de>
Mon, 15 Jun 2020 03:09:55 +0200
branchstable
changeset 44809 4888adfb6235
parent 44808 170f8a43b5b8
child 44810 d96d8bbbedb1
py3: unbyteify arguments to warnings.filterwarnings() This fixes a crash when trying to import the convert extension on Python 3.
hgext/convert/subversion.py
--- a/hgext/convert/subversion.py	Sat Jun 06 19:15:11 2020 +0800
+++ b/hgext/convert/subversion.py	Mon Jun 15 03:09:55 2020 +0200
@@ -55,7 +55,7 @@
     import warnings
 
     warnings.filterwarnings(
-        b'ignore', module=b'svn.core', category=DeprecationWarning
+        'ignore', module='svn.core', category=DeprecationWarning
     )
     svn.core.SubversionException  # trigger import to catch error