Skip to content

Commit 4f7a15d

Browse files
committed
Removed Python 2.3 compat code & bumped requirements for the impending release.
1 parent 9879ef5 commit 4f7a15d

File tree

10 files changed

+4
-39
lines changed

10 files changed

+4
-39
lines changed

README.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Haystack
33
========
44

55
:author: Daniel Lindsley
6-
:date: 2010/03/20
6+
:date: 2011/05/02
77

88
Haystack provides modular search for Django. It features a unified, familiar
99
API that allows you to plug in different search backends (such as Solr_,
@@ -32,6 +32,7 @@ Documentation
3232
=============
3333

3434
* Development version: http://docs.haystacksearch.org/dev/
35+
* v1.1: http://docs.haystacksearch.org/1.1/
3536
* v1.0: http://docs.haystacksearch.org/1.0/
3637

3738

@@ -40,8 +41,8 @@ Requirements
4041

4142
Haystack has a relatively easily-met set of requirements.
4243

43-
* Python 2.4+ (may work on 2.3 but untested)
44-
* Django 1.0+
44+
* Python 2.5+
45+
* Django 1.2+
4546

4647
Additionally, each backend has its own requirements. You should refer to
4748
http://docs.haystacksearch.org/dev/installing_search_engines.html for more

haystack/backends/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
from haystack.constants import DJANGO_CT, VALID_FILTERS, FILTER_SEPARATOR
1111
from haystack.exceptions import SearchBackendError, MoreLikeThisError, FacetingError
1212
from haystack.models import SearchResult
13-
try:
14-
set
15-
except NameError:
16-
from sets import Set as set
1713
try:
1814
from django.utils import importlib
1915
except ImportError:

haystack/backends/solr_backend.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
from haystack.exceptions import MissingDependency, MoreLikeThisError
99
from haystack.models import SearchResult
1010
from haystack.utils import get_identifier
11-
try:
12-
set
13-
except NameError:
14-
from sets import Set as set
1511
try:
1612
from django.db.models.sql.query import get_proxied_model
1713
except ImportError:

haystack/backends/whoosh_backend.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313
from haystack.exceptions import MissingDependency, SearchBackendError
1414
from haystack.models import SearchResult
1515
from haystack.utils import get_identifier
16-
try:
17-
set
18-
except NameError:
19-
from sets import Set as set
2016
try:
2117
import json
2218
except ImportError:

haystack/management/commands/update_index.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
from django.utils import importlib
1010
except ImportError:
1111
from haystack.utils import importlib
12-
try:
13-
set
14-
except NameError:
15-
from sets import Set as set
1612

1713

1814
DEFAULT_BATCH_SIZE = getattr(settings, 'HAYSTACK_BATCH_SIZE', 1000)

haystack/utils/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import re
22
from django.utils.html import strip_tags
33
from haystack.constants import ID, DJANGO_CT, DJANGO_ID
4-
try:
5-
set
6-
except NameError:
7-
from sets import Set as set
84

95

106
IDENTIFIER_REGEX = re.compile('^[\w\d_]+\.[\w\d_]+\.\d+$')

tests/core/tests/query.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313
from haystack.sites import SearchSite
1414
from core.models import MockModel, AnotherMockModel, CharPKMockModel
1515
from core.tests.mocks import MockSearchQuery, MockSearchBackend, CharPKMockSearchBackend, MixedMockSearchBackend, MOCK_SEARCH_RESULTS
16-
try:
17-
set
18-
except NameError:
19-
from sets import Set as set
2016

2117
test_pickling = True
2218

tests/solr_tests/tests/solr_backend.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
from haystack.sites import SearchSite
1313
from core.models import MockModel, AnotherMockModel, AFourthMockModel
1414
from core.tests.mocks import MockSearchResult
15-
try:
16-
set
17-
except NameError:
18-
from sets import Set as set
1915

2016
test_pickling = True
2117

tests/solr_tests/tests/templatetags.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
from haystack.backends.solr_backend import SearchBackend
77
from haystack.sites import SearchSite
88
from core.models import MockModel
9-
try:
10-
set
11-
except NameError:
12-
from sets import Set as set
139

1410

1511
class MLTSearchIndex(RealTimeSearchIndex):

tests/whoosh_tests/tests/whoosh_backend.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
from haystack.sites import SearchSite
1515
from core.models import MockModel, AnotherMockModel, AFourthMockModel
1616
from core.tests.mocks import MockSearchResult
17-
try:
18-
set
19-
except NameError:
20-
from sets import Set as set
2117

2218

2319
class WhooshMockSearchIndex(indexes.SearchIndex):

0 commit comments

Comments
 (0)