Kaydet (Commit) 6013c981 authored tarafından Fatih Aşıcı's avatar Fatih Aşıcı

Do case-insensitive comparison for entry names

Merged from 1.x branch
üst 24a9a43d
2009-03-28 Fatih Aşıcı <fatih@pardus.org.tr>
* zorg/parser.py:
Do case-insensitive comparison for entry names
2009-03-20 Fatih Aşıcı <fatih@pardus.org.tr>
* zorg/config.py, zorg/consts.py, zorg/hwdata.py, zorg/probe.py:
- Refactor variable names to increase consistency.
......
......@@ -72,8 +72,9 @@ class XorgSection:
self.options = {}
def entry(self, key):
key = key.lower()
for entry in self.entries:
if entry.key == key: # Comparisons must be case-insensitive; but ignore for now
if entry.key.lower() == key:
return entry
return None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment