FCNTL module deprecation warning

M

Meyer, Tony

(I did try to google for an answer to this, but couldn't find anything,
although plenty of instances of the warning).

I don't understand this warning:C:\Program Files\Python23\lib\fcntl.py:7: DeprecationWarning: the FCNTL
module is deprecated; please use fcntl
DeprecationWarning)
It seems to be saying that I shouldn't use "import FCNTL" (which gives
the same warning), but "import fcntl", but that's what I _am_ doing.

(I don't actually even import fnctl, but httplib does, and causes this
all over the place.

Any light shedding would be appreciated.

=Tony Meyer
 
S

Sybren Stuvel

Meyer, Tony enlightened us with:
C:\Program Files\Python23\lib\fcntl.py:7: DeprecationWarning: the
FCNTL module is deprecated; please use fcntl

Seems you're using windoze.
It seems to be saying that I shouldn't use "import FCNTL" (which gives
the same warning), but "import fcntl", but that's what I _am_ doing.

Windoze has a case insensitive filesystem, and thus it can't see the
difference between FCNTL and fcntl. Try removing the depricated FCNTL
from your harddisk, or rename it to FCNTL-dep.py.

Sybren
 
P

Peter Hansen

Sybren said:
Meyer, Tony enlightened us with:

Seems you're using windoze.


Windoze has a case insensitive filesystem, and thus it can't see the
difference between FCNTL and fcntl. Try removing the depricated FCNTL
from your harddisk, or rename it to FCNTL-dep.py.

And check for any .pyc files that might be involved, like FCNTL.pyc,
since they might be confusing things even more...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top