Comment 2 for bug 1099589

Revision history for this message
Robert Bruce Park (robru) wrote :

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.