Use simplified imports

This commit is contained in:
Simeon Warner 2013-07-04 23:25:29 -04:00
parent bb497ed5b4
commit 9860176cfb
3 changed files with 4 additions and 6 deletions

5
README
View File

@ -31,8 +31,7 @@ Library usage
Typical library use in a source (create and output a Resource List)::
from resync.resource_list import ResourceList
from resync.resource import Resource
from resync import Resource,ResourceList
rl = ResourceList()
rl.add( Resource('http://example.com/res1', lastmod='2013-01-01') )
@ -41,7 +40,7 @@ Typical library use in a source (create and output a Resource List)::
Typical library use in a destination (get and examine a Capability List)::
from resync.capability_list import CapabilityList
from resync import CapabilityList
# Read Capability List and show supported capabilities
cl = CapabilityList()

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python
if (True): #keep indentation of README
from resync.capability_list import CapabilityList
from resync import CapabilityList
# Read Capability List and show supported capabilities
cl = CapabilityList()

View File

@ -1,8 +1,7 @@
#!/usr/bin/env python
if (True): #keep indentation of README
from resync.resource_list import ResourceList
from resync.resource import Resource
from resync import Resource,ResourceList
rl = ResourceList()
rl.add( Resource('http://example.com/res1', lastmod='2013-01-01') )