def iter_properties(fh, comments=False):
for line in _property_lines(fh):<EOL><INDENT>key, value = _split_key_value(line)<EOL>if key is not COMMENT:<EOL><INDENT>key = _unescape(key)<EOL><DEDENT>elif not comments:<EOL><INDENT>continue<EOL><DEDENT>yield key, _unescape(value)<EOL><DEDENT>
Incrementally read properties from a Java .properties file.

Yields tuples of key/value pairs.

If ``comments`` is `True`, comments will be included with ``jprops.COMMENT``
in place of the key.

:param fh: a readable file-like object
:param comments: should include comments (default: False)