X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Futils%2Ffilelock.py;h=128815a8fb179ff478fbce89472f114631416331;hb=4ea8f2fe3f29fe09e7a3ab60ac781d54841db5bb;hp=8f7065f7a4ff24af923ee779b6a46eead8775a9b;hpb=71500abd7ef16784d027a8a20aa28b06e8a13a4f;p=mpd-sima.git diff --git a/sima/utils/filelock.py b/sima/utils/filelock.py index 8f7065f..128815a 100644 --- a/sima/utils/filelock.py +++ b/sima/utils/filelock.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Copyright (c) 2009 Evan Fosmark -# Copyright (c) 2014 Jack Kaliko +# Copyright (c) 2014 kaliko # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -31,9 +31,10 @@ import errno import os import time + class FileLockException(Exception): """FileLock Exception""" - pass + class FileLock: """ A plain file lock whit context-manager"""