Reimport 'os' (imported line 3)
114 str: Path to the extracted desktop file
115
116 """
117 import os118 import shutil
119 import subprocess
120 import tempfile
Description
A module or an import name is reimported multiple times. This can be confusing and should be fixed. Please refer to the occurrence message to see the reimported name and the line number where it was imported for the first time.
Bad practice
import os
from os import path
from sys import path
import os
Here, the import name path
from the module os
has been imported twice.
Recommended
import os
from os import path