summaryrefslogtreecommitdiff
path: root/src/scripts
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2018-02-27 19:13:15 +0100
committerDave Andreoli <dave@gurumeditation.it>2018-02-27 19:14:38 +0100
commitcb431b2b0ef083c4d15b500684c63fa25b0ebe49 (patch)
treea5b4ad9db7b03b88c7be54c71f66f0c99cf60aeb /src/scripts
parent191ca9096eb35d83557e618c329685cbdf36f56b (diff)
Pyolian: rename Eolian to Eolian_State
Diffstat (limited to 'src/scripts')
-rwxr-xr-xsrc/scripts/gendoc/gendoc.py4
-rw-r--r--src/scripts/pyolian/eolian.py2
-rwxr-xr-xsrc/scripts/pyolian/generator.py4
-rwxr-xr-xsrc/scripts/pyolian/test_eolian.py4
4 files changed, 7 insertions, 7 deletions
diff --git a/src/scripts/gendoc/gendoc.py b/src/scripts/gendoc/gendoc.py
index 359ae154eb..210450df96 100755
--- a/src/scripts/gendoc/gendoc.py
+++ b/src/scripts/gendoc/gendoc.py
@@ -46,8 +46,8 @@ args = parser.parse_args()
46 46
47 47
48# load the whole eolian db (from .eo files in source tree) 48# load the whole eolian db (from .eo files in source tree)
49eolian_db = eolian.Eolian() 49eolian_db = eolian.Eolian_State()
50if not isinstance(eolian_db, eolian.Eolian): 50if not isinstance(eolian_db, eolian.Eolian_State):
51 raise(RuntimeError('Eolian, failed to create Eolian state')) 51 raise(RuntimeError('Eolian, failed to create Eolian state'))
52 52
53if not eolian_db.directory_add(SCAN_FOLDER): 53if not eolian_db.directory_add(SCAN_FOLDER):
diff --git a/src/scripts/pyolian/eolian.py b/src/scripts/pyolian/eolian.py
index 6e338abd0b..46b4465128 100644
--- a/src/scripts/pyolian/eolian.py
+++ b/src/scripts/pyolian/eolian.py
@@ -434,7 +434,7 @@ class Eolian_Unit(EolianBaseObject):
434 lib.eolian_declarations_get_by_file(self._obj, _str_to_bytes(fname))) 434 lib.eolian_declarations_get_by_file(self._obj, _str_to_bytes(fname)))
435 435
436 436
437class Eolian(Eolian_Unit): 437class Eolian_State(Eolian_Unit):
438 def __init__(self): 438 def __init__(self):
439 self._obj = lib.eolian_state_new() # Eolian_State * 439 self._obj = lib.eolian_state_new() # Eolian_State *
440 440
diff --git a/src/scripts/pyolian/generator.py b/src/scripts/pyolian/generator.py
index 6a78da86d9..9577fa7488 100755
--- a/src/scripts/pyolian/generator.py
+++ b/src/scripts/pyolian/generator.py
@@ -57,8 +57,8 @@ SCAN_FOLDER = os.path.join(root_path, 'src', 'lib')
57 57
58 58
59# load the whole eolian db 59# load the whole eolian db
60eolian_db = eolian.Eolian() 60eolian_db = eolian.Eolian_State()
61if not isinstance(eolian_db, eolian.Eolian): 61if not isinstance(eolian_db, eolian.Eolian_State):
62 raise(RuntimeError('Eolian, failed to create Eolian state')) 62 raise(RuntimeError('Eolian, failed to create Eolian state'))
63 63
64if not eolian_db.directory_add(SCAN_FOLDER): 64if not eolian_db.directory_add(SCAN_FOLDER):
diff --git a/src/scripts/pyolian/test_eolian.py b/src/scripts/pyolian/test_eolian.py
index 92ff1350a0..82d85280a4 100755
--- a/src/scripts/pyolian/test_eolian.py
+++ b/src/scripts/pyolian/test_eolian.py
@@ -571,8 +571,8 @@ class TestEolianExpression(unittest.TestCase):
571 571
572if __name__ == '__main__': 572if __name__ == '__main__':
573 # create main eolian state 573 # create main eolian state
574 eolian_db = eolian.Eolian() 574 eolian_db = eolian.Eolian_State()
575 if not isinstance(eolian_db, eolian.Eolian): 575 if not isinstance(eolian_db, eolian.Eolian_State):
576 raise(RuntimeError('Eolian, failed to create Eolian state')) 576 raise(RuntimeError('Eolian, failed to create Eolian state'))
577 577
578 # eolian system scan (BROKEN) 578 # eolian system scan (BROKEN)