Skip to content

Commit edf782e

Browse files
authored
STY: Tweak if statement (#3176)
1 parent a86c319 commit edf782e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pypdf/generic/_base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ def write_to_stream(
569569
@staticmethod
570570
def read_from_stream(stream: StreamType) -> Union["NumberObject", "FloatObject"]:
571571
num = read_until_regex(stream, NumberObject.NumberPattern)
572-
if num.find(b".") != -1:
572+
if b"." in num:
573573
return FloatObject(num)
574574
return NumberObject(num)
575575

0 commit comments

Comments
 (0)