packages/vaex-core/vaex/ext/jprops.py
def store_properties(fh, props, comment=None, timestamp=True):
  """
    Writes properties to the file in Java properties format.

    :param fh: a writable file-like object
    :param props: a mapping (dict) or iterable of key/value pairs
    :param comment: comment to write to the beginning of the file
    :param timestamp: boolean indicating whether to write a timestamp comment
  """
  if comment is not None:
    write_comment(fh, comment)

  if timestamp:
    write_comment(fh, time.strftime('%a %b %d %H:%M:%S %Z %Y'))

  if hasattr(props, 'keys'):
    for key in props:
      write_property(fh, key, props[key])
  else:
    for key, value in props:
      write_property(fh, key, value)
def store_properties(fh, props, comment=None, timestamp=True):
  if comment is not None:
    write_comment(fh, comment)

  if timestamp:
    write_comment(fh, time.strftime('%a %b %d %H:%M:%S %Z %Y'))

  if hasattr(props, 'keys'):
    for key in props:
      write_property(fh, key, props[key])
  else:
    for key, value in props:
      write_property(fh, key, value)
def store_properties ( fh , props , comment = None , timestamp = True ) : if comment is not None : write_comment ( fh , comment ) if timestamp : write_comment ( fh , time . strftime ( '%a %b %d %H:%M:%S %Z %Y' ) ) if hasattr ( props , 'keys' ) : for key in props : write_property ( fh , key , props [ key ] ) else : for key , value in props : write_property ( fh , key , value )
Writes properties to the file in Java properties format.

    :param fh: a writable file-like object
    :param props: a mapping (dict) or iterable of key/value pairs
    :param comment: comment to write to the beginning of the file
    :param timestamp: boolean indicating whether to write a timestamp comment
Writes properties to the file in Java properties format .