python - rc: Fix localfile's f.read() and override __builtins__.file to
В списке pgsql-committers по дате отправления:
| От | jwp@pgfoundry.org (James William Pye) |
|---|---|
| Тема | python - rc: Fix localfile's f.read() and override __builtins__.file to |
| Дата | |
| Msg-id | 20070225212352.43CD6217294@pgfoundry.org обсуждение исходный текст |
| Список | pgsql-committers |
Log Message:
-----------
Fix localfile's f.read() and override __builtins__.file to allow local access.
renv was not properly handling zero data arguments indicating that all of the
file was desired to be read.
Override the builtin file() object to first use localfile and then use
hostfile(the real file). This provides the necessary abstraction to run local
scripts and reference local files transparently. If something specific is
desired, the exact types are available through 'hostfile' and 'localfile'
builtins. Some more, perhaps strange, transparencies to come(chdir affects local
PWD as opposed to remote?).
Modified Files:
--------------
rc/src:
python.py (r1.1 -> r1.2)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/rc/src/python.py.diff?r1=1.1&r2=1.2)
renv.py (r1.1 -> r1.2)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/rc/src/renv.py.diff?r1=1.1&r2=1.2)
teop.py (r1.1 -> r1.2)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/rc/src/teop.py.diff?r1=1.1&r2=1.2)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера