Skip to content

Commit a9bdf78

Browse files
committed
Maintenance release to let the library comply with Micropython
1 parent 331d350 commit a9bdf78

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

docs/classdiagram/enigmapython.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ classDiagram
4343
}
4444
4545
class Clonable {
46+
- __init__(self) None
4647
+ clone(self)
4748
}
4849

examples/render_enigma.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from enigmapython.EnigmaZEtw import EnigmaZEtw
1010
from enigmapython.EnigmaZ import EnigmaZ
1111
from enigmapython.ReflectorZUKW import ReflectorZUKW
12-
from enigmapython.Utils import Utils
12+
from enigmapython.XRay import XRay
1313
import rich
1414
from enigmapython.EnigmaM4RotorI import EnigmaM4RotorI
1515
from enigmapython.EnigmaM4RotorII import EnigmaM4RotorII
@@ -101,7 +101,7 @@ def render_enigma_diagram(enigma):
101101
enigma = EnigmaZ(rotor3, rotor2, rotor1, reflector, etw, True)
102102
enigma.input_string('0'*41)
103103
print(enigma.reflector)
104-
#Utils.render_enigma_diagram(enigma)
104+
XRay.render_enigma_xray(enigma)
105105
#render_enigma_diagram(enigma)
106106

107107
plugboard = PlugboardPassthrough()
@@ -116,7 +116,7 @@ def render_enigma_diagram(enigma):
116116
enigma = EnigmaM4(plugboard, rotor1, rotor2, rotor3, rotor4, reflector, etw, True)
117117
#print(enigma.input_string('d'))
118118
print(enigma.reflector)
119-
#Utils.render_enigma_diagram(enigma)
119+
XRay.render_enigma_xray(enigma)
120120
#render_enigma_diagram(enigma)
121121

122122
# Setup logging
@@ -133,9 +133,9 @@ def render_enigma_diagram(enigma):
133133
other_enigma = copy.deepcopy(enigma)
134134
enigma.input_string('d')
135135
print(enigma.reflector)
136-
#Utils.render_enigma_diagram(enigma)
136+
XRay.render_enigma_xray(enigma)
137137
#render_enigma_diagram(enigma)
138138
#render_enigma_diagram(other_enigma)
139-
#Utils.render_enigma_diagram(enigma)
139+
XRay.render_enigma_xray(enigma)
140140

141141
#Utils.render_enigma_diagram(other_enigma)

src/enigma/enigmapython/Clonable.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import copy
22

33
class Clonable:
4+
5+
def __init__(self):
6+
super().__init__()
7+
48
def clone(self):
59
"""
610
Creates a deep copy of the current instance.

src/enigma/enigmapython/XRay.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from rich.console import Console
22
from rich.text import Text
3+
from enigmapython.RotatingReflector import RotatingReflector
34

45
class XRay():
56
@staticmethod

src/enigma/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
long_description_content_type='text/markdown',
1313
url="https://github.com/denismaggior8/enigma-python",
1414
name="enigmapython",
15-
version="1.2.1",
15+
version="1.2.2",
1616
packages=find_packages(
1717
# All keyword arguments below are optional:
1818
where='.', # '.' by default

0 commit comments

Comments
 (0)