# Path: casacore/tables/tablehelper.py
# def _add_prefix(name):
#     """Add the prefix 'Table: ' to a table name to get a specific keyword value."""
#     return 'Table: ' + name
# 
# def _remove_prefix(name):
#     """Strip the possible prefix 'Table: ' from one or more table names."""
#     if isinstance(name, string_types):
#         return _do_remove_prefix(name)
#     return [_do_remove_prefix(nm) for nm in name]
# 
# def _do_remove_prefix(name):
#     """Strip the possible prefix 'Table: ' from a table name."""
#     res = name
#     if isinstance(res, string_types):
#         if res.find('Table: ') == 0:
#             res = res.replace('Table: ', '', 1)
#     return res
# 
# def _format_row(row, colnames, tab):
#     """
#     Helper function for _repr_html. Formats one row.
#     :param row: row of this table
#     :param colnames: vector of column names
#     :param tab: table, used to get the column keywords
#     :return: html-formatted row
#     """
#     out = ""
# 
#     out += "\n<tr>"
#     for colname in colnames:
#         out += "<td style='vertical-align:top; white-space:pre'>"
#         out += _format_cell(row[colname], tab.getcolkeywords(colname))
#         out += "</td>\n"
#     out += "</tr>\n"
#     return out


from six import string_types
from ._tables import (Table,
                      _default_ms,
                      _default_ms_subtable,
                      _required_ms_desc,
                      _complete_ms_desc)
from .tablehelper import (_add_prefix, _remove_prefix, _do_remove_prefix,
                          _format_row)
        from .tablerow import _tablerow
        from .tablecolumn import tablecolumn
        from .tablerow import tablerow
        from .tableiter import tableiter
        from .tableindex import tableindex
                    from casacore.tables import tabledelete
            from wxPython.wx import wxPySimpleApp
            from wxtablebrowser import CasaTestFrame
                        from casacore.tables import tabledelete
import six
        import casacore.util
            import casacore.tables.tableutil as pt
        import casacore.tables.tableutil as pt
        import os
                import wxPython
            import sys
        import os
        acquired by lock().
        Nothing will be done if the table is not locked.

        """
        self._unlock()

    def haslock(self, write=True):
        """Test if the table is read or write locked."""
        return self._haslock(write)

    def lockoptions(self):
        """Return the lockoptions.

        They are returned as a dict with fields:

        'option'
          the locking mode (user, usernoread, auto, autonoread, permanent,
          permanentwait).
        `interval`
          In case of AutoLocking the inspection interval defines how often
          the table system checks if another process needs a lock on the table.
        `maxwait`
          the maximum time to wait when acquiring a lock in AutoLocking mode.

        """
        return self._lockoptions()

    def datachanged(self):
        """Tell if data in the table have changed since the last time
        called."""

# Path: casacore/tables/tablehelper.py
# def _add_prefix(name):
#     """Add the prefix 'Table: ' to a table name to get a specific keyword value."""
#     return 'Table: ' + name
# 
# def _remove_prefix(name):
#     """Strip the possible prefix 'Table: ' from one or more table names."""
#     if isinstance(name, string_types):
#         return _do_remove_prefix(name)
#     return [_do_remove_prefix(nm) for nm in name]
# 
# def _do_remove_prefix(name):
#     """Strip the possible prefix 'Table: ' from a table name."""
#     res = name
#     if isinstance(res, string_types):
#         if res.find('Table: ') == 0:
#             res = res.replace('Table: ', '', 1)
#     return res
# 
# def _format_row(row, colnames, tab):
#     """
#     Helper function for _repr_html. Formats one row.
#     :param row: row of this table
#     :param colnames: vector of column names
#     :param tab: table, used to get the column keywords
#     :return: html-formatted row
#     """
#     out = ""
# 
#     out += "\n<tr>"
#     for colname in colnames:
#         out += "<td style='vertical-align:top; white-space:pre'>"
#         out += _format_cell(row[colname], tab.getcolkeywords(colname))
#         out += "</td>\n"
#     out += "</tr>\n"
#     return out


# Path: casacore/tables/table.py
from six import string_types
from ._tables import (Table,
                      _default_ms,
                      _default_ms_subtable,
                      _required_ms_desc,
                      _complete_ms_desc)
from .tablehelper import (_add_prefix, _remove_prefix, _do_remove_prefix,
                          _format_row)
        from .tablerow import _tablerow
        from .tablecolumn import tablecolumn
        from .tablerow import tablerow
        from .tableiter import tableiter
        from .tableindex import tableindex
                    from casacore.tables import tabledelete
            from wxPython.wx import wxPySimpleApp
            from wxtablebrowser import CasaTestFrame
                        from casacore.tables import tabledelete
import six
        import casacore.util
            import casacore.tables.tableutil as pt
        import casacore.tables.tableutil as pt
        import os
                import wxPython
            import sys
        import os

        acquired by lock().
        Nothing will be done if the table is not locked.

        """
        self._unlock()

    def haslock(self, write=True):
        """Test if the table is read or write locked."""
        return self._haslock(write)

    def lockoptions(self):
        """Return the lockoptions.

        They are returned as a dict with fields:

        'option'
          the locking mode (user, usernoread, auto, autonoread, permanent,
          permanentwait).
        `interval`
          In case of AutoLocking the inspection interval defines how often
          the table system checks if another process needs a lock on the table.
        `maxwait`
          the maximum time to wait when acquiring a lock in AutoLocking mode.

        """
        return self._lockoptions()

    def datachanged(self):
        """Tell if data in the table have changed since the last time
        called."""

        return self._datachanged()