[syntax_highlight] Simplify plugin code

Fix deprecations warnings in config
This commit is contained in:
Daniel Brötzmann
2020-04-16 18:13:30 +02:00
parent 68d78970fb
commit 425b1bd2cd
9 changed files with 429 additions and 583 deletions

View File

@@ -67,7 +67,7 @@ class GTKFormatter(Formatter):
def format(self, tokensource, outfile):
if not isinstance(outfile, Gtk.TextBuffer) or outfile is None:
log.warn("Did not get a buffer to format...")
log.warning('Did not get a buffer to format...')
return
buf = outfile