s/dev\/null/os.devnull + add binary flag
For windows compatibility
This commit is contained in:
parent
2e8f5023eb
commit
3914d76287
5 changed files with 5 additions and 5 deletions
|
|
@ -503,7 +503,7 @@ class Cineoob(ReplApplication):
|
|||
print(buf)
|
||||
else:
|
||||
try:
|
||||
with open(dest, 'w') as f:
|
||||
with open(dest, 'wb') as f:
|
||||
f.write(buf)
|
||||
except IOError as e:
|
||||
print('Unable to write .torrent in "%s": %s' % (dest, e), file=self.stderr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue