def is_online(self):
status = self.query_status(RT_STATUS_ONLINE)<EOL>if len(status) == <NUM_LIT:0>:<EOL><INDENT>return False<EOL><DEDENT>return not (status[<NUM_LIT:0>] & RT_MASK_ONLINE)<EOL>
Queries the online status of the printer.

:returns: When online, returns ``True``; ``False`` otherwise.
:rtype: bool