summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2017-07-31 12:10:40 -0400
committerGitHub <noreply@github.com>2017-07-31 12:10:40 -0400
commit2556d78784c390da459e3e7c8230af17b3ec0633 (patch)
treef29c4ea17a2070b18375a5feb820bc9dac6c7823 /redis/client.py
parentfd84f83c64547658371075ddf442edd0f412ea84 (diff)
parent6483298b335962441963c9b4da3e9808c3514903 (diff)
downloadredis-py-2556d78784c390da459e3e7c8230af17b3ec0633.tar.gz
Merge pull request #877 from twz915/patch-1
change the error order of geo point
Diffstat (limited to 'redis/client.py')
-rwxr-xr-xredis/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/redis/client.py b/redis/client.py
index 9139906..4bab5fb 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -2114,7 +2114,7 @@ class StrictRedis(object):
the triad longitude, latitude and name.
"""
if len(values) % 3 != 0:
- raise RedisError("GEOADD requires places with lat, lon and name"
+ raise RedisError("GEOADD requires places with lon, lat and name"
" values")
return self.execute_command('GEOADD', name, *values)
@@ -2143,7 +2143,7 @@ class StrictRedis(object):
"""
Return the positions of each item of ``values`` as members of
the specified key identified by the ``name``argument. Each position
- is represented by the pairs lat and lon.
+ is represented by the pairs lon and lat.
"""
return self.execute_command('GEOPOS', name, *values)