Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#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)

Portfile.diff (1005 bytes) - added by kurthindenburg (Kurt Hindenburg) 10 years ago.

Download all attachments as: .zip

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)

Note that I try using the python33 subport that generated the error

comment:2 Changed 10 years ago by petrrr

Cc: petr@… added

Cc Me!

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:4 Changed 10 years ago by petrrr

The contributes to the two repos mostly coincide.

comment:5 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Resolution: fixed
Status: newclosed

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?

comment:7 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

I already did in r126836

Note: See TracTickets for help on using tickets.