http://bugzilla.lysator.liu.se/show_bug.cgi?id=1694
Summary: Use built in set type instead of deprecated sets module
Product: pcl-expect
Version: 0.1.0
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: other
AssignedTo: ceder(a)lysator.liu.se
ReportedBy: qha(a)lysator.liu.se
QAContact: pcl-expect-qa(a)lists.lysator.liu.se
I'm trying to run an application built with pcl-expect on Python 2.6.5 and I
get messages like:
/usr/lib/python2.6/site-packages/pcl_expect/__init__.py:23: DeprecationWarning:
the sets module is deprecated
import sets
I've fixed this by applying the following patch:
% diff -u pcl-expect-0.1.0/pcl_expect/__init__.py
pcl-expect-0.1.0.liu/pcl_expect/__init__.py
--- pcl-expect-0.1.0/pcl_expect/__init__.py 2003-10-26 23:49:17.000000000
+0100
+++ pcl-expect-0.1.0.liu/pcl_expect/__init__.py 2011-09-28 10:55:53.010092373
+0200
@@ -20,7 +20,6 @@
FIXME: more doc needed.
"""
-import sets
import os
import re
import errno
@@ -266,8 +265,8 @@
"""
self.__first = True
- self.__inputs = sets.Set()
- self.__readable = sets.Set()
+ self.__inputs = set()
+ self.__readable = set()
self.__timeout = timeout
self.__timeout_raises_exception = timeout_raises_exception
self.__timeout_active = False
@@ -328,7 +327,7 @@
self.__acted = False
- self.__readable = sets.Set(r)
+ self.__readable = set(r)
if len(self.__readable) == 0:
if timeout_possible:
debug("Processing timeout event")
--
Configure bugmail: http://bugzilla.lysator.liu.se/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.