From 2a39a9b1883a4cd9ac54de6850762d298962d47e Mon Sep 17 00:00:00 2001 From: Tim Head Date: Mon, 17 Nov 2014 01:10:43 +0100 Subject: [PATCH] Update thesethreewords.py --- thesethreewords.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/thesethreewords.py b/thesethreewords.py index d24eb88..a292594 100644 --- a/thesethreewords.py +++ b/thesethreewords.py @@ -1,3 +1,8 @@ +""" +thesethreewords: Human-readable addresses for every 3x3m square of the earth's surface. +The simplest ways to use this module are the `three_words` and `decode` +functions. For more see `WordHasher`. +""" import random import geohash @@ -101,7 +106,7 @@ class WordHasher(object): i = self.unpad(i) else: - raise RuntimeError("Do not know how to decode set of %i words."%(len(words))) + raise RuntimeError("Do not know how to decode a set of %i words."%(len(words))) geo_hash = self.int_to_geo(i) return geohash.decode(geo_hash)