From: nic Date: Tue, 23 Mar 2004 16:02:02 +0000 (+0000) Subject: allow lconf to work with python1.5. X-Git-Tag: 1.2.2~147 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=51460b4ff709e9cde89a73d0a61bb25a374a36b3;p=fs%2Flustre-release.git allow lconf to work with python1.5. do not support http urls until python2, as that is the first occurance of urllib2, where the error handling for http is finally sane --- diff --git a/lustre/utils/lconf b/lustre/utils/lconf index b5a9fcc..ac22336 100755 --- a/lustre/utils/lconf +++ b/lustre/utils/lconf @@ -2609,8 +2609,8 @@ def main(): init_select(config.select) if len(args) > 0: - # allow config to be fetched via HTTP - if args[0].startswith('http://'): + # allow config to be fetched via HTTP, but only with python2 + if sys.version[0] != '1' and args[0].startswith('http://'): import urllib2 try: config_file = urllib2.urlopen(args[0])