Skip to content

Commit bf0c310

Browse files
committed
Misc hacks got get 2.7 working better
1 parent 2523771 commit bf0c310

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

test/data/highlight.right

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(gcd.py:10): <module>
2-
-> 10 """
2+
-> 10 """
33
Set basename (short filenames) in debugger output is on.
44
Set event tracing is on.
55
Set stopping before def or class statements is off.

test/data/step.right

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
(gcd.py:10): <module>
2-
-> 10 """
2+
-> 10 """
33
Set basename (short filenames) in debugger output is on.
44
Set event tracing is on.
55
Set stopping before def or class statements is off.
66
Set confirmation of potentially dangerous operations is off.
77
line - gcd.py:10
88
line - gcd.py:11
99
(gcd.py:11): <module>
10-
-- 11 import sys
11-
11 -> import sys
10+
-- 11 import sys
11+
11 -> import sys
1212
Set stopping before def or class statements is on.
1313
line - gcd.py:13
1414
line - gcd.py:26
1515
line - gcd.py:40
1616
(gcd.py:40): <module>
17-
-- 40 if __name__=='__main__':
18-
40 -> if __name__=='__main__':
17+
-- 40 if __name__=='__main__':
18+
40 -> if __name__=='__main__':
1919
Set stopping before def or class statements is off.
2020
line - gcd.py:41
2121
(gcd.py:41): <module>
22-
-- 41 check_args()
23-
41 -> check_args()
22+
-- 41 check_args()
23+
41 -> check_args()
2424
trepan2: That's all, folks...

trepan/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ def main(dbg=None, sys_argv=list(sys.argv)):
8585
mainpyfile = whence_file(mainpyfile)
8686
is_readable = readable(mainpyfile)
8787
if is_readable is None:
88-
print("%s: Python script file '{mainpyfile}' does not exist" % __title__)
88+
print("%s: Python script file '%s' does not exist" % (__title__, mainpyfile))
8989
sys.exit(1)
9090
elif not is_readable:
91-
print("%s: Can't read Python script file '{mainpyfile}'" % __title__)
91+
print("%s: Can't read Python script file '%s'" % (__title__, mainpyfile))
9292
sys.exit(1)
9393
return
9494

trepan/lib/default.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
width = computed_displaywidth()
2828
is_dark_bg = is_dark_background()
29-
default_style = "monokai" if is_dark_bg else "tango"
29+
default_style = "colorful" if is_dark_bg else "tango"
3030

3131
# Below are the default debugger settings. The debugger object version
3232
# of this may change. A setting is something a user may want to

trepan/lib/format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676

7777
color_scheme[Generic.Strong] = ("*black*", "*white*")
7878
color_scheme[Name.Variable] = ("_black_", "_white_")
79-
color_scheme[Generic.Emph] = ("blue", "brightcyan")
79+
color_scheme[Generic.Emph] = ("blue", "blue")
8080

8181
pygments_version_tuple = tuple([int(num) for num in pygments_version.split(".")[:2]])
8282
purple = "magenta" if pygments_version_tuple >= (2, 5) else "purple"

0 commit comments

Comments
 (0)