Skip to content

Commit 72c8f5e

Browse files
committed
fix pep8 issue in user_scripts.py
Change-Id: Ie02d87705c47876f1011d9015750c7f9fe737c2d
1 parent 2996a80 commit 72c8f5e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

virtualenvwrapper/user_scripts.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,10 @@ def make_hook(filename, comment):
123123
log.info('creating %s', filename)
124124
f = open(filename, 'w')
125125
try:
126-
f.write("""#!%(shell)s
127-
# %(comment)s
128-
129-
""" % {'comment': comment,
130-
'shell': os.environ.get('SHELL', '/bin/sh'),
131-
})
126+
f.write("#!%(shell)s\n# %(comment)s\n\n" % {
127+
'comment': comment,
128+
'shell': os.environ.get('SHELL', '/bin/sh'),
129+
})
132130
finally:
133131
f.close()
134132
os.chmod(filename, PERMISSIONS)

0 commit comments

Comments
 (0)