Skip to content

Commit

Permalink
configure with python3 (#53)
Browse files Browse the repository at this point in the history
* configure with python3

* remove future
  • Loading branch information
caixiangyue committed Jun 8, 2020
1 parent 9a307a9 commit b0079d2
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion pysearpc/client.py
@@ -1,4 +1,3 @@
from builtins import object
import json
from .common import SearpcError

Expand Down
3 changes: 0 additions & 3 deletions pysearpc/named_pipe.py
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions pysearpc/pygencode.py
@@ -1,8 +1,5 @@
#!/usr/bin/python


from __future__ import print_function
from builtins import str
import string
import sys

Expand Down
2 changes: 0 additions & 2 deletions pysearpc/server.py
@@ -1,5 +1,3 @@
from builtins import str
from builtins import object
import json

from .common import SearpcError
Expand Down
1 change: 0 additions & 1 deletion pysearpc/test_pysearpc.py
@@ -1,7 +1,6 @@
#!/usr/bin/env python
#coding: UTF-8

from builtins import object
import json
import logging
import os
Expand Down
2 changes: 0 additions & 2 deletions pysearpc/transport.py
@@ -1,5 +1,3 @@

from builtins import object
class SearpcTransport(object):
"""
A transport is repsonsible to send the serialized request to the
Expand Down
1 change: 0 additions & 1 deletion pysearpc/utils.py
@@ -1,4 +1,3 @@
from builtins import bytes
import os
import socket

Expand Down

0 comments on commit b0079d2

Please sign in to comment.