• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zopefoundation / ZODB / 6920335661

10 Oct 2023 06:43AM UTC coverage: 83.729% (+0.005%) from 83.724%
6920335661

push

github

web-flow
scripts/space.py: fix sorting dict items (#392)

Co-authored-by: Jens Vagelpohl <jens@plyp.com>
Co-authored-by: Michael Howitz <icemac@gmx.net>

2877 of 4048 branches covered (0.0%)

0 of 2 new or added lines in 1 file covered. (0.0%)

13323 of 15912 relevant lines covered (83.73%)

0.84 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/ZODB/conversionhack.py
1
##############################################################################
2
#
3
# Copyright (c) 2001, 2002 Zope Foundation and Contributors.
4
# All Rights Reserved.
5
#
6
# This software is subject to the provisions of the Zope Public License,
7
# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
8
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
9
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
10
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
11
# FOR A PARTICULAR PURPOSE
12
#
13
##############################################################################
14

15
import persistent.mapping
×
16

17

18
class fixer:
×
19
    def __of__(self, parent):
×
20
        def __setstate__(state, self=parent):
×
21
            self._container = state
×
22
            del self.__setstate__
×
23
        return __setstate__
×
24

25

26
fixer = fixer()
×
27

28

29
class hack:
×
30
    pass
×
31

32

33
hack = hack()
×
34

35

36
def __basicnew__():
×
37
    r = persistent.mapping.PersistentMapping()
×
38
    r.__setstate__ = fixer
×
39
    return r
×
40

41

42
hack.__basicnew__ = __basicnew__
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc