Removed reference to FCNTL since it is not required anymore and the
authorjoey <>
Thu, 4 Aug 2005 17:25:00 +0000 (17:25 +0000)
committerjoey <>
Thu, 4 Aug 2005 17:25:00 +0000 (17:25 +0000)
LOCK_EX is now in fcntl (and working similar).

userdir_gpg.py

index 455ba3f..59e7400 100644 (file)
@@ -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;