gvsig-scripting / org.gvsig.scripting / trunk / org.gvsig.scripting / org.gvsig.scripting.app / org.gvsig.scripting.app.mainplugin / src / main / resources-plugin / scripting / lib / pylint / test / input / func_w0404.py @ 745
History | View | Annotate | Download (513 Bytes)
1 |
"""Unittests for W0404 (reimport)"""
|
---|---|
2 |
from __future__ import absolute_import, print_function |
3 |
|
4 |
import sys |
5 |
|
6 |
import xml.etree.ElementTree |
7 |
from xml.etree import ElementTree |
8 |
|
9 |
from email import encoders |
10 |
import email.encoders |
11 |
|
12 |
import sys #pylint: disable=ungrouped-imports |
13 |
__revision__ = 0
|
14 |
|
15 |
def no_reimport(): |
16 |
"""docstring"""
|
17 |
import os |
18 |
print(os) |
19 |
|
20 |
|
21 |
def reimport(): |
22 |
"""This function contains a reimport."""
|
23 |
import sys |
24 |
del sys
|
25 |
|
26 |
|
27 |
del sys, ElementTree, xml.etree.ElementTree, encoders, email.encoders
|