comparison MoinMoin/wikiutil.py @ 3812:30ed528054ed

fix some pep8 failures
author Johannes Berg <johannes AT sipsolutions DOT net>
date Wed, 02 Jul 2008 01:05:09 +0200
parents 88b2eecd1fed
children 6e7ab559c67d
comparison
equal deleted inserted replaced
3811:e22cd9105e37 3812:30ed528054ed
1147 try: 1147 try:
1148 return getattr(module, name) 1148 return getattr(module, name)
1149 except AttributeError: 1149 except AttributeError:
1150 raise PluginAttributeError 1150 raise PluginAttributeError
1151 else: 1151 else:
1152 # module now has the toplevel module of <moduleName> (see __import__ docs!) 1152 # module now has the toplevel module of <moduleName> (see __import__ docs!)
1153 components = moduleName.split('.') 1153 components = moduleName.split('.')
1154 for comp in components[1:]: 1154 for comp in components[1:]:
1155 module = getattr(module, comp) 1155 module = getattr(module, comp)
1156 return module 1156 return module
1157 1157
1158 1158
1159 def builtinPlugins(kind): 1159 def builtinPlugins(kind):
1160 """ Gets a list of modules in MoinMoin.'kind' 1160 """ Gets a list of modules in MoinMoin.'kind'
1161 1161