]> kaliko git repositories - mpd-sima.git/commitdiff
Renamed a private method
authorkaliko <efrim@azylum.org>
Wed, 12 Feb 2014 19:02:23 +0000 (20:02 +0100)
committerkaliko <efrim@azylum.org>
Wed, 12 Feb 2014 19:02:23 +0000 (20:02 +0100)
sima/lib/simaecho.py
sima/lib/simafm.py

index 3e6f28147d29d6669b3178929d9ff6b65411b627..ff9782ac7f8ddac3845b1b10ec3fa4d9a3094397 100644 (file)
@@ -67,7 +67,7 @@ class SimaEch():
             self.current_element = SimaEch.cache.get(url).elem
             return
         try:
-            self._fetch_ech(payload)
+            self._fetch_ws(payload)
         except Timeout:
             raise WSTimeout('Failed to reach server within {0}s'.format(
                                SOCKET_TIMEOUT))
@@ -75,7 +75,7 @@ class SimaEch():
             raise WSError(err)
 
     @Throttle(WAIT_BETWEEN_REQUESTS)
-    def _fetch_ech(self, payload):
+    def _fetch_ws(self, payload):
         """fetch from web service"""
         req = get(self._ressource, params=payload,
                             timeout=SOCKET_TIMEOUT)
index 18625a6761bbc80c4aee7e060e90918193d0696a..08fdbc3fe65e1655273a12cfe6d9d9874dbe7574 100644 (file)
@@ -64,7 +64,7 @@ class SimaFM():
             self.current_element = SimaFM.cache.get(url).elem
             return
         try:
-            self._fetch_ech(payload)
+            self._fetch_ws(payload)
         except Timeout:
             raise WSTimeout('Failed to reach server within {0}s'.format(
                                SOCKET_TIMEOUT))
@@ -72,7 +72,7 @@ class SimaFM():
             raise WSError(err)
 
     @Throttle(WAIT_BETWEEN_REQUESTS)
-    def _fetch_ech(self, payload):
+    def _fetch_ws(self, payload):
         """fetch from web service"""
         req = get(self._url, params=payload,
                             timeout=SOCKET_TIMEOUT)