~ubuntu-branches/ubuntu/raring/python3.2/raring

« back to all changes in this revision

Viewing changes to Parser/asdl_c.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2011-09-05 22:01:13 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: package-import@ubuntu.com-20110905220113-gmku3knwah89ojat
Tags: 3.2.2-0ubuntu1
* Python 3.2.2 release.
* Search headers in /usr/include/ncursesw for the curses/panel extensions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
805
805
 
806
806
static int obj2ast_string(PyObject* obj, PyObject** out, PyArena* arena)
807
807
{
808
 
    if (!PyUnicode_CheckExact(obj)) {
 
808
    if (!PyUnicode_CheckExact(obj) && !PyBytes_CheckExact(obj)) {
809
809
        PyErr_SetString(PyExc_TypeError, "AST string must be of type str");
810
810
        return 1;
811
811
    }