Use proper formatting syntax, fixes #2170

This commit is contained in:
akskumarnot
2013-12-25 14:44:10 +05:30
committed by Daniel Narvaez
parent f43d5f8d24
commit 81b388c554
10 changed files with 81 additions and 80 deletions
+2 -2
View File
@@ -348,8 +348,8 @@ class ActivityBundle(Bundle):
return
if not os.path.islink(dst) and os.path.exists(dst):
raise RuntimeError('Do not remove %s if it was not '
'installed by sugar', dst)
logging.debug('Link resource %s to %s', src, dst)
'installed by sugar' % dst)
logging.debug('Link resource %s to %s' % (src, dst))
if os.path.lexists(dst):
logging.debug('Relink %s', dst)
os.unlink(dst)
+1 -1
View File
@@ -124,7 +124,7 @@ class Bundle(object):
data = self._zip_file.read(path)
f = StringIO.StringIO(data)
except KeyError:
logging.debug('%s not found.', filename)
logging.debug('%s not found.' % filename)
return f