Big commit for py3
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
from pysimplesoap.client import SoapClient
|
||||
|
||||
|
||||
class SoapReceiver:
|
||||
def __init__(self):
|
||||
self.client = SoapClient(
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user