papercut (0.9.13-7) portable_locker.py

Summary

 portable_locker.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

    
download this patch

Patch contents

--- papercut-0.9.13.orig/portable_locker.py
+++ papercut-0.9.13/portable_locker.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 # $Id: portable_locker.py,v 1.2 2002/10/03 01:05:24 jpm Exp $
 
 # Note: this was originally from Python Cookbook, which was 
@@ -8,6 +7,7 @@
 
 # needs win32all to work on Windows
 if os.name == 'nt':
+    """
     import win32con, win32file, pywintypes
     LOCK_EX = win32con.LOCKFILE_EXCLUSIVE_LOCK
     LOCK_SH = 0 # the default
@@ -21,6 +21,7 @@
     def unlock(fd):
         hfile = win32file._get_osfhandle(fd.fileno(  ))
         win32file.UnlockFileEx(hfile, 0, 0xffff0000, __overlapped)
+    """
 
 elif os.name == 'posix':
     import fcntl