diff roundup/init.py @ 113:2ab86442799a

Replaced errno integers with their module values. De-tabbed templatebuilder.py
author Richard Jones <richard@users.sourceforge.net>
date Sat, 28 Jul 2001 07:59:53 +0000
parents d95a03480fd1
children 0791d13baea7
line wrap: on
line diff
--- a/roundup/init.py	Sat Jul 28 07:35:27 2001 +0000
+++ b/roundup/init.py	Sat Jul 28 07:59:53 2001 +0000
@@ -1,6 +1,6 @@
-# $Id: init.py,v 1.6 2001-07-24 11:18:25 anthonybaxter Exp $
+# $Id: init.py,v 1.7 2001-07-28 07:59:53 richard Exp $
 
-import os, shutil, sys
+import os, shutil, sys, errno
 
 def copytree(src, dst, symlinks=0):
     """Recursively copy a directory tree using copy2().
@@ -19,7 +19,7 @@
     try:
         os.mkdir(dst)
     except OSError, error:
-        if error.errno != 17: raise
+        if error.errno != errno.EEXIST: raise
     for name in names:
         srcname = os.path.join(src, name)
         dstname = os.path.join(dst, name)
@@ -57,6 +57,9 @@
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.6  2001/07/24 11:18:25  anthonybaxter
+# oops. left a print in
+#
 # Revision 1.5  2001/07/24 10:54:11  anthonybaxter
 # oops. Html.
 #

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