summaryrefslogtreecommitdiff
path: root/morphlib/sourcemanager.py
diff options
context:
space:
mode:
authorRob Taylor <rob.taylor@codethink.co.uk>2012-01-19 11:52:09 +0000
committerRob Taylor <rob.taylor@codethink.co.uk>2012-01-19 11:52:09 +0000
commit7254675a089e15a341b2ee6ee2f6cc365a048216 (patch)
treec255dad1e8b16beeea9e0459e6f1a5276f4f93ea /morphlib/sourcemanager.py
parent6cc10d4bd52ab6c02fbbbf1198acb3d12b83f0c5 (diff)
downloadmorph-7254675a089e15a341b2ee6ee2f6cc365a048216.tar.gz
Remove bad whitespace
Diffstat (limited to 'morphlib/sourcemanager.py')
-rw-r--r--morphlib/sourcemanager.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/morphlib/sourcemanager.py b/morphlib/sourcemanager.py
index 45a20d86..73b1c72b 100644
--- a/morphlib/sourcemanager.py
+++ b/morphlib/sourcemanager.py
@@ -35,7 +35,7 @@ urlparse.uses_fragment.extend(gitscheme)
_valid_chars = string.digits + string.letters + ':%_'
-def quote_url(url):
+def quote_url(url):
transl = lambda x: x if x in _valid_chars else '_'
return ''.join([transl(x) for x in url])
@@ -80,9 +80,9 @@ class SourceManager(object):
try:
urllib2.urlopen(req)
self._wget(lookup_url)
- bundle = self.source_cache_dir + '/' + bundle
+ bundle = self.source_cache_dir + '/' + bundle
except urllib2.URLError, e:
- self.msg("Unable to find bundle %s on %s" % (bundle, bundle_server))
+ self.msg("Unable to find bundle %s on %s" % (bundle, bundle_server))
bundle=None
try:
if bundle:
@@ -128,7 +128,7 @@ class SourceManager(object):
success, gitcache = self._get_git_cache(full_repo);
- if not success:
+ if not success:
raise SourceNotFound(repo,ref)
self.msg("creating treeish for %s ref %s" % (gitcache,ref))