Skip to content

Commit 7f66879

Browse files
KeywordName.__new__: Set name default to empty str
To allow init without args, which is needed for compatibility with robotframework-3.0.2
1 parent 6c81f49 commit 7f66879

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

robottools/library/keywords/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class KeywordName(str):
4141
(plain lowercase without spaces and underscores)
4242
for comparing and hashing.
4343
"""
44-
def __new__(cls, name, convert=True):
44+
def __new__(cls, name='', convert=True):
4545
if convert and type(name) is not KeywordName:
4646
name = camelize(name, joiner=' ')
4747
return str.__new__(cls, name)

0 commit comments

Comments
 (0)