mirror of
https://github.com/kennethreitz/gistapi.py.git
synced 2026-06-05 23:10:17 +00:00
doctest bugfix
This commit is contained in:
@@ -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
@@ -3,5 +3,5 @@
|
||||
from gistapi import *
|
||||
|
||||
__author__ = 'Kenneth Reitz'
|
||||
__version__ = '.'.join(('0', '1', '2'))
|
||||
__version__ = '.'.join(('0', '1', '3'))
|
||||
__license__ = 'MIT'
|
||||
|
||||
+10
-8
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user