Skip to content

Commit

Permalink
[Timestamps] Clean import
Browse files Browse the repository at this point in the history
  • Loading branch information
moi15moi committed Jan 14, 2023
1 parent d848757 commit aab9981
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pysubs2/timestamps.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import bisect
import json
import math
import os
import shutil
import subprocess
import sys
from bisect import bisect_right
from decimal import Decimal
from enum import Enum
from fractions import Fraction
from numbers import Number
from typing import Dict, Type, Union, List
from typing import Type, List


class TimeType(Enum):
Expand Down Expand Up @@ -261,7 +259,7 @@ def ms_to_frames(
- 1
)

return bisect.bisect_right(self.timestamps, ms) - 1
return bisect_right(self.timestamps, ms) - 1

def frames_to_ms(
self,
Expand Down

0 comments on commit aab9981

Please sign in to comment.