Python3 courtesy of www.pythonconverter.com

This commit is contained in:
2018-09-07 05:54:23 +00:00
parent eedb21e21b
commit c584f7bf6e
5 changed files with 9 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
FROM python:2.7.15-alpine3.8
FROM python:3.7.0-alpine3.8
LABEL maintainer="Evan Richardson"
LABEL version="1.0"
@@ -6,9 +6,9 @@ LABEL version="1.0"
WORKDIR /app
COPY . /app
ENV PYTHONPATH=/app/src/python
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
RUN rm -rf /var/cache/apk
RUN pip3 install --upgrade pip
RUN pip3 install -r requirements.txt
#RUN rm -rf /var/cache/apk
CMD ["/app/src/bin/tHome-eagle.py", "-c", "/app/src/conf"]

View File

@@ -1,5 +1,5 @@
#=============================================================================
import StringIO
import io
#=============================================================================
class Data:

View File

@@ -24,7 +24,7 @@ class Error ( Exception ):
exception.add( msg )
raise exception, None, trace
raise exception.with_traceback(trace)
#-----------------------------------------------------------------------
@staticmethod
@@ -34,7 +34,7 @@ class Error ( Exception ):
newError = Error( str( exception ) )
newError.add( msg )
raise newError, None, trace
raise newError.with_traceback(trace)
#-----------------------------------------------------------------------
def __init__( self, msg ):

View File

@@ -21,7 +21,7 @@ def fimport( filePath ):
# Create a new module and exec the code in it's context.
m = imp.new_module( rootName )
m.__file__ = absPath
exec code in m.__dict__
exec(code, m.__dict__)
# Return the module object.
return m

View File

@@ -3,7 +3,7 @@
# Dump hex bytes to a table.
#
#===========================================================================
import StringIO
import io
#===========================================================================
def dump( buf ):