From da0543859891a0feb52541d0027cd9fc94ec3195 Mon Sep 17 00:00:00 2001
From: Julien Pivotto <roidelapluie@esquimaux.be>
Date: Thu, 24 Mar 2011 14:47:54 +0100
Subject: [PATCH] Comment functions added by [77d3b4e65b26]

---
 src/htmltextview.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/htmltextview.py b/src/htmltextview.py
index 52fd7ae831..6a9e58fb34 100644
--- a/src/htmltextview.py
+++ b/src/htmltextview.py
@@ -486,6 +486,8 @@ class HtmlHandler(xml.sax.handler.ContentHandler):
         return tag
 
     def _get_img(self, attrs):
+        '''Download an image. This function is launched in a separate thread.
+        '''
         mem, alt = '', ''
         # Wait maximum 5s for connection
         socket.setdefaulttimeout(5)
@@ -538,6 +540,8 @@ class HtmlHandler(xml.sax.handler.ContentHandler):
         return (mem, alt)
 
     def _update_img(self, (mem, alt), attrs, img_mark):
+        '''Callback function called after the function _get_img above.
+        '''
         self._process_img(attrs, (mem, alt, img_mark))
 
     def _process_img(self, attrs, loaded=None):
-- 
GitLab