#45231 closed defect (fixed)
py-html2text xrange error with python3
Reported by: | kurthindenburg (Kurt Hindenburg) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.1 |
Keywords: | Cc: | seanfarley (Sean Farley), petrrr | |
Port: | py-html2text |
Description
xrange is not in python3
for i in xrange(len(self.list)): NameError: global name 'xrange' is not defined
I think we should use https://github.com/html2text/html2text 2014.7.3 (aaronsw pasted away some time ago)
I can commit if no one has any objections.
Attachments (1)
Change History (8)
Changed 10 years ago by kurthindenburg (Kurt Hindenburg)
Attachment: | Portfile.diff added |
---|
comment:1 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)
comment:3 Changed 10 years ago by petrrr
Well, html2text
is also available through PyPI currently @2014.9.25: https://pypi.python.org/pypi/html2text/2014.9.25
... and it seems to be based on this repo: https://github.com/Alir3z4/html2text which has a clearer relation aaronsw (and a complete history) as well. For me the relation between the to repos is unclear.
Maybe, we should base the port on the PyPI distribution, as this is what people would usually install.
comment:5 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)
Resolution: | → fixed |
---|---|
Status: | new → closed |
I changed it to use pypi - thanks r126835
comment:6 Changed 10 years ago by petrrr
Maybe, it would be the right occasion to replace py31,32 with py34 subport? What you think?
Note: See
TracTickets for help on using
tickets.
Note that I try using the python33 subport that generated the error