X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/51d914bc0007135058a61623a2d057d2a7626a28..4daa3475da9a4d4de4488ec742c77248641e8c1e:/lib/wlrepo/mercurial_backend/library.py diff --git a/lib/wlrepo/mercurial_backend/library.py b/lib/wlrepo/mercurial_backend/library.py index 042fda29..e28bd7ee 100644 --- a/lib/wlrepo/mercurial_backend/library.py +++ b/lib/wlrepo/mercurial_backend/library.py @@ -81,8 +81,7 @@ class MercurialLibrary(wlrepo.Library): if revision is None: raise ValueError("Revision can't be None.") - if not isinstance(revision, MercurialRevision): - revision = self._sanitize_string(unicode(revision)) + if not isinstance(revision, MercurialRevision): rev = self.get_revision(revision) else: rev = revision