1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-04-27 10:20:49 +00:00

configure with python3 (#53)

* configure with python3

* remove future
This commit is contained in:
Xiangyue Cai 2020-06-08 15:09:06 +08:00 committed by GitHub
parent 9a307a916c
commit b0079d2a0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 1 additions and 14 deletions

View File

@ -98,7 +98,7 @@ PKG_CHECK_MODULES(JANSSON, [jansson >= $JANSSON_REQUIRED])
AC_SUBST(JANSSON_CFLAGS)
AC_SUBST(JANSSON_LIBS)
AM_PATH_PYTHON([2.4])
AM_PATH_PYTHON([3.5])
if test "$bwin32" = true; then
if test x$PYTHON_DIR != x; then
# set pyexecdir to somewhere like /c/Python26/Lib/site-packages

View File

@ -1,4 +1,3 @@
from builtins import object
import json
from .common import SearpcError

View File

@ -2,9 +2,6 @@
RPC client/server implementation based on named pipe transport.
"""
from future import standard_library
standard_library.install_aliases()
from builtins import object
import json
import logging
import os

View File

@ -1,8 +1,5 @@
#!/usr/bin/python
from __future__ import print_function
from builtins import str
import string
import sys

View File

@ -1,5 +1,3 @@
from builtins import str
from builtins import object
import json
from .common import SearpcError

View File

@ -1,7 +1,6 @@
#!/usr/bin/env python
#coding: UTF-8
from builtins import object
import json
import logging
import os

View File

@ -1,5 +1,3 @@
from builtins import object
class SearpcTransport(object):
"""
A transport is repsonsible to send the serialized request to the

View File

@ -1,4 +1,3 @@
from builtins import bytes
import os
import socket