diff options
author | Samuli Seppänen <samuli@openvpn.net> | 2011-04-14 17:18:47 +0300 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2011-04-14 16:38:45 +0200 |
commit | f05b6d3302b3f204ebccb606ab52244316f08d09 (patch) | |
tree | 4203a7a14434cbcceb5de60286e4c5d7b7d8b4c9 /win/js.py | |
parent | Add man page entry for --redirect-private (diff) | |
download | openvpn-f05b6d3302b3f204ebccb606ab52244316f08d09.tar.xz |
Change all CRLF linefeeds to LF linefeeds
Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
Acked-by: David Sommerseth <davids@redhat.com>
Signed-off-by: David Sommerseth <davids@redhat.com>
(cherry picked from commit 6b2883a637fe73492f09816ee95b00c1b88d5fcb)
Diffstat (limited to 'win/js.py')
-rw-r--r-- | win/js.py | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -1,10 +1,10 @@ -import json
-
-# usage:
-# print JSON().encode(kv)
-
-class JSON(json.JSONEncoder):
- def __init__(self, **kwargs):
- args = dict(sort_keys=True, indent=2)
- args.update(kwargs)
- json.JSONEncoder.__init__(self, **args)
+import json + +# usage: +# print JSON().encode(kv) + +class JSON(json.JSONEncoder): + def __init__(self, **kwargs): + args = dict(sort_keys=True, indent=2) + args.update(kwargs) + json.JSONEncoder.__init__(self, **args) |