Merge pull request #664 from inclement/fix_typo

Fixed a typo pointed out by AndreMiras
This commit is contained in:
Alexander Taylor 2018-05-28 15:24:58 +01:00 committed by GitHub
commit a8f764f786
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -611,7 +611,8 @@ class Buildozer(object):
target = join(cwd, target)
self.debug('Rename {0} to {1}'.format(source, target))
if not os.path.isdir(os.path.dirname(target)):
self.error('Rename {0} to {1} fails becaues {2} is not a directory'.format(source, target, os.path.directory(target)))
self.error(('Rename {0} to {1} fails because {2} is not a '
'directory').format(source, target, target))
rename(source, target)
def file_copy(self, source, target, cwd=None):