Fix TypeError when using Python 3
The error shows up on :Gundo and looks like this:
Error detected while processing function gundo#GundoShow[1]..<SNR>116_GundoShow[4]..<SNR>116_GundoOpen[31]..<SNR>116_GundoRenderPreview:
line 2:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/mg/.vim/bundle/Gundo/autoload/gundo.py", line 474, in GundoRenderPreview
_output_preview_text(_generate_preview_diff(current, node_before, node_after))
File "/home/mg/.vim/bundle/Gundo/autoload/gundo.py", line 382, in _generate_preview_diff
before_time, after_time))
File "/usr/lib/python3.5/difflib.py", line 1177, in unified_diff
_check_types(a, b, fromfile, tofile, fromfiledate, tofiledate, lineterm)
File "/usr/lib/python3.5/difflib.py", line 1312, in _check_types
raise TypeError('all arguments must be str, not: %r' % (arg,))
TypeError: all arguments must be str, not: 46
author |
Marius Gedminas <marius@gedmin.as> |
date |
Thu, 24 Nov 2016 14:21:55 +0200 |
parents |
6577ac10e324 |
children |
9dd2d48255fc |
4101cbccf1d5fd0cfb81a3c6757c8f71657c1243 v0.8.0
4101cbccf1d5fd0cfb81a3c6757c8f71657c1243 semver
aa431c484c032ebc7b11e1e49c3b339d6d775384 v0.9.0
ede41dc6613eac08af5c98e69e123788b5a8e65a v1.0.0
e1365403fefc8b192252fa1dfda997f6c166ab60 v2.0.0
7fb1c286cca3c0c07974cc1b59002cfe2b7132f5 v2.1.0
dc582486455b428fc2ae50913b7844966ce64afc v2.1.1
d2406d0bce25549bb35c59767574386d3d241ace v2.2.0
c1cda256969c75523f9a8ef9629f08fca9ded216 v2.2.1
d6f98011d079bb1fd1bf6debb3f7cae55263b093 v2.2.2
bf31800e9784bd83c220f18fafde215abc72c4ef v2.3.0
25b74fe299c35aba1bc54c4af3febad1682b682b v2.4.0
39f23f08456425288c4a7e0ab94bec34c0b629ab v2.5.0
5eceebd06c39b670901d1b61c87aa07b7ac57f10 v2.6.0
3a3d8751bbe989566242e852dfabc7b335e649da v2.6.1