Skip to content

Commit 0c20c42

Browse files
committed
-
1 parent 2c22cbf commit 0c20c42

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

source_py3/python_toolbox/dict_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,5 +193,5 @@ def remove_keys(d, keys_to_remove):
193193

194194
def get_sorted_values(d, key=None):
195195
kwargs = {'key': key,} if key is not None else {}
196-
return dict_tools.get_list(d, sorted(d.keys(), **kwargs))
196+
return get_list(d, sorted(d.keys(), **kwargs))
197197

source_py3/python_toolbox/file_tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ def _get_next_path(path):
2121
'''
2222
Get the name that `path` should be renamed to if taken.
2323
24-
For example, "c:\example.ogg" would become "c:\example (1).ogg", while
25-
"c:\example (1).ogg" would become "c:\example (2).ogg".
24+
For example, "c:\\example.ogg" would become "c:\\example (1).ogg", while
25+
"c:\\example (1).ogg" would become "c:\\example (2).ogg".
2626
2727
(Uses `Path` objects rather than strings.)
2828
'''

source_py3/python_toolbox/gc_tools.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
from python_toolbox import sys_tools
99

1010
def collect():
11+
'''
12+
Garbage-collect any items that don't have any references to them anymore.
13+
'''
1114
if sys_tools.is_pypy:
1215
for _ in range(3):
1316
gc.collect()

source_py3/python_toolbox/logic_tools.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import collections
77

88
from python_toolbox import cute_iter_tools
9-
from python_toolbox import sequence_tools
109

1110

1211
def all_equal(iterable, exhaustive=False):
@@ -38,7 +37,7 @@ def all_equal(iterable, exhaustive=False):
3837
else: # exhaustive is False
3938
pairs = cute_iter_tools.iterate_overlapping_subsequences(iterable)
4039

41-
return all(a==b for (a, b) in pairs)
40+
return all(a == b for (a, b) in pairs)
4241

4342

4443
def get_equivalence_classes(iterable, key):

0 commit comments

Comments
 (0)