~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Python/codecs.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mto: (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100311133019-sblbooa3uqrkoe70
Tags: upstream-2.6.5~rc2
ImportĀ upstreamĀ versionĀ 2.6.5~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
774
774
            {
775
775
                "strict_errors",
776
776
                strict_errors,
777
 
                METH_O
 
777
                METH_O,
 
778
                PyDoc_STR("Implements the 'strict' error handling, which "
 
779
                          "raises a UnicodeError on coding errors.")
778
780
            }
779
781
        },
780
782
#ifdef Py_USING_UNICODE
783
785
            {
784
786
                "ignore_errors",
785
787
                ignore_errors,
786
 
                METH_O
 
788
                METH_O,
 
789
                PyDoc_STR("Implements the 'ignore' error handling, which "
 
790
                          "ignores malformed data and continues.")
787
791
            }
788
792
        },
789
793
        {
791
795
            {
792
796
                "replace_errors",
793
797
                replace_errors,
794
 
                METH_O
 
798
                METH_O,
 
799
                PyDoc_STR("Implements the 'replace' error handling, which "
 
800
                          "replaces malformed data with a replacement marker.")
795
801
            }
796
802
        },
797
803
        {
799
805
            {
800
806
                "xmlcharrefreplace_errors",
801
807
                xmlcharrefreplace_errors,
802
 
                METH_O
 
808
                METH_O,
 
809
                PyDoc_STR("Implements the 'xmlcharrefreplace' error handling, "
 
810
                          "which replaces an unencodable character with the "
 
811
                          "appropriate XML character reference.")
803
812
            }
804
813
        },
805
814
        {
807
816
            {
808
817
                "backslashreplace_errors",
809
818
                backslashreplace_errors,
810
 
                METH_O
 
819
                METH_O,
 
820
                PyDoc_STR("Implements the 'backslashreplace' error handling, "
 
821
                          "which replaces an unencodable character with a "
 
822
                          "backslashed escape sequence.")
811
823
            }
812
824
        }
813
825
#endif