Skip to content

Commit

Permalink
fix getClassName without className argument (#154)
Browse files Browse the repository at this point in the history
fix the index of string format when calling getClassName methode without className argument
  • Loading branch information
Arinomo authored Apr 13, 2022
1 parent 7981c3d commit 0d7e712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMPython/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def getClassNames(self, className=None, recursive=False, qualified=False, sort=F
str(builtin).lower(), str(showProtected).lower()))
else:
value = self.ask('getClassNames',
'recursive={1}, qualified={2}, sort={3}, builtin={4}, showProtected={5}'.format(
'recursive={0}, qualified={1}, sort={2}, builtin={3}, showProtected={4}'.format(
str(recursive).lower(), str(qualified).lower(), str(sort).lower(),
str(builtin).lower(), str(showProtected).lower()))
return value
Expand Down

0 comments on commit 0d7e712

Please sign in to comment.