Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions flask_restful_swagger/swagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def extract_operations(resource, path_arguments=[]):
op['parameters'] = merge_parameter_list(
op['parameters'], att_value)
else:
if op.get(att_name) and att_name is not 'nickname':
if op.get(att_name) and att_name != 'nickname':
att_value = '{0}<br/>{1}'.format(att_value, op[att_name])
op[att_name] = att_value
elif isinstance(att_value, object):
Expand Down Expand Up @@ -525,7 +525,7 @@ def extract_path_arguments(path):
{name: 'probability', dataType: 'float'}]
"""
# Remove all paranteses
path = re.sub('\([^\)]*\)', '', path)
path = re.sub(r'\([^\)]*\)', '', path)
args = re.findall('<([^>]+)>', path)

def split_arg(arg):
Expand Down