Skip to content
This repository has been archived by the owner on Mar 2, 2024. It is now read-only.

Commit

Permalink
Escape quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoisin committed Nov 22, 2016
1 parent 3b3d93c commit da536e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nxapi/whitelist.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import shlex
import json
import pcre


Expand All @@ -7,7 +8,7 @@ def dict_to_str(wl):
if 'wl' in wl:
ret += 'wl:%s ' % ','.join(map(str, wl['wl']))
if 'mz' in wl:
ret += '"mz:%s" ' % ','.join(map(str, wl['mz']))
ret += json.dumps('mz:%s' % ','.join(map(str, wl['mz']))) + ' '
if 'msg' in wl:
ret += '"msg:%s"' % wl['msg']

Expand Down

0 comments on commit da536e9

Please sign in to comment.