Commit 84c9dd17 authored by Matt Traudt's avatar Matt Traudt
Browse files

FileLock shouldn't assert that fname is a dir

parent 1e9a7baf
......@@ -37,6 +37,5 @@ class DirectoryLock(_FLock):
class FileLock(_FLock):
def __init__(self, fname):
assert os.path.isdir(fname)
lock_fname = fname + '.lockfile'
super().__init__(lock_fname)
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