Skip to content

Commit 0c17f55

Browse files
authored
Merge pull request karpathy#66 from gokceneraslan/patch-1
Use local URL variable instead of the global one
2 parents fc8aff3 + 6ea68b9 commit 0c17f55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fetch_papers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def parse_arxiv_url(url):
3838
we want to extract the raw id and the version
3939
"""
4040
ix = url.rfind('/')
41-
idversion = j['id'][ix+1:] # extract just the id (and the version)
41+
idversion = url[ix+1:] # extract just the id (and the version)
4242
parts = idversion.split('v')
4343
assert len(parts) == 2, 'error parsing url ' + url
4444
return parts[0], int(parts[1])

0 commit comments

Comments
 (0)