1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-14 02:50:12 +01:00

Port all imports to python3

This commit is contained in:
Daniel Martí 2016-01-04 17:37:35 +01:00
parent 11b8b1ca4f
commit 920ae4692f
17 changed files with 45 additions and 42 deletions

View File

@ -31,11 +31,11 @@ from ConfigParser import ConfigParser
from argparse import ArgumentParser
import logging
import common
import net
import metadata
import scanner
from common import FDroidException, BuildException, VCSException, FDroidPopen, SdkToolsPopen
from . import common
from . import net
from . import metadata
from . import scanner
from .common import FDroidException, BuildException, VCSException, FDroidPopen, SdkToolsPopen
try:
import paramiko

View File

@ -30,10 +30,10 @@ from distutils.version import LooseVersion
import logging
import copy
import common
import metadata
from common import VCSException, FDroidException
from metadata import MetaDataException
from . import common
from . import metadata
from .common import VCSException, FDroidException
from .metadata import MetaDataException
# Check for a new version by looking at a document retrieved via HTTP.

View File

@ -40,7 +40,7 @@ from queue import Queue
from zipfile import ZipFile
import fdroidserver.metadata
from fdroidserver.asynchronousfilereader import AsynchronousFileReader
from .asynchronousfilereader import AsynchronousFileReader
XMLElementTree.register_namespace('android', 'http://schemas.android.com/apk/res/android')

View File

@ -22,8 +22,8 @@ import glob
from argparse import ArgumentParser
import logging
import common
from common import FDroidPopen
from . import common
from .common import FDroidPopen
config = None
options = None

View File

@ -24,8 +24,9 @@ import urllib
from argparse import ArgumentParser
from ConfigParser import ConfigParser
import logging
import common
import metadata
from . import common
from . import metadata
# Get the repo type and address from the given web page. The page is scanned

View File

@ -27,7 +27,7 @@ import sys
from argparse import ArgumentParser
import logging
import common
from . import common
config = {}
options = None

View File

@ -23,8 +23,8 @@ import glob
from argparse import ArgumentParser
import logging
import common
from common import SdkToolsPopen, FDroidException
from . import common
from .common import SdkToolsPopen, FDroidException
options = None
config = None

View File

@ -21,9 +21,9 @@ import re
import sys
from sets import Set
import common
import metadata
import rewritemeta
from . import common
from . import metadata
from . import rewritemeta
config = None
options = None

View File

@ -25,9 +25,9 @@ import glob
from argparse import ArgumentParser
import logging
import common
import metadata
from common import FDroidPopen, SdkToolsPopen, BuildException
from . import common
from . import metadata
from .common import FDroidPopen, SdkToolsPopen, BuildException
config = None
options = None

View File

@ -17,8 +17,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from argparse import ArgumentParser
from fdroidserver import common
from fdroidserver import metadata
from . import common
from . import metadata
def main():

View File

@ -22,8 +22,8 @@ import os
import logging
import io
from fdroidserver import common
from fdroidserver import metadata
from . import common
from . import metadata
config = None
options = None

View File

@ -22,9 +22,9 @@ import traceback
from argparse import ArgumentParser
import logging
import common
import metadata
from common import BuildException, VCSException
from . import common
from . import metadata
from .common import BuildException, VCSException
config = None
options = None

View File

@ -25,7 +25,8 @@ import pwd
import subprocess
from argparse import ArgumentParser
import logging
import common
from . import common
config = None
options = None

View File

@ -21,8 +21,8 @@ import os
from argparse import ArgumentParser
import logging
import common
from common import FDroidPopen
from . import common
from .common import FDroidPopen
config = None
options = None

View File

@ -27,11 +27,12 @@ from argparse import ArgumentParser
import paramiko
import socket
import logging
import common
import metadata
import subprocess
from collections import Counter
from . import common
from . import metadata
def carbon_send(key, value):
s = socket.socket()

View File

@ -40,10 +40,10 @@ from binascii import hexlify, unhexlify
from PIL import Image
import logging
import common
import metadata
from common import FDroidPopen, SdkToolsPopen
from metadata import MetaDataException
from . import common
from . import metadata
from .common import FDroidPopen, SdkToolsPopen
from .metadata import MetaDataException
screen_densities = ['640', '480', '320', '240', '160', '120']

View File

@ -22,9 +22,9 @@ import glob
from argparse import ArgumentParser
import logging
import common
import net
from common import FDroidException
from . import common
from . import net
from .common import FDroidException
options = None
config = None