Skip to content

Commit

Permalink
Be pep8 compliant when forming display names
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeySatskiy committed Aug 1, 2018
1 parent 6ecb35e commit 9b55720
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2018 Aug 01 Sergey Satskiy <[email protected]>

* Release 3.0.3
* Be pep8 compliant when display names are formed

2017 Nov 16 Sergey Satskiy <[email protected]>

* Release 3.0.2
Expand Down
8 changes: 3 additions & 5 deletions cdmpyparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def getDisplayName(self):
"""Provides a name for display purpose"""
displayName = self.name
if self.arguments:
displayName += "( " + ", ".join(self.arguments) + " )"
displayName += "(" + ", ".join(self.arguments) + ")"
return displayName


Expand Down Expand Up @@ -331,12 +331,10 @@ def getDisplayName(self):
first = True
for arg in self.arguments:
if first:
displayName += " " + str(arg)
displayName += str(arg)
first = False
else:
displayName += ", " + str(arg)
if self.arguments:
displayName += " "
displayName += ")"
if self.returnAnnotation is not None:
displayName += ' -> ' + self.returnAnnotation
Expand Down Expand Up @@ -400,7 +398,7 @@ def getDisplayName(self):
" Provides a name for display purpose "
displayName = self.name
if self.base:
displayName += "( " + ", ".join(self.base) + " )"
displayName += "(" + ", ".join(self.base) + ")"
return displayName


Expand Down
2 changes: 1 addition & 1 deletion cdmpyparserversion.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = '3.0.2'
version = '3.0.3'

0 comments on commit 9b55720

Please sign in to comment.