Fix python3 compatibility

This commit is contained in:
2021-04-26 18:31:20 +02:00
parent a6491fd87f
commit eb8380fa5b
9 changed files with 9 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
FROM alpine:3.13
RUN apk add --no-cache nginx nginx-mod-mail python py-jinja2 certbot openssl
RUN apk add --no-cache nginx nginx-mod-mail python3 py3-jinja2 certbot openssl
# added to fix #522
RUN apk add --no-cache py-requests-toolbelt py-pip
RUN pip install "idna<2.7"

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
import jinja2
import os

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
import os
import time

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
import os
import subprocess