Salome HOME
Updated copyright comment
[modules/kernel.git] / src / KERNEL_PY / kernel / enumerate.py
index ad04448afe98395c7bca4dc6b855c9570af58bd5..2c23bb589b642a9e07bb7df2d3f4b7b263f8eaca 100644 (file)
@@ -1,5 +1,5 @@
 # -*- coding: iso-8859-1 -*-
-# Copyright (C) 2010-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2010-2024  CEA, EDF, OPEN CASCADE
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -19,7 +19,7 @@
 #
 
 ## \defgroup enumerate enumerate
-#  \{ 
+#  \{
 #  \details Emulates a C-like enum for python
 #  \}
 
@@ -30,13 +30,13 @@ __date__ = "$1 avr. 2010 09:08:02$"
 #  of strings to be used as the enum symbolic keys. The enum values are automatically
 #  generated as sequencing integer starting at the specified offset value.
 #  \ingroup enumerate
-class Enumerate(object):
+class Enumerate:
     """
     This class emulates a C-like enum for python. It is initialized with a list
     of strings to be used as the enum symbolic keys. The enum values are automatically
     generated as sequencing integer starting at the specified offset value.
     """
-    
+
     ## Canonical constructor.
     #  \param keys a list of string to be used as the enum symbolic keys. The enum values
     #  are automatically generated as a sequence of integers starting at the specified
@@ -65,12 +65,12 @@ class Enumerate(object):
         return key in self._dict_keynumbers
 
     ## Returns true if the specified integer value is defined as an identifier
-    #  in this enumarate.
+    #  in this enumerate.
     #  \param value a value to test
     def isValid(self, value):
         """
         Returns true if the specified integer value is defined as an identifier
-        in this enumarate.
+        in this enumerate.
         @value a value to test
         """
         return value in self._dict_numberkeys