Show More
@@ -125,7 +125,7 b' Create an extension to test bundle2 API' | |||
|
125 | 125 | > if path is None: |
|
126 | 126 | > file = sys.stdout |
|
127 | 127 | > else: |
|
128 | > file = open(path, 'w') | |
|
128 | > file = open(path, 'wb') | |
|
129 | 129 | > |
|
130 | 130 | > for chunk in bundler.getchunks(): |
|
131 | 131 | > file.write(chunk) |
@@ -157,7 +157,7 b' Create an extension to test bundle2 API' | |||
|
157 | 157 | > for rec in op.records['changegroup']: |
|
158 | 158 | > ui.write('addchangegroup return: %i\n' % rec['return']) |
|
159 | 159 | > if op.reply is not None and replypath is not None: |
|
160 | > file = open(replypath, 'w') | |
|
160 | > file = open(replypath, 'wb') | |
|
161 | 161 | > for chunk in op.reply.getchunks(): |
|
162 | 162 | > file.write(chunk) |
|
163 | 163 | > |
General Comments 0
You need to be logged in to leave comments.
Login now