Skip to content

Commit

Permalink
chore: Remove io imports related to Python 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
tkarabela committed May 5, 2024
1 parent df71bbf commit 90186b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion pysubs2/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import re
import os.path as op
import io
from io import open
import sys
from textwrap import dedent
from typing import List
Expand Down
5 changes: 2 additions & 3 deletions pysubs2/ssafile.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import io
from io import open
from itertools import chain
import os.path
import logging
Expand Down Expand Up @@ -149,7 +148,7 @@ def from_file(cls, fp: TextIO, format_: Optional[str] = None, fps: Optional[floa
or :meth:`SSAFile.from_string()` is preferable.
Arguments:
fp (file object): A file object, ie. :class:`io.TextIOBase` instance.
fp (file object): A file object, ie. :class:`TextIO` instance.
Note that the file must be opened in text mode (as opposed to binary).
format_ (str): Optional, forces use of specific parser
(eg. `"srt"`, `"ass"`). Otherwise, format is detected
Expand Down Expand Up @@ -251,7 +250,7 @@ def to_file(self, fp: TextIO, format_: str, fps: Optional[float] = None, **kwarg
or :meth:`SSAFile.to_string()` is preferable.
Arguments:
fp (file object): A file object, ie. :class:`io.TextIOBase` instance.
fp (file object): A file object, ie. :class:`TextIO` instance.
Note that the file must be opened in text mode (as opposed to binary).
"""
Expand Down

0 comments on commit 90186b5

Please sign in to comment.