Permalink
Browse files

CamelCase method names

  • Loading branch information...
1 parent 4ca58c3 commit 007596e8c4593ad0e7a874ed8db380100c1e0c42 @desbma desbma committed Feb 6, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 ddc_client.py
View
@@ -26,7 +26,7 @@ def start(self,):
try:
while True:
# see README.md for params description
- response = self.api_request({ "version" : str(__class__.CLIENT_VERSION),
+ response = self.apiRequest({ "version" : str(__class__.CLIENT_VERSION),
"pc_version" : str(ddc_process.VERSION) }).decode("utf-8")
# read response
@@ -76,7 +76,7 @@ def start(self,):
# send POST request
post_data = xml.etree.ElementTree.tostring(xml_root)
- self.api_request( { "version" : str(__class__.CLIENT_VERSION),
+ self.apiRequest( { "version" : str(__class__.CLIENT_VERSION),
"pc_version" : str(ddc_process.VERSION) },
True,
post_data) # we don't care for what the server actually returns here
@@ -86,7 +86,7 @@ def start(self,):
exit(7)
- def api_request(self,url_params,post_request=False,post_data=None):
+ def apiRequest(self,url_params,post_request=False,post_data=None):
# construct url
url = "%s?%s" % (self.api_base_url,urllib.parse.urlencode(url_params))
# send request

0 comments on commit 007596e

Please sign in to comment.