home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_2302 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  620 b   |  21 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. from PyQt4.uic.exceptions import WidgetPluginError
  5.  
  6. def load_plugin(plugin, plugin_globals, plugin_locals):
  7.     
  8.     try:
  9.         exec (plugin.read(), plugin_globals, plugin_locals)
  10.     except ImportError:
  11.         return False
  12.         except Exception:
  13.             e = None
  14.             raise WidgetPluginError('%s: %s' % (e.__class__, str(e)))
  15.         except:
  16.             None<EXCEPTION MATCH>Exception
  17.         
  18.  
  19.     return True
  20.  
  21.