mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
Namely, it automatically surrounds them with parentheses and inserts a trailing comma after the last imported name if necessary, e.g. when several "from" imports with the same source were combined into a single long statement that needs to be wrapped.
25 lines
484 B
Python
25 lines
484 B
Python
from __future__ import absolute_import
|
|
from __future__ import unicode_literals
|
|
|
|
import sys
|
|
from datetime import timedelta
|
|
|
|
import # broken
|
|
import a
|
|
import b
|
|
import foo # broken
|
|
import z
|
|
from
|
|
from a import C1
|
|
from alphabet import *
|
|
from alphabet import B, A
|
|
from alphabet import C
|
|
from alphabet import D
|
|
from b import func
|
|
|
|
from . import m1
|
|
from . import m4, m5
|
|
from .pkg import m3
|
|
from .. import m2
|
|
|
|
print(z, b, a, C1, func, sys, abc, foo, timedelta, A, B, C, D, m1, m2, m3, m4, m5) |