Skip to content

Commit e40bc72

Browse files
committed
avoid specifying text mode when creating hook scripts (fixes #68)
1 parent 6d8d90c commit e40bc72

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
2010-12-26 Doug Hellmann <[email protected]>
22

3+
* virtualenvwrapper/user_scripts.py (make_hook): Do not specify
4+
text mode when creating the files so cygwin will not replace \n
5+
with \r\n.
6+
37
* setup.py: Change "requires" to "install_requires" so pip will
48
try to install virtualenv if it is not already there. Add trove
59
classifiers for the supported Python versions.

virtualenvwrapper/user_scripts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def make_hook(filename, comment):
108108
filename = os.path.expanduser(os.path.expandvars(filename))
109109
if not os.path.exists(filename):
110110
log.warning('creating %s', filename)
111-
f = open(filename, 'wt')
111+
f = open(filename, 'w')
112112
try:
113113
f.write("""#!%(shell)s
114114
# %(comment)s

0 commit comments

Comments
 (0)