##// END OF EJS Templates
py3: make sure we write bytes to file...
Pulkit Goyal -
r37544:f5ffcac6 default
parent child Browse files
Show More
@@ -1126,7 +1126,7 b' create a git binary patch'
1126 $ cat > writebin.py <<EOF
1126 $ cat > writebin.py <<EOF
1127 > import sys
1127 > import sys
1128 > path = sys.argv[1]
1128 > path = sys.argv[1]
1129 > open(path, 'wb').write('BIN\x00ARY')
1129 > open(path, 'wb').write(b'BIN\x00ARY')
1130 > EOF
1130 > EOF
1131 $ $PYTHON writebin.py bucephalus
1131 $ $PYTHON writebin.py bucephalus
1132
1132
General Comments 0
You need to be logged in to leave comments. Login now