This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
multipub/.pyenv/lib/python3.7/site-packages/pylint/test/functional/unreachable.py
2019-02-09 02:45:25 -06:00

22 lines
413 B
Python

# pylint: disable=missing-docstring
from __future__ import print_function
def func1():
return 1
print('unreachable') # [unreachable]
def func2():
while 1:
break
print('unreachable') # [unreachable]
def func3():
for i in (1, 2, 3):
print(i)
continue
print('unreachable') # [unreachable]
def func4():
raise Exception
return 1 / 0 # [unreachable]