submittodebian: TypeError: write() argument must be str, not bytes

Bug #1863119 reported by Jamie Strandboge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-dev-tools (Ubuntu)
Fix Released
Undecided
Unassigned
Focal
Fix Released
Undecided
Unassigned

Bug Description

On focal, I tried to use submittodebian and encountered this:

$ submittodebian
Traceback (most recent call last):
  File "/usr/bin/submittodebian", line 264, in <module>
    main()
  File "/usr/bin/submittodebian", line 243, in main
    f.write(bug_body.encode('utf-8'))
TypeError: write() argument must be str, not bytes
[1]

$ apt-cache policy ubuntu-dev-tools
ubuntu-dev-tools:
  Installed: 0.175
  Candidate: 0.175
  Version table:
 *** 0.175 500
        500 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu focal/universe i386 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-dev-tools - 0.175ubuntu1

---------------
ubuntu-dev-tools (0.175ubuntu1) focal; urgency=medium

  [ Dan Streetman ]
  * lpapicache: remove new requirement to pass arch to getBinaries()
    (LP: #1862286)
  * ubuntu-upload-permission: sort packagesets by name to fix py3
    (LP: #1862372)
  * submittodebian: open with 'b' before writing utf-8 encoded bytes
    (LP: #1863119)

  [ Colin Watson ]
  * Use +sourcefiles URLs where possible (LP: #1860456)

 -- Dan Streetman <email address hidden> Thu, 20 Feb 2020 17:20:23 -0500

Changed in ubuntu-dev-tools (Ubuntu Focal):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.