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

Commit

Permalink
Add an helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien (jvoisin) Voisin committed Jun 1, 2016
1 parent 230e990 commit d6adc10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nxapi/whitelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
import pcre


def dict_to_str(wl):
return 'BasicRule wl:%s "mz:%s" ;' % (','.join(map(str, wl['wl'])), '|'.join(wl['mz']))


def parse(str_wl):
"""
Expand Down

0 comments on commit d6adc10

Please sign in to comment.