upload-file: Remove ancient StringIO workaround.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2023-11-01 16:57:51 -07:00
parent 43a9263114
commit b37708b96e

View file

@ -1,16 +1,11 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import argparse import argparse
from io import StringIO as _StringIO from io import StringIO
from typing import IO, Any from typing import IO, Any
import zulip import zulip
class StringIO(_StringIO):
name = "" # https://github.com/python/typeshed/issues/598
usage = """upload-file [options] usage = """upload-file [options]
Upload a file, and print the corresponding URI. Upload a file, and print the corresponding URI.