Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

README: fix some glaringly obvious bugs in example code

  • Loading branch information...
commit fa03430f1dd577cb5a55c7bbcae36a0716a16ec0 1 parent 4028d6a
@mk-fg authored
Showing with 4 additions and 4 deletions.
  1. +3 −3 README.md
  2. +1 −1  txonedrive/__init__.py
View
6 README.md
@@ -28,14 +28,14 @@ Following script will print listing of the root OneDrive folder, upload
it.
from twisted.internet import defer, reactor
- from txonedrive import txOneDrivePersistent
+ from txonedrive.api_v5 import txOneDrivePersistent
@defer.inlineCallbacks
def do_stuff():
api = txOneDrivePersistent.from_conf()
# Print root directory ("me/skydrive") listing
- print (e['name'] for e in (yield api.listdir()))
+ print list(e['name'] for e in (yield api.listdir()))
# Upload "test.txt" file from local current directory
file_info = yield api.put('test.txt')
@@ -49,7 +49,7 @@ it.
# Remove the file
yield api.delete(file_id)
- do_stuff().addBoth(lambda ignored: reactor.stop())
+ do_stuff().addCallback(lambda ignored: reactor.stop())
reactor.run()
Note that txOneDriveAPIPersistent convenience class uses Microsoft LiveConnect
View
2  txonedrive/__init__.py
@@ -1 +1 @@
-__version__ = '14.04.0'
+__version__ = '14.05.0'

0 comments on commit fa03430

Please sign in to comment.
Something went wrong with that request. Please try again.