Package implementing various functions/classes needed everywhere within eric3.
CodingError | Class implementing an exception, which is raised, if a given coding is incorrect. |
compile | Function to compile one Python source file to Python bytecode. |
decode | Function to decode a text. |
direntries | Function returning a list of all files and directories. |
encode | Function to encode a text. |
escape | Function to escape &, <, and > in a string of data. |
escape_entities | Function to encode html entities. |
escape_uentities | Function to encode html entities. |
getConfigDir | Module function to get the name of the directory storing the config data. |
getDirs | Function returning a list of all directories below path. |
getExecutablePath | Function to build the full path of an executable file from the environment. |
getPythonLibPath | Function to determine the path to Pythons library. |
getPythonVersion | Function to get the Python version (major, minor) as an integer value. |
getTestFileName | Function to build the filename of a unittest file. |
get_coding | Function to get the coding of a text. |
html_encode | Function to correctly encode a text for html. |
html_uencode | Function to correctly encode a unicode text for html. |
isinpath | Function to check for an executable file. |
joinext | Function to join a file extension to a path. |
normabsjoinpath | Function returning a normalized, absolute path of the joined parts passed into it. |
normabspath | Function returning a normalized, absolute path. |
normcasepath | Function returning a path, that is normalized with respect to its case and references. |
normjoinpath | Function returning a normalized path of the joined parts passed into it. |
parseEnvironmentString | Function used to convert an environment string into a list of environment settings. |
parseOptionString | Function used to convert an option string into a list of options. |
parseString | Function used to convert a string into a list. |
samepath | Function to compare two paths. |
splitPath | Function to split a pathname into a directory part and a file part. |
toUnicode | Private method to convert a string to unicode. |
win32_Kill | Function to provide an os.kill equivalent for Win32. |
Class implementing an exception, which is raised, if a given coding is incorrect.
CodingError | Constructor |
__repr__ | Private method returning a representation of the exception. |
__str__ | Private method returning a string representation of the exception. |
Constructor
Private method returning a representation of the exception.
Private method returning a string representation of the exception.
Function to compile one Python source file to Python bytecode.
Function to decode a text.
Function returning a list of all files and directories.
Function to encode a text.
Function to escape &, <, and > in a string of data.
Function to encode html entities.
Function to encode html entities.
Module function to get the name of the directory storing the config data.
Function returning a list of all directories below path.
Function to build the full path of an executable file from the environment.
Function to determine the path to Pythons library.
Function to get the Python version (major, minor) as an integer value.
Function to build the filename of a unittest file. The filename for the unittest file is built by prepending the string "test" to the filename passed into this function.
Function to get the coding of a text.
Function to correctly encode a text for html.
Function to correctly encode a unicode text for html.
Function to check for an executable file.
Function to join a file extension to a path. The leading "." of ext is replaced by a platform specific extension separator if neccessary.
Function returning a normalized, absolute path of the joined parts passed into it.
Function returning a normalized, absolute path.
Function returning a path, that is normalized with respect to its case and references.
Function returning a normalized path of the joined parts passed into it.
Function used to convert an environment string into a list of environment settings.
Function used to convert an option string into a list of options.
Function used to convert a string into a list.
Function to compare two paths.
Function to split a pathname into a directory part and a file part.
Private method to convert a string to unicode. If the passed in string is of type QString, it is simply returned unaltered, assuming, that it is already a unicode string. For all other strings, various codes are tried until one converts the string without an error. If all codecs fail, the string is returned unaltered.
Function to provide an os.kill equivalent for Win32.