Commit d39fcc70 authored by ale's avatar ale
Browse files

add missing str2kv function

parent 6b20826c
......@@ -103,6 +103,10 @@ class Accounting(object):
return {'bytes_sent': 0, 'bytes_recv': 0, 'conn_time': 0}
def str2kv(args):
return dict(x.split('=', 1) for x in args)
def main():
parser = optparse.OptionParser()
parser.add_option('--db', dest='local_db', default='localhost',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment