Skip to content

Commit 48f2099

Browse files
committed
STY: Comparison to True should use is or be silent according to PEP8 - E712.
1 parent 0177526 commit 48f2099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/doc_builder/environments.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ def __enter__(self):
450450
# locking code, so we throw an exception.
451451
state = self.container_state()
452452
if state is not None:
453-
if state.get('Running') == True:
453+
if state.get('Running') is True:
454454
exc = BuildEnvironmentError(
455455
_('A build environment is currently '
456456
'running for this version'))

0 commit comments

Comments
 (0)