est / winpdb

Automatically exported from code.google.com/p/winpdb
0 stars 1 forks source link

Python 2.6 DeprecationWarnings #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Upon importing winpdb using python 2.6, the following deprecation warnings are 
issued.

rpdb2.py:314: DeprecationWarning: the sets module is deprecated
  import sets
rpdb2.py:319: DeprecationWarning: The popen2 module is deprecated.  Use the 
subprocess 
module.
  import popen2

The first can probably be fixed by only importing sets if the version of python 
is less than 2 (i.e. 
conditionally when required).  I am not sure where popen2 is used: it seems 
redundant.

Original issue reported on code.google.com by michael....@gmail.com on 10 Jan 2010 at 7:27

GoogleCodeExporter commented 9 years ago
Here is a potential patch.  It does the following:
- Removes "import popen2"
- Defines set and frozenset to be sets.Set and sets.ImmutableSet if version < 
2.3.
- Uses set and frozenset everywhere (never uses "sets").

The patch is against svn version 271.

Original comment by michael....@gmail.com on 11 Jan 2010 at 2:03

Attachments:

GoogleCodeExporter commented 9 years ago
I had issues with sets on python 2.6:

   if isinstance(x, sets.Set): (PyErr) NameError: global name 'sets' is not defined'

A clone is created with patch:

  https://code.google.com/r/trebor74hr-winpdb-rpdb2-own/source/detail?r=180cd872ac743669ad2103c3f44bbc45337bf3bd

(Click on + next to Modify)

Original comment by trebor74hr@gmail.com on 8 Jun 2010 at 10:20

GoogleCodeExporter commented 9 years ago
I also met the similar issue using winpdb1.4.8, python 2.6.6

C:\Python26bit64\lib\site-packages\rpdb2.py:308: DeprecationWarning: the sets 
module is deprecated 
import sets 
C:\Python26bit64\lib\site-packages\rpdb2.py:313: DeprecationWarning: The popen2 
module is deprecated 
. Use the subprocess module. 
import popen2 

any suggestions?

Original comment by wuyi...@gmail.com on 7 Jul 2011 at 6:12

GoogleCodeExporter commented 9 years ago
I am also unable to use winpdb 1.4.8., Python 2.6.6 on Windows XP with Cygwin

# winpdb
\usr\lib\site-packages\rpdb2.py:308: DeprecationWarning: the sets module is 
deprecated 
import sets 
\usr\lib\site-packages\rpdb2.py:313: DeprecationWarning: The popen2 module is 
deprecated 
. Use the subprocess module. 
import popen2 

I would upgrade the priority level to "High".  Any help on this would be great, 
thanks. 

Original comment by joannehk...@gmail.com on 3 Aug 2011 at 1:50