Lines Matching refs:format
13 >>> resp, subs = s.xhdr('subject', '{0}-{1}'.format(first, last))
208 overview format `fmt`."""
259 in the format required by the NEWNEWS and NEWGROUPS commands. If a
264 date has the YYYYMMDD format and time the HHMMSS format
266 date has the YYMMDD format and time the HHMMSS format.
273 time_str = "{0.hour:02d}{0.minute:02d}{0.second:02d}".format(dt)
277 date_str = "{0:02d}{1.month:02d}{1.day:02d}".format(y, dt)
279 date_str = "{0:04d}{1.month:02d}{1.day:02d}".format(y, dt)
562 """Internal: get the overview format. Queries the server if not
606 "not '{:40}'".format(date.__class__.__name__))
608 cmd = 'NEWGROUPS {0} {1}'.format(date_str, time_str)
623 "not '{:40}'".format(date.__class__.__name__))
625 cmd = 'NEWNEWS {0} {1} {2}'.format(group, date_str, time_str)
744 return self._statcmd('STAT {0}'.format(message_spec))
771 cmd = 'HEAD {0}'.format(message_spec)
785 cmd = 'BODY {0}'.format(message_spec)
799 cmd = 'ARTICLE {0}'.format(message_spec)
820 resp, lines = self._longcmdstring('XHDR {0} {1}'.format(hdr, str), file)
835 resp, lines = self._longcmdstring('XOVER {0}-{1}'.format(start, end),
860 cmd += ' {0}-{1}'.format(start, end or '')
893 # in the right format
919 return self._post('IHAVE {0}'.format(message_id), data)
1089 print("{:7} {:20} {:42} ({})".format(