summaryrefslogtreecommitdiff
path: root/giscanner
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2010-09-20 00:05:30 -0300
committerJohan Dahlin <johan@gnome.org>2010-09-20 00:10:04 -0300
commit597ce27a0984669997a65fd216d5ce45dbcbfa6b (patch)
treee9a8794a4414468617728935d85651beb9fb4d9d /giscanner
parent3711dcabae155df924cf42cc7d1202843f8b5e64 (diff)
[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
Diffstat (limited to 'giscanner')
-rw-r--r--giscanner/message.py2
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)