Commit 4fd74e74 authored by Michal Čihař's avatar Michal Čihař

Better variable name

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent fa8c2f28
...@@ -35,6 +35,7 @@ class RepositoryException(Exception): ...@@ -35,6 +35,7 @@ class RepositoryException(Exception):
Error while working with a repository. Error while working with a repository.
""" """
def __init__(self, retcode, stderr, stdout): def __init__(self, retcode, stderr, stdout):
super(RepositoryException, self).__init__(sterr or stdout)
self.retcode = retcode self.retcode = retcode
self.stderr = stderr.strip() self.stderr = stderr.strip()
self.stdout = stdout.strip() self.stdout = stdout.strip()
...@@ -242,8 +243,8 @@ class Repository(object): ...@@ -242,8 +243,8 @@ class Repository(object):
self.resolve_symlinks(path) self.resolve_symlinks(path)
) )
with open(real_path, 'rb') as f: with open(real_path, 'rb') as handle:
return hashlib.sha1(f.read()).hexdigest() return hashlib.sha1(handle.read()).hexdigest()
def configure_remote(self, pull_url, push_url, branch): def configure_remote(self, pull_url, push_url, branch):
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment