upload-file: Remove ancient StringIO workaround.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
43a9263114
commit
b37708b96e
1 changed files with 1 additions and 6 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Reference in a new issue