how to solve the syntax error in beautifulsoup

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anbujeremiah
    New Member
    • Dec 2011
    • 1

    how to solve the syntax error in beautifulsoup

    in beautifulsoup.p y file, the following error occurs,

    if not : self.originalEn coding = None
    ^
    SyntaxError: invalid syntax

    ------
    in above code, how to solve the syntax error...
  • Glenton
    Recognized Expert Contributor
    • Nov 2008
    • 391

    #2
    Code:
    if not : self.originalEncoding = None
    is not valid syntax.

    Find the line and change it. I'm a little unclear what you intended by the line. Maybe if you could post more of the surrounding code and your intention behind it.

    Comment

    Working...