parameters: (spec, package, src_dir)
return_statement: return (
              # Each pattern has to be converted to a platform-specific path
              os.path.join(src_dir, convert_path(pattern))
              for pattern in raw_patterns
          )
docstring: yield platform-specific path patterns (suitable for glob
          or fn_match) from a glob-based spec (such as
          self.package_data or self.exclude_package_data)
          matching package in src_dir.
docstring_summary: yield platform-specific path patterns (suitable for glob
          or fn_match) from a glob-based spec (such as
          self.package_data or self.exclude_package_data)
          matching package in src_dir.
docstring_tokens: yield platform - specific path patterns ( suitable for glob or fn_match ) from a glob - based spec ( such as self . package_data or self . exclude_package_data ) matching package in src_dir .
function: def _get_platform_patterns(spec, package, src_dir):
          """
          yield platform-specific path patterns (suitable for glob
          or fn_match) from a glob-based spec (such as
          self.package_data or self.exclude_package_data)
          matching package in src_dir.
          """
          raw_patterns = itertools.chain(
              spec.get('', []),
              spec.get(package, []),
          )
          return (
              # Each pattern has to be converted to a platform-specific path
              os.path.join(src_dir, convert_path(pattern))
              for pattern in raw_patterns
          )
function_tokens: def _get_platform_patterns ( spec , package , src_dir ) : raw_patterns = itertools . chain ( spec . get ( '' , [ ] ) , spec . get ( package , [ ] ) , ) return ( # Each pattern has to be converted to a platform-specific path os . path . join ( src_dir , convert_path ( pattern ) ) for pattern in raw_patterns )