Skip to content

Commit c2750fc

Browse files
committed
-
1 parent 599cb45 commit c2750fc

File tree

16 files changed

+19
-235
lines changed

16 files changed

+19
-235
lines changed

docs/topics/index.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ explaining what it's good for and the basics of using it.
4545
gc-tools
4646
identities
4747
import-tools
48-
infinity
4948
introspection-tools
5049
logic-tools
5150
math-tools

docs/topics/infinity.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

python_toolbox/_bootstrap/bootstrap.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@
1212
### Confirming correct Python version: ########################################
1313
# #
1414
if sys.version_info[0] >= 3:
15-
raise Exception("Python 3.x is not supported")
15+
raise Exception("Python 3.x is not supported, only Python 2.6 and Python "
16+
"2.7.")
1617
if sys.version_info[1] <= 4:
1718
raise Exception(
18-
"You're using Python <=2.4, but this package requires Python 2.5 and "
19-
"upwards, so you can't use it unless you upgrade your Python version."
19+
"You're using Python <= 2.5, but this package requires either Python "
20+
"2.6 or Python 2.7, so you can't use it unless you upgrade your "
21+
"Python version."
2022
)
2123
# #
2224
### Finished confirming correct Python version. ###############################

python_toolbox/caching/cache.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
from python_toolbox import decorator_tools
1414

1515
from python_toolbox.sleek_reffing import SleekCallArgs
16-
from python_toolbox.infinity import infinity
1716
from python_toolbox.nifty_collections import OrderedDict
1817

18+
infinity = float('inf')
19+
1920

2021
class CLEAR_ENTIRE_CACHE(object):
2122
'''Sentinel object for clearing the entire cache'''

python_toolbox/cheat_hashing/cheat_hash.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@
77
See its documentation for more details.
88
'''
99

10-
from python_toolbox.infinity import infinity
11-
1210
from .cheat_hash_functions import (cheat_hash_dict, cheat_hash_object,
1311
cheat_hash_sequence, cheat_hash_set)
1412

13+
infinity = float('inf')
1514

1615
dispatch_map = {
1716
object: cheat_hash_object,

python_toolbox/context_management/context_manager.py

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

1212
import sys
1313
import types
14-
from python_toolbox.third_party import abc
14+
import abc
1515

1616
from python_toolbox import decorator_tools
1717

python_toolbox/context_management/context_manager_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
See its documentation for more information.
88
'''
99

10-
from python_toolbox.third_party import abc
10+
import abc
1111

1212
from .context_manager_type_type import ContextManagerTypeType
1313

python_toolbox/context_management/delegating_context_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
See its documentation for more information.
88
'''
99

10-
from python_toolbox.third_party import abc
10+
import abc
1111

1212
from python_toolbox import proxy_property
1313

python_toolbox/context_management/reentrant_context_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
See its documentation for more information.
88
'''
99

10-
from python_toolbox.third_party import abc
10+
import abc
1111

1212
from python_toolbox import caching
1313
from python_toolbox.proxy_property import ProxyProperty

python_toolbox/cute_iter_tools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
import itertools
1111
import __builtin__
1212

13-
from python_toolbox.infinity import infinity
13+
14+
infinity = float('inf')
1415

1516

1617
def consecutive_pairs(iterable, wrap_around=False):

0 commit comments

Comments
 (0)