From: joey <> Date: Thu, 4 Aug 2005 17:25:00 +0000 (+0000) Subject: Removed reference to FCNTL since it is not required anymore and the X-Git-Tag: userdir-ldap-0.3.11~5 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=commitdiff_plain;h=c1f768412991931629160580640b1850609b2b5a Removed reference to FCNTL since it is not required anymore and the LOCK_EX is now in fcntl (and working similar). --- diff --git a/userdir_gpg.py b/userdir_gpg.py index 455ba3f..59e7400 100644 --- a/userdir_gpg.py +++ b/userdir_gpg.py @@ -27,7 +27,7 @@ # pgp2 encrypting mode. import string, mimetools, multifile, sys, StringIO, os, tempfile, re; -import rfc822, time, fcntl, FCNTL, anydbm +import rfc822, time, fcntl, anydbm # General GPG options GPGPath = "gpg" @@ -485,7 +485,7 @@ def TemplateSubst(Map,Template): class ReplayCache: def __init__(self,Database): self.Lock = open(Database + ".lock","w",0600); - fcntl.flock(self.Lock.fileno(),FCNTL.LOCK_EX); + fcntl.flock(self.Lock.fileno(),fcntl.LOCK_EX); self.DB = anydbm.open(Database,"c",0600); self.CleanCutOff = CleanCutOff; self.AgeCutOff = AgeCutOff;