Commit 1f476c43 authored by David Trudgian's avatar David Trudgian
Browse files

2-3 compat fixes

parent ebb651c8
from __future__ import print_function
import requests
import json
import sys
import click
from os import path, chdir
import tempfile
import subprocess
import sys
import http.server
import tempfile
from os import path, chdir
import click
import socketserver
from six.moves import SimpleHTTPServer
def check_image(image):
"""Check if specified image file exists"""
......@@ -50,6 +52,6 @@ def http_server(dir, ip, port):
sys.stderr.write("Serving Image to Clair from http://%s:%d\n" % (ip, port))
Handler = http.server.SimpleHTTPRequestHandler
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
httpd = socketserver.TCPServer((ip, port), Handler)
......@@ -3,7 +3,7 @@ Scan Singularity container images using CoreOS Clair.
from setuptools import find_packages, setup
dependencies = ['click', 'singularity']
dependencies = ['click', 'singularity', 'six']
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment