[pygobject] [gtk-demo] source colorizer: Python3 does not have the BACKQUOTE token, so simply remove it



commit 971d063f7a36e13ef6621db7002b00af52f6292a
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date:   Mon Aug 22 14:52:28 2011 +0200

    [gtk-demo] source colorizer: Python3 does not have the BACKQUOTE token, so simply remove it

 demos/gtk-demo/gtk-demo.py |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/demos/gtk-demo/gtk-demo.py b/demos/gtk-demo/gtk-demo.py
index 218bb63..48e9699 100755
--- a/demos/gtk-demo/gtk-demo.py
+++ b/demos/gtk-demo/gtk-demo.py
@@ -346,10 +346,7 @@ class GtkDemoWindow(Gtk.Window):
             srow, scol = x[2]
             erow, ecol = x[3]
 
-            if tok_type == tokenize.BACKQUOTE:
-                prepare_iters()
-                self.source_buffer.apply_tag_by_name('bold', start_iter, end_iter)
-            elif tok_type == tokenize.COMMENT:
+            if tok_type == tokenize.COMMENT:
                 prepare_iters()
                 self.source_buffer.apply_tag_by_name('comment', start_iter, end_iter)
             elif tok_type == tokenize.NAME:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]