Wrye-Mash
Wrye-Mash copied to clipboard
Fix filename encoding
Previously, line 2767 in mosh.py would throw an exception with the message
TypeError: decoding Unicode is not supported. The unicode function
is meant to encode raw data -- usually string objects -- and it refuses
to do any decoding. The problem was that fileName was a unicode
object -- possibly because self.dir was itself a unicode object, and
os.listdir returns unicode objects if its argument is one.