From: kaliko Date: Wed, 12 Feb 2014 19:02:23 +0000 (+0100) Subject: Renamed a private method X-Git-Tag: mpd-sima/0.12.0pr4~26 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=caff603bfa12a698d3063ea3489f333d9cafdbf0;p=mpd-sima.git Renamed a private method --- 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)