~divmod-dev/divmod.org/service-515

« back to all changes in this revision

Viewing changes to Nevow/nevow/loaders.py

  • Committer: mithrandi
  • Date: 2006-04-14 17:23:46 UTC
  • Revision ID: svn-v4:866e43f7-fbfc-0310-8f2a-ec88d1da2979:trunk:6111
Merge cleanups-835-2.

Fixes #835
Author: mithrandi
Reviewer: glyph

Fix a whole bunch of code causing various Pyflakes warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
from nevow import flat
31
31
from nevow.flat import flatsax
32
32
 
33
 
try:
34
 
    from twisted.python.reflect import getClass
35
 
except ImportError:
36
 
    def getClass(obj):
37
 
        if hasattr(obj, '__class__'):
38
 
            return obj.__class__
39
 
        else:
40
 
            return type(obj)
 
33
from twisted.python.reflect import getClass
41
34
 
42
35
 
43
36
class DocFactory: