Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
21f3a830
Commit
21f3a830
authored
Apr 09, 2009
by
Stefan H. Holek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove checks that cannot possibly fail.
parent
8ceb0180
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
src/Zope2/utilities/mkzopeinstance.py
src/Zope2/utilities/mkzopeinstance.py
+0
-9
No files found.
src/Zope2/utilities/mkzopeinstance.py
View file @
21f3a830
...
...
@@ -56,14 +56,8 @@ def main():
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 @@ def main():
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment