r89632 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89631‎ | r89632 | r89633 >
Date:08:20, 7 June 2011
Author:laner
Status:deferred
Tags:
Comment:
Skip empty lines
Modified paths:
  • /trunk/tools/subversion/user-management/ldapsupportlib.py (modified) (history)

Diff [purge]

Index: trunk/tools/subversion/user-management/ldapsupportlib.py
@@ -83,6 +83,8 @@
8484 def getLdapInfo(self, attr, conffile="/etc/ldap.conf"):
8585 f = open(conffile)
8686 for line in f:
 87+ if line.strip() == "":
 88+ continue
8789 if line.split()[0].lower() == attr.lower():
8890 return line.split(None, 1)[1].strip()
8991 break

Status & tagging log