tabulate: fix sval -> return typo in _statistic().
[pygrader.git] / pygrader / tabulate.py
index 4237b293ced2bb225e66fb1766f5e5c4e6142312..e070c7d018e9d37089eb098712f9da3a09074dfe 100644 (file)
@@ -53,7 +53,7 @@ if _numpy is None:
 else:
     _statistics_container = _numpy.array
 
-def _statistic(iterabale, statistic):
+def _statistic(iterable, statistic):
     """Calculate statistics on an list of numbers
     """
     global _numpy_import_error
@@ -69,7 +69,7 @@ def _statistic(iterabale, statistic):
             return gs.mean()
     elif statistic == 'Std. Dev.':
         if _numpy is None:  # work around missing numpy
-            sval = _std(iterable)
+            return _std(iterable)
         else:
             return gs.std()
     else: