Received: by 10.236.18.167 with SMTP id l27mr369768yhl.103.1310042798783; Thu, 07 Jul 2011 05:46:38 -0700 (PDT) X-BeenThere: html5lib-discuss@googlegroups.com Received: by 10.150.44.4 with SMTP id r4ls380864ybr.7.gmail; Thu, 07 Jul 2011 05:46:37 -0700 (PDT) Received: by 10.236.176.165 with SMTP id b25mr370124yhm.84.1310042797791; Thu, 07 Jul 2011 05:46:37 -0700 (PDT) Received: by 10.236.176.165 with SMTP id b25mr370123yhm.84.1310042797732; Thu, 07 Jul 2011 05:46:37 -0700 (PDT) Return-Path: <3rKoVTggOAM00C54O41uz77z4xv7wx....@codesite.bounces.google.com> Received: from mail-gy0-f203.google.com (mail-gy0-f203.google.com [209.85.160.203]) by gmr-mx.google.com with ESMTPS id t44si3619620yhm.7.2011.07.07.05.46.36 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 07 Jul 2011 05:46:36 -0700 (PDT) Received-SPF: pass (google.com: domain of 3rKoVTggOAM00C54O41uz77z4xv7wx....@codesite.bounces.google.com designates 209.85.160.203 as permitted sender) client-ip=209.85.160.203; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of 3rKoVTggOAM00C54O41uz77z4xv7wx....@codesite.bounces.google.com designates 209.85.160.203 as permitted sender) smtp.mail=3rKoVTggOAM00C54O41uz77z4xv7wx....@codesite.bounces.google.com Received: by gyg4 with SMTP id 4so161379gyg.2 for ; Thu, 07 Jul 2011 05:46:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.202.10 with SMTP id fc10mr925760qab.15.1310042796535; Thu, 07 Jul 2011 05:46:36 -0700 (PDT) Reply-To: codesite-nore...@google.com X-Generated-By: Google Code X-GoogleCode-Project: html5lib X-GoogleCode-Issue-Id: 187 Message-ID: <0-15508416087187093689-11780274161725854950-html5lib=googlecode.com@googlecode.com> Date: Thu, 07 Jul 2011 12:46:36 +0000 Subject: Issue 187 in html5lib: [+PATCH] Python 3 compatibility From: html5...@googlecode.com To: html5lib-discuss@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Status: New Owner: ---- New issue 187 by mtjahan...@gmail.com: [+PATCH] Python 3 compatibility http://code.google.com/p/html5lib/issues/detail?id=187 When converting python directory to python3 (with 2to3), the change code won't work, and it has to minor bugs: 1) import error on `import new` 2) An error related to StringIO and bytes object in inputstream.py I fixed this two problem to work both on python and python 3 (with 2to3) This is my two commits in a cloned repository: http://code.google.com/r/mtjahangir-html5lib-python3/source/list