Skip to content

Commit

Permalink
fix #197: use python3 for xmlrpcserver, too
Browse files Browse the repository at this point in the history
  • Loading branch information
abma committed Apr 8, 2017
1 parent 759733a commit 5d76d63
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions XmlRpcServer.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#!/usr/bin/python
#!/usr/bin/python3
# coding=utf-8
# This file is part of the uberserver (GPL v2 or later), see LICENSE
# xmlrpc class for auth of replays.springrts.com
#
# TODO:
# - move SQLAlchemy calls to SQLUsers.py

import BaseHTTPServer
from SimpleXMLRPCServer import SimpleXMLRPCServer
from xmlrpc.server import SimpleXMLRPCServer
from base64 import b64encode
import os.path
import logging
Expand Down Expand Up @@ -40,12 +39,6 @@
engine = sqlalchemy.create_engine(sqlurl)
userdb = SQLUsers.UsersHandler(None, engine)

def _xmlrpclog(self, format, *args):
logger.debug("%s - %s" , self.client_address[0], format%args)

# overwrite default logger, because it will otherwise spam main server log
BaseHTTPServer.BaseHTTPRequestHandler.log_message = _xmlrpclog

class XmlRpcServer(object):
"""
XMLRPC service, exported functions are in class _RpcFuncs
Expand Down

0 comments on commit 5d76d63

Please sign in to comment.