Permalink
Browse files

Merge pull request #255 from alexandrul/develop

writefile: fix content comparison; thanks Eduard-Cristian Stefan
  • Loading branch information...
carljm committed Apr 16, 2012
2 parents 9edc0f2 + 78f5e95 commit fbee7cc9568d0b0a7ae690d16b08b2ae28fc5816
Showing with 1 addition and 1 deletion.
  1. +1 −1 virtualenv.py
View
@@ -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

0 comments on commit fbee7cc

Please sign in to comment.