Skip to content

Commit

Permalink
remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Dec 19, 2017
1 parent 6a47bea commit d7fb5d9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion .git-pre-commit
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions pyftpdlib/servers.py
Expand Up @@ -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')

Expand Down Expand Up @@ -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.