Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Use setdefault instead of manually checking.
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Scrimshaw committed May 29, 2017
1 parent 76b3be2 commit 8f7d3e6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/sage/structure/indexed_generators.py
Expand Up @@ -591,10 +591,8 @@ def parse_indices_names(names, index_set, prefix, kwds={}):

if prefix is None:
prefix = ''
if 'string_quotes' not in kwds:
kwds['string_quotes'] = False
if 'bracket' not in kwds:
kwds['bracket'] = False
kwds.setdefault('string_quotes', False)
kwds.setdefault('bracket', False)

names, index_set = standardize_names_index_set(names, index_set, -1)

Expand Down

0 comments on commit 8f7d3e6

Please sign in to comment.