Skip to content
Myr

Return empty list when debug_info is empty string

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Mr. Senko · committed by Mr. Senko · parent a1588c6 · Browse files · 1 file+4 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−2 removed

  • other:+4 added−2 removed

1 file+4 added−2 removed

modified:jinja2/environment.py+4 added-2 removed
1122 unmodified lines
11231124 @property1125 def debug_info(self):1126 """The debug info mapping."""1127 if self._debug_info:1127 return [tuple(imap(int, x.split('='))) for x in1128 self._debug_info.split('&')]1128 return [tuple(imap(int, x.split('='))) for x in1129 self._debug_info.split('&')]1130 return []11311132 def __repr__(self):1133 if self.name is None:1134 name = 'memory:%x' % id(self)
144 unmodified lines