mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
Fix imports for all namespace packages (#2506)
* Fix imports as they're namespace packages * Fix import for scripts/validate_filenames.py * Fix path in doctest
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
from hash_table import HashTable
|
||||
from number_theory.prime_numbers import check_prime, next_prime
|
||||
from .hash_table import HashTable
|
||||
from .number_theory.prime_numbers import check_prime, next_prime
|
||||
|
||||
|
||||
class DoubleHash(HashTable):
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
from number_theory.prime_numbers import next_prime
|
||||
from .number_theory.prime_numbers import next_prime
|
||||
|
||||
|
||||
class HashTable:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from collections import deque
|
||||
|
||||
from hash_table import HashTable
|
||||
from .hash_table import HashTable
|
||||
|
||||
|
||||
class HashTableWithLinkedList(HashTable):
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from hash_table import HashTable
|
||||
from .hash_table import HashTable
|
||||
|
||||
|
||||
class QuadraticProbing(HashTable):
|
||||
|
||||
Reference in New Issue
Block a user