Remove unused imports and group them

Bug #1218594 reported by Matt Jones
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Raise
Fix Released
Medium
Unassigned

Bug Description

Many imports are not used like threading and glob. Similar imports can be grouped too.

This looks better:

import os, sys, platform
import tempfile, shutil, filecmp
import multiprocessing, subprocess
import signal, atexit
import re
import time
import traceback
if sys.version_info < (3, 0):
 import urllib2
 globals()['urlopen'] = urllib2.urlopen
else:
 import urllib.request
 globals()['urlopen'] = urllib.request.urlopen

Revision history for this message
Matt Jones (workhorsy) wrote :
Changed in raise:
status: Confirmed → Fix Committed
Matt Jones (workhorsy)
Changed in raise:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.