diff options
author | Pedro Algarvio <pedro@algarvio.me> | 2012-01-22 18:03:08 +0100 |
---|---|---|
committer | Pedro Algarvio <pedro@algarvio.me> | 2012-01-22 18:03:08 +0100 |
commit | e6d6b36e73b3247b072a171c7e3cab67db9c62cb (patch) | |
tree | 08065eafb2b78d0310e329243f510548807e0fec /module/PyFile.py | |
parent | Merge branches. (diff) | |
parent | removed some fs_decode functions (diff) | |
download | pyload-e6d6b36e73b3247b072a171c7e3cab67db9c62cb.tar.xz |
Merge branches.
Diffstat (limited to 'module/PyFile.py')
-rw-r--r-- | module/PyFile.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/module/PyFile.py b/module/PyFile.py index d70f852d1..4f8b95124 100644 --- a/module/PyFile.py +++ b/module/PyFile.py @@ -100,6 +100,10 @@ class PyFile(object): return self._name def setName(self, name): + """ Only set unicode or utf8 strings as name """ + if type(name) == str: + name = name.decode("utf8") + self._name = name name = property(getName, setName) |