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
91c56577
Commit
91c56577
authored
Apr 28, 2001
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
raw-fiy all substrings of decapitate header_re regex.
parent
d203d2a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
lib/python/Shared/DC/ZRDB/Aqueduct.py
lib/python/Shared/DC/ZRDB/Aqueduct.py
+6
-6
No files found.
lib/python/Shared/DC/ZRDB/Aqueduct.py
View file @
91c56577
...
...
@@ -84,8 +84,8 @@
##############################################################################
__doc__
=
'''Shared classes and functions
$Id: Aqueduct.py,v 1.4
6 2001/04/28 06:10:27
chrism Exp $'''
__version__
=
'$Revision: 1.4
6
$'
[
11
:
-
2
]
$Id: Aqueduct.py,v 1.4
7 2001/04/28 07:21:59
chrism Exp $'''
__version__
=
'$Revision: 1.4
7
$'
[
11
:
-
2
]
import
Globals
,
os
from
Globals
import
Persistent
...
...
@@ -409,10 +409,10 @@ def nicify(name):
def
decapitate
(
html
,
RESPONSE
=
None
,
header_re
=
re
.
compile
(
r'(('
'[^
\
000
- <>:]+:[^
\
n
]*
\
n
'
'|'
'[
\
011
]+[^
\
000
- ][^
\
n
]*
\
n
'
')+)[
\
t
]*
\
n
([
\
000
-
\
377
]+)'
r
'[^\000- <>:]+:[^\n]*\n'
r
'|'
r
'[ \011]+[^\000- ][^\n]*\n'
r
')+)[ \t]*\n([\000-\377]+)'
),
# please kill me now
space_re
=
re
.
compile
(
r'([ \t]+)'
),
name_re
=
re
.
compile
(
r'([^\000- <>:]+):([^\n]*)'
),
...
...
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