Commits

Vinay Sajip committed 9711755

Fix typo-level mistakes.

Comments (0)

Files changed (1)

distlib/database.py

 
     @cached_property
     def requires(self):
-        result = set(self.metadata['Requires-Dist'] +
-                     self.metadata['Requires'] +
-                     self.get_requirements('install'))
+        return set(self.metadata['Requires-Dist'] +
+                   self.metadata['Requires'] +
+                   self.get_requirements('install'))
 
     def get_requirements(self, key):
         """
                     try:
                         match = matcher.match(version)
                     except UnsupportedVersionError:
-                        # XXX small compat-mode
-                        if version.split(' ') == 1:
-                            match = True
-                        else:
-                            match = False
+                        match = False
 
                     if match:
                         graph.add_edge(dist, provider, req)