From 39b2dbb06944624357c2ec1436b50c51f6696326 Mon Sep 17 00:00:00 2001 From: Long Date: Sat, 25 Feb 2017 11:21:41 +0700 Subject: [PATCH] Workaround on android Workaround https://code.google.com/p/pyftpdlib/issues/detail?id=272 on OpenBSD and Android (using termux). --- pyftpdlib/servers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyftpdlib/servers.py b/pyftpdlib/servers.py index e703af3f..ab6dba73 100644 --- a/pyftpdlib/servers.py +++ b/pyftpdlib/servers.py @@ -515,6 +515,8 @@ def _map_len(self): if os.name == 'posix': try: import multiprocessing + multiprocessing.Lock() + multiprocessing.Event() except ImportError: pass else: