doctest bugfix

This commit is contained in:
Kenneth Reitz
2010-06-14 09:55:17 -04:00
parent 22e211d67c
commit 45a0ea7901
3 changed files with 15 additions and 9 deletions
+4
View File
@@ -1,6 +1,10 @@
History
=======
0.1.3 (2010-06-14)
------------------
* Nose-test fix
0.1.2 (2010-05-16)
------------------
* URL Generation BugFix
+1 -1
View File
@@ -3,5 +3,5 @@
from gistapi import *
__author__ = 'Kenneth Reitz'
__version__ = '.'.join(('0', '1', '2'))
__version__ = '.'.join(('0', '1', '3'))
__license__ = 'MIT'
+10 -8
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
### !/usr/bin/env python
# encoding: utf-8
"""
@@ -8,32 +8,34 @@ GistAPI.py -- A Python wrapper for the Gist API
Example usage:
>>> Gist('d4507e882a07ac6f9f92').repo
'd4507e882a07ac6f9f92'
u'd4507e882a07ac6f9f92'
>>> Gist('d4507e882a07ac6f9f92').owner
'kennethreitz'
u'kennethreitz'
>>> Gist('d4507e882a07ac6f9f92').description
'Example Gist for gist.py'
u'Example Gist for gist.py'
>>> Gist('d4507e882a07ac6f9f92').created_at
'2010/05/16 10:51:15 -0700'
u'2010/05/16 10:51:15 -0700'
>>> Gist('d4507e882a07ac6f9f92').public
False
>>> Gist('d4507e882a07ac6f9f92').filenames
['exampleEmptyFile', 'exampleFile']
[u'exampleEmptyFile', u'exampleFile']
>>> Gist('d4507e882a07ac6f9f92').files
{'exampleFile': 'Example file content.', 'exampleEmptyFile': ''}
{u'exampleFile': 'Example file content.', u'exampleEmptyFile': ''}
>>> Gists.fetch_by_user('kennethreitz')[-1].description
'My .bashrc configuration'
u'My .bashrc configuration'
"""
import urllib
try:
import simplejson as json
except ImportError: