class_docstr: Frontend to `git credential`
      
class_docstr_tok: ["Frontend","to","`","git","credential","`"]
code: def _format_props(self):
      props = ""
      for p in self._credential_props:
          val = self._credential_props.get(p)
          if self._credential_props.get(p) is None:
              continue
          props += "{}={}\n".format(p, val)
  
      props = props.encode("utf-8")
      if not props:
          props = b"\n"
      return props
  
file_path: datalad/datalad/local/gitcredential.py
imports: from io import StringIO
  from datalad.cmd import GitWitlessRunner, StdOutErrCapture
  from logging import getLogger
label_desc: Use image node_id 3 for calling the GitCredentialInterface obj's underlying member method code with example usage: obj._format_props() and returns: props