Kaynağa Gözat

Fix up for Python 3.

Joe Clarke 4 yıl önce
ebeveyn
işleme
365fa16208

+ 2 - 2
automation/network/dhcp_metrics.py

@@ -1,6 +1,6 @@
 #!/usr/bin/env python3
 #
-# Copyright (c) 2017-2019  Joe Clarke <jclarke@cisco.com>
+# Copyright (c) 2017-2020  Joe Clarke <jclarke@cisco.com>
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
@@ -28,7 +28,7 @@ from flask import Flask
 from flask import Response
 import json
 import CLEUCreds
-from gevent.wsgi import WSGIServer
+from gevent.pywsgi import WSGIServer
 from cleu.config import Config as C
 
 

+ 2 - 0
automation/network/dhcp_metrics_requirements.txt

@@ -3,6 +3,8 @@ cffi==1.13.2
 Click==7.0
 cryptography==2.8
 Flask==1.1.1
+gevent==1.4.0
+greenlet==0.4.15
 ipaddress==1.0.23
 itsdangerous==1.1.0
 Jinja2==2.10.3