From caff603bfa12a698d3063ea3489f333d9cafdbf0 Mon Sep 17 00:00:00 2001 From: kaliko Date: Wed, 12 Feb 2014 20:02:23 +0100 Subject: [PATCH] Renamed a private method --- sima/lib/simaecho.py | 4 ++-- sima/lib/simafm.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sima/lib/simaecho.py b/sima/lib/simaecho.py index 3e6f281..ff9782a 100644 --- a/sima/lib/simaecho.py +++ b/sima/lib/simaecho.py @@ -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) diff --git a/sima/lib/simafm.py b/sima/lib/simafm.py index 18625a6..08fdbc3 100644 --- a/sima/lib/simafm.py +++ b/sima/lib/simafm.py @@ -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) -- 2.39.5