Staging
v0.5.1
https://github.com/python/cpython
Revision 535a3c4e3da2f0076bd62f04fb2cc44999fc2419 authored by Miss Islington (bot) on 07 January 2020, 17:47:51 UTC, committed by GitHub on 07 January 2020, 17:47:51 UTC

Correctly parenthesize filter-based statements that contain lambda
expressions in lib2to3.
(cherry picked from commit b821173b5458d137c8d5edb6e9b4997aac800a38)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
1 parent d46dec9
Raw File
Tip revision: 535a3c4e3da2f0076bd62f04fb2cc44999fc2419 authored by Miss Islington (bot) on 07 January 2020, 17:47:51 UTC
bpo-38871: Fix lib2to3 for filter-based statements that contain lambda (GH-17780)
Tip revision: 535a3c4
osdefs.h
#ifndef Py_OSDEFS_H
#define Py_OSDEFS_H
#ifdef __cplusplus
extern "C" {
#endif


/* Operating system dependencies */

#ifdef MS_WINDOWS
#define SEP L'\\'
#define ALTSEP L'/'
#define MAXPATHLEN 256
#define DELIM L';'
#endif

/* Filename separator */
#ifndef SEP
#define SEP L'/'
#endif

/* Max pathname length */
#ifdef __hpux
#include <sys/param.h>
#include <limits.h>
#ifndef PATH_MAX
#define PATH_MAX MAXPATHLEN
#endif
#endif

#ifndef MAXPATHLEN
#if defined(PATH_MAX) && PATH_MAX > 1024
#define MAXPATHLEN PATH_MAX
#else
#define MAXPATHLEN 1024
#endif
#endif

/* Search path entry delimiter */
#ifndef DELIM
#define DELIM L':'
#endif

#ifdef __cplusplus
}
#endif
#endif /* !Py_OSDEFS_H */
back to top