Skip to content
Snippets Groups Projects
Commit 39c9624d authored by Florian Obersteiner's avatar Florian Obersteiner
Browse files

implicit boolean

parent 14bd3092
No related branches found
No related tags found
1 merge request!6code refactor
This commit is part of merge request !6. Comments created here will be created in the context of that merge request.
......@@ -200,7 +200,7 @@ class KeywordComment:
self.data.append(data)
def __str__(self):
d = "\n".join(self.data) if not self.data is [] else "N/A" # TODO: use implicit boolean instead of "is []"
d = "\n".join(self.data) if self.data else "N/A"
return self.key + ": " + d
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment