diff --git a/jedi/parsing.py b/jedi/parsing.py index 0b70f612..57a75380 100644 --- a/jedi/parsing.py +++ b/jedi/parsing.py @@ -835,7 +835,7 @@ class Param(Statement): """ get the name of the param """ n = self.set_vars or self.used_vars if len(n) > 1: - raise IndexError("Multiple param names (%s)." % n) + debug.warning("Multiple param names (%s)." % n) return n[0] diff --git a/test/completion/invalid.py b/test/completion/invalid.py index a49a56c6..0da8a37a 100644 --- a/test/completion/invalid.py +++ b/test/completion/invalid.py @@ -1,5 +1,10 @@ -# This file is less about the results and much more about the fact, that no -# exception should be thrown. +""" +This file is less about the results and much more about the fact, that no +exception should be thrown. + +Basically this file could change depending on the current implementation. But +there should never be any errors. +""" #? ['upper'] str()).upper @@ -101,3 +106,9 @@ a[0] #? [] int()). + +def asdf(a or b): # multiple param names + return a + +#? int() +asdf(2)