Skip to content

Commit dbee876

Browse files
Python 3.3 and 3.4 do not support math.inf
1 parent 07575e5 commit dbee876

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/doi/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import re
22
import logging
3-
import math
43

54

65
__version__ = '0.1.0'
@@ -9,7 +8,7 @@
98
logger = logging.getLogger("doi")
109

1110

12-
def pdf_to_doi(filepath, maxlines=math.inf):
11+
def pdf_to_doi(filepath, maxlines=float('inf')):
1312
"""Try to get doi from a filepath, it looks for a regex in the binary
1413
data and returns the first doi found, in the hopes that this doi
1514
is the correct one.

0 commit comments

Comments
 (0)