Source: ubuntu-dev-tools
Version: 0.174
tags: patch
Hello, please apply this fix from Adam Conrad <[email protected]> that fixes
the following failure during startup:
(to see this bug seems you need to uncomment and fill smtphost and smtpuser on
~/.reportbugrc file)
Traceback (most recent call last):
File "/usr/bin/submittodebian", line 265, in <module>
main()
File "/usr/bin/submittodebian", line 243, in main
fp.write(bug_body.encode('utf-8'))
TypeError: write() argument must be str, not bytes
--- submittodebian.orig 2019-09-10 14:14:20.000000000 +0200
+++ submittodebian.new 2019-10-24 10:25:18.713733436 +0200
@@ -239,7 +239,7 @@ def main():
tmpdir = mkdtemp()
body = os.path.join(tmpdir, 'bug_body')
- fp = open(body, 'w')
+ fp = open(body, 'wb')
fp.write(bug_body.encode('utf-8'))
fp.close()
thanks
Gianfranco