Skip to content

Commit

Permalink
Fix missing first parameter of getattr method :p.
Browse files Browse the repository at this point in the history
  • Loading branch information
mansenfranzen committed Oct 10, 2016
1 parent a6d7e69 commit 689090e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions confipy/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ class DotNotation(object):
to clash with variable names from config files.
"""

def __getitem__(self, key):
"""Support bracketing attribute access. It is required to access
"""Support bracketing attribute access. It is required to access
attributes with builtin names like 'except'."""
return getattr(key)
return getattr(self, key)

def __setitem__(self, key, value):
"""Support bracketing attribute setting."""
Expand Down

0 comments on commit 689090e

Please sign in to comment.