Staging
v0.5.1
https://github.com/python/cpython
Revision 6c57bb830c4e8cae3726f12cbf16674efff85e7e authored by Martin v. Löwis on 20 May 2003, 06:16:55 UTC, committed by Martin v. Löwis on 20 May 2003, 06:16:55 UTC
Instead of sending the real user and host, use "anonymous@" (i.e. no
host name at all!) as the default anonymous FTP password.  This avoids
privacy violations.

Backport of 1.62, 1.63.
1 parent 52b8743
Raw File
Tip revision: 6c57bb830c4e8cae3726f12cbf16674efff85e7e authored by Martin v. Löwis on 20 May 2003, 06:16:55 UTC
SF patch #497420 (Eduardo Pérez): ftplib: ftp anonymous password
Tip revision: 6c57bb8
parsetok.h

/* Parser-tokenizer link interface */

#ifndef Py_PARSETOK_H
#define Py_PARSETOK_H
#ifdef __cplusplus
extern "C" {
#endif

typedef struct {
    int error;
    char *filename;
    int lineno;
    int offset;
    char *text;
    int token;
    int expected;
} perrdetail;

#define PyPARSE_YIELD_IS_KEYWORD	0x0001

extern DL_IMPORT(node *) PyParser_ParseString(char *, grammar *, int,
                                              perrdetail *);
extern DL_IMPORT(node *) PyParser_ParseFile (FILE *, char *, grammar *, int,
                                             char *, char *, perrdetail *);

extern DL_IMPORT(node *) PyParser_ParseStringFlags(char *, grammar *, int,
                                              perrdetail *, int);
extern DL_IMPORT(node *) PyParser_ParseFileFlags(FILE *, char *, grammar *,
						 int, char *, char *,
						 perrdetail *, int);

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