Submit
Path:
~
/
/
opt
/
cloudlinux
/
venv
/
lib64
/
python3.11
/
site-packages
/
pylint
/
extensions
/
__pycache__
/
File Content:
while_used.cpython-311.pyc
� �|oiE � �z � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m Z erddlmZ G d� d e� � Z dd�ZdS )zCheck for use of while loops.� )�annotations)� TYPE_CHECKING)�nodes)�BaseChecker)�only_required_for_messages)�PyLinterc �D � e Zd ZdZddiZ ed� � dd �� � Zd S )�WhileChecker� while_used�W0149)zUsed `while` loop� while-usedz�Unbounded `while` loops can often be rewritten as bounded `for` loops. Exceptions can be made for cases such as event loops, listeners, etc.r �node�nodes.While�return�Nonec �4 � | � d|�� � d S )Nr )r )�add_message)�selfr s �n/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pylint/extensions/while_used.py�visit_whilezWhileChecker.visit_while s! � �����D��1�1�1�1�1� N)r r r r )�__name__� __module__�__qualname__�name�msgsr r � r r r r sT � � � � � ��D�� ��D� ���-�-�2� 2� 2� .�-�2� 2� 2r r �linterr r r c �J � | � t | � � � � d S )N)�register_checkerr )r s r �registerr! $ s$ � � ���L��0�0�1�1�1�1�1r N)r r r r )�__doc__� __future__r �typingr �astroidr �pylint.checkersr �pylint.checkers.utilsr �pylint.lintr r r! r r r �<module>r) s� �� $� #� "� "� "� "� "� "� � � � � � � � � � � � � '� '� '� '� '� '� <� <� <� <� <� <�� %�$�$�$�$�$�$� 2� 2� 2� 2� 2�;� 2� 2� 2� 2� 2� 2� 2� 2� 2r
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
__init__.cpython-311.pyc
840 bytes
0644
_check_docs_utils.cpython-311.pyc
36425 bytes
0644
bad_builtin.cpython-311.pyc
2974 bytes
0644
broad_try_clause.cpython-311.pyc
3156 bytes
0644
check_elif.cpython-311.pyc
3962 bytes
0644
code_style.cpython-311.pyc
15865 bytes
0644
comparetozero.cpython-311.pyc
3779 bytes
0644
comparison_placement.cpython-311.pyc
3439 bytes
0644
confusing_elif.cpython-311.pyc
3271 bytes
0644
consider_refactoring_into_while_condition.cpython-311.pyc
5132 bytes
0644
consider_ternary_expression.cpython-311.pyc
2725 bytes
0644
dict_init_mutate.cpython-311.pyc
3077 bytes
0644
docparams.cpython-311.pyc
27369 bytes
0644
docstyle.cpython-311.pyc
4095 bytes
0644
dunder.cpython-311.pyc
3342 bytes
0644
empty_comment.cpython-311.pyc
3464 bytes
0644
emptystring.cpython-311.pyc
3430 bytes
0644
eq_without_hash.cpython-311.pyc
2568 bytes
0644
for_any_all.cpython-311.pyc
7323 bytes
0644
magic_value.cpython-311.pyc
6368 bytes
0644
mccabe.cpython-311.pyc
11041 bytes
0644
no_self_use.cpython-311.pyc
5610 bytes
0644
overlapping_exceptions.cpython-311.pyc
4666 bytes
0644
private_import.cpython-311.pyc
13069 bytes
0644
redefined_loop_name.cpython-311.pyc
4911 bytes
0644
redefined_variable_type.cpython-311.pyc
5219 bytes
0644
set_membership.cpython-311.pyc
3235 bytes
0644
typing.cpython-311.pyc
24301 bytes
0644
while_used.cpython-311.pyc
1811 bytes
0644
N4ST4R_ID | Naxtarrr