Skip to content

Commit

Permalink
CONFIGDB.MNT: remove unnecessary variable naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandohds564 authored Feb 7, 2024
1 parent 5e98547 commit dec9df1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions siriuspy/siriuspy/clientconfigdb/configdb_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ def compare_configs(config1, config2, pos_pattern=None, neg_pattern=None):
# https://stackoverflow.com/questions/1723182/a-regex-that-will-never-be-matched-by-anything
neg_re = _re.compile(r'(?!x)x' if neg_pattern is None else neg_pattern)

cf1pvs = {n: v for n, v, t in config1['pvs']}
cf2pvs = {n: v for n, v, t in config2['pvs']}
cf1pvs = {n: v for n, v, _ in config1['pvs']}
cf2pvs = {n: v for n, v, _ in config2['pvs']}

for pv in cf1pvs.keys() | cf2pvs.keys():
if not pos_re.match(pv) or neg_re.match(pv):
Expand Down

0 comments on commit dec9df1

Please sign in to comment.