From patchwork Mon Feb 26 13:13:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D2458: py3: use bytes instead of str in isinstance From: phabricator X-Patchwork-Id: 28402 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Mon, 26 Feb 2018 13:13:03 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHG745b0df08514: py3: use bytes instead of str in isinstance (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D2458?vs=6113&id=6126 REVISION DETAIL https://phab.mercurial-scm.org/D2458 AFFECTED FILES mercurial/archival.py CHANGE DETAILS To: pulkit, #hg-reviewers Cc: mercurial-devel diff --git a/mercurial/archival.py b/mercurial/archival.py --- a/mercurial/archival.py +++ b/mercurial/archival.py @@ -38,7 +38,7 @@ if prefix: prefix = util.normpath(prefix) else: - if not isinstance(dest, str): + if not isinstance(dest, bytes): raise ValueError('dest must be string if no prefix') prefix = os.path.basename(dest) lower = prefix.lower()