GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix imports for all namespace packages (#2506) · jusing-es/Python@9016fe1

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • ciphers
    • affine_cipher.py
    • elgamal_key_generator.py
    • rsa_cipher.py
    • rsa_key_generator.py
    • transposition_cipher_encrypt_decrypt_file.py
  • data_structures
    • hashing
      • double_hash.py
      • hash_table.py
      • hash_table_with_linked_list.py
      • quadratic_probing.py
    • linked_list
      • deque_doubly.py
    • queue
      • circular_queue.py
      • priority_queue_using_list.py
  • geodesy
    • lamberts_ellipsoidal_distance.py
  • greedy_method
    • test_knapsack.py
  • linear_algebra/src
    • test_linear_algebra.py
  • scripts
    • validate_filenames.py
  • searches
    • simulated_annealing.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎ciphers/affine_cipher.py‎

Copy file name to clipboardExpand all lines: ciphers/affine_cipher.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import random
22
import sys
33

4-
import cryptomath_module as cryptomath
4+
from . import cryptomath_module as cryptomath
55

66
SYMBOLS = (
77
r""" !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`"""
Collapse file

‎ciphers/elgamal_key_generator.py‎

Copy file name to clipboardExpand all lines: ciphers/elgamal_key_generator.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
import random
33
import sys
44

5-
import cryptomath_module as cryptoMath
6-
import rabin_miller as rabinMiller
5+
from . import cryptomath_module as cryptoMath
6+
from . import rabin_miller as rabinMiller
77

88
min_primitive_root = 3
99

Collapse file

‎ciphers/rsa_cipher.py‎

Copy file name to clipboardExpand all lines: ciphers/rsa_cipher.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import sys
33

4-
import rsa_key_generator as rkg
4+
from . import rsa_key_generator as rkg
55

66
DEFAULT_BLOCK_SIZE = 128
77
BYTE_SIZE = 256
Collapse file

‎ciphers/rsa_key_generator.py‎

Copy file name to clipboardExpand all lines: ciphers/rsa_key_generator.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
import random
33
import sys
44

5-
import cryptomath_module as cryptoMath
6-
import rabin_miller as rabinMiller
5+
from . import cryptomath_module as cryptoMath
6+
from . import rabin_miller as rabinMiller
77

88

99
def main():
Collapse file

‎ciphers/transposition_cipher_encrypt_decrypt_file.py‎

Copy file name to clipboardExpand all lines: ciphers/transposition_cipher_encrypt_decrypt_file.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import sys
33
import time
44

5-
import transposition_cipher as transCipher
5+
from . import transposition_cipher as transCipher
66

77

88
def main():
Collapse file

‎data_structures/hashing/double_hash.py‎

Copy file name to clipboardExpand all lines: data_structures/hashing/double_hash.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
2-
from hash_table import HashTable
3-
from number_theory.prime_numbers import check_prime, next_prime
2+
from .hash_table import HashTable
3+
from .number_theory.prime_numbers import check_prime, next_prime
44

55

66
class DoubleHash(HashTable):
Collapse file

‎data_structures/hashing/hash_table.py‎

Copy file name to clipboardExpand all lines: data_structures/hashing/hash_table.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python3
2-
from number_theory.prime_numbers import next_prime
2+
from .number_theory.prime_numbers import next_prime
33

44

55
class HashTable:
Collapse file

‎data_structures/hashing/hash_table_with_linked_list.py‎

Copy file name to clipboardExpand all lines: data_structures/hashing/hash_table_with_linked_list.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from collections import deque
22

3-
from hash_table import HashTable
3+
from .hash_table import HashTable
44

55

66
class HashTableWithLinkedList(HashTable):
Collapse file

‎data_structures/hashing/quadratic_probing.py‎

Copy file name to clipboardExpand all lines: data_structures/hashing/quadratic_probing.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22

3-
from hash_table import HashTable
3+
from .hash_table import HashTable
44

55

66
class QuadraticProbing(HashTable):
Collapse file

‎data_structures/linked_list/deque_doubly.py‎

Copy file name to clipboardExpand all lines: data_structures/linked_list/deque_doubly.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def remove_first(self):
112112
...
113113
IndexError: remove_first from empty list
114114
>>> d.add_first('A') # doctest: +ELLIPSIS
115-
<linked_list.deque_doubly.LinkedDeque object at ...
115+
<data_structures.linked_list.deque_doubly.LinkedDeque object at ...
116116
>>> d.remove_first()
117117
'A'
118118
>>> d.is_empty()
@@ -132,7 +132,7 @@ def remove_last(self):
132132
...
133133
IndexError: remove_first from empty list
134134
>>> d.add_first('A') # doctest: +ELLIPSIS
135-
<linked_list.deque_doubly.LinkedDeque object at ...
135+
<data_structures.linked_list.deque_doubly.LinkedDeque object at ...
136136
>>> d.remove_last()
137137
'A'
138138
>>> d.is_empty()

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.