Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
Nicolas Wavrant
ZODB
Commits
6a1571aa
Commit
6a1571aa
authored
Nov 20, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bogosities in error reporting.
Add -S to usage message.
parent
013116ab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
src/scripts/zeoup.py
src/scripts/zeoup.py
+12
-2
No files found.
src/scripts/zeoup.py
View file @
6a1571aa
...
@@ -15,6 +15,8 @@ Options:
...
@@ -15,6 +15,8 @@ Options:
-h host -- host to connect to (default is current host)
-h host -- host to connect to (default is current host)
-S storage -- storage name (default '1')
-U path -- Unix-domain socket to connect to
-U path -- Unix-domain socket to connect to
--nowrite -- Do not update the zeoup counter.
--nowrite -- Do not update the zeoup counter.
...
@@ -95,7 +97,10 @@ def main():
...
@@ -95,7 +97,10 @@ def main():
elif
o
==
'-1'
:
elif
o
==
'-1'
:
ZEO_VERSION
=
1
ZEO_VERSION
=
1
except
Exception
,
err
:
except
Exception
,
err
:
print
err
s
=
str
(
err
)
if
s
:
s
=
": "
+
s
print
err
.
__class__
.
__name__
+
s
usage
()
usage
()
if
unix
is
not
None
:
if
unix
is
not
None
:
...
@@ -112,6 +117,11 @@ def main():
...
@@ -112,6 +117,11 @@ def main():
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
try
:
try
:
main
()
main
()
except
SystemExit
:
raise
except
Exception
,
err
:
except
Exception
,
err
:
print
err
s
=
str
(
err
)
if
s
:
s
=
": "
+
s
print
err
.
__class__
.
__name__
+
s
sys
.
exit
(
1
)
sys
.
exit
(
1
)
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