Skip to content

Commit

Permalink
created rtorrent.lib.xmlrpc.http
Browse files Browse the repository at this point in the history
  • Loading branch information
cjlucas committed Apr 18, 2013
1 parent 6c44fe8 commit f685da6
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
Empty file added rtorrent/lib/xmlrpc/__init__.py
Empty file.
23 changes: 23 additions & 0 deletions rtorrent/lib/xmlrpc/http.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright (c) 2013 Chris Lucas, <[email protected]>
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

from rtorrent.compat import xmlrpclib

HTTPServerProxy = xmlrpclib.ServerProxy
8 changes: 2 additions & 6 deletions rtorrent/rpc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,9 @@

import rtorrent
import re
from rtorrent.common import _py3, bool_to_int, convert_version_tuple_to_str
from rtorrent.common import bool_to_int, convert_version_tuple_to_str
from rtorrent.err import RTorrentVersionError, MethodError

if _py3:
import xmlrpc.client as xmlrpclib # @UnresolvedImport
else:
import xmlrpclib # @UnresolvedImport @Reimport
from rtorrent.compat import xmlrpclib


def get_varname(rpc_call):
Expand Down

0 comments on commit f685da6

Please sign in to comment.