Permalink
Browse files

Fixed initialization parameters on ``Results``. Thanks to jonathan.sl…

…enders for pointing this out. v2.0.11
  • Loading branch information...
1 parent 83b0f87 commit 8ccd48f695510d4bd008c6124487efc127565ee8 @toastdriven toastdriven committed Apr 28, 2010
Showing with 6 additions and 6 deletions.
  1. +5 −5 pysolr.py
  2. +1 −1 setup.py
View
10 pysolr.py
@@ -150,7 +150,7 @@
__author__ = 'Joseph Kocherhans, Jacob Kaplan-Moss, Daniel Lindsley'
__all__ = ['Solr']
-__version__ = (2, 0, 10)
+__version__ = (2, 0, 11)
def get_version():
return "%s.%s.%s" % __version__
@@ -161,12 +161,12 @@ class SolrError(Exception):
pass
class Results(object):
- def __init__(self, docs, hits, highlighting={}, facets={}, spellcheck={}):
+ def __init__(self, docs, hits, highlighting=None, facets=None, spellcheck=None):
self.docs = docs
self.hits = hits
- self.highlighting = highlighting
- self.facets = facets
- self.spellcheck = spellcheck
+ self.highlighting = highlighting or {}
+ self.facets = facets or {}
+ self.spellcheck = spellcheck or {}
def __len__(self):
return len(self.docs)
View
2 setup.py
@@ -2,7 +2,7 @@
setup(
name = "pysolr",
- version = "2.0.10",
+ version = "2.0.11",
description = "Lightweight python wrapper for Apache Solr.",
author = 'Daniel Lindsley',
author_email = 'daniel@toastdriven.com',

0 comments on commit 8ccd48f

Please sign in to comment.