pep8: Add compliance with rule E261 to api/examples/upload-file.

This commit is contained in:
Aditya Bansal 2017-06-01 00:48:38 +05:30 committed by Tim Abbott
parent 4e0424e9ff
commit b82abbffe6

View file

@ -32,7 +32,7 @@ from typing import IO
import zulip import zulip
class StringIO(_StringIO): class StringIO(_StringIO):
name = '' # https://github.com/python/typeshed/issues/598 name = '' # https://github.com/python/typeshed/issues/598
usage = """upload-file --user=<user's email address> --api-key=<user's api key> [options] usage = """upload-file --user=<user's email address> --api-key=<user's api key> [options]
@ -51,7 +51,7 @@ parser.add_option_group(zulip.generate_option_group(parser))
client = zulip.init_from_options(options) client = zulip.init_from_options(options)
file = None # type: IO file = None # type: IO
if options.file_path: if options.file_path:
file = open(options.file_path, 'rb') file = open(options.file_path, 'rb')
else: else: