# Path: lib/config_parser.py
# CONNECTION_SCGI, CONNECTION_HTTP = list(range(2))
# class RTorrentConfigException(Exception):
# def _parse_config_part_connection(config_dict, name):
# def _parse_config_part_storage(config_dict, info):
# def parse_config_part(config_dict, name):
# def parse_user_part(config_dict, name):


import xmlrpc.client
from . import xmlrpc2scgi
from .config_parser import CONNECTION_HTTP, CONNECTION_SCGI
"""
XMLRPCLib Wrapper with support for SCGI over unix:// and network(ed) sockets.
(Also supports http://)
"""



class RTorrentXMLRPCException(Exception):
    pass

class RTorrentXMLRPC(object):

    def __init__(self, target):
        self.info = target


# Path: lib/config_parser.py
# CONNECTION_SCGI, CONNECTION_HTTP = list(range(2))
# class RTorrentConfigException(Exception):
# def _parse_config_part_connection(config_dict, name):
# def _parse_config_part_storage(config_dict, info):
# def parse_config_part(config_dict, name):
# def parse_user_part(config_dict, name):


# Path: lib/xmlrpc.py
import xmlrpc.client
from . import xmlrpc2scgi
from .config_parser import CONNECTION_HTTP, CONNECTION_SCGI

"""
XMLRPCLib Wrapper with support for SCGI over unix:// and network(ed) sockets.
(Also supports http://)
"""



class RTorrentXMLRPCException(Exception):
    pass

class RTorrentXMLRPC(object):

    def __init__(self, target):
        self.info = target


        if self.info['type'] == CONNECTION_HTTP: