Sun, 24 Jan 2016 13:40:08 +0100
Fixed a bug in the Kivy lexer causing all strings to be unicodes on Python2, which makes Pygments raise an exception.
ChangeLog | file | annotate | diff | comparison | revisions | |
PluginProjectKivy.py | file | annotate | diff | comparison | revisions | |
PluginProjectKivy.zip | file | annotate | diff | comparison | revisions | |
ProjectKivy/KivyLexer.py | file | annotate | diff | comparison | revisions |
--- a/ChangeLog Fri Jan 01 12:18:59 2016 +0100 +++ b/ChangeLog Sun Jan 24 13:40:08 2016 +0100 @@ -1,5 +1,8 @@ ChangeLog --------- +Version 2.0.2: +- bug fix + Version 2.0.1: - added Russian translations provided by Alexander Barkoff
--- a/PluginProjectKivy.py Fri Jan 01 12:18:59 2016 +0100 +++ b/PluginProjectKivy.py Sun Jan 24 13:40:08 2016 +0100 @@ -26,7 +26,7 @@ author = "Detlev Offenbach <detlev@die-offenbachs.de>" autoactivate = True deactivateable = True -version = "2.0.1" +version = "2.0.2" className = "ProjectKivyPlugin" packageName = "ProjectKivy" shortDescription = "Project support for Kivy projects." @@ -168,7 +168,7 @@ if loc and loc != "C": locale_dir = os.path.join( os.path.dirname(__file__), "ProjectKivy", "i18n") - translation = "kivy_%s" % loc + translation = "kivy_{0}".format(loc) translator = QTranslator(None) loaded = translator.load(translation, locale_dir) if loaded: @@ -223,3 +223,6 @@ return lexer else: return None + +# +# eflag: noqa = M801, M811
--- a/ProjectKivy/KivyLexer.py Fri Jan 01 12:18:59 2016 +0100 +++ b/ProjectKivy/KivyLexer.py Sun Jan 24 13:40:08 2016 +0100 @@ -12,8 +12,6 @@ # Copyright of the original by the Kivy Team. # -from __future__ import unicode_literals - from pygments.lexer import RegexLexer, bygroups, using from pygments.lexers.agile import PythonLexer from pygments.token import Comment, Text, Name, Punctuation, Operator @@ -52,3 +50,6 @@ (r'\s+', Text), (r'[A-Z][A-Za-z0-9]*', Name.Class), (r'\]', Punctuation, '#pop')]} + +# +# eflag: noqa = M702