#2216: rencode changes str/unicode types
--------------------------+-------------------------------------------------
Reporter: gazpachoking | Owner:
Type: bug | Status: new
Priority: minor | Milestone: 1.3.x
Component: other | Version: 1.3.5
Keywords: |
--------------------------+-------------------------------------------------
No matter whether a bytestring or unicode object is put into
rencode.dumps, when it is loaded it is turned into a bytestring if there
were only ascii characters, and a unicode object if there were any non-
ascii characters. This causes the problem of having no idea what type of
object will be passed into rpc exported methods.
The easiest fix would be to have rencode always return unicode objects for
strings, not sure if it's worth it to have it produce the same type of
object that was passed in.
--
Ticket URL: <http://dev.deluge-torrent.org/ticket/2216>
Deluge <http://deluge-torrent.org/>
Deluge project
--
You received this message because you are subscribed to the Google Groups
"Deluge Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/deluge-dev?hl=en.