Last change
on this file since 1453 was
898,
checked in by hartmans, 16 years ago
|
Add pyyaml and libyaml packages
backported from lenny.
There is discussion about how these should go in the repository; these are added in this form
in order to make forward progress.
|
File size:
1.1 KB
|
Rev | Line | |
---|
[898] | 1 | |
---|
| 2 | __all__ = ['BaseLoader', 'SafeLoader', 'Loader'] |
---|
| 3 | |
---|
| 4 | from reader import * |
---|
| 5 | from scanner import * |
---|
| 6 | from parser import * |
---|
| 7 | from composer import * |
---|
| 8 | from constructor import * |
---|
| 9 | from resolver import * |
---|
| 10 | |
---|
| 11 | class BaseLoader(Reader, Scanner, Parser, Composer, BaseConstructor, BaseResolver): |
---|
| 12 | |
---|
| 13 | def __init__(self, stream): |
---|
| 14 | Reader.__init__(self, stream) |
---|
| 15 | Scanner.__init__(self) |
---|
| 16 | Parser.__init__(self) |
---|
| 17 | Composer.__init__(self) |
---|
| 18 | BaseConstructor.__init__(self) |
---|
| 19 | BaseResolver.__init__(self) |
---|
| 20 | |
---|
| 21 | class SafeLoader(Reader, Scanner, Parser, Composer, SafeConstructor, Resolver): |
---|
| 22 | |
---|
| 23 | def __init__(self, stream): |
---|
| 24 | Reader.__init__(self, stream) |
---|
| 25 | Scanner.__init__(self) |
---|
| 26 | Parser.__init__(self) |
---|
| 27 | Composer.__init__(self) |
---|
| 28 | SafeConstructor.__init__(self) |
---|
| 29 | Resolver.__init__(self) |
---|
| 30 | |
---|
| 31 | class Loader(Reader, Scanner, Parser, Composer, Constructor, Resolver): |
---|
| 32 | |
---|
| 33 | def __init__(self, stream): |
---|
| 34 | Reader.__init__(self, stream) |
---|
| 35 | Scanner.__init__(self) |
---|
| 36 | Parser.__init__(self) |
---|
| 37 | Composer.__init__(self) |
---|
| 38 | Constructor.__init__(self) |
---|
| 39 | Resolver.__init__(self) |
---|
| 40 | |
---|
Note: See
TracBrowser
for help on using the repository browser.