From a1b33985d3cd136f7560112e66a6908af72ba919 Mon Sep 17 00:00:00 2001 From: Juhani Haverinen Date: Mon, 1 Aug 2016 21:04:32 +0300 Subject: [PATCH] Use enum.Enum --- neomi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neomi.py b/neomi.py index 12921a4..233eaff 100644 --- a/neomi.py +++ b/neomi.py @@ -1,3 +1,4 @@ +import enum import os import select import socket @@ -67,7 +68,7 @@ def drop_privileges(): except: die('Unable to drop privileges') -class Protocol: +class Protocol(enum.Enum): gopher, http = range(2) class RequestError(Exception):