467,915 Members | 1,188 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,915 developers. It's quick & easy.

FCNTL module deprecation warning

(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:
import fcntl 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

Jul 18 '05 #1
  • viewed: 2293
Share:
2 Replies
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
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Jul 18 '05 #2
Sybren Stuvel wrote:

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.


And check for any .pyc files that might be involved, like FCNTL.pyc,
since they might be confusing things even more...
Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Rob McCrea | last post: by
4 posts views Thread by Omid Fatemi | last post: by
5 posts views Thread by marcello | last post: by
1 post views Thread by psreddy71 | last post: by
9 posts views Thread by mhearne808[insert-at-sign-here]gmail[insert-dot-he | last post: by
2 posts views Thread by xucs007 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.