archival: remove check for Python 2
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 21 Feb 2022 10:31:00 -0700
changeset 48893 895085109842
parent 48892 fa2b1a46d92e
child 48894 5917dc5d1e52
archival: remove check for Python 2 Differential Revision: https://phab.mercurial-scm.org/D12296
mercurial/archival.py
--- a/mercurial/archival.py	Thu Mar 03 07:58:29 2022 -0800
+++ b/mercurial/archival.py	Mon Feb 21 10:31:00 2022 -0700
@@ -305,9 +305,6 @@
     subrepos tells whether to include subrepos.
     """
 
-    if kind == b'txz' and not pycompat.ispy3:
-        raise error.Abort(_(b'xz compression is only available in Python 3'))
-
     if kind == b'files':
         if prefix:
             raise error.Abort(_(b'cannot give prefix when archiving to files'))