1 |
Hi! |
2 |
|
3 |
On Sun, 12 Jul 2009, Sebastian Pipping wrote: |
4 |
> Tobias Klausmann wrote: |
5 |
> > /home/klausman/tmp/smolt-gentoo/client/distros/gentoo/globaluseflags.py:22: |
6 |
> > DeprecationWarning: the sets module is deprecated |
7 |
> |
8 |
> I'm looking for advice how to best handle this. |
9 |
> |
10 |
> @all |
11 |
> If you read this and know how please contact me! |
12 |
|
13 |
You could make that import conditional on sys.version_info. I.e. |
14 |
only import it if you need it (neither Python 2.5.4 nor later |
15 |
versions need that import to make sets work, the specifics are |
16 |
documented on python.org). |
17 |
|
18 |
Regards & HTH, |
19 |
Tobias |
20 |
|
21 |
-- |
22 |
printk (KERN_DEBUG "Somebody wants the port\n"); |
23 |
linux-2.6.6/drivers/parport/parport_pc.c |