From 0bd5026d216520712d6e2e7f07c5c3445139cdc3 Mon Sep 17 00:00:00 2001 From: Matthew Brandly Date: Sun, 9 Sep 2012 14:54:52 -0400 Subject: [PATCH] Fix minor spelling mistake --- clint/eng.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clint/eng.py b/clint/eng.py index e903631..ab49ee9 100644 --- a/clint/eng.py +++ b/clint/eng.py @@ -20,12 +20,12 @@ except NameError: unicode = str -def join(l, conj=CONJUNCTION, im_a_moron=MORON_MODE, seperator=COMMA): +def join(l, conj=CONJUNCTION, im_a_moron=MORON_MODE, separator=COMMA): """Joins lists of words. Oxford comma and all.""" collector = [] left = len(l) - seperator = seperator + SPACE + separator = separator + SPACE conj = conj + SPACE for _l in l[:]: @@ -37,12 +37,12 @@ def join(l, conj=CONJUNCTION, im_a_moron=MORON_MODE, seperator=COMMA): if len(l) == 2 or im_a_moron: collector.append(SPACE) else: - collector.append(seperator) + collector.append(separator) collector.append(conj) elif left is not 0: - collector.append(seperator) + collector.append(separator) return unicode(str().join(collector))