1. Jeffrey Goettsch
  2. py-pushnotify

Commits

Jeffrey Goettsch  committed 0f098ce

Method calls to AbstractClient._post no longer of to url encode the data parameter.

  • Participants
  • Parent commits 9e76f7c
  • Branches default

Comments (0)

Files changed (3)

File pushnotify/abstract.py

View file
  • Ignore whitespace
 
     def _post(self, url, data):
 
+        data = urllib.urlencode(data)
+
         self.logger.debug('_post sending data: {0}'.format(data))
         self.logger.debug('_post sending to url: {0}'.format(url))
 

File pushnotify/nma.py

View file
  • Ignore whitespace
 """
 
 
-import urllib
 import warnings
 try:
     from xml.etree import cElementTree
             if kwargs:
                 data.update(kwargs)
 
-            data = urllib.urlencode(data)
-
             response_stream = self._post(self._urls['notify'], data)
             self._parse_response_stream(response_stream)
 

File pushnotify/prowl.py

View file
  • Ignore whitespace
 """
 
 
-import urllib
 try:
     from xml.etree import cElementTree
     ElementTree = cElementTree
             if kwargs:
                 data.update(kwargs)
 
-            data = urllib.urlencode(data)
-
             response_stream = self._post(self._urls['notify'], data)
             self._parse_response_stream(response_stream)