| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -198,7 +198,7 @@ These do not emulate the native look-and-feel of the platform. | |||
| 198 | 198 | A subclass of FileDialog that creates a dialog window for selecting a | |
| 199 | 199 | destination file. | |
| 200 | 200 | ||
| 201 | - .. method:: ok_command() | ||
| 201 | + .. method:: ok_command() | ||
| 202 | 202 | ||
| 203 | 203 | Test whether or not the selection points to a valid file that is not a | |
| 204 | 204 | directory. Confirmation is required if an already existing file is | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -56,7 +56,7 @@ helper, :class:`auto`. | |||
| 56 | 56 | the bitwise operations without losing their :class:`Flag` membership. | |
| 57 | 57 | ||
| 58 | 58 | .. function:: unique | |
| 59 | - :noindex: | ||
| 59 | + :noindex: | ||
| 60 | 60 | ||
| 61 | 61 | Enum class decorator that ensures only one name is bound to any one value. | |
| 62 | 62 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,45 +35,45 @@ in :mod:`logging` itself) and defining handlers which are declared either in | |||
| 35 | 35 | ||
| 36 | 36 | .. function:: dictConfig(config) | |
| 37 | 37 | ||
| 38 | - Takes the logging configuration from a dictionary. The contents of | ||
| 39 | - this dictionary are described in :ref:`logging-config-dictschema` | ||
| 40 | - below. | ||
| 41 | - | ||
| 42 | - If an error is encountered during configuration, this function will | ||
| 43 | - raise a :exc:`ValueError`, :exc:`TypeError`, :exc:`AttributeError` | ||
| 44 | - or :exc:`ImportError` with a suitably descriptive message. The | ||
| 45 | - following is a (possibly incomplete) list of conditions which will | ||
| 46 | - raise an error: | ||
| 47 | - | ||
| 48 | - * A ``level`` which is not a string or which is a string not | ||
| 49 | - corresponding to an actual logging level. | ||
| 50 | - * A ``propagate`` value which is not a boolean. | ||
| 51 | - * An id which does not have a corresponding destination. | ||
| 52 | - * A non-existent handler id found during an incremental call. | ||
| 53 | - * An invalid logger name. | ||
| 54 | - * Inability to resolve to an internal or external object. | ||
| 55 | - | ||
| 56 | - Parsing is performed by the :class:`DictConfigurator` class, whose | ||
| 57 | - constructor is passed the dictionary used for configuration, and | ||
| 58 | - has a :meth:`configure` method. The :mod:`logging.config` module | ||
| 59 | - has a callable attribute :attr:`dictConfigClass` | ||
| 60 | - which is initially set to :class:`DictConfigurator`. | ||
| 61 | - You can replace the value of :attr:`dictConfigClass` with a | ||
| 62 | - suitable implementation of your own. | ||
| 63 | - | ||
| 64 | - :func:`dictConfig` calls :attr:`dictConfigClass` passing | ||
| 65 | - the specified dictionary, and then calls the :meth:`configure` method on | ||
| 66 | - the returned object to put the configuration into effect:: | ||
| 67 | - | ||
| 68 | - def dictConfig(config): | ||
| 69 | - dictConfigClass(config).configure() | ||
| 70 | - | ||
| 71 | - For example, a subclass of :class:`DictConfigurator` could call | ||
| 72 | - ``DictConfigurator.__init__()`` in its own :meth:`__init__()`, then | ||
| 73 | - set up custom prefixes which would be usable in the subsequent | ||
| 74 | - :meth:`configure` call. :attr:`dictConfigClass` would be bound to | ||
| 75 | - this new subclass, and then :func:`dictConfig` could be called exactly as | ||
| 76 | - in the default, uncustomized state. | ||
| 38 | + Takes the logging configuration from a dictionary. The contents of | ||
| 39 | + this dictionary are described in :ref:`logging-config-dictschema` | ||
| 40 | + below. | ||
| 41 | + | ||
| 42 | + If an error is encountered during configuration, this function will | ||
| 43 | + raise a :exc:`ValueError`, :exc:`TypeError`, :exc:`AttributeError` | ||
| 44 | + or :exc:`ImportError` with a suitably descriptive message. The | ||
| 45 | + following is a (possibly incomplete) list of conditions which will | ||
| 46 | + raise an error: | ||
| 47 | + | ||
| 48 | + * A ``level`` which is not a string or which is a string not | ||
| 49 | + corresponding to an actual logging level. | ||
| 50 | + * A ``propagate`` value which is not a boolean. | ||
| 51 | + * An id which does not have a corresponding destination. | ||
| 52 | + * A non-existent handler id found during an incremental call. | ||
| 53 | + * An invalid logger name. | ||
| 54 | + * Inability to resolve to an internal or external object. | ||
| 55 | + | ||
| 56 | + Parsing is performed by the :class:`DictConfigurator` class, whose | ||
| 57 | + constructor is passed the dictionary used for configuration, and | ||
| 58 | + has a :meth:`configure` method. The :mod:`logging.config` module | ||
| 59 | + has a callable attribute :attr:`dictConfigClass` | ||
| 60 | + which is initially set to :class:`DictConfigurator`. | ||
| 61 | + You can replace the value of :attr:`dictConfigClass` with a | ||
| 62 | + suitable implementation of your own. | ||
| 63 | + | ||
| 64 | + :func:`dictConfig` calls :attr:`dictConfigClass` passing | ||
| 65 | + the specified dictionary, and then calls the :meth:`configure` method on | ||
| 66 | + the returned object to put the configuration into effect:: | ||
| 67 | + | ||
| 68 | + def dictConfig(config): | ||
| 69 | + dictConfigClass(config).configure() | ||
| 70 | + | ||
| 71 | + For example, a subclass of :class:`DictConfigurator` could call | ||
| 72 | + ``DictConfigurator.__init__()`` in its own :meth:`__init__()`, then | ||
| 73 | + set up custom prefixes which would be usable in the subsequent | ||
| 74 | + :meth:`configure` call. :attr:`dictConfigClass` would be bound to | ||
| 75 | + this new subclass, and then :func:`dictConfig` could be called exactly as | ||
| 76 | + in the default, uncustomized state. | ||
| 77 | 77 | ||
| 78 | 78 | .. versionadded:: 3.2 | |
| 79 | 79 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -532,9 +532,9 @@ Analysis of the profiler data is done using the :class:`~pstats.Stats` class. | |||
| 532 | 532 | instance holds information related to the function's profile such as how | |
| 533 | 533 | long the function took to run, how many times it was called, etc... | |
| 534 | 534 | ||
| 535 | - .. versionadded:: 3.9 | ||
| 536 | - Added the following dataclasses: StatsProfile, FunctionProfile. | ||
| 537 | - Added the following function: get_stats_profile. | ||
| 535 | + .. versionadded:: 3.9 | ||
| 536 | + Added the following dataclasses: StatsProfile, FunctionProfile. | ||
| 537 | + Added the following function: get_stats_profile. | ||
| 538 | 538 | ||
| 539 | 539 | .. _deterministic-profiling: | |
| 540 | 540 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -56,12 +56,12 @@ created. Socket addresses are represented as follows: | |||
| 56 | 56 | bytes-like object can be used for either type of address when | |
| 57 | 57 | passing it as an argument. | |
| 58 | 58 | ||
| 59 | - .. versionchanged:: 3.3 | ||
| 60 | - Previously, :const:`AF_UNIX` socket paths were assumed to use UTF-8 | ||
| 61 | - encoding. | ||
| 59 | + .. versionchanged:: 3.3 | ||
| 60 | + Previously, :const:`AF_UNIX` socket paths were assumed to use UTF-8 | ||
| 61 | + encoding. | ||
| 62 | 62 | ||
| 63 | - .. versionchanged:: 3.5 | ||
| 64 | - Writable :term:`bytes-like object` is now accepted. | ||
| 63 | + .. versionchanged:: 3.5 | ||
| 64 | + Writable :term:`bytes-like object` is now accepted. | ||
| 65 | 65 | ||
| 66 | 66 | .. _host_port: | |
| 67 | 67 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -153,47 +153,47 @@ Programmatic Interface | |||
| 153 | 153 | count information. *timing* enables a timestamp relative to when tracing was | |
| 154 | 154 | started to be displayed. | |
| 155 | 155 | ||
| 156 | - .. method:: run(cmd) | ||
| 156 | + .. method:: run(cmd) | ||
| 157 | 157 | ||
| 158 | - Execute the command and gather statistics from the execution with | ||
| 159 | - the current tracing parameters. *cmd* must be a string or code object, | ||
| 160 | - suitable for passing into :func:`exec`. | ||
| 158 | + Execute the command and gather statistics from the execution with | ||
| 159 | + the current tracing parameters. *cmd* must be a string or code object, | ||
| 160 | + suitable for passing into :func:`exec`. | ||
| 161 | 161 | ||
| 162 | - .. method:: runctx(cmd, globals=None, locals=None) | ||
| 162 | + .. method:: runctx(cmd, globals=None, locals=None) | ||
| 163 | 163 | ||
| 164 | - Execute the command and gather statistics from the execution with the | ||
| 165 | - current tracing parameters, in the defined global and local | ||
| 166 | - environments. If not defined, *globals* and *locals* default to empty | ||
| 167 | - dictionaries. | ||
| 164 | + Execute the command and gather statistics from the execution with the | ||
| 165 | + current tracing parameters, in the defined global and local | ||
| 166 | + environments. If not defined, *globals* and *locals* default to empty | ||
| 167 | + dictionaries. | ||
| 168 | 168 | ||
| 169 | - .. method:: runfunc(func, /, *args, **kwds) | ||
| 169 | + .. method:: runfunc(func, /, *args, **kwds) | ||
| 170 | 170 | ||
| 171 | - Call *func* with the given arguments under control of the :class:`Trace` | ||
| 172 | - object with the current tracing parameters. | ||
| 171 | + Call *func* with the given arguments under control of the :class:`Trace` | ||
| 172 | + object with the current tracing parameters. | ||
| 173 | 173 | ||
| 174 | - .. method:: results() | ||
| 174 | + .. method:: results() | ||
| 175 | 175 | ||
| 176 | - Return a :class:`CoverageResults` object that contains the cumulative | ||
| 177 | - results of all previous calls to ``run``, ``runctx`` and ``runfunc`` | ||
| 178 | - for the given :class:`Trace` instance. Does not reset the accumulated | ||
| 179 | - trace results. | ||
| 176 | + Return a :class:`CoverageResults` object that contains the cumulative | ||
| 177 | + results of all previous calls to ``run``, ``runctx`` and ``runfunc`` | ||
| 178 | + for the given :class:`Trace` instance. Does not reset the accumulated | ||
| 179 | + trace results. | ||
| 180 | 180 | ||
| 181 | 181 | .. class:: CoverageResults | |
| 182 | 182 | ||
| 183 | 183 | A container for coverage results, created by :meth:`Trace.results`. Should | |
| 184 | 184 | not be created directly by the user. | |
| 185 | 185 | ||
| 186 | - .. method:: update(other) | ||
| 186 | + .. method:: update(other) | ||
| 187 | 187 | ||
| 188 | - Merge in data from another :class:`CoverageResults` object. | ||
| 188 | + Merge in data from another :class:`CoverageResults` object. | ||
| 189 | 189 | ||
| 190 | - .. method:: write_results(show_missing=True, summary=False, coverdir=None) | ||
| 190 | + .. method:: write_results(show_missing=True, summary=False, coverdir=None) | ||
| 191 | 191 | ||
| 192 | - Write coverage results. Set *show_missing* to show lines that had no | ||
| 193 | - hits. Set *summary* to include in the output the coverage summary per | ||
| 194 | - module. *coverdir* specifies the directory into which the coverage | ||
| 195 | - result files will be output. If ``None``, the results for each source | ||
| 196 | - file are placed in its directory. | ||
| 192 | + Write coverage results. Set *show_missing* to show lines that had no | ||
| 193 | + hits. Set *summary* to include in the output the coverage summary per | ||
| 194 | + module. *coverdir* specifies the directory into which the coverage | ||
| 195 | + result files will be output. If ``None``, the results for each source | ||
| 196 | + file are placed in its directory. | ||
| 197 | 197 | ||
| 198 | 198 | A simple example demonstrating the use of the programmatic interface:: | |
| 199 | 199 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -913,8 +913,8 @@ Color control | |||
| 913 | 913 | Set pencolor to the RGB color represented by *r*, *g*, and *b*. Each of | |
| 914 | 914 | *r*, *g*, and *b* must be in the range 0..colormode. | |
| 915 | 915 | ||
| 916 | - If turtleshape is a polygon, the outline of that polygon is drawn with the | ||
| 917 | - newly set pencolor. | ||
| 916 | + If turtleshape is a polygon, the outline of that polygon is drawn with the | ||
| 917 | + newly set pencolor. | ||
| 918 | 918 | ||
| 919 | 919 | .. doctest:: | |
| 920 | 920 | :skipif: _tkinter is None | |
@@ -962,8 +962,8 @@ Color control | |||
| 962 | 962 | Set fillcolor to the RGB color represented by *r*, *g*, and *b*. Each of | |
| 963 | 963 | *r*, *g*, and *b* must be in the range 0..colormode. | |
| 964 | 964 | ||
| 965 | - If turtleshape is a polygon, the interior of that polygon is drawn | ||
| 966 | - with the newly set fillcolor. | ||
| 965 | + If turtleshape is a polygon, the interior of that polygon is drawn | ||
| 966 | + with the newly set fillcolor. | ||
| 967 | 967 | ||
| 968 | 968 | .. doctest:: | |
| 969 | 969 | :skipif: _tkinter is None | |
@@ -1001,8 +1001,8 @@ Color control | |||
| 1001 | 1001 | Equivalent to ``pencolor(colorstring1)`` and ``fillcolor(colorstring2)`` | |
| 1002 | 1002 | and analogously if the other input format is used. | |
| 1003 | 1003 | ||
| 1004 | - If turtleshape is a polygon, outline and interior of that polygon is drawn | ||
| 1005 | - with the newly set colors. | ||
| 1004 | + If turtleshape is a polygon, outline and interior of that polygon is drawn | ||
| 1005 | + with the newly set colors. | ||
| 1006 | 1006 | ||
| 1007 | 1007 | .. doctest:: | |
| 1008 | 1008 | :skipif: _tkinter is None | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -217,7 +217,6 @@ Ellipsis | |||
| 217 | 217 | There are two types of integers: | |
| 218 | 218 | ||
| 219 | 219 | Integers (:class:`int`) | |
| 220 | - | ||
| 221 | 220 | These represent numbers in an unlimited range, subject to available (virtual) | |
| 222 | 221 | memory only. For the purpose of shift and mask operations, a binary | |
| 223 | 222 | representation is assumed, and negative numbers are represented in a variant of | |
| Back | FazBrowse Home | New Git URL |
0 commit comments