changeset 19:467295d7807f

Rename utils.group to utils.group_text.
author Brian Neal <bgneal@gmail.com>
date Sun, 09 Jun 2013 13:02:25 -0500 (2013-06-09)
parents 766d8da90e48
children 8b9c6a6e7669
files m209/converter.py m209/procedure.py m209/utils.py
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/m209/converter.py	Sat Jun 08 15:03:28 2013 -0500
+++ b/m209/converter.py	Sun Jun 09 13:02:25 2013 -0500
@@ -13,7 +13,7 @@
 from .data import KEY_WHEEL_DATA
 from .key_wheel import KeyWheel, KeyWheelError
 from .drum import Drum
-from .utils import group as group_text
+from .utils import group_text
 
 M209_ALPHABET_LIST = string.ascii_uppercase
 M209_ALPHABET_SET = set(string.ascii_uppercase)
--- a/m209/procedure.py	Sat Jun 08 15:03:28 2013 -0500
+++ b/m209/procedure.py	Sun Jun 09 13:02:25 2013 -0500
@@ -25,7 +25,7 @@
 from . import M209Error
 from .converter import M209, M209_ALPHABET_SET, M209_ALPHABET_LIST
 from .key_wheel import KeyWheelError
-from .utils import group as group_text
+from .utils import group_text
 
 
 class ProcedureError(M209Error):
--- a/m209/utils.py	Sat Jun 08 15:03:28 2013 -0500
+++ b/m209/utils.py	Sun Jun 09 13:02:25 2013 -0500
@@ -5,7 +5,7 @@
 """This module contains various utility functions."""
 
 
-def group(text, n=5):
+def group_text(text, n=5):
     """Groups the given text into n-letter groups separated by spaces."""
 
     return ' '.join(''.join(text[i:i+n]) for i in range(0, len(text), n))