<html dir="ltr"><head></head><body style="text-align:left; direction:ltr;"><div>Hi Alex,</div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><pre>I tried this one already, but bailed out, too. The other one looked</pre><pre>more promising IMHO. What worked in the end was this, though:</pre><pre><br></pre><a href="https://stackoverflow.com/questions/47838405/porting-a-sub-class-of-python2-file-class-to-python3"><pre>https://stackoverflow.com/questions/47838405/porting-a-sub-class-of-python2-file-class-to-python3</pre></a><pre><br></pre><a href="https://salsa.debian.org/debian/wicd/blob/python3/debian/patches/02-python3-fixups.patch#L285-296"><pre>https://salsa.debian.org/debian/wicd/blob/python3/debian/patches/02-python3-fixups.patch#L285-296</pre></a></blockquote><pre><br></pre><pre>awesome!</pre><pre><br></pre><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><pre>  File "/usr/lib/python3/dist-packages/wicd/logfile.py", line 52, in write</pre><pre>    data = data.decode('utf-8').encode('utf-8')</pre><pre>AttributeError: 'str' object has no attribute 'decode'</pre></blockquote><div><br></div><div>here you go... <a href="https://github.com/zeph/wicd/commit/15ca072eeda799cb84beb55934dea24720d431ce">https://github.com/zeph/wicd/commit/15ca072eeda799cb84beb55934dea24720d431ce</a></div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><pre>Need to go to bed now. If you want, I can provide the work so far as</pre><pre>pull request against your repo. (But unless you say you want that, I</pre><pre>won't do it.)</pre></blockquote><pre><br></pre><pre>yes, please send me a PR</pre><pre><br></pre><pre>good night</pre><pre><br></pre><pre>GMS</pre></body></html>