#NEWLINE# def getImplicitImports( self , full_name ) : #NEWLINE# #INDENT# elements = full_name . split ( '.' ) #NEWLINE# if ( elements [ 0 ] in ( 'PyQt4' , 'PyQt5' ) ) : #NEWLINE# #INDENT# if ( python_version < 300 ) : #NEWLINE# #INDENT# ( yield 'atexit' ) #NEWLINE# #UNINDENT# ( yield 'sip' ) #NEWLINE# child = ( elements [ 1 ] if ( len ( elements ) > 1 ) else None ) #NEWLINE# if ( self in ( 'QtGui' , 'QtAssistant' , 'QtDBus' , 'QtDeclarative' , 'QtDesigner' , 'QtHelp' , 'QtNetwork' , 'QtScript' , 'QtScriptTools' , 'QtSvg' , 'QtTest' , 'QtWebKit' , 'QtXml' , 'QtXmlPatterns' , 'QtPrintSupport' , 'QtWebKitWidgets' ) ) : #NEWLINE# #INDENT# ( yield ( elements [ 0 ] + '.QtCore' ) ) #NEWLINE# #UNINDENT# if ( child in ( 'QtDeclarative' , 'QtWebKit' , 'QtXmlPatterns' , 'QtPrintSupport' , 'QtWebKitWidgets' ) ) : #NEWLINE# #INDENT# ( yield ( elements [ 0 ] + '.QtNetwork' ) ) #NEWLINE# #UNINDENT# if ( child == 'QtScriptTools' ) : #NEWLINE# #INDENT# ( yield ( elements [ 0 ] + '.QtScript' ) ) #NEWLINE# #UNINDENT# if ( child in ( 'QtWidgets' , 'QtDeclarative' , 'QtDesigner' , 'QtHelp' , 'QtScriptTools' , 'QtSvg' , 'QtTest' , 'QtWebKit' , 'QtPrintSupport' , 'QtWebKitWidgets' ) ) : #NEWLINE# #INDENT# ( yield ( elements [ 0 ] + '.QtGui' ) ) #NEWLINE# #UNINDENT# if ( full_name in ( 'PyQt5.QtDesigner' , 'PyQt5.QtHelp' , 'PyQt5.QtTest' , 'PyQt5.QtPrintSupport' , 'PyQt5.QtSvg' , 'PyQt5.QtWebKitWidgets' ) ) : #NEWLINE# #INDENT# ( yield 'PyQt5.QtWidgets' ) #NEWLINE# #UNINDENT# if ( full_name in ( 'PyQt5.QtPrintSupport' , ) ) : #NEWLINE# #INDENT# ( yield 'PyQt5.QtSvg' ) #NEWLINE# #UNINDENT# if ( full_name in ( 'PyQt5.QtWebKitWidgets' , ) ) : #NEWLINE# #INDENT# ( yield 'PyQt5.QtWebKit' ) #NEWLINE# ( yield 'PyQt5.QtPrintSupport' ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( full_name == 'PySide.QtDeclarative' ) : #NEWLINE# #INDENT# ( yield 'PySide.QtGui' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( full_name == 'PySide.QtHelp' ) : #NEWLINE# #INDENT# ( yield 'PySide.QtGui' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( full_name == 'PySide.QtOpenGL' ) : #NEWLINE# #INDENT# ( yield 'PySide.QtGui' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( full_name == 'PySide.QtScriptTools' ) : #NEWLINE# #INDENT# ( yield 'PySide.QtScript' ) #NEWLINE# ( yield 'PySide.QtGui' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( full_name == 'PySide.QtSql' ) : #NEWLINE# #INDENT# ( yield 'PySide.QtGui' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( full_name == 'PySide.QtSvg' ) : #NEWLINE# #INDENT# ( yield 'PySide.QtGui' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( full_name == 'PySide.QtTest' ) : #NEWLINE# #INDENT# ( yield 'PySide.QtGui' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( full_name == 'PySide.QtUiTools' ) : #NEWLINE# #INDENT# ( yield 'PySide.QtGui' ) #NEWLINE# ( yield 'PySide.QtXml' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( full_name == 'PySide.QtWebKit' ) : #NEWLINE# #INDENT# ( yield 'PySide.QtGui' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( full_name == 'PySide.phonon' ) : #NEWLINE# #INDENT# ( yield 'PySide.QtGui' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( full_name == 'lxml.etree' ) : #NEWLINE# #INDENT# ( yield 'gzip' ) #NEWLINE# ( yield 'lxml._elementpath' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( full_name == 'gtk._gtk' ) : #NEWLINE# #INDENT# ( yield 'pangocairo' ) #NEWLINE# ( yield 'pango' ) #NEWLINE# ( yield 'cairo' ) #NEWLINE# ( yield 'gio' ) #NEWLINE# ( yield 'atk' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( full_name == 'reportlab.rl_config' ) : #NEWLINE# #INDENT# ( yield 'reportlab.rl_settings' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( full_name == 'ctypes' ) : #NEWLINE# #INDENT# ( yield '_ctypes' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( full_name == 'gi._gi' ) : #NEWLINE# #INDENT# ( yield 'gi._error' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( full_name == 'gi._gi_cairo' ) : #NEWLINE# #INDENT# ( yield 'cairo' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( full_name == 'cairo._cairo' ) : #NEWLINE# #INDENT# ( yield 'gi._gobject' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( full_name in ( 'Tkinter' , 'tkinter' ) ) : #NEWLINE# #INDENT# ( yield '_tkinter' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( full_name in ( 'cryptography.hazmat.bindings._openssl' , 'cryptography.hazmat.bindings._constant_time' , 'cryptography.hazmat.bindings._padding' ) ) : #NEWLINE# #INDENT# ( yield '_cffi_backend' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if full_name . startswith ( 'cryptography._Cryptography_cffi_' ) : #NEWLINE# #INDENT# ( yield '_cffi_backend' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( full_name == '_dbus_glib_bindings' ) : #NEWLINE# #INDENT# ( yield '_dbus_bindings' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( full_name == '_mysql' ) : #NEWLINE# #INDENT# ( yield '_mysql_exceptions' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( full_name == 'lxml.objectify' ) : #NEWLINE# #INDENT# ( yield 'lxml.etree' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( full_name == '_yaml' ) : #NEWLINE# #INDENT# ( yield 'yaml' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( full_name == 'apt_inst' ) : #NEWLINE# #INDENT# ( yield 'apt_pkg' )