--- a/Documentation/Source/eric5.Utilities.__init__.html Thu Jan 14 17:27:31 2010 +0000 +++ b/Documentation/Source/eric5.Utilities.__init__.html Thu Jan 14 18:35:52 2010 +0000 @@ -22,7 +22,7 @@ <body><a NAME="top" ID="top"></a> <h1>eric5.Utilities.__init__</h1> <p> -Package implementing various functions/classes needed everywhere within eric5. +Package implementing various functions/classes needed everywhere within eric5. </p> <h3>Global Attributes</h3> <table> @@ -32,186 +32,186 @@ <table> <tr> <td><a href="#CodingError">CodingError</a></td> -<td>Class implementing an exception, which is raised, if a given coding is incorrect.</td> +<td>Class implementing an exception, which is raised, if a given coding is incorrect.</td> </tr> </table> <h3>Functions</h3> <table> <tr> <td><a href="#_percentReplacementFunc">_percentReplacementFunc</a></td> -<td>Protected function called for replacing % codes.</td> +<td>Protected function called for replacing % codes.</td> </tr><tr> <td><a href="#compactPath">compactPath</a></td> -<td>Function to return a compacted path fitting inside the given width.</td> +<td>Function to return a compacted path fitting inside the given width.</td> </tr><tr> <td><a href="#compile">compile</a></td> -<td>Function to compile one Python source file to Python bytecode.</td> +<td>Function to compile one Python source file to Python bytecode.</td> </tr><tr> <td><a href="#convertLineEnds">convertLineEnds</a></td> -<td>Function to convert the end of line characters.</td> +<td>Function to convert the end of line characters.</td> </tr><tr> <td><a href="#decode">decode</a></td> -<td>Function to decode some byte text into a string.</td> +<td>Function to decode some byte text into a string.</td> </tr><tr> <td><a href="#direntries">direntries</a></td> -<td>Function returning a list of all files and directories.</td> +<td>Function returning a list of all files and directories.</td> </tr><tr> <td><a href="#encode">encode</a></td> -<td>Function to encode text into a byte text.</td> +<td>Function to encode text into a byte text.</td> </tr><tr> <td><a href="#escape_entities">escape_entities</a></td> -<td>Function to encode html entities.</td> +<td>Function to encode html entities.</td> </tr><tr> <td><a href="#escape_uentities">escape_uentities</a></td> -<td>Function to encode html entities.</td> +<td>Function to encode html entities.</td> </tr><tr> <td><a href="#fromNativeSeparators">fromNativeSeparators</a></td> -<td>Function returning a path, that is using "/" separator characters.</td> +<td>Function returning a path, that is using "/" separator characters.</td> </tr><tr> <td><a href="#generateDistroInfo">generateDistroInfo</a></td> -<td>Module function to generate a string with distribution infos.</td> +<td>Module function to generate a string with distribution infos.</td> </tr><tr> <td><a href="#generatePluginsVersionInfo">generatePluginsVersionInfo</a></td> -<td>Module function to generate a string with plugins version infos.</td> +<td>Module function to generate a string with plugins version infos.</td> </tr><tr> <td><a href="#generateQtToolName">generateQtToolName</a></td> -<td>Module function to generate the executable name for a Qt tool like designer.</td> +<td>Module function to generate the executable name for a Qt tool like designer.</td> </tr><tr> <td><a href="#generateVersionInfo">generateVersionInfo</a></td> -<td>Module function to generate a string with various version infos.</td> +<td>Module function to generate a string with various version infos.</td> </tr><tr> <td><a href="#getConfigDir">getConfigDir</a></td> -<td>Module function to get the name of the directory storing the config data.</td> +<td>Module function to get the name of the directory storing the config data.</td> </tr><tr> <td><a href="#getDirs">getDirs</a></td> -<td>Function returning a list of all directories below path.</td> +<td>Function returning a list of all directories below path.</td> </tr><tr> <td><a href="#getEnvironmentEntry">getEnvironmentEntry</a></td> -<td>Module function to get an environment entry.</td> +<td>Module function to get an environment entry.</td> </tr><tr> <td><a href="#getExecutablePath">getExecutablePath</a></td> -<td>Function to build the full path of an executable file from the environment.</td> +<td>Function to build the full path of an executable file from the environment.</td> </tr><tr> <td><a href="#getHomeDir">getHomeDir</a></td> -<td>Function to get a users home directory</td> +<td>Function to get a users home directory</td> </tr><tr> <td><a href="#getPercentReplacement">getPercentReplacement</a></td> -<td>Function to get the replacement for code.</td> +<td>Function to get the replacement for code.</td> </tr><tr> <td><a href="#getPercentReplacementHelp">getPercentReplacementHelp</a></td> -<td>Function to get the help text for the supported %-codes.</td> +<td>Function to get the help text for the supported %-codes.</td> </tr><tr> <td><a href="#getPythonLibPath">getPythonLibPath</a></td> -<td>Function to determine the path to Python's library.</td> +<td>Function to determine the path to Python's library.</td> </tr><tr> <td><a href="#getPythonModulesDirectory">getPythonModulesDirectory</a></td> -<td>Function to determine the path to Python's modules directory.</td> +<td>Function to determine the path to Python's modules directory.</td> </tr><tr> <td><a href="#getPythonVersion">getPythonVersion</a></td> -<td>Function to get the Python version (major, minor) as an integer value.</td> +<td>Function to get the Python version (major, minor) as an integer value.</td> </tr><tr> <td><a href="#getTestFileName">getTestFileName</a></td> -<td>Function to build the filename of a unittest file.</td> +<td>Function to build the filename of a unittest file.</td> </tr><tr> <td><a href="#getUserName">getUserName</a></td> -<td>Function to get the user name.</td> +<td>Function to get the user name.</td> </tr><tr> <td><a href="#get_coding">get_coding</a></td> -<td>Function to get the coding of a text.</td> +<td>Function to get the coding of a text.</td> </tr><tr> <td><a href="#get_codingBytes">get_codingBytes</a></td> -<td>Function to get the coding of a bytes text.</td> +<td>Function to get the coding of a bytes text.</td> </tr><tr> <td><a href="#hasEnvironmentEntry">hasEnvironmentEntry</a></td> -<td>Module function to check, if the environment contains an entry.</td> +<td>Module function to check, if the environment contains an entry.</td> </tr><tr> <td><a href="#html_encode">html_encode</a></td> -<td>Function to correctly encode a text for html.</td> +<td>Function to correctly encode a text for html.</td> </tr><tr> <td><a href="#html_uencode">html_uencode</a></td> -<td>Function to correctly encode a unicode text for html.</td> +<td>Function to correctly encode a unicode text for html.</td> </tr><tr> <td><a href="#isExecutable">isExecutable</a></td> -<td>Function to check, if a file is executable.</td> +<td>Function to check, if a file is executable.</td> </tr><tr> <td><a href="#isinpath">isinpath</a></td> -<td>Function to check for an executable file.</td> +<td>Function to check for an executable file.</td> </tr><tr> <td><a href="#joinext">joinext</a></td> -<td>Function to join a file extension to a path.</td> +<td>Function to join a file extension to a path.</td> </tr><tr> <td><a href="#linesep">linesep</a></td> -<td>Function to return the lineseparator used by the editor.</td> +<td>Function to return the lineseparator used by the editor.</td> </tr><tr> <td><a href="#normabsjoinpath">normabsjoinpath</a></td> -<td>Function returning a normalized, absolute path of the joined parts passed into it.</td> +<td>Function returning a normalized, absolute path of the joined parts passed into it.</td> </tr><tr> <td><a href="#normabspath">normabspath</a></td> -<td>Function returning a normalized, absolute path.</td> +<td>Function returning a normalized, absolute path.</td> </tr><tr> <td><a href="#normcaseabspath">normcaseabspath</a></td> -<td>Function returning an absolute path, that is normalized with respect to its case and references.</td> +<td>Function returning an absolute path, that is normalized with respect to its case and references.</td> </tr><tr> <td><a href="#normcasepath">normcasepath</a></td> -<td>Function returning a path, that is normalized with respect to its case and references.</td> +<td>Function returning a path, that is normalized with respect to its case and references.</td> </tr><tr> <td><a href="#normjoinpath">normjoinpath</a></td> -<td>Function returning a normalized path of the joined parts passed into it.</td> +<td>Function returning a normalized path of the joined parts passed into it.</td> </tr><tr> <td><a href="#parseEnvironmentString">parseEnvironmentString</a></td> -<td>Function used to convert an environment string into a list of environment settings.</td> +<td>Function used to convert an environment string into a list of environment settings.</td> </tr><tr> <td><a href="#parseOptionString">parseOptionString</a></td> -<td>Function used to convert an option string into a list of options.</td> +<td>Function used to convert an option string into a list of options.</td> </tr><tr> <td><a href="#parseString">parseString</a></td> -<td>Function used to convert a string into a list.</td> +<td>Function used to convert a string into a list.</td> </tr><tr> <td><a href="#posix_GetUserName">posix_GetUserName</a></td> -<td>Function to get the user name under Posix systems.</td> +<td>Function to get the user name under Posix systems.</td> </tr><tr> <td><a href="#prepareQtMacBundle">prepareQtMacBundle</a></td> -<td>Module function for starting Qt tools that are Mac OS X bundles.</td> +<td>Module function for starting Qt tools that are Mac OS X bundles.</td> </tr><tr> <td><a href="#pwDecode">pwDecode</a></td> -<td>Module function to decode a password.</td> +<td>Module function to decode a password.</td> </tr><tr> <td><a href="#pwEncode">pwEncode</a></td> -<td>Module function to encode a password.</td> +<td>Module function to encode a password.</td> </tr><tr> <td><a href="#readEncodedFile">readEncodedFile</a></td> -<td>Function to read a file and decode it's contents into proper text.</td> +<td>Function to read a file and decode it's contents into proper text.</td> </tr><tr> <td><a href="#relpath">relpath</a></td> -<td>Return a relative version of a path.</td> +<td>Return a relative version of a path.</td> </tr><tr> <td><a href="#samepath">samepath</a></td> -<td>Function to compare two paths.</td> +<td>Function to compare two paths.</td> </tr><tr> <td><a href="#setConfigDir">setConfigDir</a></td> -<td>Module function to set the name of the directory storing the config data.</td> +<td>Module function to set the name of the directory storing the config data.</td> </tr><tr> <td><a href="#splitPath">splitPath</a></td> -<td>Function to split a pathname into a directory part and a file part.</td> +<td>Function to split a pathname into a directory part and a file part.</td> </tr><tr> <td><a href="#toNativeSeparators">toNativeSeparators</a></td> -<td>Function returning a path, that is using native separator characters.</td> +<td>Function returning a path, that is using native separator characters.</td> </tr><tr> <td><a href="#win32_GetUserName">win32_GetUserName</a></td> -<td>Function to get the user name under Win32.</td> +<td>Function to get the user name under Win32.</td> </tr><tr> <td><a href="#win32_Kill">win32_Kill</a></td> -<td>Function to provide an os.kill equivalent for Win32.</td> +<td>Function to provide an os.kill equivalent for Win32.</td> </tr><tr> <td><a href="#writeEncodedFile">writeEncodedFile</a></td> -<td>Function to write a file with properly encoded text.</td> +<td>Function to write a file with properly encoded text.</td> </tr> </table> <hr /><hr /> <a NAME="CodingError" ID="CodingError"></a> <h2>CodingError</h2> <p> - Class implementing an exception, which is raised, if a given coding is incorrect. + Class implementing an exception, which is raised, if a given coding is incorrect. </p> <h3>Derived from</h3> Exception @@ -223,39 +223,39 @@ <table> <tr> <td><a href="#CodingError.__init__">CodingError</a></td> -<td>Constructor</td> +<td>Constructor</td> </tr><tr> <td><a href="#CodingError.__repr__">__repr__</a></td> -<td>Private method returning a representation of the exception.</td> +<td>Private method returning a representation of the exception.</td> </tr><tr> <td><a href="#CodingError.__str__">__str__</a></td> -<td>Private method returning a string representation of the exception.</td> +<td>Private method returning a string representation of the exception.</td> </tr> </table> <a NAME="CodingError.__init__" ID="CodingError.__init__"></a> <h4>CodingError (Constructor)</h4> <b>CodingError</b>(<i>coding</i>) <p> - Constructor + Constructor </p><a NAME="CodingError.__repr__" ID="CodingError.__repr__"></a> <h4>CodingError.__repr__</h4> <b>__repr__</b>(<i></i>) <p> - Private method returning a representation of the exception. + Private method returning a representation of the exception. </p><dl> <dt>Returns:</dt> <dd> -string representing the error message +string representing the error message </dd> </dl><a NAME="CodingError.__str__" ID="CodingError.__str__"></a> <h4>CodingError.__str__</h4> <b>__str__</b>(<i></i>) <p> - Private method returning a string representation of the exception. + Private method returning a string representation of the exception. </p><dl> <dt>Returns:</dt> <dd> -string representing the error message +string representing the error message </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -264,16 +264,16 @@ <h2>_percentReplacementFunc</h2> <b>_percentReplacementFunc</b>(<i>matchobj</i>) <p> - Protected function called for replacing % codes. + Protected function called for replacing % codes. </p><dl> <dt><i>matchobj</i></dt> <dd> -matchobject for the code +matchobject for the code </dd> </dl><dl> <dt>Returns:</dt> <dd> -replacement string +replacement string </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -282,22 +282,22 @@ <h2>compactPath</h2> <b>compactPath</b>(<i>path, width, measure = len</i>) <p> - Function to return a compacted path fitting inside the given width. + Function to return a compacted path fitting inside the given width. </p><dl> <dt><i>path</i></dt> <dd> -path to be compacted (string) +path to be compacted (string) </dd><dt><i>width</i></dt> <dd> -width for the compacted path (integer) +width for the compacted path (integer) </dd><dt><i>measure</i></dt> <dd> -reference to a function used to measure the length of the string +reference to a function used to measure the length of the string </dd> </dl><dl> <dt>Returns:</dt> <dd> -compacted path (string) +compacted path (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -306,22 +306,22 @@ <h2>compile</h2> <b>compile</b>(<i>file, codestring = ""</i>) <p> - Function to compile one Python source file to Python bytecode. + Function to compile one Python source file to Python bytecode. </p><dl> <dt><i>file</i></dt> <dd> -source filename (string) +source filename (string) </dd><dt><i>codestring</i></dt> <dd> -string containing the code to compile (string) +string containing the code to compile (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -A tuple indicating status (True = an error was found), the - filename, the linenumber, the code string and the error message - (boolean, string, string, string, string). The values are only - valid, if the status equals 1. +A tuple indicating status (True = an error was found), the + filename, the linenumber, the code string and the error message + (boolean, string, string, string, string). The values are only + valid, if the status equals 1. </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -330,19 +330,19 @@ <h2>convertLineEnds</h2> <b>convertLineEnds</b>(<i>text, eol</i>) <p> - Function to convert the end of line characters. + Function to convert the end of line characters. </p><dl> <dt><i>text</i></dt> <dd> -text to be converted (string) +text to be converted (string) </dd><dt><i>eol</i></dt> <dd> -new eol setting (string) +new eol setting (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -text with converted eols (string) +text with converted eols (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -351,16 +351,16 @@ <h2>decode</h2> <b>decode</b>(<i>text</i>) <p> - Function to decode some byte text into a string. + Function to decode some byte text into a string. </p><dl> <dt><i>text</i></dt> <dd> -byte text to decode (bytes) +byte text to decode (bytes) </dd> </dl><dl> <dt>Returns:</dt> <dd> -tuple of decoded text and encoding (string, string) +tuple of decoded text and encoding (string, string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -369,30 +369,30 @@ <h2>direntries</h2> <b>direntries</b>(<i>path, filesonly=False, pattern=None, followsymlinks=True, checkStop=None</i>) <p> - Function returning a list of all files and directories. + Function returning a list of all files and directories. </p><dl> <dt><i>path</i></dt> <dd> -root of the tree to check +root of the tree to check </dd><dt><i>filesonly</i></dt> <dd> -flag indicating that only files are wanted +flag indicating that only files are wanted </dd><dt><i>pattern</i></dt> <dd> -a filename pattern to check against +a filename pattern to check against </dd><dt><i>followsymlinks</i></dt> <dd> -flag indicating whether symbolic links - should be followed +flag indicating whether symbolic links + should be followed </dd><dt><i>checkStop</i></dt> <dd> -function to be called to check for a stop +function to be called to check for a stop </dd> </dl><dl> <dt>Returns:</dt> <dd> -list of all files and directories in the tree rooted - at path. The names are expanded to start with path. +list of all files and directories in the tree rooted + at path. The names are expanded to start with path. </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -401,19 +401,19 @@ <h2>encode</h2> <b>encode</b>(<i>text, orig_coding</i>) <p> - Function to encode text into a byte text. + Function to encode text into a byte text. </p><dl> <dt><i>text</i></dt> <dd> -text to be encoded (string) +text to be encoded (string) </dd><dt><i>orig_coding</i></dt> <dd> -type of the original encoding (string) +type of the original encoding (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -tuple of encoded text and encoding used (bytes, string) +tuple of encoded text and encoding used (bytes, string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -422,19 +422,19 @@ <h2>escape_entities</h2> <b>escape_entities</b>(<i>m, map=_escape_map</i>) <p> - Function to encode html entities. + Function to encode html entities. </p><dl> <dt><i>m</i></dt> <dd> -the match object +the match object </dd><dt><i>map</i></dt> <dd> -the map of entities to encode +the map of entities to encode </dd> </dl><dl> <dt>Returns:</dt> <dd> -the converted text (string) +the converted text (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -443,16 +443,16 @@ <h2>escape_uentities</h2> <b>escape_uentities</b>(<i>m</i>) <p> - Function to encode html entities. + Function to encode html entities. </p><dl> <dt><i>m</i></dt> <dd> -the match object +the match object </dd> </dl><dl> <dt>Returns:</dt> <dd> -the converted text (string) +the converted text (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -461,16 +461,16 @@ <h2>fromNativeSeparators</h2> <b>fromNativeSeparators</b>(<i>path</i>) <p> - Function returning a path, that is using "/" separator characters. + Function returning a path, that is using "/" separator characters. </p><dl> <dt><i>path</i></dt> <dd> -path to be converted (string) +path to be converted (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -path with converted separator characters (string) +path with converted separator characters (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -479,16 +479,16 @@ <h2>generateDistroInfo</h2> <b>generateDistroInfo</b>(<i>linesep = '\n'</i>) <p> - Module function to generate a string with distribution infos. + Module function to generate a string with distribution infos. </p><dl> <dt><i>linesep</i></dt> <dd> -string to be used to separate lines (string) +string to be used to separate lines (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -string with plugins version infos (string) +string with plugins version infos (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -497,16 +497,16 @@ <h2>generatePluginsVersionInfo</h2> <b>generatePluginsVersionInfo</b>(<i>linesep = '\n'</i>) <p> - Module function to generate a string with plugins version infos. + Module function to generate a string with plugins version infos. </p><dl> <dt><i>linesep</i></dt> <dd> -string to be used to separate lines (string) +string to be used to separate lines (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -string with plugins version infos (string) +string with plugins version infos (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -515,16 +515,16 @@ <h2>generateQtToolName</h2> <b>generateQtToolName</b>(<i>toolname</i>) <p> - Module function to generate the executable name for a Qt tool like designer. + Module function to generate the executable name for a Qt tool like designer. </p><dl> <dt><i>toolname</i></dt> <dd> -base name of the tool (string) +base name of the tool (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -the Qt tool name without extension (string) +the Qt tool name without extension (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -533,16 +533,16 @@ <h2>generateVersionInfo</h2> <b>generateVersionInfo</b>(<i>linesep = '\n'</i>) <p> - Module function to generate a string with various version infos. + Module function to generate a string with various version infos. </p><dl> <dt><i>linesep</i></dt> <dd> -string to be used to separate lines (string) +string to be used to separate lines (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -string with version infos (string) +string with version infos (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -551,11 +551,11 @@ <h2>getConfigDir</h2> <b>getConfigDir</b>(<i></i>) <p> - Module function to get the name of the directory storing the config data. + Module function to get the name of the directory storing the config data. </p><dl> <dt>Returns:</dt> <dd> -directory name of the config dir (string) +directory name of the config dir (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -564,19 +564,19 @@ <h2>getDirs</h2> <b>getDirs</b>(<i>path, excludeDirs</i>) <p> - Function returning a list of all directories below path. + Function returning a list of all directories below path. </p><dl> <dt><i>path</i></dt> <dd> -root of the tree to check +root of the tree to check </dd><dt><i>excludeDirs</i></dt> <dd> -basename of directories to ignore +basename of directories to ignore </dd> </dl><dl> <dt>Returns:</dt> <dd> -list of all directories found +list of all directories found </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -585,21 +585,21 @@ <h2>getEnvironmentEntry</h2> <b>getEnvironmentEntry</b>(<i>key, default = None</i>) <p> - Module function to get an environment entry. + Module function to get an environment entry. </p><dl> <dt><i>key</i></dt> <dd> -key of the requested environment entry (string) +key of the requested environment entry (string) </dd><dt><i>default</i></dt> <dd> -value to be returned, if the environment doesn't contain - the requested entry (string) +value to be returned, if the environment doesn't contain + the requested entry (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -the requested entry or the default value, if the entry wasn't - found (string or None) +the requested entry or the default value, if the entry wasn't + found (string or None) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -608,18 +608,18 @@ <h2>getExecutablePath</h2> <b>getExecutablePath</b>(<i>file</i>) <p> - Function to build the full path of an executable file from the environment. + Function to build the full path of an executable file from the environment. </p><dl> <dt><i>file</i></dt> <dd> -filename of the executable to check (string) +filename of the executable to check (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -full executable name, if the executable file is accessible - via the searchpath defined by the PATH environment variable, or an - empty string otherwise. +full executable name, if the executable file is accessible + via the searchpath defined by the PATH environment variable, or an + empty string otherwise. </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -628,11 +628,11 @@ <h2>getHomeDir</h2> <b>getHomeDir</b>(<i></i>) <p> - Function to get a users home directory + Function to get a users home directory </p><dl> <dt>Returns:</dt> <dd> -home directory (string) +home directory (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -641,16 +641,16 @@ <h2>getPercentReplacement</h2> <b>getPercentReplacement</b>(<i>code</i>) <p> - Function to get the replacement for code. + Function to get the replacement for code. </p><dl> <dt><i>code</i></dt> <dd> -code indicator (string) +code indicator (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -replacement string (string) +replacement string (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -659,11 +659,11 @@ <h2>getPercentReplacementHelp</h2> <b>getPercentReplacementHelp</b>(<i></i>) <p> - Function to get the help text for the supported %-codes. + Function to get the help text for the supported %-codes. </p><dl> <dt>Returns:</dt> <dd> -help text (string) +help text (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -672,11 +672,11 @@ <h2>getPythonLibPath</h2> <b>getPythonLibPath</b>(<i></i>) <p> - Function to determine the path to Python's library. + Function to determine the path to Python's library. </p><dl> <dt>Returns:</dt> <dd> -path to the Python library (string) +path to the Python library (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -685,11 +685,11 @@ <h2>getPythonModulesDirectory</h2> <b>getPythonModulesDirectory</b>(<i></i>) <p> - Function to determine the path to Python's modules directory. + Function to determine the path to Python's modules directory. </p><dl> <dt>Returns:</dt> <dd> -path to the Python modules directory (string) +path to the Python modules directory (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -698,11 +698,11 @@ <h2>getPythonVersion</h2> <b>getPythonVersion</b>(<i></i>) <p> - Function to get the Python version (major, minor) as an integer value. + Function to get the Python version (major, minor) as an integer value. </p><dl> <dt>Returns:</dt> <dd> -An integer representing major and minor version number (integer) +An integer representing major and minor version number (integer) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -711,19 +711,19 @@ <h2>getTestFileName</h2> <b>getTestFileName</b>(<i>fn</i>) <p> - Function to build the filename of a unittest file. + Function to build the filename of a unittest file. </p><p> - The filename for the unittest file is built by prepending - the string "test" to the filename passed into this function. + The filename for the unittest file is built by prepending + the string "test" to the filename passed into this function. </p><dl> <dt><i>fn</i></dt> <dd> -filename basis to be used for the unittest filename (string) +filename basis to be used for the unittest filename (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -filename of the corresponding unittest file (string) +filename of the corresponding unittest file (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -732,11 +732,11 @@ <h2>getUserName</h2> <b>getUserName</b>(<i></i>) <p> - Function to get the user name. + Function to get the user name. </p><dl> <dt>Returns:</dt> <dd> -user name (string) +user name (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -745,16 +745,16 @@ <h2>get_coding</h2> <b>get_coding</b>(<i>text</i>) <p> - Function to get the coding of a text. + Function to get the coding of a text. </p><dl> <dt><i>text</i></dt> <dd> -text to inspect (string) +text to inspect (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -coding string +coding string </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -763,16 +763,16 @@ <h2>get_codingBytes</h2> <b>get_codingBytes</b>(<i>text</i>) <p> - Function to get the coding of a bytes text. + Function to get the coding of a bytes text. </p><dl> <dt><i>text</i></dt> <dd> -bytes text to inspect (bytes) +bytes text to inspect (bytes) </dd> </dl><dl> <dt>Returns:</dt> <dd> -coding string +coding string </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -781,16 +781,16 @@ <h2>hasEnvironmentEntry</h2> <b>hasEnvironmentEntry</b>(<i>key</i>) <p> - Module function to check, if the environment contains an entry. + Module function to check, if the environment contains an entry. </p><dl> <dt><i>key</i></dt> <dd> -key of the requested environment entry (string) +key of the requested environment entry (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -flag indicating the presence of the requested entry (boolean) +flag indicating the presence of the requested entry (boolean) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -799,19 +799,19 @@ <h2>html_encode</h2> <b>html_encode</b>(<i>text, pattern=_escape</i>) <p> - Function to correctly encode a text for html. + Function to correctly encode a text for html. </p><dl> <dt><i>text</i></dt> <dd> -text to be encoded (string) +text to be encoded (string) </dd><dt><i>pattern</i></dt> <dd> -search pattern for text to be encoded (string) +search pattern for text to be encoded (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -the encoded text (string) +the encoded text (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -820,19 +820,19 @@ <h2>html_uencode</h2> <b>html_uencode</b>(<i>text, pattern=_uescape</i>) <p> - Function to correctly encode a unicode text for html. + Function to correctly encode a unicode text for html. </p><dl> <dt><i>text</i></dt> <dd> -text to be encoded (string) +text to be encoded (string) </dd><dt><i>pattern</i></dt> <dd> -search pattern for text to be encoded (string) +search pattern for text to be encoded (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -the encoded text (string) +the encoded text (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -841,16 +841,16 @@ <h2>isExecutable</h2> <b>isExecutable</b>(<i>exe</i>) <p> - Function to check, if a file is executable. + Function to check, if a file is executable. </p><dl> <dt><i>exe</i></dt> <dd> -filename of the executable to check (string) +filename of the executable to check (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -flag indicating executable status (boolean) +flag indicating executable status (boolean) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -859,17 +859,17 @@ <h2>isinpath</h2> <b>isinpath</b>(<i>file</i>) <p> - Function to check for an executable file. + Function to check for an executable file. </p><dl> <dt><i>file</i></dt> <dd> -filename of the executable to check (string) +filename of the executable to check (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -flag to indicate, if the executable file is accessible - via the searchpath defined by the PATH environment variable. +flag to indicate, if the executable file is accessible + via the searchpath defined by the PATH environment variable. </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -878,22 +878,22 @@ <h2>joinext</h2> <b>joinext</b>(<i>prefix, ext</i>) <p> - Function to join a file extension to a path. + Function to join a file extension to a path. </p><p> - The leading "." of ext is replaced by a platform specific extension - separator if necessary. + The leading "." of ext is replaced by a platform specific extension + separator if necessary. </p><dl> <dt><i>prefix</i></dt> <dd> -the basepart of the filename (string) +the basepart of the filename (string) </dd><dt><i>ext</i></dt> <dd> -the extension part (string) +the extension part (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -the complete filename (string) +the complete filename (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -902,11 +902,11 @@ <h2>linesep</h2> <b>linesep</b>(<i></i>) <p> - Function to return the lineseparator used by the editor. + Function to return the lineseparator used by the editor. </p><dl> <dt>Returns:</dt> <dd> -line separator used by the editor (string) +line separator used by the editor (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -915,19 +915,19 @@ <h2>normabsjoinpath</h2> <b>normabsjoinpath</b>(<i>a, *p</i>) <p> - Function returning a normalized, absolute path of the joined parts passed into it. + Function returning a normalized, absolute path of the joined parts passed into it. </p><dl> <dt><i>a</i></dt> <dd> -first path to be joined (string) +first path to be joined (string) </dd><dt><i>p</i></dt> <dd> -variable number of path parts to be joind (string) +variable number of path parts to be joind (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -absolute, normalized path (string) +absolute, normalized path (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -936,16 +936,16 @@ <h2>normabspath</h2> <b>normabspath</b>(<i>path</i>) <p> - Function returning a normalized, absolute path. + Function returning a normalized, absolute path. </p><dl> <dt><i>path</i></dt> <dd> -file path (string) +file path (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -absolute, normalized path (string) +absolute, normalized path (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -954,17 +954,17 @@ <h2>normcaseabspath</h2> <b>normcaseabspath</b>(<i>path</i>) <p> - Function returning an absolute path, that is normalized with respect to its case - and references. + Function returning an absolute path, that is normalized with respect to its case + and references. </p><dl> <dt><i>path</i></dt> <dd> -file path (string) +file path (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -absolute, normalized path (string) +absolute, normalized path (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -973,16 +973,16 @@ <h2>normcasepath</h2> <b>normcasepath</b>(<i>path</i>) <p> - Function returning a path, that is normalized with respect to its case and references. + Function returning a path, that is normalized with respect to its case and references. </p><dl> <dt><i>path</i></dt> <dd> -file path (string) +file path (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -case normalized path (string) +case normalized path (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -991,19 +991,19 @@ <h2>normjoinpath</h2> <b>normjoinpath</b>(<i>a, *p</i>) <p> - Function returning a normalized path of the joined parts passed into it. + Function returning a normalized path of the joined parts passed into it. </p><dl> <dt><i>a</i></dt> <dd> -first path to be joined (string) +first path to be joined (string) </dd><dt><i>p</i></dt> <dd> -variable number of path parts to be joind (string) +variable number of path parts to be joind (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -normalized path (string) +normalized path (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -1012,16 +1012,16 @@ <h2>parseEnvironmentString</h2> <b>parseEnvironmentString</b>(<i>s</i>) <p> - Function used to convert an environment string into a list of environment settings. + Function used to convert an environment string into a list of environment settings. </p><dl> <dt><i>s</i></dt> <dd> -environment string (string) +environment string (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -list of environment settings (list of strings) +list of environment settings (list of strings) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -1030,16 +1030,16 @@ <h2>parseOptionString</h2> <b>parseOptionString</b>(<i>s</i>) <p> - Function used to convert an option string into a list of options. + Function used to convert an option string into a list of options. </p><dl> <dt><i>s</i></dt> <dd> -option string (string or string) +option string (string or string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -list of options (list of strings) +list of options (list of strings) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -1048,19 +1048,19 @@ <h2>parseString</h2> <b>parseString</b>(<i>s, rx</i>) <p> - Function used to convert a string into a list. + Function used to convert a string into a list. </p><dl> <dt><i>s</i></dt> <dd> -string to be parsed (string) +string to be parsed (string) </dd><dt><i>rx</i></dt> <dd> -regex defining the parse pattern (QRegExp) +regex defining the parse pattern (QRegExp) </dd> </dl><dl> <dt>Returns:</dt> <dd> -list of parsed data (list of strings) +list of parsed data (list of strings) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -1069,11 +1069,11 @@ <h2>posix_GetUserName</h2> <b>posix_GetUserName</b>(<i></i>) <p> - Function to get the user name under Posix systems. + Function to get the user name under Posix systems. </p><dl> <dt>Returns:</dt> <dd> -user name (string) +user name (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -1082,22 +1082,22 @@ <h2>prepareQtMacBundle</h2> <b>prepareQtMacBundle</b>(<i>toolname, version, args</i>) <p> - Module function for starting Qt tools that are Mac OS X bundles. + Module function for starting Qt tools that are Mac OS X bundles. </p><dl> <dt><i>toolname</i></dt> <dd> -plain name of the tool (e.g. "designer") (string) +plain name of the tool (e.g. "designer") (string) </dd><dt><i>version</i></dt> <dd> -indication for the requested version (Qt 4) (integer) +indication for the requested version (Qt 4) (integer) </dd><dt><i>args</i></dt> <dd> -name of input file for tool, if any (list of strings) +name of input file for tool, if any (list of strings) </dd> </dl><dl> <dt>Returns:</dt> <dd> -command-name and args for QProcess (tuple) +command-name and args for QProcess (tuple) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -1106,16 +1106,16 @@ <h2>pwDecode</h2> <b>pwDecode</b>(<i>epw</i>) <p> - Module function to decode a password. + Module function to decode a password. </p><dl> <dt><i>pw</i></dt> <dd> -encoded password to decode (string) +encoded password to decode (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -decoded password (string) +decoded password (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -1124,16 +1124,16 @@ <h2>pwEncode</h2> <b>pwEncode</b>(<i>pw</i>) <p> - Module function to encode a password. + Module function to encode a password. </p><dl> <dt><i>pw</i></dt> <dd> -password to encode (string) +password to encode (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -encoded password (string) +encoded password (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -1142,16 +1142,16 @@ <h2>readEncodedFile</h2> <b>readEncodedFile</b>(<i>filename</i>) <p> - Function to read a file and decode it's contents into proper text. + Function to read a file and decode it's contents into proper text. </p><dl> <dt><i>filename</i></dt> <dd> -name of the file to read (string) +name of the file to read (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -tuple of decoded text and encoding (string, string) +tuple of decoded text and encoding (string, string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -1160,14 +1160,14 @@ <h2>relpath</h2> <b>relpath</b>(<i>path, start = os.path.curdir</i>) <p> - Return a relative version of a path. + Return a relative version of a path. </p><dl> <dt><i>path</i></dt> <dd> -path to make relative (string) +path to make relative (string) </dd><dt><i>start</i></dt> <dd> -path to make relative from (string) +path to make relative from (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -1176,20 +1176,20 @@ <h2>samepath</h2> <b>samepath</b>(<i>f1, f2</i>) <p> - Function to compare two paths. + Function to compare two paths. </p><dl> <dt><i>f1</i></dt> <dd> -first path for the compare (string) +first path for the compare (string) </dd><dt><i>f2</i></dt> <dd> -second path for the compare (string) +second path for the compare (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -flag indicating whether the two paths represent the - same path on disk. +flag indicating whether the two paths represent the + same path on disk. </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -1198,11 +1198,11 @@ <h2>setConfigDir</h2> <b>setConfigDir</b>(<i>d</i>) <p> - Module function to set the name of the directory storing the config data. + Module function to set the name of the directory storing the config data. </p><dl> <dt><i>d</i></dt> <dd> -name of an existing directory (string) +name of an existing directory (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -1211,16 +1211,16 @@ <h2>splitPath</h2> <b>splitPath</b>(<i>name</i>) <p> - Function to split a pathname into a directory part and a file part. + Function to split a pathname into a directory part and a file part. </p><dl> <dt><i>name</i></dt> <dd> -path name (string) +path name (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -a tuple of 2 strings (dirname, filename). +a tuple of 2 strings (dirname, filename). </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -1229,16 +1229,16 @@ <h2>toNativeSeparators</h2> <b>toNativeSeparators</b>(<i>path</i>) <p> - Function returning a path, that is using native separator characters. + Function returning a path, that is using native separator characters. </p><dl> <dt><i>path</i></dt> <dd> -path to be converted (string) +path to be converted (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -path with converted separator characters (string) +path with converted separator characters (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -1247,11 +1247,11 @@ <h2>win32_GetUserName</h2> <b>win32_GetUserName</b>(<i></i>) <p> - Function to get the user name under Win32. + Function to get the user name under Win32. </p><dl> <dt>Returns:</dt> <dd> -user name (string) +user name (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -1260,11 +1260,11 @@ <h2>win32_Kill</h2> <b>win32_Kill</b>(<i>pid</i>) <p> - Function to provide an os.kill equivalent for Win32. + Function to provide an os.kill equivalent for Win32. </p><dl> <dt><i>pid</i></dt> <dd> -process id +process id </dd> </dl> <div align="right"><a href="#top">Up</a></div> @@ -1273,22 +1273,22 @@ <h2>writeEncodedFile</h2> <b>writeEncodedFile</b>(<i>filename, text, orig_coding</i>) <p> - Function to write a file with properly encoded text. + Function to write a file with properly encoded text. </p><dl> <dt><i>filename</i></dt> <dd> -name of the file to read (string) +name of the file to read (string) </dd><dt><i>text</i></dt> <dd> -text to be written (string) +text to be written (string) </dd><dt><i>orig_coding</i></dt> <dd> -type of the original encoding (string) +type of the original encoding (string) </dd> </dl><dl> <dt>Returns:</dt> <dd> -encoding used for writing the file (string) +encoding used for writing the file (string) </dd> </dl> <div align="right"><a href="#top">Up</a></div>