# HG changeset patch # User Gregory Szorc # Date 1645464660 25200 # Node ID 895085109842841821b8eea661a1c0a78462b190 # Parent fa2b1a46d92ec759011270440133df0ead49c124 archival: remove check for Python 2 Differential Revision: https://phab.mercurial-scm.org/D12296 diff -r fa2b1a46d92e -r 895085109842 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'))