This bug is not a duplicate of that other one; I am still experiencing this even with devscripts 2.12.6ubuntu2 installed.
Steps to reproduce:
1. Go into any directory containing a debian/ subdirectory,
2. type 'wrap-and-sort'
3. Observe the following traceback:
$ wrap-and-sort
Traceback (most recent call last):
File "/usr/bin/wrap-and-sort", line 227, in <module>
main()
File "/usr/bin/wrap-and-sort", line 224, in main
wrap_and_sort(options)
File "/usr/bin/wrap-and-sort", line 146, in wrap_and_sort
control.save()
File "/usr/lib/python3/dist-packages/devscripts/control.py", line 70, in save
control_file.write(content.encode("utf-8"))
TypeError: must be str, not bytes
4. Notice that debian/control has become zero-length.
This bug is not a duplicate of that other one; I am still experiencing this even with devscripts 2.12.6ubuntu2 installed.
Steps to reproduce:
1. Go into any directory containing a debian/ subdirectory,
2. type 'wrap-and-sort'
3. Observe the following traceback:
$ wrap-and-sort wrap-and- sort", line 227, in <module> wrap-and- sort", line 224, in main and_sort( options) wrap-and- sort", line 146, in wrap_and_sort python3/ dist-packages/ devscripts/ control. py", line 70, in save file.write( content. encode( "utf-8" ))
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
wrap_
File "/usr/bin/
control.save()
File "/usr/lib/
control_
TypeError: must be str, not bytes
4. Notice that debian/control has become zero-length.