Staging
v0.5.1
https://github.com/python/cpython
Revision cbbf7461862fd1fb497ed32d09b1328250fd85c9 authored by Miss Islington (bot) on 11 April 2018, 18:58:09 UTC, committed by GitHub on 11 April 2018, 18:58:09 UTC

The examples in argparse documentation use `error: too few arguments`
error message which was removed in this commit f97c59a in 2011.
(cherry picked from commit 04e82934659487ecae76bf4a2db7f92c8dbe0d25)

Co-authored-by: suic86 <marko.gabriel.cz@gmail.com>
1 parent 4dc3c8f
Raw File
Tip revision: cbbf7461862fd1fb497ed32d09b1328250fd85c9 authored by Miss Islington (bot) on 11 April 2018, 18:58:09 UTC
Fix error messages in argparse examples (GH-6435)
Tip revision: cbbf746
pystrhex.h
#ifndef Py_STRHEX_H
#define Py_STRHEX_H

#ifdef __cplusplus
extern "C" {
#endif

#ifndef Py_LIMITED_API
/* Returns a str() containing the hex representation of argbuf. */
PyAPI_FUNC(PyObject*) _Py_strhex(const char* argbuf, const Py_ssize_t arglen);
/* Returns a bytes() containing the ASCII hex representation of argbuf. */
PyAPI_FUNC(PyObject*) _Py_strhex_bytes(const char* argbuf, const Py_ssize_t arglen);
#endif /* !Py_LIMITED_API */

#ifdef __cplusplus
}
#endif

#endif /* !Py_STRHEX_H */
back to top