Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
ZEO
Commits
0f49c73a
Commit
0f49c73a
authored
Apr 11, 2011
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lots of code cleanups.
https://bugs.launchpad.net/zodb/+bug/677751
parent
c8757706
Changes
35
Show whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
19 additions
and
67 deletions
+19
-67
src/ZEO/ServerStub.py
src/ZEO/ServerStub.py
+0
-1
src/ZEO/StorageServer.py
src/ZEO/StorageServer.py
+0
-1
src/ZEO/hash.py
src/ZEO/hash.py
+0
-2
src/ZEO/monitor.py
src/ZEO/monitor.py
+0
-2
src/ZEO/runzeo.py
src/ZEO/runzeo.py
+1
-1
src/ZEO/scripts/cache_simul.py
src/ZEO/scripts/cache_simul.py
+0
-2
src/ZEO/tests/ConnectionTests.py
src/ZEO/tests/ConnectionTests.py
+0
-2
src/ZEO/tests/testZEOOptions.py
src/ZEO/tests/testZEOOptions.py
+0
-1
src/ZEO/tests/test_cache.py
src/ZEO/tests/test_cache.py
+0
-1
src/ZEO/zrpc/client.py
src/ZEO/zrpc/client.py
+0
-2
src/ZEO/zrpc/connection.py
src/ZEO/zrpc/connection.py
+0
-6
src/ZODB/Connection.py
src/ZODB/Connection.py
+1
-2
src/ZODB/DB.py
src/ZODB/DB.py
+0
-1
src/ZODB/ExportImport.py
src/ZODB/ExportImport.py
+4
-4
src/ZODB/FileStorage/FileStorage.py
src/ZODB/FileStorage/FileStorage.py
+0
-1
src/ZODB/FileStorage/fsdump.py
src/ZODB/FileStorage/fsdump.py
+0
-1
src/ZODB/FileStorage/tests.py
src/ZODB/FileStorage/tests.py
+0
-1
src/ZODB/MappingStorage.py
src/ZODB/MappingStorage.py
+0
-1
src/ZODB/scripts/analyze.py
src/ZODB/scripts/analyze.py
+0
-1
src/ZODB/scripts/manual_tests/testfstest.py
src/ZODB/scripts/manual_tests/testfstest.py
+0
-2
src/ZODB/scripts/migrateblobs.py
src/ZODB/scripts/migrateblobs.py
+3
-3
src/ZODB/scripts/referrers.py
src/ZODB/scripts/referrers.py
+0
-3
src/ZODB/tests/Corruption.py
src/ZODB/tests/Corruption.py
+1
-1
src/ZODB/tests/HistoryStorage.py
src/ZODB/tests/HistoryStorage.py
+1
-2
src/ZODB/tests/MVCCMappingStorage.py
src/ZODB/tests/MVCCMappingStorage.py
+0
-4
src/ZODB/tests/RecoveryStorage.py
src/ZODB/tests/RecoveryStorage.py
+1
-1
src/ZODB/tests/testCache.py
src/ZODB/tests/testCache.py
+0
-1
src/ZODB/tests/testConnection.py
src/ZODB/tests/testConnection.py
+1
-3
src/ZODB/tests/testDB.py
src/ZODB/tests/testDB.py
+1
-2
src/ZODB/tests/testZODB.py
src/ZODB/tests/testZODB.py
+1
-3
src/ZODB/tests/test_storage.py
src/ZODB/tests/test_storage.py
+1
-2
src/ZODB/tests/testconflictresolution.py
src/ZODB/tests/testconflictresolution.py
+0
-1
src/ZODB/tests/testpersistentclass.py
src/ZODB/tests/testpersistentclass.py
+0
-1
src/ZODB/tests/util.py
src/ZODB/tests/util.py
+3
-4
src/ZODB/utils.py
src/ZODB/utils.py
+0
-1
No files found.
src/ZEO/ServerStub.py
View file @
0f49c73a
...
...
@@ -13,7 +13,6 @@
##############################################################################
"""RPC stubs for interface exported by StorageServer."""
import
os
import
time
from
ZODB.utils
import
z64
...
...
src/ZEO/StorageServer.py
View file @
0f49c73a
...
...
@@ -26,7 +26,6 @@ from ZEO.Exceptions import AuthError
from
ZEO.monitor
import
StorageStats
,
StatsServer
from
ZEO.zrpc.connection
import
ManagedServerConnection
,
Delay
,
MTDelay
,
Result
from
ZEO.zrpc.server
import
Dispatcher
from
ZEO.zrpc.trigger
import
trigger
from
ZODB.ConflictResolution
import
ResolvedSerial
from
ZODB.loglevels
import
BLATHER
from
ZODB.POSException
import
StorageError
,
StorageTransactionError
...
...
src/ZEO/hash.py
View file @
0f49c73a
...
...
@@ -16,8 +16,6 @@
in favor of using hashlib for both. This class allows for compatibility
between versions."""
import
sys
try
:
import
hashlib
sha1
=
hashlib
.
sha1
...
...
src/ZEO/monitor.py
View file @
0f49c73a
...
...
@@ -22,8 +22,6 @@ import time
import
types
import
logging
import
ZEO
zeo_version
=
'unknown'
try
:
import
pkg_resources
...
...
src/ZEO/runzeo.py
View file @
0f49c73a
...
...
@@ -41,7 +41,7 @@ import signal
import
socket
import
logging
import
ZConfig
,
ZConfig
.
datatypes
import
ZConfig.datatypes
import
ZEO
from
zdaemon.zdoptions
import
ZDOptions
...
...
src/ZEO/scripts/cache_simul.py
View file @
0f49c73a
...
...
@@ -33,11 +33,9 @@ Note:
import
bisect
import
getopt
import
math
import
struct
import
re
import
sys
import
time
import
ZEO.cache
from
ZODB.utils
import
z64
,
u64
...
...
src/ZEO/tests/ConnectionTests.py
View file @
0f49c73a
...
...
@@ -13,9 +13,7 @@
##############################################################################
import
os
import
sys
import
time
import
random
import
socket
import
asyncore
import
threading
...
...
src/ZEO/tests/testZEOOptions.py
View file @
0f49c73a
...
...
@@ -15,7 +15,6 @@
"""Test suite for ZEO.runzeo.ZEOOptions."""
import
os
import
sys
import
tempfile
import
unittest
...
...
src/ZEO/tests/test_cache.py
View file @
0f49c73a
...
...
@@ -16,7 +16,6 @@
from
ZODB.utils
import
p64
,
repr_to_oid
import
doctest
import
os
import
random
import
string
import
struct
import
sys
...
...
src/ZEO/zrpc/client.py
View file @
0f49c73a
...
...
@@ -19,9 +19,7 @@ import socket
import
sys
import
threading
import
time
import
traceback
import
types
import
logging
import
ZEO.zrpc.trigger
...
...
src/ZEO/zrpc/connection.py
View file @
0f49c73a
...
...
@@ -12,17 +12,11 @@
#
##############################################################################
import
asyncore
import
atexit
import
cPickle
import
errno
import
select
import
sys
import
threading
import
logging
import
ZEO.zrpc.marshal
import
traceback
,
time
import
ZEO.zrpc.trigger
from
ZEO.zrpc
import
smac
...
...
src/ZODB/Connection.py
View file @
0f49c73a
...
...
@@ -21,7 +21,6 @@ import tempfile
import
threading
import
warnings
import
os
import
shutil
import
time
from
persistent
import
PickleCache
...
...
@@ -48,7 +47,7 @@ from ZODB.POSException import InvalidObjectReference, ConnectionStateError
from
ZODB.POSException
import
ConflictError
,
ReadConflictError
from
ZODB.POSException
import
Unsupported
,
ReadOnlyHistoryError
from
ZODB.POSException
import
POSKeyError
from
ZODB.serialize
import
ObjectWriter
,
ObjectReader
,
myhasattr
from
ZODB.serialize
import
ObjectWriter
,
ObjectReader
from
ZODB.utils
import
p64
,
u64
,
z64
,
oid_repr
,
positive_id
from
ZODB
import
utils
...
...
src/ZODB/DB.py
View file @
0f49c73a
...
...
@@ -20,7 +20,6 @@ import sys
import
threading
import
logging
import
datetime
import
calendar
import
time
import
warnings
...
...
src/ZODB/ExportImport.py
View file @
0f49c73a
...
...
@@ -22,7 +22,7 @@ import logging
from
ZODB.blob
import
Blob
from
ZODB.interfaces
import
IBlobStorage
from
ZODB.POSException
import
ExportError
,
POSKeyError
from
ZODB.POSException
import
ExportError
from
ZODB.serialize
import
referencesf
from
ZODB.utils
import
p64
,
u64
,
cp
,
mktemp
...
...
src/ZODB/FileStorage/FileStorage.py
View file @
0f49c73a
...
...
@@ -31,7 +31,6 @@ from ZODB.POSException import UndoError, POSKeyError, MultipleUndoErrors
from
ZODB.utils
import
p64
,
u64
,
z64
import
base64
import
BTrees.OOBTree
import
contextlib
import
errno
import
logging
...
...
src/ZODB/FileStorage/fsdump.py
View file @
0f49c73a
...
...
@@ -18,7 +18,6 @@ from ZODB.FileStorage.format import TRANS_HDR, TRANS_HDR_LEN
from
ZODB.FileStorage.format
import
DATA_HDR
,
DATA_HDR_LEN
from
ZODB.TimeStamp
import
TimeStamp
from
ZODB.utils
import
u64
,
get_pickle_metadata
from
ZODB.tests.StorageTestBase
import
zodb_unpickle
def
fsdump
(
path
,
file
=
None
,
with_offset
=
1
):
iter
=
FileIterator
(
path
)
...
...
src/ZODB/FileStorage/tests.py
View file @
0f49c73a
...
...
@@ -11,7 +11,6 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
import
cPickle
import
doctest
import
os
import
time
...
...
src/ZODB/MappingStorage.py
View file @
0f49c73a
...
...
@@ -18,7 +18,6 @@ storage without distracting storage details.
"""
import
BTrees
import
cPickle
import
time
import
threading
import
ZODB.BaseStorage
...
...
src/ZODB/scripts/analyze.py
View file @
0f49c73a
...
...
@@ -3,7 +3,6 @@
# Based on a transaction analyzer by Matt Kromer.
import
pickle
import
re
import
sys
import
types
from
ZODB.FileStorage
import
FileStorage
...
...
src/ZODB/scripts/manual_tests/testfstest.py
View file @
0f49c73a
...
...
@@ -4,10 +4,8 @@ Note: To run this test script fstest.py must be on your PYTHONPATH.
"""
from
cStringIO
import
StringIO
import
os
import
re
import
struct
import
tempfile
import
unittest
import
ZODB.tests.util
...
...
src/ZODB/scripts/migrateblobs.py
View file @
0f49c73a
...
...
@@ -19,8 +19,8 @@ import optparse
import
os
import
shutil
from
ZODB.blob
import
FilesystemHelper
,
rename_or_copy_blob
from
ZODB.utils
import
cp
,
oid_repr
from
ZODB.blob
import
FilesystemHelper
from
ZODB.utils
import
oid_repr
def
link_or_copy
(
f1
,
f2
):
...
...
src/ZODB/scripts/referrers.py
View file @
0f49c73a
...
...
@@ -25,6 +25,3 @@ def referrers(storage):
for
oid
in
referencesf
(
record
.
data
):
result
.
setdefault
(
oid
,
[]).
append
((
record
.
oid
,
record
.
tid
))
return
result
src/ZODB/tests/Corruption.py
View file @
0f49c73a
...
...
@@ -17,7 +17,7 @@ import os
import
random
import
stat
import
ZODB
,
ZODB
.
FileStorage
import
ZODB.FileStorage
from
StorageTestBase
import
StorageTestBase
class
FileStorageCorruptTests
(
StorageTestBase
):
...
...
src/ZODB/tests/HistoryStorage.py
View file @
0f49c73a
...
...
@@ -18,7 +18,6 @@ all these tests.
"""
from
ZODB.tests.MinPO
import
MinPO
from
transaction
import
Transaction
class
HistoryStorage
:
def
checkSimpleHistory
(
self
):
...
...
src/ZODB/tests/MVCCMappingStorage.py
View file @
0f49c73a
...
...
@@ -17,14 +17,10 @@ Each Connection has its own view of the database. Polling updates each
connection's view.
"""
import
time
import
BTrees
import
ZODB.utils
import
ZODB.POSException
from
ZODB.interfaces
import
IMVCCStorage
from
ZODB.MappingStorage
import
MappingStorage
from
ZODB.TimeStamp
import
TimeStamp
from
zope.interface
import
implements
...
...
src/ZODB/tests/RecoveryStorage.py
View file @
0f49c73a
...
...
@@ -16,7 +16,7 @@
import
transaction
from
transaction
import
Transaction
from
ZODB.tests.IteratorStorage
import
IteratorDeepCompare
from
ZODB.tests.StorageTestBase
import
MinPO
,
zodb_unpickle
,
snooze
from
ZODB.tests.StorageTestBase
import
MinPO
,
snooze
from
ZODB
import
DB
from
ZODB.serialize
import
referencesf
...
...
src/ZODB/tests/testCache.py
View file @
0f49c73a
...
...
@@ -27,7 +27,6 @@ import doctest
import
gc
import
sys
import
threading
import
time
import
transaction
import
unittest
import
ZODB
...
...
src/ZODB/tests/testConnection.py
View file @
0f49c73a
...
...
@@ -17,13 +17,11 @@ from __future__ import with_statement
import
doctest
import
unittest
import
warnings
from
persistent
import
Persistent
import
transaction
from
ZODB.config
import
databaseFromString
from
ZODB.utils
import
p64
,
u64
from
ZODB.tests.warnhook
import
WarningsHook
from
ZODB.utils
import
p64
from
zope.interface.verify
import
verifyObject
import
ZODB.tests.util
...
...
src/ZODB/tests/testDB.py
View file @
0f49c73a
...
...
@@ -13,7 +13,6 @@
##############################################################################
from
ZODB.tests.MinPO
import
MinPO
import
datetime
import
doctest
import
os
import
sys
...
...
src/ZODB/tests/testZODB.py
View file @
0f49c73a
...
...
@@ -14,13 +14,11 @@
from
persistent
import
Persistent
from
persistent.mapping
import
PersistentMapping
from
ZODB.POSException
import
ReadConflictError
,
ConflictError
from
ZODB.POSException
import
ReadConflictError
from
ZODB.POSException
import
TransactionFailedError
from
ZODB.tests.warnhook
import
WarningsHook
import
transaction
import
unittest
import
warnings
import
ZODB
import
ZODB.FileStorage
import
ZODB.MappingStorage
...
...
src/ZODB/tests/test_storage.py
View file @
0f49c73a
...
...
@@ -21,7 +21,6 @@ storage tests against the test storage.
from
__future__
import
with_statement
import
bisect
import
threading
import
unittest
from
ZODB.BaseStorage
import
BaseStorage
...
...
@@ -30,7 +29,7 @@ from ZODB.utils import z64
from
ZODB.tests
import
StorageTestBase
from
ZODB.tests
import
BasicStorage
,
MTStorage
,
Synchronization
from
ZODB.tests
import
PackableStorage
,
RevisionStorage
from
ZODB.tests
import
RevisionStorage
class
Transaction
(
object
):
"""Hold data for current transaction for MinimalMemoryStorage."""
...
...
src/ZODB/tests/testconflictresolution.py
View file @
0f49c73a
...
...
@@ -15,7 +15,6 @@ import manuel.doctest
import
manuel.footnote
import
manuel.capture
import
manuel.testing
import
unittest
import
ZODB.ConflictResolution
import
ZODB.tests.util
import
zope.testing.module
...
...
src/ZODB/tests/testpersistentclass.py
View file @
0f49c73a
...
...
@@ -12,7 +12,6 @@
#
##############################################################################
import
doctest
import
os
import
sys
import
transaction
import
unittest
...
...
src/ZODB/tests/util.py
View file @
0f49c73a
...
...
@@ -20,16 +20,15 @@ from ZODB.MappingStorage import DB
import
atexit
import
os
import
tempfile
import
time
import
unittest
import
persistent
import
sys
import
tempfile
import
time
import
transaction
import
unittest
import
warnings
import
zope.testing.setupstack
import
ZODB.utils
import
zope.testing.setupstack
def
setUp
(
test
,
name
=
'test'
):
transaction
.
abort
()
...
...
src/ZODB/utils.py
View file @
0f49c73a
...
...
@@ -19,7 +19,6 @@ from struct import pack, unpack
from
binascii
import
hexlify
,
unhexlify
import
cPickle
as
pickle
from
cStringIO
import
StringIO
import
weakref
import
warnings
from
tempfile
import
mkstemp
import
os
...
...
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