Skip to content

Commit 90d8048

Browse files
committed
-
1 parent 7118cb1 commit 90d8048

20 files changed

+65
-111
lines changed

source_py3/python_toolbox/caching/cached_property.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ def __init__(self, getter_or_value, doc=None, name=None,
5353
self.__doc__ = doc or getattr(self.getter, '__doc__', None)
5454

5555

56-
def __get__(self, obj, our_type=None):
56+
def __get__(self, thing, our_type=None):
5757

58-
if obj is None:
58+
if thing is None:
5959
# We're being accessed from the class itself, not from an object
6060
return self
6161

62-
value = self.getter(obj)
62+
value = self.getter(thing)
6363

64-
setattr(obj, self.get_our_name(obj, our_type=our_type), value)
64+
setattr(thing, self.get_our_name(thing, our_type=our_type), value)
6565

6666
return value
6767

source_py3/python_toolbox/change_tracker.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
# Copyright 2009-2015 Ram Rachum.
22
# This program is distributed under the MIT license.
33

4-
'''
5-
This module defines the `ChangeTracker` class.
6-
7-
See its documentation for more information.
8-
'''
9-
104
import pickle
115

126
from python_toolbox.nifty_collections import WeakKeyIdentityDict

source_py3/python_toolbox/context_management/blank_context_manager.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
# Copyright 2009-2015 Ram Rachum.
22
# This program is distributed under the MIT license.
33

4-
'''
5-
This module defines the `BlankContextManager` class.
6-
7-
See its documentation for more information.
8-
'''
9-
104
from .context_manager import ContextManager
115

126

source_py3/python_toolbox/context_management/context_manager.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
# Copyright 2009-2015 Ram Rachum.
22
# This program is distributed under the MIT license.
33

4-
'''
5-
This module defines the `ContextManager` class.
6-
7-
See its documentation for more information.
8-
'''
9-
104
import sys
115
import types
126
import abc

source_py3/python_toolbox/context_management/context_manager_type.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
# Copyright 2009-2015 Ram Rachum.
22
# This program is distributed under the MIT license.
33

4-
'''
5-
This module defines the `ContextManagerType` class.
6-
7-
See its documentation for more information.
8-
'''
9-
104
import abc
115

126
from .context_manager_type_type import ContextManagerTypeType

source_py3/python_toolbox/context_management/context_manager_type_type.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
# Copyright 2009-2015 Ram Rachum.
22
# This program is distributed under the MIT license.
33

4-
'''
5-
This module defines the `ContextManagerTypeType` metaclass.
6-
7-
See its documentation for more information.
8-
'''
9-
104

115
class ContextManagerTypeType(type):
126
'''

source_py3/python_toolbox/context_management/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This program is distributed under the MIT license.
33

44
'''
5-
This module defines various functions.
5+
This module defines various functions related to context managers.
66
77
See their documentation for more information.
88
'''

source_py3/python_toolbox/context_management/self_hook.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
# Copyright 2009-2015 Ram Rachum.
22
# This program is distributed under the MIT license.
33

4-
'''
5-
This module defines the `SelfHook` class.
6-
7-
See its documentation for more information.
8-
'''
9-
104
class SelfHook:
115
'''
126
Hook that a context manager can yield in order to yield itself.

source_py3/python_toolbox/freezing/delegatee_context_manager.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
# Copyright 2009-2015 Ram Rachum.
22
# This program is distributed under the MIT license.
33

4-
'''
5-
This module defines the `DelegateeContextManager` class.
6-
7-
See its documentation for more information.
8-
'''
9-
104
from python_toolbox import context_management
115

126

source_py3/python_toolbox/freezing/freezer.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
# Copyright 2009-2015 Ram Rachum.
22
# This program is distributed under the MIT license.
33

4-
'''
5-
This module defines the `Freezer` class.
6-
7-
See its documentation for more information.
8-
'''
9-
104
import abc
115

126
from python_toolbox import context_management

0 commit comments

Comments
 (0)