summaryrefslogtreecommitdiffstats
path: root/module/PyFile.py
diff options
context:
space:
mode:
authorGravatar Pedro Algarvio <pedro@algarvio.me> 2012-01-22 18:03:08 +0100
committerGravatar Pedro Algarvio <pedro@algarvio.me> 2012-01-22 18:03:08 +0100
commite6d6b36e73b3247b072a171c7e3cab67db9c62cb (patch)
tree08065eafb2b78d0310e329243f510548807e0fec /module/PyFile.py
parentMerge branches. (diff)
parentremoved some fs_decode functions (diff)
downloadpyload-e6d6b36e73b3247b072a171c7e3cab67db9c62cb.tar.xz
Merge branches.
Diffstat (limited to 'module/PyFile.py')
-rw-r--r--module/PyFile.py4
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)