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
6d1a19df
Commit
6d1a19df
authored
Jul 09, 2003
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- delay import of the rotor module; this avoids deprecation warnings
when it isn't actually used (like in the unit tests...)
parent
a03786ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
lib/python/App/Product.py
lib/python/App/Product.py
+5
-2
No files found.
lib/python/App/Product.py
View file @
6d1a19df
...
...
@@ -34,7 +34,7 @@
# on restart if there is still a product directory.
import
os
,
re
,
zlib
,
marshal
,
rotor
,
cPickle
import
os
,
re
,
zlib
,
marshal
,
cPickle
from
cgi
import
escape
from
urllib
import
quote
...
...
@@ -197,6 +197,7 @@ class Product(Folder, PermissionManager):
id
=
self
.
id
import
rotor
import
tar
rot
=
rotor
.
newrotor
(
id
+
' shshsh'
)
ar
=
tar
.
tgzarchive
(
"%s-%s"
%
(
id
,
self
.
version
))
...
...
@@ -437,7 +438,9 @@ class CompressedInputFile:
def
__init__
(
self
,
f
,
rot
):
self
.
_c
=
zlib
.
decompressobj
()
self
.
_b
=
''
if
type
(
rot
)
is
type
(
''
):
rot
=
rotor
.
newrotor
(
rot
)
if
isinstance
(
rot
,
str
):
import
rotor
rot
=
rotor
.
newrotor
(
rot
)
self
.
_rot
=
rot
rot
.
decrypt
(
''
)
self
.
_f
=
f
...
...
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