diff options
| author | Bob Halley <halley@dnspython.org> | 2017-01-15 06:18:35 -0800 |
|---|---|---|
| committer | Bob Halley <halley@dnspython.org> | 2017-01-15 06:18:35 -0800 |
| commit | 96f10a16a2d853a4e359aaa23c79f7a7fa7c34cf (patch) | |
| tree | 74dc4abecb9a6dc50c1e4326c8897e4657588c10 /dns/ttl.py | |
| parent | 710ac1e16b5a1d89bffa61e14cc4aa63309400ec (diff) | |
| download | dnspython-96f10a16a2d853a4e359aaa23c79f7a7fa7c34cf.tar.gz | |
doc more misc things
Diffstat (limited to 'dns/ttl.py')
| -rw-r--r-- | dns/ttl.py | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,4 +1,4 @@ -# Copyright (C) 2003-2007, 2009-2011 Nominum, Inc. +# Copyright (C) 2003-2017 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, @@ -20,7 +20,6 @@ from ._compat import long class BadTTL(dns.exception.SyntaxError): - """DNS TTL value is not well-formed.""" @@ -29,10 +28,11 @@ def from_text(text): The BIND 8 units syntax for TTLs (e.g. '1w6d4h3m10s') is supported. - @param text: the textual TTL - @type text: string - @raises dns.ttl.BadTTL: the TTL is not well-formed - @rtype: int + *text*, a ``text``, the textual TTL. + + Raises ``dns.ttl.BadTTL`` if the TTL is not well-formed. + + Returns an ``int``. """ if text.isdigit(): |
