Ticket #6359: debug.diff
File debug.diff, 640 bytes (added by , 17 years ago) |
---|
-
debug.py
192 192 Returns (pre_context_lineno, pre_context, context_line, post_context). 193 193 """ 194 194 source = None 195 if loader is not None: 196 source = loader.get_source(module_name).splitlines() 197 else: 195 if loader is not None and hasattr(loader, "get_source"): 196 source = loader.get_source(module_name) 197 if source is not None: 198 source = source.splitlines() 199 if source is None: 198 200 try: 199 201 f = open(filename) 200 202 try: