forked from orbit-oss/flask
Cleanup
This commit is contained in:
parent
8488a3afa9
commit
61d5e6a4d4
2 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,6 @@ def fix_imports(red):
|
||||||
package = values[2].value
|
package = values[2].value
|
||||||
modules = from_imports[x].modules()
|
modules = from_imports[x].modules()
|
||||||
r = "{}," * len(modules)
|
r = "{}," * len(modules)
|
||||||
print modules
|
|
||||||
from_imports[x].replace("from flask_%s import %s"
|
from_imports[x].replace("from flask_%s import %s"
|
||||||
% (package, r.format(*modules)[:-1]))
|
% (package, r.format(*modules)[:-1]))
|
||||||
# Case 2
|
# Case 2
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ from flask.ext.foo import (bam,
|
||||||
b
|
b
|
||||||
)
|
)
|
||||||
|
|
||||||
|
import flask.ext.foo
|
||||||
|
|
||||||
from flask.ext import foo
|
from flask.ext import foo
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue