Skip to content

Commit

Permalink
Fix extract_toc.py to work on Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvadm committed Aug 27, 2015
1 parent 197fdb6 commit c5a929f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extract_toc.py
@@ -1,4 +1,4 @@
#!/bin/python
#!/usr/bin/python

from BeautifulSoup import BeautifulSoup
import sys, os
Expand All @@ -14,4 +14,4 @@
soup = BeautifulSoup(h)
for div in soup.html.body.findAll('div'):
if (div.has_attr('id')) and (div['id'] == 'TOC'):
print div
print(div)

0 comments on commit c5a929f

Please sign in to comment.