From 9fee96fc9cdf9ad978888d8847c03a039c06ebe4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dan=20Michael=20O=2E=20Hegg=C3=B8?= <danmichaelo@gmail.com>
Date: Sat, 28 Jul 2012 00:11:14 +0200
Subject: [PATCH] [gist 3041116] Add support for upload comments

---
 client.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/client.py b/client.py
index 9fdd2c9..23e6cd5 100644
--- a/client.py
+++ b/client.py
@@ -362,7 +362,11 @@ class Site(object):
 		
 		predata = {}
 		
-		predata['comment'] = description
+		if comment == '':
+			predata['comment'] = description
+		else:
+			predata['comment'] = comment
+			predata['text'] = description
 		if ignore: 
 			predata['ignorewarnings'] = 'true'
 		predata['token'] = image.get_token('edit')
-- 
GitLab