Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pymilter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
misc
pymilter
Commits
55e53786
Commit
55e53786
authored
6 years ago
by
Stuart D. Gathman
Browse files
Options
Downloads
Patches
Plain Diff
Move py3 sgmllib to an internal module - Scott Kitterman
parent
f9b2241e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Milter/sgmllib.py
+0
-0
0 additions, 0 deletions
Milter/sgmllib.py
mime.py
+4
-1
4 additions, 1 deletion
mime.py
setup.py
+0
-3
0 additions, 3 deletions
setup.py
with
4 additions
and
4 deletions
sgmllib.py
→
Milter/
sgmllib.py
+
0
−
0
View file @
55e53786
File moved
This diff is collapsed.
Click to expand it.
mime.py
+
4
−
1
View file @
55e53786
...
@@ -401,7 +401,10 @@ class _defang:
...
@@ -401,7 +401,10 @@ class _defang:
# emulate old defang function
# emulate old defang function
defang
=
_defang
()
defang
=
_defang
()
if
sys
.
version
<
'
3.0.0
'
:
from
sgmllib
import
SGMLParser
as
HTMLParser
from
sgmllib
import
SGMLParser
as
HTMLParser
else
:
from
Milter.sgmllib
import
SGMLParser
as
HTMLParser
import
re
import
re
declname
=
re
.
compile
(
r
'
[a-zA-Z][-_.a-zA-Z0-9]*\s*
'
)
declname
=
re
.
compile
(
r
'
[a-zA-Z][-_.a-zA-Z0-9]*\s*
'
)
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
0
−
3
View file @
55e53786
...
@@ -12,9 +12,6 @@ if sys.version < '2.6.5':
...
@@ -12,9 +12,6 @@ if sys.version < '2.6.5':
libs
=
[
"
milter
"
]
libs
=
[
"
milter
"
]
libdirs
=
[
"
/usr/lib/libmilter
"
]
# needed for Debian
libdirs
=
[
"
/usr/lib/libmilter
"
]
# needed for Debian
modules
=
[
"
mime
"
]
modules
=
[
"
mime
"
]
if
sys
.
version
>=
'
3
'
:
modules
.
append
(
"
sgmllib
"
)
print
(
"
modules=
"
,
modules
)
# NOTE: importing Milter to obtain version fails when milter.so not built
# NOTE: importing Milter to obtain version fails when milter.so not built
setup
(
name
=
"
pymilter
"
,
version
=
'
1.0.2
'
,
setup
(
name
=
"
pymilter
"
,
version
=
'
1.0.2
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment