Skip to content

Commit f6c65df

Browse files
authored
Avoid shadowing important built-ins
1 parent 1992802 commit f6c65df

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
@@ -139,8 +139,8 @@ def stream(self, func, *args, **kwargs):
139139
v1 = kubernetes.client.CoreV1Api()
140140
watch = kubernetes.watch.Watch()
141141
for e in watch.stream(v1.list_namespace, resource_version=1127):
142-
type = e['type']
143-
object = e['object'] # object is one of type return_type
142+
type_ = e['type']
143+
object_ = e['object'] # object is one of type return_type
144144
raw_object = e['raw_object'] # raw_object is a dict
145145
...
146146
if should_stop:

0 commit comments

Comments
 (0)