email-mirror.py: Make it pass on mypy in python 3.

* Replace filter by list comprehension.

* Add '# type: ignore' to statements which use attributes from
  modeule `posix`, since stubs for posix are missing on python 3.
This commit is contained in:
Eklavya Sharma
2016-07-05 07:27:36 +05:30
committed by Tim Abbott
parent 17cb6e00bd
commit 896c18a57b
2 changed files with 4 additions and 5 deletions

View File

@@ -41,7 +41,6 @@ exclude_py2 = []
exclude_py3 = """
zerver/lib/ccache.py
zerver/management/commands/email-mirror.py
zerver/management/commands/enqueue_file.py
zerver/management/commands/rename_stream.py
zerver/management/commands/runtornado.py