Commits

Cédric Bonhomme committed d4f81bb

Added some comments in rotor.py

Comments (0)

Files changed (1)

pyenigma/rotor.py

 
 
 class Reflector(object):
+    """
+    Represents a reflector.
+    """
     def __init__(self, wiring=None, name=None, model=None, date=None):
         if wiring != None:
             self.wiring = wiring
         Wiring: %s""" % (self.name, self.model, self.date, self.wiring)
 
 class Rotor(object):
+    """
+    Represents a rotor.
+    """
     def __init__(self, wiring=None, notchs=None, name=None, model=None, date=None, state="A"):
+        """
+        Initialization of the rotor.
+        """
         if wiring != None:
             self.wiring = wiring
         else: