Skip to content

Commit ca38dbb

Browse files
committed
Fix type bug in pretty_modfunc_name()
1 parent b8c3434 commit ca38dbb

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

trepan/misc.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright (C) 2008-2010, 2013-2015, 2020 Rocky Bernstein <rocky@gnu.org>
2+
# Copyright (C) 2008-2010, 2013-2015, 2020-2021 Rocky Bernstein <rocky@gnu.org>
33
#
44
# This program is free software: you can redistribute it and/or modify
55
# it under the terms of the GNU General Public License as published by
@@ -34,11 +34,15 @@ def wrapped_lines(msg_part1, msg_part2, width):
3434
return msg_part1 + " " + msg_part2
3535
return # Not reached
3636

37+
3738
def pretty_modfunc_name(s):
3839
if s == "<module>":
39-
return s
40+
# FIXME:
41+
# Pick replace with something more custom to modname?
42+
return str(s)
4043
else:
41-
return s + "()"
44+
return str(s) + "()"
45+
4246

4347
import os
4448
from glob import glob

0 commit comments

Comments
 (0)