Commits

mitsuhiko  committed 24794aa

fixed pydoc bug in werkzeug.utils

  • Participants
  • Parent commits 964610c
  • Branches trunk

Comments (0)

Files changed (1)

File werkzeug/utils.py

         self.charset = charset
 
     def __getattr__(self, name):
+        if name[:2] == '__':
+            raise AttributeError(name)
         return Href(urlparse.urljoin(self.base, name), self.charset)
 
     def __call__(self, *path, **query):
         return escape(s)
 
     def __getattr__(self, tag):
+        if tag[:2] == '__':
+            raise AttributeError(tag)
         def proxy(*children, **arguments):
             buffer = ['<' + tag]
             write = buffer.append