Skip to content

Commit 485cf97

Browse files
committed
-
1 parent c7b552f commit 485cf97

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

source_py3/python_toolbox/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
import python_toolbox._bootstrap
1515
import python_toolbox.version_info
16-
import python_toolbox.monkeypatch_copy_reg
16+
import python_toolbox.monkeypatch_copyreg
1717
import python_toolbox.monkeypatch_envelopes
1818

1919
__version_info__ = python_toolbox.version_info.VersionInfo(0, 6, 0)

source_py3/python_toolbox/context_management/context_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def __exit_using_manage_context(self, exc_type, exc_value, exc_traceback):
111111
# tell if we get the same exception back
112112
exc_value = exc_type()
113113
try:
114-
generator.throw(exc_type(exc_value).with_traceback(exc_traceback))
114+
generator.throw(exc_value.with_traceback(exc_traceback))
115115
except StopIteration as stop_iteration:
116116
# Suppress the exception *unless* it's the same exception that
117117
# was passed to throw(). This prevents a StopIteration

source_py3/python_toolbox/monkeypatch_copy_reg.py renamed to source_py3/python_toolbox/monkeypatch_copyreg.py

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

4-
'''This module monkey-patches the pickling dispatch table using `copy_reg`.'''
4+
'''This module monkey-patches the pickling dispatch table using `copyreg`.'''
55

66
# todo: alters global state, yuck! Maybe check before if it's already set to
77
# something?

source_py3/python_toolbox/sequence_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def get_recurrences(sequence):
280280
The values of the dict are the numbers of repititions of each item.
281281
'''
282282
return {item: n_recurrences for item, n_recurrences in
283-
Counter(sequence).most_common() if n_recurrences >= 2}
283+
collections.Counter(sequence).most_common() if n_recurrences >= 2}
284284

285285
### Not using now, might want in future:
286286

0 commit comments

Comments
 (0)