code: def _platform_patterns(self, platform='generic', compiled=False):
          
          patterns = self._dict_compiled.get(platform, None) if compiled else self._dict_text.get(platform, None)
          if patterns is None:
              raise KeyError("Unknown platform: {}".format(platform))
          return patterns
docs: Return all the patterns for specific platform.