Changeset - 29b8e961436f
[Not reviewed]
default
0 10 0
Thomas De Schampheleire - 7 years ago 2018-08-30 20:28:23
thomas.de_schampheleire@nokia.com
paster_commands: remove unused imports

Remove some unused imports, using 'autoflake' followed by manual redacting.
find kallithea/lib/paster_commands/ -name "*.py" \
| xargs autoflake --remove-all-unused-imports -i

This same command could be applied gradually throughout the code base as
areas are touched. Since autoflake may be too greedy in special cases, it is
more difficult to do a big-bang action over all code.
10 files changed with 0 insertions and 17 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/paster_commands/cache_keys.py
Show inline comments
 
@@ -27,8 +27,6 @@ Original author and date, and relevant c
 
"""
 

	
 

	
 
import os
 
import sys
 

	
 
from kallithea.lib.paster_commands.common import BasePasterCommand
 
from kallithea.model.meta import Session
kallithea/lib/paster_commands/celeryd.py
Show inline comments
 
@@ -4,7 +4,6 @@ import argparse
 

	
 
import kallithea
 
from kallithea.lib.paster_commands.common import BasePasterCommand
 
from kallithea.lib.utils2 import str2bool
 

	
 
__all__ = ['Command']
 

	
kallithea/lib/paster_commands/cleanup.py
Show inline comments
 
@@ -28,7 +28,6 @@ Original author and date, and relevant c
 

	
 

	
 
import os
 
import sys
 
import re
 
import shutil
 
import datetime
kallithea/lib/paster_commands/install_iis.py
Show inline comments
 
@@ -20,7 +20,6 @@ IIS installation tools for Kallithea
 

	
 

	
 
import os
 
import sys
 

	
 
from kallithea.lib.paster_commands.common import BasePasterCommand
 

	
kallithea/lib/paster_commands/ishell.py
Show inline comments
 
@@ -26,7 +26,6 @@ Original author and date, and relevant c
 
"""
 

	
 

	
 
import os
 
import sys
 

	
 
# imports, used in IPython shell
kallithea/lib/paster_commands/make_index.py
Show inline comments
 
@@ -28,7 +28,6 @@ Original author and date, and relevant c
 

	
 
import os
 
import sys
 
from os.path import dirname
 

	
 
from string import strip
 
from kallithea.model.repo import RepoModel
kallithea/lib/paster_commands/make_rcextensions.py
Show inline comments
 
@@ -27,7 +27,6 @@ Original author and date, and relevant c
 

	
 

	
 
import os
 
import sys
 
import pkg_resources
 

	
 
from kallithea.lib.paster_commands.common import ask_ok, BasePasterCommand
kallithea/lib/paster_commands/repo_scan.py
Show inline comments
 
@@ -26,8 +26,6 @@ Original author and date, and relevant c
 
"""
 

	
 

	
 
import os
 
import sys
 

	
 
from kallithea.model.scm import ScmModel
 
from kallithea.lib.paster_commands.common import BasePasterCommand
kallithea/lib/paster_commands/setup_db.py
Show inline comments
 
@@ -19,9 +19,6 @@ Databaset setup gearbox command for Kall
 
"""
 

	
 

	
 
import os
 
import sys
 
import paste.deploy
 

	
 
import kallithea
 
from kallithea.lib.db_manage import DbManage
kallithea/lib/paster_commands/update_repoinfo.py
Show inline comments
 
@@ -26,14 +26,10 @@ Original author and date, and relevant c
 
"""
 

	
 

	
 
import os
 
import sys
 
import string
 

	
 
from kallithea.lib.paster_commands.common import BasePasterCommand
 
from kallithea.lib.utils2 import safe_unicode
 
from kallithea.model.db import Repository
 
from kallithea.model.repo import RepoModel
 
from kallithea.model.meta import Session
 

	
 

	
0 comments (0 inline, 0 general)