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
c9fbe38d
Commit
c9fbe38d
authored
May 26, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed sys.exc_* usage
parent
f85c4752
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
lib/python/ZPublisher/Client.py
lib/python/ZPublisher/Client.py
+3
-3
lib/python/ZPublisher/HTTPRequest.py
lib/python/ZPublisher/HTTPRequest.py
+2
-2
No files found.
lib/python/ZPublisher/Client.py
View file @
c9fbe38d
...
...
@@ -103,7 +103,7 @@ that allows one to simply make a single web request.
The module also provides a command-line interface for calling objects.
"""
__version__
=
'$Revision: 1.3
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
4
$'
[
11
:
-
2
]
import
sys
,
regex
,
socket
,
mimetools
from
httplib
import
HTTP
...
...
@@ -219,7 +219,7 @@ class Function:
response
=
h
.
getfile
().
read
()
except
:
raise
NotAvailable
,
RemoteException
(
NotAvailable
,
sys
.
exc_
value
,
self
.
url
,
query
)
NotAvailable
,
sys
.
exc_
info
()[
1
]
,
self
.
url
,
query
)
if
ec
==
200
:
return
(
headers
,
response
)
self
.
handleError
(
query
,
ec
,
em
,
headers
,
response
)
...
...
@@ -294,7 +294,7 @@ class Function:
finally
:
if
0
:
raise
NotAvailable
,
(
RemoteException
(
NotAvailable
,
sys
.
exc_
value
,
RemoteException
(
NotAvailable
,
sys
.
exc_
info
()[
1
]
,
self
.
url
,
'<MultiPart Form>'
))
if
ec
==
200
:
return
(
headers
,
response
)
...
...
lib/python/ZPublisher/HTTPRequest.py
View file @
c9fbe38d
...
...
@@ -83,7 +83,7 @@
#
##############################################################################
__version__
=
'$Revision: 1.3
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
3
$'
[
11
:
-
2
]
import
regex
,
sys
,
os
,
string
from
string
import
lower
,
atoi
,
rfind
,
split
,
strip
,
join
,
upper
,
find
...
...
@@ -655,7 +655,7 @@ class HTTPRequest(BaseRequest):
except
:
rsp
.
exception
(
abort
=
0
)
if
object
is
None
:
req
.
close
()
raise
rsp
.
errmsg
,
sys
.
exc_
value
raise
rsp
.
errmsg
,
sys
.
exc_
info
()[
1
]
# The traversal machinery may return a "default object"
# like an index_html document. This is not appropriate
...
...
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