Skip to content

Commit e635c4a

Browse files
author
Richard Jones
committed
cleanup
1 parent 94ddde6 commit e635c4a

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

demo.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,16 @@
22
#
33
# Copyright (c) 2003 Richard Jones ([email protected])
44
#
5-
# $Id: demo.py,v 1.2 2003-05-11 07:33:55 richard Exp $
5+
# $Id: demo.py,v 1.3 2003-05-16 01:44:43 richard Exp $
66

77
import sys, os, string, re, urlparse
88
import shutil, socket, errno, BaseHTTPServer
99
from glob import glob
1010

1111
def install_demo(home):
1212
# create the instance
13-
try:
14-
if os.path.exists(home):
15-
shutil.rmtree(home)
16-
except os.error, error:
17-
if error.errno != errno.ENOENT:
18-
raise
13+
if os.path.exists(home):
14+
shutil.rmtree(home)
1915
from roundup import init, instance, password
2016
init.install(home, os.path.join('templates', 'classic'))
2117
# don't have email flying around

0 commit comments

Comments
 (0)