def _GetDepsLine(path, js_source):
  """Get a deps.js file string for a source."""

  provides = list(js_source.provides)
  provides.sort()

  requires = list(js_source.requires)
  requires.sort()

  return 'goog.addDependency(\'%s\', %s, %s);\n' % (path, provides, requires)