Browse Source

Cleanup

pull/1342/head
Keyan Pishdadian 10 years ago
parent
commit
61d5e6a4d4
  1. 1
      scripts/flaskext_migrate.py
  2. 1
      scripts/test.py

1
scripts/flaskext_migrate.py

@ -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

1
scripts/test.py

@ -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…
Cancel
Save