From 924a851c43b8af52614705b69e9d7613c8f03103 Mon Sep 17 00:00:00 2001 From: Richard Feistenauer Date: Sat, 23 Feb 2019 16:43:36 +0100 Subject: [PATCH] changed protected modules to public --- cellular_automaton/{_automaton.py => automaton.py} | 0 cellular_automaton/{_cell.py => cell.py} | 2 +- cellular_automaton/{_cell_state.py => cell_state.py} | 0 cellular_automaton/display.py | 2 +- cellular_automaton/factory.py | 8 ++++---- cellular_automaton/{_state.py => state.py} | 0 test/test_cell.py | 4 ++-- test/test_cell_state.py | 2 +- test/test_factory.py | 4 ++-- 9 files changed, 11 insertions(+), 11 deletions(-) rename cellular_automaton/{_automaton.py => automaton.py} (100%) rename cellular_automaton/{_cell.py => cell.py} (96%) rename cellular_automaton/{_cell_state.py => cell_state.py} (100%) rename cellular_automaton/{_state.py => state.py} (100%) diff --git a/cellular_automaton/_automaton.py b/cellular_automaton/automaton.py similarity index 100% rename from cellular_automaton/_automaton.py rename to cellular_automaton/automaton.py diff --git a/cellular_automaton/_cell.py b/cellular_automaton/cell.py similarity index 96% rename from cellular_automaton/_cell.py rename to cellular_automaton/cell.py index a260551..85a5d29 100644 --- a/cellular_automaton/_cell.py +++ b/cellular_automaton/cell.py @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. """ -import cellular_automaton.cellular_automaton._cell_state as cs +import cellular_automaton.cellular_automaton.cell_state as cs class Cell: diff --git a/cellular_automaton/_cell_state.py b/cellular_automaton/cell_state.py similarity index 100% rename from cellular_automaton/_cell_state.py rename to cellular_automaton/cell_state.py diff --git a/cellular_automaton/display.py b/cellular_automaton/display.py index d85f351..6d357c3 100644 --- a/cellular_automaton/display.py +++ b/cellular_automaton/display.py @@ -18,7 +18,7 @@ import pygame import time import operator -import cellular_automaton.cellular_automaton._automaton as automaton +import cellular_automaton.cellular_automaton.automaton as automaton class _CASurface: diff --git a/cellular_automaton/factory.py b/cellular_automaton/factory.py index a4909f8..c113372 100644 --- a/cellular_automaton/factory.py +++ b/cellular_automaton/factory.py @@ -1,8 +1,8 @@ from . import Neighborhood, Rule -from ._automaton import CellularAutomatonProcessor, CellularAutomatonMultiProcessor -from ._cell import Cell -from ._state import CellularAutomatonState -from ._cell_state import CellState, SynchronousCellState +from .automaton import CellularAutomatonProcessor, CellularAutomatonMultiProcessor +from .cell import Cell +from .state import CellularAutomatonState +from .cell_state import CellState, SynchronousCellState from typing import Type """ Copyright 2019 Richard Feistenauer diff --git a/cellular_automaton/_state.py b/cellular_automaton/state.py similarity index 100% rename from cellular_automaton/_state.py rename to cellular_automaton/state.py diff --git a/test/test_cell.py b/test/test_cell.py index ec83879..90af91c 100644 --- a/test/test_cell.py +++ b/test/test_cell.py @@ -17,8 +17,8 @@ limitations under the License. import sys sys.path.append('../..') -from cellular_automaton.cellular_automaton._cell import Cell -from cellular_automaton.cellular_automaton._cell_state import CellState +from cellular_automaton.cellular_automaton.cell import Cell +from cellular_automaton.cellular_automaton.cell_state import CellState import unittest diff --git a/test/test_cell_state.py b/test/test_cell_state.py index 0e46d5f..03137d7 100644 --- a/test/test_cell_state.py +++ b/test/test_cell_state.py @@ -17,7 +17,7 @@ limitations under the License. import sys sys.path.append('../..') -from cellular_automaton.cellular_automaton import _cell_state as cell_state +from cellular_automaton.cellular_automaton import cell_state as cell_state import unittest diff --git a/test/test_factory.py b/test/test_factory.py index eee91cc..3ca0479 100644 --- a/test/test_factory.py +++ b/test/test_factory.py @@ -18,8 +18,8 @@ import sys sys.path.append('../..') from cellular_automaton.cellular_automaton import * -from cellular_automaton.cellular_automaton._cell_state import CellState -from cellular_automaton.cellular_automaton._state import CellularAutomatonState +from cellular_automaton.cellular_automaton.cell_state import CellState +from cellular_automaton.cellular_automaton.state import CellularAutomatonState import unittest import mock