Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
867e092f
Unverified
Commit
867e092f
authored
Nov 26, 2024
by
Wang Ran (汪然)
Committed by
GitHub
Nov 26, 2024
Browse files
using `is not` not `!=` to test `None` (#2196)
parent
88c7763f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/lang/tracer.py
python/sglang/lang/tracer.py
+1
-1
No files found.
python/sglang/lang/tracer.py
View file @
867e092f
...
...
@@ -278,6 +278,6 @@ class TracingScope:
def
add_child_state
(
self
,
state
:
TracerProgramState
):
cur_scope
=
self
while
cur_scope
!=
None
:
while
cur_scope
is
not
None
:
cur_scope
.
tracer_state
.
child_states
.
append
(
state
)
cur_scope
=
cur_scope
.
last_scope
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment