Skip to content

Commit f609c0c

Browse files
authored
Merge pull request #381 from bfredl/errlines
util: don't add extra newlines in format_exc_skip
2 parents b535860 + 9a613c2 commit f609c0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pynvim/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
def format_exc_skip(skip, limit=None):
88
"""Like traceback.format_exc but allow skipping the first frames."""
9-
type, val, tb = sys.exc_info()
9+
etype, val, tb = sys.exc_info()
1010
for i in range(skip):
1111
tb = tb.tb_next
12-
return ('\n'.join(format_exception(type, val, tb, limit))).rstrip()
12+
return (''.join(format_exception(etype, val, tb, limit))).rstrip()
1313

1414

1515
# Taken from SimpleNamespace in python 3

0 commit comments

Comments
 (0)