$OpenBSD: patch-Lib_tempfile_py,v 1.2 2002/05/11 21:35:13 matt Exp $
--- Lib/tempfile.py.orig	Fri Mar  2 00:51:16 2001
+++ Lib/tempfile.py	Fri May 10 21:47:43 2002
@@ -4,7 +4,7 @@
 # how to choose a temp directory or filename on MS-DOS or other
 # systems so it may have to be changed...
 
-import os
+import os, sys
 
 __all__ = ["mktemp", "TemporaryFile", "tempdir", "gettempprefix"]
 
@@ -21,7 +21,10 @@ def gettempdir():
         pwd = os.getcwd()
     except (AttributeError, os.error):
         pwd = os.curdir
-    attempdirs = ['/tmp', '/var/tmp', '/usr/tmp', pwd]
+    if sys.platform[0:7] == 'openbsd':
+        attempdirs = ['/tmp', '/var/tmp', pwd]
+    else:
+        attempdirs = ['/tmp', '/var/tmp', '/usr/tmp', pwd]
     if os.name == 'nt':
         attempdirs.insert(0, 'C:\\TEMP')
         attempdirs.insert(0, '\\TEMP')
