]> git.proxmox.com Git - mirror_frr.git/blobdiff - python/clidef.py
Merge pull request #2055 from opensourcerouting/fix-pathspace
[mirror_frr.git] / python / clidef.py
index 6a69986323c3844c4169783926f571e24c15f78e..2e5590964715b3db3c24b8211a9d1462db96c624 100644 (file)
@@ -186,10 +186,8 @@ def process_file(fn, ofd, dumpfd, all_defun):
     filedata = clippy.parse(fn)
 
     for entry in filedata['data']:
-        if entry['type'] == 'DEFPY' or (all_defun and entry['type'].startswith('DEFUN')):
+        if entry['type'].startswith('DEFPY') or (all_defun and entry['type'].startswith('DEFUN')):
             cmddef = entry['args'][2]
-            for i in cmddef:
-                assert i.startswith('"') and i.endswith('"')
             cmddef = ''.join([i[1:-1] for i in cmddef])
 
             graph = clippy.Graph(cmddef)