Skip to content

Commit 0d7e712

Browse files
authored
fix getClassName without className argument (#154)
fix the index of string format when calling getClassName methode without className argument
1 parent 7981c3d commit 0d7e712

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OMPython/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ def getClassNames(self, className=None, recursive=False, qualified=False, sort=F
528528
str(builtin).lower(), str(showProtected).lower()))
529529
else:
530530
value = self.ask('getClassNames',
531-
'recursive={1}, qualified={2}, sort={3}, builtin={4}, showProtected={5}'.format(
531+
'recursive={0}, qualified={1}, sort={2}, builtin={3}, showProtected={4}'.format(
532532
str(recursive).lower(), str(qualified).lower(), str(sort).lower(),
533533
str(builtin).lower(), str(showProtected).lower()))
534534
return value

0 commit comments

Comments
 (0)