From 45a0ea7901b97ab7b091678e3043cae70944e6c8 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 14 Jun 2010 09:55:17 -0400 Subject: [PATCH] doctest bugfix --- HISTORY.rst | 4 ++++ gistapi/__init__.py | 2 +- gistapi/gistapi.py | 18 ++++++++++-------- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 428d657..e74c95c 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,6 +1,10 @@ History ======= +0.1.3 (2010-06-14) +------------------ +* Nose-test fix + 0.1.2 (2010-05-16) ------------------ * URL Generation BugFix diff --git a/gistapi/__init__.py b/gistapi/__init__.py index e34ebce..790a7fa 100644 --- a/gistapi/__init__.py +++ b/gistapi/__init__.py @@ -3,5 +3,5 @@ from gistapi import * __author__ = 'Kenneth Reitz' -__version__ = '.'.join(('0', '1', '2')) +__version__ = '.'.join(('0', '1', '3')) __license__ = 'MIT' diff --git a/gistapi/gistapi.py b/gistapi/gistapi.py index 62b1446..fa14636 100644 --- a/gistapi/gistapi.py +++ b/gistapi/gistapi.py @@ -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: