Big commit for py3

This commit is contained in:
jar3b
2016-04-22 14:30:05 +03:00
parent 9ed372857e
commit c7f0de74a5
15 changed files with 103 additions and 63 deletions

View File

@@ -9,7 +9,7 @@ import requests
from aore.config import Folders, UnrarConfig
from aore.miscutils.exceptions import FiasException
from aoxmltableentry import AoXmlTableEntry
from .aoxmltableentry import AoXmlTableEntry
class AoRar:

View File

@@ -2,6 +2,7 @@
from pysimplesoap.client import SoapClient
class SoapReceiver:
def __init__(self):
self.client = SoapClient(

View File

@@ -62,9 +62,9 @@ class Updater:
mode = None
while not mode:
try:
mode = int(raw_input('Enter FIAS update version (3 digit):'))
mode = int(input('Enter FIAS update version (3 digit):'))
except ValueError:
print "Not a valid fias version, try again."
print("Not a valid fias version, try again.")
return mode

View File

@@ -7,7 +7,8 @@ class XMLParser:
def __init__(self, parse_function):
self.parse_function = parse_function
def fast_iter(self, context, func, *args, **kwargs):
@staticmethod
def fast_iter(context, func, *args, **kwargs):
for event, elem in context:
# print event
func(elem, *args, **kwargs)