Browse files

FIX previous commit

  • Loading branch information...
1 parent 79bb1aa commit a3fafb82452ce154ee939d07ddd26028fee821bd @fabianp committed Dec 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 memory_profiler.py
View
4 memory_profiler.py
@@ -109,10 +109,10 @@ def memory_usage(proc=-1, interval=.1, timeout=None, run_in_place=False):
n_args = len(aspec.args)
if aspec.defaults is not None:
n_args -= len(aspec.defaults)
- if len(aspec.args) != len(args):
+ if n_args != len(args):
raise ValueError(
'Function expects %s value(s) but %s where given'
- % (len(aspec.args), len(args)))
+ % (n_args, len(args)))
try:
import multiprocessing

0 comments on commit a3fafb8

Please sign in to comment.