summary refs log tree commit diff stats
path: root/examples
diff options
context:
space:
mode:
authorWojciech Siewierski <wojciech.siewierski@onet.pl>2018-07-31 01:54:15 +0200
committerWojciech Siewierski <wojciech.siewierski@onet.pl>2018-07-31 01:54:15 +0200
commit0e9e9f2e9743b32ad0721b93a7497b640b5bf177 (patch)
tree8ba5d4a99ee8ff60ec6df867415a280acace2578 /examples
parent53e48ed044b3f69cf21a43a4c9c4450b56972165 (diff)
downloadranger-0e9e9f2e9743b32ad0721b93a7497b640b5bf177.tar.gz
Fix #1210 for Python 2 (it was never broken for Python 3)
The new code from commit 08b08d70 returned a 'unicode' object instead
of 'str' but here
<https://github.com/ranger/ranger/blob/53e48ed044b3f69cf21a43a4c9c4450b56972165/ranger/gui/widgets/pager.py#L184>
we were explicitly expecting 'str'.  I wanted to use
`isinstance(source, basestring)` (or `(str, unicode)` instead of
`basestring`)) there but it won't work under Python 3.  For now I'm
re-encoding every Python 2 unicode string to a UTF-8 encoded 'str'
object even though 'unicode' should work just as well, because it
would be cumbersome under Python 3 otherwise.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions