Never use print for debugging again
169 matches across 9 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | pysnooper/__init__.py | 20 | |
| LOW | pysnooper/__init__.py | 21 | |
| LOW | pysnooper/__init__.py | 21 | |
| LOW | pysnooper/__init__.py | 21 | |
| LOW | pysnooper/__init__.py | 21 | |
| LOW | pysnooper/utils.py | 8 | |
| LOW | pysnooper/pycompat.py | 68 | |
| LOW | pysnooper/pycompat.py | 70 | |
| LOW | pysnooper/tracer.py | 14 | |
| LOW | tests/test_pysnooper.py | 8 | |
| LOW | tests/test_pysnooper.py | 18 | |
| LOW | tests/test_chinese.py | 5 | |
| LOW | tests/test_chinese.py | 6 | |
| LOW | tests/test_chinese.py | 7 | |
| LOW | tests/test_chinese.py | 8 | |
| LOW | tests/test_chinese.py | 9 | |
| LOW | tests/test_chinese.py | 11 | |
| LOW | tests/test_chinese.py | 12 | |
| LOW | tests/test_chinese.py | 16 | |
| LOW | tests/test_chinese.py | 17 | |
| LOW | tests/test_chinese.py | 17 | |
| LOW | tests/test_chinese.py | 17 | |
| LOW | tests/test_chinese.py | 17 | |
| LOW | tests/test_chinese.py | 17 | |
| LOW | tests/test_not_implemented.py | 4 | |
| LOW | tests/test_not_implemented.py | 6 | |
| LOW | tests/test_not_implemented.py | 7 | |
| LOW | tests/test_not_implemented.py | 8 | |
| LOW | tests/test_not_implemented.py | 9 | |
| LOW | tests/test_not_implemented.py | 12 | |
| LOW | tests/test_not_implemented.py | 16 | |
| LOW | tests/test_not_implemented.py | 18 | |
| LOW | tests/test_not_implemented.py | 18 | |
| LOW | tests/test_not_implemented.py | 18 | |
| LOW | tests/test_not_implemented.py | 18 | |
| LOW | tests/test_not_implemented.py | 18 | |
| LOW | tests/test_not_implemented.py | 18 | |
| LOW | tests/test_not_implemented.py | 18 | |
| LOW | tests/test_not_implemented.py | 18 | |
| LOW | tests/test_not_implemented.py | 18 | |
| LOW | tests/test_not_implemented.py | 18 | |
| LOW | tests/test_not_implemented.py | 18 | |
| LOW | tests/test_not_implemented.py | 18 | |
| LOW | tests/test_not_implemented.py | 18 | |
| LOW | tests/test_not_implemented.py | 23 | |
| LOW | tests/test_utils/test_regex.py | 4 | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 4 | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 5 | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 6 | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 7 | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 8 | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 9 | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 11 | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 12 | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 14 | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 15 | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 16 | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 16 | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 16 | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 16 | |
| 1 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_pysnooper.py | 30 | def my_function(foo): |
| LOW | tests/test_pysnooper.py | 43 | CallEntry('def my_function(foo):'), |
| LOW | tests/test_pysnooper.py | 191 | def my_function(foo): |
| LOW | tests/test_pysnooper.py | 206 | CallEntry('def my_function(foo):'), |
| LOW | tests/test_pysnooper.py | 222 | def my_function(foo): |
| LOW | tests/test_pysnooper.py | 250 | CallEntry('def my_function(foo):', |
| LOW | tests/test_pysnooper.py | 268 | CallEntry('def my_function(foo):', |
| LOW | tests/test_pysnooper.py | 286 | CallEntry('def my_function(foo):', |
| LOW | tests/test_pysnooper.py | 311 | def my_function(foo): |
| LOW | tests/test_pysnooper.py | 324 | CallEntry('def my_function(foo):'), |
| LOW | tests/test_pysnooper.py | 352 | def my_function(): |
| LOW | tests/test_pysnooper.py | 368 | CallEntry('def my_function():'), |
| LOW | tests/test_pysnooper.py | 401 | def my_function(): |
| LOW | tests/test_pysnooper.py | 417 | CallEntry('def my_function():'), |
| LOW | tests/test_pysnooper.py | 460 | def my_function(): |
| LOW | tests/test_pysnooper.py | 475 | CallEntry('def my_function():'), |
| LOW | tests/test_pysnooper.py | 507 | def my_function(): |
| LOW | tests/test_pysnooper.py | 522 | CallEntry('def my_function():'), |
| LOW | tests/test_pysnooper.py | 543 | def my_function(): |
| LOW | tests/test_pysnooper.py | 557 | CallEntry('def my_function():'), |
| LOW | tests/test_pysnooper.py | 572 | def my_function(): |
| LOW | tests/test_pysnooper.py | 586 | CallEntry('def my_function():'), |
| LOW | tests/test_pysnooper.py | 601 | def my_function(): |
| LOW | tests/test_pysnooper.py | 615 | CallEntry('def my_function():'), |
| LOW | tests/test_pysnooper.py | 634 | def my_function(): |
| LOW | tests/test_pysnooper.py | 647 | CallEntry('def my_function():'), |
| LOW | tests/test_pysnooper.py | 769 | def my_function(_foo): |
| LOW | tests/test_pysnooper.py | 783 | CallEntry('def my_function(_foo):'), |
| LOW | tests/test_pysnooper.py | 809 | def my_function(foo): |
| LOW | tests/test_pysnooper.py | 822 | CallEntry('def my_function(foo):'), |
| LOW | tests/test_pysnooper.py | 905 | def my_function(foo): |
| LOW | tests/test_pysnooper.py | 920 | CallEntry('def my_function(foo):'), |
| LOW | tests/test_pysnooper.py | 939 | def my_function(foo): |
| LOW | tests/test_pysnooper.py | 954 | CallEntry('def my_function(foo):'), |
| LOW | tests/test_pysnooper.py | 965 | CallEntry('def my_function(foo):'), |
| LOW | tests/test_pysnooper.py | 982 | def my_function(foo): |
| LOW | tests/test_pysnooper.py | 1508 | def my_function(foo): |
| LOW | tests/test_pysnooper.py | 1533 | def my_method(self, foo): |
| LOW | tests/test_pysnooper.py | 1553 | CallEntry('def my_method(self, foo):'), |
| LOW | tests/test_pysnooper.py | 1581 | def my_method(self, foo): |
| LOW | tests/test_pysnooper.py | 1631 | def my_method(self, foo): |
| LOW | tests/test_pysnooper.py | 1657 | CallEntry('def my_method(self, foo):'), |
| LOW | tests/mini_toolbox/contextlib.py | 155 | def helper(*args, **kwds): |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tests/test_pysnooper.py | 0 | import pysnooper @pysnooper.snoop(color=false) def f(x): return x |
| HIGH | tests/test_pysnooper.py | 0 | import pysnooper @pysnooper.snoop(color=false) def f(x): return x |
| HIGH | tests/test_pysnooper.py | 0 | import pysnooper @pysnooper.snoop(color=false) def f(x): return x |
| HIGH | tests/test_pysnooper.py | 0 | import pysnooper @pysnooper.snoop(color=false) def f(x): return x |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | pysnooper/variables.py | 33 | except Exception: |
| LOW | pysnooper/variables.py | 61 | except Exception: |
| LOW | pysnooper/variables.py | 73 | except Exception: |
| MEDIUM | pysnooper/variables.py | 30 | def items(self, frame, normalize=False): |
| MEDIUM | pysnooper/variables.py | 69 | def _safe_keys(self, main_value): |
| LOW | pysnooper/utils.py | 72 | except Exception: |
| LOW | pysnooper/tracer.py | 84 | except Exception: |
| LOW | pysnooper/tracer.py | 94 | except Exception: |
| LOW | pysnooper/tracer.py | 101 | except Exception: |
| LOW | pysnooper/tracer.py | 334 | except Exception as e: |
| LOW | tests/mini_toolbox/__init__.py | 97 | except Exception: |
| LOW | tests/samples/exception.py | 11 | except Exception: |
| MEDIUM | tests/samples/exception.py | 8 | def bar(): |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | misc/generate_authors.py | 36 | def iterate_authors_by_chronological_order(branch): |
| LOW | pysnooper/tracer.py | 56 | def get_path_and_source_from_frame(frame): |
| LOW | tests/test_mini_toolbox.py | 9 | def test_output_capturer_doesnt_swallow_exceptions(): |
| LOW | tests/utils.py | 43 | def is_compatible_with_current_python_version(self): |
| LOW | tests/test_pysnooper.py | 498 | def test_single_watch_no_comma(normalize): |
| LOW | tests/test_pysnooper.py | 570 | def test_long_variable_with_custom_max_variable_length(normalize): |
| LOW | tests/test_pysnooper.py | 599 | def test_long_variable_with_infinite_max_variable_length(normalize): |
| LOW | tests/test_pysnooper.py | 798 | def test_confusing_decorator_lines(normalize): |
| LOW | tests/test_pysnooper.py | 899 | def test_no_overwrite_by_default(): |
| LOW | tests/test_pysnooper.py | 978 | def test_error_in_overwrite_argument(): |
| LOW | tests/test_pysnooper.py | 1566 | def test_class_with_decorated_method(normalize): |
| LOW | tests/test_pysnooper.py | 1615 | def test_class_with_decorated_method_and_snoop_applied_to_method(normalize): |
| LOW | tests/test_pysnooper.py | 1756 | def test_snooping_on_class_does_not_cause_base_class_to_be_snooped(normalize): |
| LOW | tests/test_pysnooper.py | 1866 | def test_normalize_thread_info(): |
| LOW | tests/test_pysnooper.py | 1943 | def test_nested_exception_group(): |
| LOW | tests/test_pysnooper.py | 2082 | def test_valid_damaged_zipfile(): |
| LOW | tests/test_not_implemented.py | 26 | def test_rejecting_coroutine_functions(): |
| LOW | tests/test_not_implemented.py | 44 | def test_rejecting_async_generator_functions(): |
| LOW | tests/mini_toolbox/contextlib.py | 274 | def _reraise_with_existing_context(exc_details): |
| LOW | tests/mini_toolbox/contextlib.py | 290 | def _reraise_with_existing_context(exc_details): |
| LOW | tests/mini_toolbox/pathlib.py | 68 | def _try_except_fileexistserror(try_func, except_func, else_func=None): |
| LOW | tests/mini_toolbox/pathlib.py | 90 | def _try_except_filenotfounderror(try_func, except_func): |
| LOW | tests/mini_toolbox/pathlib.py | 106 | def _try_except_permissionerror_iter(try_iter, except_iter): |
| LOW | tests/test_utils/test_regex.py | 7 | def test_ansible_filename_pattern(): |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tests/mini_toolbox/contextlib.py | 336 | self.push(_exit_wrapper) |
| HIGH | tests/mini_toolbox/contextlib.py | 368 | self.push(_exit_wrapper) |
| HIGH | tests/mini_toolbox/contextlib.py | 430 | return self.push(callback) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | pysnooper/utils.py | 11 | |
| LOW | pysnooper/tracer.py | 56 | |
| LOW | pysnooper/tracer.py | 403 | |
| LOW | tests/mini_toolbox/pathlib.py | 106 | |
| LOW | tests/mini_toolbox/pathlib.py | 202 | |
| LOW | tests/mini_toolbox/pathlib.py | 286 | |
| LOW | tests/mini_toolbox/pathlib.py | 331 | |
| LOW | tests/mini_toolbox/pathlib.py | 395 | |
| LOW | tests/mini_toolbox/pathlib.py | 688 | |
| LOW | tests/mini_toolbox/pathlib.py | 733 | |
| LOW | tests/mini_toolbox/pathlib.py | 818 | |
| LOW | tests/mini_toolbox/pathlib.py | 689 | |
| LOW | tests/mini_toolbox/pathlib.py | 734 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/mini_toolbox/pathlib.py | 676 | |
| MEDIUM | tests/mini_toolbox/pathlib.py | 704 | |
| MEDIUM | tests/mini_toolbox/pathlib.py | 728 | |
| MEDIUM | tests/mini_toolbox/pathlib.py | 750 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | requirements.txt | 1 | # |
| LOW | .travis.yml | 41 | # script: skip |
| LOW | tests/mini_toolbox/contextlib.py | 101 | # was passed to throw(). This prevents a StopIteration |
| LOW | tests/mini_toolbox/contextlib.py | 241 |