pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/py-eventlib Dictionary comprehension is not suppor...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f5f95bb0154d
branches:  trunk
changeset: 635452:f5f95bb0154d
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Jun 06 12:49:23 2014 +0000

description:
Dictionary comprehension is not supported by Python 2.6, avoid.

diffstat:

 net/py-eventlib/distinfo                       |   3 ++-
 net/py-eventlib/patches/patch-eventlib_core.py |  13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 6bca184c497b -r f5f95bb0154d net/py-eventlib/distinfo
--- a/net/py-eventlib/distinfo  Fri Jun 06 12:48:35 2014 +0000
+++ b/net/py-eventlib/distinfo  Fri Jun 06 12:49:23 2014 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1 2014/05/03 15:20:12 rodent Exp $
+$NetBSD: distinfo,v 1.2 2014/06/06 12:49:23 joerg Exp $
 
 SHA1 (eventlib-0.1.5.tar.gz) = 580a067739b4fa2e75764cbe2d0d5dcbeeec769a
 RMD160 (eventlib-0.1.5.tar.gz) = 253dea5ef9d6ecad70a991722f28106356ba64ef
 Size (eventlib-0.1.5.tar.gz) = 11278 bytes
+SHA1 (patch-eventlib_core.py) = f2617df1e77421c2367aaf6079071a3d417dbd9d
diff -r 6bca184c497b -r f5f95bb0154d net/py-eventlib/patches/patch-eventlib_core.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-eventlib/patches/patch-eventlib_core.py    Fri Jun 06 12:49:23 2014 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-eventlib_core.py,v 1.1 2014/06/06 12:49:23 joerg Exp $
+
+--- eventlib/core.py.orig      2014-06-06 11:58:21.000000000 +0000
++++ eventlib/core.py
+@@ -191,7 +191,7 @@ def filter_data_values(data):
+     and return another dict without them.
+     """
+     banned = ('request',)
+-    return {key: val for key, val in data.items() if not key in banned}
++    return dict((key, val) for key, val in data.items() if not key in banned)
+ 
+ 
+ def import_event_modules():



Home | Main Index | Thread Index | Old Index