From 1c6b42d9e59747bdeb881758b344773e8f61bb1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Mand=C3=A1k?= Date: Wed, 27 Jan 2016 14:20:09 +0100 Subject: [PATCH] Removed dependency on `enum` module. --- i3pystatus/timer.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/i3pystatus/timer.py b/i3pystatus/timer.py index 5923035..4013ac2 100644 --- a/i3pystatus/timer.py +++ b/i3pystatus/timer.py @@ -1,4 +1,3 @@ -from enum import Enum import time from i3pystatus import IntervalModule @@ -6,7 +5,7 @@ from i3pystatus.core.command import execute from i3pystatus.core.util import TimeWrapper -class TimerState(Enum): +class TimerState: stopped = 0 running = 1 overflow = 2 @@ -25,11 +24,6 @@ class Timer(IntervalModule): - Execute custom python function or external command when timer overflows (or reaches zero depending on how you look at it). - .. note:: - This module requires `enum` module which was introduced in python 3.4. - If you have older version of python you can get the backported package - ``enum34`` from PyPI. - .. rubric:: Available formatters Time formatters are available to show the remaining time.