Skip to content

Commit

Permalink
Merge pull request #255 from alexandrul/develop
Browse files Browse the repository at this point in the history
writefile: fix content comparison; thanks Eduard-Cristian Stefan
  • Loading branch information
Carl Meyer committed Apr 16, 2012
2 parents 9edc0f2 + 78f5e95 commit fbee7cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtualenv.py
Expand Up @@ -443,7 +443,7 @@ def writefile(dest, content, overwrite=True):
f = open(dest, 'rb')
c = f.read()
f.close()
if c != content:
if c != content.encode("utf-8"):
if not overwrite:
logger.notify('File %s exists with different content; not overwriting', dest)
return
Expand Down

0 comments on commit fbee7cc

Please sign in to comment.