summaryrefslogtreecommitdiff
path: root/morphlib/cachedrepo.py
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-04-09 18:47:43 +0100
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-04-09 18:48:12 +0100
commit91bdcc431086d9fccbd271d21a4b6d4459e88014 (patch)
tree6a3d2816b75b4dfa3eeae226ad78d2a7017d5f18 /morphlib/cachedrepo.py
parenta53bf56bd034b082c816ba58977a2daa0d70c144 (diff)
downloadmorph-91bdcc431086d9fccbd271d21a4b6d4459e88014.tar.gz
Remove unnecessary unhexlify calls.
Diffstat (limited to 'morphlib/cachedrepo.py')
-rw-r--r--morphlib/cachedrepo.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/morphlib/cachedrepo.py b/morphlib/cachedrepo.py
index f7bec455..568839bb 100644
--- a/morphlib/cachedrepo.py
+++ b/morphlib/cachedrepo.py
@@ -14,7 +14,6 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-import binascii
import cliapp
import logging
import os
@@ -74,7 +73,6 @@ class CachedRepo(object):
refs = self._show_ref(ref).split('\n')
# split each ref line into an array, drop non-origin branches
refs = [x.split() for x in refs if 'origin' in x]
- binascii.unhexlify(refs[0][0])
return refs[0][0]
except morphlib.execute.CommandFailure:
pass
@@ -82,7 +80,6 @@ class CachedRepo(object):
if not self.is_valid_sha1(ref):
raise InvalidReferenceError(self, ref)
try:
- binascii.unhexlify(ref)
return self._rev_list(ref)
except morphlib.execute.CommandFailure:
raise InvalidReferenceError(self, ref)