~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to pybb/util.py

  • Committer: franku
  • Date: 2016-05-12 19:34:41 UTC
  • mto: This revision was merged to the branch mainline in revision 409.
  • Revision ID: somal@arcor.de-20160512193441-rpqxh23fcqw64v6b
Revert to BeautifulSoup 3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
import traceback
4
4
import json
5
5
 
6
 
from bs4 import BeautifulSoup
 
6
from BeautifulSoup import BeautifulSoup
7
7
from datetime import datetime
8
8
from django.shortcuts import render_to_response
9
9
from django.template import RequestContext
154
154
        Do not urlize content of A and CODE tags.
155
155
        """
156
156
 
157
 
        soup = BeautifulSoup(data, "html.parser")
 
157
        soup = BeautifulSoup(data)
158
158
        for chunk in soup.findAll(text=True):
159
159
            islink = False
160
160
            ptr = chunk.parent