Skip to content

Commit 9a60bf9

Browse files
committed
Black formatting
1 parent ac0658f commit 9a60bf9

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

examples/custom.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@
115115
input("Press Enter for Set update...")
116116
set_update = proto.gnmi_pb2.Update()
117117
# This is the fully modeled JSON we want to update with
118-
update_json = json.loads("""
118+
update_json = json.loads(
119+
"""
119120
{
120121
"openconfig-interfaces:interfaces": {
121122
"interface": [
@@ -125,7 +126,8 @@
125126
]
126127
}
127128
}
128-
""")
129+
"""
130+
)
129131
# Let's just do an update from the very top element
130132
top_element = next(iter(update_json.keys()))
131133
set_update.path.CopyFrom(client.parse_xpath_to_gnmi_path(top_element))
@@ -135,4 +137,4 @@
135137
set_update.val.json_ietf_val = json.dumps(update_json).encode("utf-8")
136138
set_result = client.set(updates=[set_update])
137139
print(set_result)
138-
# This may all seem somewhat obtuse, and that's what the client wrappers are for.
140+
# This may all seem somewhat obtuse, and that's what the client wrappers are for.

src/cisco_gnmi/builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class ClientBuilder(object):
8282
"NX-OS": NXClient,
8383
"NX": NXClient,
8484
"IOS XE": XEClient,
85-
"XE": XEClient
85+
"XE": XEClient,
8686
}
8787

8888
def __init__(self, target):

src/cisco_gnmi/cli.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ def main():
6464
6565
See <rpc> --help for RPC options.
6666
""".format(
67-
version=__version__,
68-
supported_rpcs="\n".join(sorted(list(rpc_map.keys())))
67+
version=__version__, supported_rpcs="\n".join(sorted(list(rpc_map.keys())))
6968
),
7069
)
7170
parser.add_argument("rpc", help="gNMI RPC to perform against network element.")

0 commit comments

Comments
 (0)