duplicity-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Duplicity-tracker] [patch #6300] Standard library replacement for Parse


From: Kenneth Loafman
Subject: [Duplicity-tracker] [patch #6300] Standard library replacement for ParsedUrl class
Date: Mon, 03 Dec 2007 21:42:14 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.10) Gecko/20060601 Firefox/2.0.0.10 (Ubuntu-edgy)

Follow-up Comment #9, patch #6300 (project duplicity):

You're probably running Python 2.4 or earlier.  That is the problem that got
this patch removed.  We have to support Python 2.4 at least, 2.3 would be
desirable.

In 2.4, urlparse only returned a tuple.  In 2.5, it returns a tuple-like
object that has tuple behavior, plus named attributes.  In 2.4, netloc is
pu[netloc].  In 2.5, netloc is pu[netloc] and pu.netloc, both tuple and
attribute.  The fix I would put in would be a shim that recognizes the version
and returns the tuple-like object under 2.5, or gens the tuple-like object
when under 2.4.  Then we could just call the shim.


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6300>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]