r89631 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89630‎ | r89631 | r89632 >
Date:08:16, 7 June 2011
Author:laner
Status:deferred
Tags:
Comment:
Skip empty lines
Modified paths:
  • /trunk/extensions/OpenStackManager/scripts/ldapsupportlib.py (modified) (history)

Diff [purge]

Index: trunk/extensions/OpenStackManager/scripts/ldapsupportlib.py
@@ -85,6 +85,8 @@
8686 def getLdapInfo(self, attr, conffile="/etc/ldap.conf"):
8787 f = open(conffile)
8888 for line in f:
 89+ if line.strip() == "":
 90+ continue
8991 if line.split()[0] == attr:
9092 return line.split()[1]
9193 break

Status & tagging log