File: cb33a25d03eeb972e05ef6585afab710a204477850e8b0f9bad0482f9b4364b2.py

package info (click to toggle)
python-executing 2.2.0-0.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,860 kB
  • sloc: python: 10,235; sh: 48; makefile: 10
file content (35 lines) | stat: -rw-r--r-- 1,115 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# This sample was generated for the following code mutation detected by mutmut:
# 
# --- executing/_position_node_finder.py
# +++ executing/_position_node_finder.py
# @@ -425,7 +425,7 @@
#          if inst_match(("BEFORE_WITH","WITH_EXCEPT_START")) and node_match(ast.With):
#              return
#  
# -        if inst_match(("STORE_NAME", "STORE_GLOBAL"), argval="__doc__") and node_match(
# +        if inst_match(("STORE_NAME", "XXSTORE_GLOBALXX"), argval="__doc__") and node_match(
#              ast.Constant
#          ):
#              # store docstrings
# 

"""
The ``codes`` object defines a mapping from common names for HTTP statuses
to their numerical codes, accessible either as attributes or as dictionary
items.

Example::

    >>> import requests
    >>> requests.codes['temporary_redirect']
    307
    >>> requests.codes.teapot
    418
    >>> requests.codes['\\o/']
    200

Some codes have multiple names, and both upper- and lower-case versions of
the names are allowed. For example, ``codes.ok``, ``codes.OK``, and
``codes.okay`` all correspond to the HTTP status code 200.
"""
global __doc__