diff mercurial/archival.py @ 48893:895085109842

archival: remove check for Python 2 Differential Revision: https://phab.mercurial-scm.org/D12296
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 21 Feb 2022 10:31:00 -0700
parents 640e1cb6a7de
children f254fc73d956
line wrap: on
line diff
--- 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'))