python3 porting 1: Essential files #2280
@ -1,8 +1,9 @@
|
||||
#!/usr/bin/env python2.7
|
||||
|
||||
import collectd
|
||||
import json
|
||||
import xmlrpclib
|
||||
|
||||
import collectd
|
||||
from six.moves import xmlrpc_client as xmlrpclib
|
||||
|
||||
pybmurl = ""
|
||||
api = ""
|
||||
|
8
setup.py
8
setup.py
@ -4,14 +4,14 @@ import os
|
||||
import platform
|
||||
import shutil
|
||||
import sys
|
||||
|
||||
from importlib import import_module
|
||||
from setuptools import setup, Extension
|
||||
|
||||
import six
|
||||
from setuptools import Extension, setup
|
||||
from setuptools.command.install import install
|
||||
|
||||
from src.version import softwareVersion
|
||||
|
||||
|
||||
EXTRAS_REQUIRE = {
|
||||
'docs': ['sphinx'],
|
||||
'gir': ['pygobject'],
|
||||
@ -83,7 +83,7 @@ if __name__ == "__main__":
|
||||
'images/kivy/text_images*.png'
|
||||
]}
|
||||
|
||||
if sys.version_info[0] == 3:
|
||||
if six.PY3:
|
||||
packages.extend(
|
||||
[
|
||||
'pybitmessage.bitmessagekivy',
|
||||
|
@ -70,6 +70,7 @@ from struct import pack, unpack
|
||||
|
||||
import six
|
||||
from six.moves import configparser, http_client, xmlrpc_server
|
||||
from six.moves.reprlib import repr
|
||||
|
||||
import helper_inbox
|
||||
import helper_sent
|
||||
|
Reference in New Issue
Block a user