Commits

Michał Górny committed 2ef1226

Py3: make Pattern hashable.

  • Participants
  • Parent commits 5ad1853

Comments (0)

Files changed (1)

lib/flaggie/action.py

 			def __eq__(self, s):
 				return fnmatch.fnmatchcase(s, self.pattern)
 
+			def __hash__(self):
+				return hash(self.pattern)
+
 		def __init__(self, arg, key):
 			self.args = set((arg,))
 			self.ns = None