Remove unused or duplicated imports
Fixes the following pylint's warnings: W: 9, 0: Unused import io (unused-import) W: 33, 1: Unused walk imported from os (unused-import) W:308, 4: Reimport 're' (imported line 16) (reimported) W: 17, 1: Reimport 'os' (imported line 8) (reimported)
This commit is contained in:
1 parent
c04fade9a7
commit
709f7a76f1
4 files changed
+3
-5
No files matched your search
@@ -305,7 +305,6 @@ def git_parse_lookup_file(path):
|
||||
if not os.path.exists(path):
|
||||
return []
|
||||
|
||||
import re
|
||||
lookup = []
|
||||
with open(path, "r") as f:
|
||||
for line in f:
|
||||
|
||||
@@ -6,7 +6,7 @@ Originally from http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import, division, print_function
|
||||
import sys, os, time, signal, io
|
||||
import sys, os, time, signal
|
||||
|
||||
class Daemon:
|
||||
"""
|
||||
|
||||
@@ -29,9 +29,9 @@ import collections
|
||||
import re
|
||||
|
||||
try:
|
||||
from os import scandir, walk
|
||||
from os import scandir
|
||||
except ImportError:
|
||||
from scandir import scandir, walk
|
||||
from scandir import scandir
|
||||
|
||||
|
||||
# currently configured timelapse
|
||||
|
||||
@@ -14,7 +14,6 @@ from distutils.command.clean import clean as _clean
|
||||
|
||||
|
||||
def package_data_dirs(source, sub_folders):
|
||||
import os
|
||||
dirs = []
|
||||
|
||||
for d in sub_folders:
|
||||
|
||||
Reference in new issue
Block a user