Fix docs.
[pithos] / pithos / lib / filter.py
index 6b9e1e3..afaa6ed 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2011 GRNET S.A. All rights reserved.
+# Copyright 2011-2012 GRNET S.A. All rights reserved.
 # 
 # Redistribution and use in source and binary forms, with or
 # without modification, are permitted provided that the following
 # or implied, of GRNET S.A.
 
 import re
-import operator
+
 
 _regexfilter = re.compile('(!?)\s*(\S+?)\s*(?:(=|!=|<=|>=|<|>)\s*(\S*?)\s*)?$', re.UNICODE)
 
-OPERATORS = {'=':operator.eq,
-             '!=':operator.ne,
-             '<=':operator.le,
-             '>=':operator.ge,
-             '<':operator.lt,
-             '>':operator.gt
-}
 
 def parse_filters(terms):
     included = []