[Zope-Checkins] SVN: Zope/trunk/src/Zope2/utilities/mkzopeinstance.py Remove checks that cannot possibly fail.
Stefan H. Holek
stefan at epy.co.at
Thu Apr 9 11:50:58 EDT 2009
Log message for revision 99039:
Remove checks that cannot possibly fail.
Changed:
U Zope/trunk/src/Zope2/utilities/mkzopeinstance.py
-=-
Modified: Zope/trunk/src/Zope2/utilities/mkzopeinstance.py
===================================================================
--- Zope/trunk/src/Zope2/utilities/mkzopeinstance.py 2009-04-09 15:49:07 UTC (rev 99038)
+++ Zope/trunk/src/Zope2/utilities/mkzopeinstance.py 2009-04-09 15:50:58 UTC (rev 99039)
@@ -56,14 +56,8 @@
for opt, arg in opts:
if opt in ("-d", "--dir"):
skeltarget = os.path.abspath(os.path.expanduser(arg))
- if not skeltarget:
- usage(sys.stderr, "dir must not be empty")
- sys.exit(2)
if opt in ("-s", "--skelsrc"):
skelsrc = os.path.abspath(os.path.expanduser(arg))
- if not skelsrc:
- usage(sys.stderr, "skelsrc must not be empty")
- sys.exit(2)
if opt in ("-p", "--python"):
python = os.path.abspath(os.path.expanduser(arg))
if not os.path.exists(python) and os.path.isfile(python):
@@ -73,9 +67,6 @@
usage(sys.stdout)
sys.exit()
if opt in ("-u", "--user"):
- if not arg:
- usage(sys.stderr, "user must not be empty")
- sys.exit(2)
if not ":" in arg:
usage(sys.stderr, "user must be specified as name:password")
sys.exit(2)
More information about the Zope-Checkins
mailing list