mirror of
https://git.freebsd.org/ports.git
synced 2025-06-12 08:10:31 -04:00
15 lines
381 B
Python
15 lines
381 B
Python
--- frescobaldi_app/snippet/highlight.py.orig 2016-04-21 23:00:30 UTC
|
|
+++ frescobaldi_app/snippet/highlight.py
|
|
@@ -23,9 +23,10 @@ Highlighter for the snippet editor and v
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
-try:
|
|
+import sys
|
|
+if sys.version_info >= (3, 0):
|
|
import builtins # py3
|
|
-except ImportError:
|
|
+else:
|
|
import __builtin__ as builtins # py2
|
|
|
|
import keyword
|