Commits

Jeffrey Goettsch committed 788bc7b

More descriptive variables in pushover.Client.notify method.

  • Participants
  • Parent commits 4169a23

Comments (0)

Files changed (1)

File pushnotify/pushover.py

         """
 
         def send_notify(desc_list, event, kwargs, apikey, device_key=''):
-            status = True
+            all_successful = True
 
             for description in desc_list:
                 data = {'token': self.developerkey,
                     data.update(kwargs)
 
                 response_stream = self._post(self._urls['notify'], data)
-                this_status = self._parse_response_stream(response_stream)
+                this_successful = self._parse_response_stream(response_stream)
 
-                status = status and this_status
+                all_successful = all_successful and this_successful
 
-            return status
+            return all_successful
 
         if not self.apikeys:
             self.logger.warn('notify called with no users set')