Skip to content

Commit

Permalink
Reformat huawei_vrp.py using Black code formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
angely-dev committed Dec 9, 2023
1 parent 502e930 commit a8a8bf7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions napalm_huawei_vrp/huawei_vrp.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def __init__(self, hostname, username, password, timeout=60, optional_args=None)
self.prompt_quiet_configured = None

# Contextual diff computation mode
self.contextual_diff = optional_args.get('contextual_diff', False)
self.contextual_diff = optional_args.get("contextual_diff", False)

# verified
def open(self):
Expand Down Expand Up @@ -2078,7 +2078,7 @@ def _get_merge_diff(self):
return "\n".join(diff)

def _get_contextual_diff(self):
running_config = self.get_config(retrieve='running')['running']
running_config = self.get_config(retrieve="running")["running"]
running_config = IndentedConfig(running_config, sanitize=True)
merge_candidate = IndentedConfig(self.merge_candidate, sanitize=True)
diff = IncrementalDiff(merge_candidate, running_config)
Expand Down Expand Up @@ -2271,4 +2271,4 @@ def interface_bw_conversion(bandwidth):
"BW Conversion: Unexpected Bandwidth for GigabitEthernet: {}".format(
bandwidth
)
)
)

0 comments on commit a8a8bf7

Please sign in to comment.