Permalink
Browse files

DocumentationComment: Add conditional for `None`

Add conditional for `None` value in `self.indent`
and `self.marker`.
This fixes `TypeError` raised in DocumentationAPI
tests.
  • Loading branch information...
damngamerz committed Jun 25, 2017
1 parent bac0c3e commit 526af978f9f89f2b1079e0ae8df5e896b68a92b5
Showing with 2 additions and 2 deletions.
  1. +2 −2 coalib/bearlib/languages/documentation/DocumentationComment.py
@@ -37,8 +37,8 @@ def __init__(self, documentation, docstyle_definition,
"""
self.documentation = documentation
self.docstyle_definition = docstyle_definition
self.indent = indent
self.marker = marker
self.indent = '' if indent is None else indent
self.marker = ('', '', '') if marker is None else marker
self.range = range
def __str__(self):

0 comments on commit 526af97

Please sign in to comment.