diff --git a/kubernetes/base/watch/watch.py b/kubernetes/base/watch/watch.py index f78ab11d6f..da81f97029 100644 --- a/kubernetes/base/watch/watch.py +++ b/kubernetes/base/watch/watch.py @@ -152,8 +152,8 @@ def stream(self, func, *args, **kwargs): v1 = kubernetes.client.CoreV1Api() watch = kubernetes.watch.Watch() for e in watch.stream(v1.list_namespace, resource_version=1127): - type = e['type'] - object = e['object'] # object is one of type return_type + type_ = e['type'] + object_ = e['object'] # object is one of type return_type raw_object = e['raw_object'] # raw_object is a dict ... if should_stop: