Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

func_w0404.py 532B

123456789101112131415161718192021222324252627
  1. """Unittests for W0404 (reimport)"""
  2. from __future__ import absolute_import, print_function
  3. import sys
  4. import xml.etree.ElementTree
  5. from xml.etree import ElementTree
  6. from email import encoders
  7. import email.encoders
  8. import sys #pylint: disable=ungrouped-imports,wrong-import-order
  9. __revision__ = 0
  10. def no_reimport():
  11. """docstring"""
  12. import os
  13. print(os)
  14. def reimport():
  15. """This function contains a reimport."""
  16. import sys
  17. del sys
  18. del sys, ElementTree, xml.etree.ElementTree, encoders, email.encoders