Use proper formatting syntax, fixes #2170
This commit is contained in:
committed by
Daniel Narvaez
parent
f43d5f8d24
commit
81b388c554
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user