• Jeremy Hylton's avatar
    Revise interface between ExportImport and Connection. · d9c7eca5
    Jeremy Hylton authored
    The Connection class inherits from the ExportImport mixin, but they
    had an arm's length interaction.  Restructure the code to provide
    direct interaction via the _import attribute.
    
    Remove the more general onCommitCallback() method.  It was only used
    by ExportImport.
    
    A lot of cosmetic changes to ExportImport:
        - don't make local variables out of attribute lookups
        - avoid local variable names that shadow builtins
        - prefer isinstance() to type comparisons
        - prefer absolute imports to relative imports
    d9c7eca5
Connection.py 24.1 KB