1 |
commit: e564615a68ded4c1061537d261e9a534b8f8d28d |
2 |
Author: Andrea Arteaga <andyspiros <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Sep 27 14:48:19 2012 +0000 |
4 |
Commit: Andrea Arteaga <andyspiros <AT> gmail <DOT> com> |
5 |
CommitDate: Thu Sep 27 14:48:19 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/auto-numerical-bench.git;a=commit;h=e564615a |
7 |
|
8 |
Correctly parse module arguments. |
9 |
|
10 |
--- |
11 |
numbench/modules/__init__.py | 2 +- |
12 |
1 files changed, 1 insertions(+), 1 deletions(-) |
13 |
|
14 |
diff --git a/numbench/modules/__init__.py b/numbench/modules/__init__.py |
15 |
index 9696252..ba077a6 100644 |
16 |
--- a/numbench/modules/__init__.py |
17 |
+++ b/numbench/modules/__init__.py |
18 |
@@ -51,7 +51,7 @@ def loadModule(modname, args=None): |
19 |
|
20 |
# Get the arguments string |
21 |
args = "" if args is None else args |
22 |
- args = args if type(args) == type('') else ' '.join(args) |
23 |
+ args = args if type(args) == type(()) else tuple(args.split(' ')) |
24 |
|
25 |
# Load the module |
26 |
tmp = __import__('numbench.modules.' + modname, fromlist=["Module"]) |