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
d0d45c5e
Commit
d0d45c5e
authored
5 years ago
by
Stuart D. Gathman
Browse files
Options
Downloads
Patches
Plain Diff
ZipFile.setpassword() takes bytes in python3
parent
a1714f48
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
testmime.py
+1
-1
1 addition, 1 deletion
testmime.py
testsample.py
+1
-1
1 addition, 1 deletion
testsample.py
with
2 additions
and
2 deletions
testmime.py
+
1
−
1
View file @
d0d45c5e
...
@@ -54,7 +54,7 @@ class MimeTestCase(unittest.TestCase):
...
@@ -54,7 +54,7 @@ class MimeTestCase(unittest.TestCase):
def
setUp
(
self
):
def
setUp
(
self
):
self
.
zf
=
zipfile
.
ZipFile
(
'
test/virus.zip
'
,
'
r
'
)
self
.
zf
=
zipfile
.
ZipFile
(
'
test/virus.zip
'
,
'
r
'
)
self
.
zf
.
setpassword
(
'
denatured
'
)
self
.
zf
.
setpassword
(
b
'
denatured
'
)
def
tearDown
(
self
):
def
tearDown
(
self
):
self
.
zf
.
close
()
self
.
zf
.
close
()
...
...
This diff is collapsed.
Click to expand it.
testsample.py
+
1
−
1
View file @
d0d45c5e
...
@@ -15,7 +15,7 @@ class BMSMilterTestCase(unittest.TestCase):
...
@@ -15,7 +15,7 @@ class BMSMilterTestCase(unittest.TestCase):
def
setUp
(
self
):
def
setUp
(
self
):
self
.
zf
=
zipfile
.
ZipFile
(
'
test/virus.zip
'
,
'
r
'
)
self
.
zf
=
zipfile
.
ZipFile
(
'
test/virus.zip
'
,
'
r
'
)
self
.
zf
.
setpassword
(
'
denatured
'
)
self
.
zf
.
setpassword
(
b
'
denatured
'
)
def
tearDown
(
self
):
def
tearDown
(
self
):
self
.
zf
.
close
()
self
.
zf
.
close
()
...
...
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