Permalink
Browse files

remove unused method

  • Loading branch information...
giampaolo committed Dec 19, 2017
1 parent 6a47bea commit d7fb5d99339d25d75212c6dfaa7c03371c473f93
Showing with 1 addition and 7 deletions.
  1. +1 −1 .git-pre-commit
  2. +0 −6 pyftpdlib/servers.py
@@ -75,7 +75,7 @@ def sh(cmd):
def main():
out = sh("git diff --cached --name-only")
py_files = [x for x in out.split(b'\n') if x.endswith(b'.py') and
py_files = [x for x in out.split('\n') if x.endswith('.py') and
os.path.exists(x)]
lineno = 0
@@ -304,9 +304,6 @@ def __init__(self, address_or_socket, handler, ioloop=None, backlog=100):
def _start_task(self, *args, **kwargs):
raise NotImplementedError('must be implemented in subclass')
def _current_task(self):
raise NotImplementedError('must be implemented in subclass')
def _map_len(self):
raise NotImplementedError('must be implemented in subclass')
@@ -517,8 +514,5 @@ class MultiprocessFTPServer(_SpawnerBase):
def _start_task(self, *args, **kwargs):
return multiprocessing.Process(*args, **kwargs)
def _current_task(self):
return multiprocessing.current_process()
def _map_len(self):
return len(multiprocessing.active_children())

0 comments on commit d7fb5d9

Please sign in to comment.