From ed2cbe3a991488853d517042d362ac14f0bf615d Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh <bryan.tongminh@gmail.com> Date: Sun, 13 Apr 2008 18:39:36 +0000 Subject: [PATCH] Fix readme. --- mwclient/README.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mwclient/README.txt b/mwclient/README.txt index ec9d10c..5a69f37 100644 --- a/mwclient/README.txt +++ b/mwclient/README.txt @@ -48,7 +48,7 @@ print 'Text in sandbox:', text.encode('utf-8') page.save(text + u'\nExtra data', summary = 'Test edit') # Printing imageusage -image = page.Images['Example.jpg'] +image = site.Images['Example.jpg'] print 'Image', image.name.encode('utf-8'), 'usage:' for page in image.imageusage(): print 'Used:', page.name.encode('utf-8'), '; namespace', page.namespace -- GitLab