[gobject-introspection] [message] Set file_positions to an empty list



commit 597ce27a0984669997a65fd216d5ce45dbcbfa6b
Author: Johan Dahlin <johan gnome org>
Date:   Mon Sep 20 00:05:30 2010 -0300

    [message] Set file_positions to an empty list
    
    So we can always pass it into len() without breaking
    
    https://bugzilla.gnome.org/show_bug.cgi?id=629959

 giscanner/message.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/message.py b/giscanner/message.py
index b037e54..3db31e3 100644
--- a/giscanner/message.py
+++ b/giscanner/message.py
@@ -118,7 +118,7 @@ context will be used."""
             else:
                 file_positions = node.file_positions
         else:
-            file_positions = None
+            file_positions = []
             if not context:
                 text = "context=%r %s" % (node, text)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]