changeset 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 fa2b1a46d92e
children 5917dc5d1e52
files mercurial/archival.py
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
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'))