diff roundup/backends/locking.py @ 1459:7e0bbefb2a72

reversing the "make it nicer" checkin
author Richard Jones <richard@users.sourceforge.net>
date Thu, 20 Feb 2003 22:56:49 +0000
parents 1159963f769c
children eeb167fb8faf
line wrap: on
line diff
--- a/roundup/backends/locking.py	Thu Feb 20 07:14:26 2003 +0000
+++ b/roundup/backends/locking.py	Thu Feb 20 22:56:49 2003 +0000
@@ -19,7 +19,7 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 # SOFTWARE.
 
-# $Id: locking.py,v 1.5 2003-02-14 00:08:32 richard Exp $
+# $Id: locking.py,v 1.6 2003-02-20 22:56:49 richard Exp $
 
 '''This module provides a generic interface to acquire and release
 exclusive access to a file.
@@ -27,6 +27,18 @@
 It should work on Unix and Windows.
 '''
 
+# portalocker has a 0xffff0000 constant, and I don't need to know about it
+# being positive in 2.4+ :)
+try:
+    x=FutureWarning
+    import warnings
+    warnings.filterwarnings("ignore",
+        r'hex/oct constants > sys\.maxint .*', FutureWarning,
+        'portalocker', 0)
+    del x
+except:
+    pass
+
 import portalocker
 
 def acquire_lock(path, block=1):

Roundup Issue Tracker: http://roundup-tracker.org/