Skip to content

Commit 98a5be8

Browse files
authored
Merge pull request kubernetes-client#2157 from rafrafek/patch-1
Avoid shadowing important built-ins in the example code
2 parents 3ae5fbb + ee5b9e2 commit 98a5be8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kubernetes/base/watch/watch.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ def stream(self, func, *args, **kwargs):
152152
v1 = kubernetes.client.CoreV1Api()
153153
watch = kubernetes.watch.Watch()
154154
for e in watch.stream(v1.list_namespace, resource_version=1127):
155-
type = e['type']
156-
object = e['object'] # object is one of type return_type
155+
type_ = e['type']
156+
object_ = e['object'] # object is one of type return_type
157157
raw_object = e['raw_object'] # raw_object is a dict
158158
...
159159
if should_stop:

0 commit comments

Comments
 (0)