Skip to content

Commit 5caf130

Browse files
committed
Prefix private function with underscore in utils.py
1 parent 8ace46c commit 5caf130

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

basest/core/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def symbols_to_ints(symbols, symbol_table):
2121
return [symbol_table.index(s) for s in symbols]
2222

2323

24-
def symbol_table_is_unique(symbol_table, padding_symbol=None):
24+
def _symbol_table_is_unique(symbol_table, padding_symbol=None):
2525
"""
2626
Returns True if the given symbol table and padding symbol are unique,
2727
otherwise returns False.
@@ -50,7 +50,7 @@ def validate_symbol_tables(symbol_table, padding_symbol, other_symbol_table):
5050
# if that check passes, validate tables (and padding) for uniqueness
5151
# the padding symbol is evaluated with the first symbol table
5252
elif (
53-
(not symbol_table_is_unique(symbol_table, padding_symbol)) or
54-
(not symbol_table_is_unique(other_symbol_table))
53+
(not _symbol_table_is_unique(symbol_table, padding_symbol)) or
54+
(not _symbol_table_is_unique(other_symbol_table))
5555
):
5656
raise ValueError('Unique symbol tables required')

0 commit comments

Comments
 (0)