[arch-commits] Commit in python-networkx/trunk (python-3.4.patch)
Felix Yan
fyan at nymeria.archlinux.org
Sun Jun 22 03:20:09 UTC 2014
Date: Sunday, June 22, 2014 @ 05:20:08
Author: fyan
Revision: 113409
remove obsolete patch
Deleted:
python-networkx/trunk/python-3.4.patch
------------------+
python-3.4.patch | 24 ------------------------
1 file changed, 24 deletions(-)
Deleted: python-3.4.patch
===================================================================
--- python-3.4.patch 2014-06-22 03:13:30 UTC (rev 113408)
+++ python-3.4.patch 2014-06-22 03:20:08 UTC (rev 113409)
@@ -1,24 +0,0 @@
-Description: Backport python3 fixes.
-Author: Chuck Short <zulcss at ubuntu.com>
-Forwarded: Not needed
-diff -Naurp networkx-1.8.1.orig/networkx/readwrite/nx_shp.py networkx-1.8.1/networkx/readwrite/nx_shp.py
---- networkx-1.8.1.orig/networkx/readwrite/nx_shp.py 2013-08-04 09:53:31.000000000 -0400
-+++ networkx-1.8.1/networkx/readwrite/nx_shp.py 2014-01-27 10:57:47.015239061 -0500
-@@ -154,7 +154,7 @@ def write_shp(G, outdir):
- feature.SetGeometry(g)
- if attributes != None:
- # Loop through attributes, assigning data to each field
-- for field, data in attributes.iteritems():
-+ for field, data in attributes.iter():
- feature.SetField(field, data)
- lyr.CreateFeature(feature)
- feature.Destroy()
-@@ -189,7 +189,7 @@ def write_shp(G, outdir):
- data = G.get_edge_data(*e)
- g = netgeometry(e, data)
- # Loop through attribute data in edges
-- for key, data in e[2].iteritems():
-+ for key, data in e[2].iter():
- # Reject spatial data not required for attribute table
- if (key != 'Json' and key != 'Wkt' and key != 'Wkb'
- and key != 'ShpName'):
More information about the arch-commits
mailing list