Closed nicksay closed 8 years ago
This change standardizes all imports to the from PACKAGE import MODULE form. This means that
from PACKAGE import MODULE
import spitfire.compiler.parser ... spitfire.compiler.parser.SpitfireParser(...)
becomes
from spitfire.compiler import parser ... parser.SpitfireParser(...)
Also, all from PACKAGE.MODULE import * forms have been removed, and the relevant references prefixed with the module name. This means that
from PACKAGE.MODULE import *
from spitfire.compiler.ast import * ... FunctionNode(...)
from spitfire.compiler import ast ... ast.FunctionNode(...)
Finally, all module aliasing has been removed except for those cases where a C-based module is used in favor of a Python-based one. This means that
import cStringIO as StringIO import spitfire.compiler.compiler as sptcompiler ... compiler = sptcompiler.Compiler(...)
import cStringIO as StringIO from spitfire.compiler import compiler ... spt_compiler = compiler.Compiler(...)
Closes #27
Like #25, I'm going to wait until the full test suit is fixed (see #26).
@awbraunstein This is ready for another look
lgtm
This change standardizes all imports to the
from PACKAGE import MODULE
form. This means thatbecomes
Also, all
from PACKAGE.MODULE import *
forms have been removed, and the relevant references prefixed with the module name. This means thatbecomes
Finally, all module aliasing has been removed except for those cases where a C-based module is used in favor of a Python-based one. This means that
becomes
Closes #27