From: rread Date: Fri, 3 Jan 2003 19:24:14 +0000 (+0000) Subject: * fix for python 1.5.x, but causes ugly deprecation error on 2.2 X-Git-Tag: v1_7_100~1^248~126 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=05546dff902dde03558ae807c365c8c3fbac7192;p=fs%2Flustre-release.git * fix for python 1.5.x, but causes ugly deprecation error on 2.2 --- diff --git a/lustre/utils/lconf.in b/lustre/utils/lconf.in index 09b3b13..ba29175 100755 --- a/lustre/utils/lconf.in +++ b/lustre/utils/lconf.in @@ -25,7 +25,7 @@ # Based in part on the XML obdctl modifications done by Brian Behlendorf import sys, getopt, types -import string, os, stat, popen2, socket, time, random, fcntl, select +import string, os, stat, popen2, socket, time, random, FCNTL, select import re, exceptions import xml.dom.minidom @@ -171,7 +171,6 @@ class Config: def dump_file(self, val = None): if val: self._dump_file = val return self._dump_file - def minlevel(self, val = None): if val: self._minlevel = int(val) return self._minlevel @@ -295,8 +294,8 @@ class LCTLInterface: raise CommandError('lctl', "unable to find lctl binary.") def set_nonblock(self, fd): - fl = fcntl.fcntl(fd, fcntl.F_GETFL) - fcntl.fcntl(fd, fcntl.F_SETFL, fl | os.O_NDELAY) + fl = FCNTL.fcntl(fd, FCNTL.F_GETFL) + FCNTL.fcntl(fd, FCNTL.F_SETFL, fl | os.O_NDELAY) def run(self, cmds): """