summaryrefslogtreecommitdiff
path: root/dns/ttl.py
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2017-01-15 06:18:35 -0800
committerBob Halley <halley@dnspython.org>2017-01-15 06:18:35 -0800
commit96f10a16a2d853a4e359aaa23c79f7a7fa7c34cf (patch)
tree74dc4abecb9a6dc50c1e4326c8897e4657588c10 /dns/ttl.py
parent710ac1e16b5a1d89bffa61e14cc4aa63309400ec (diff)
downloaddnspython-96f10a16a2d853a4e359aaa23c79f7a7fa7c34cf.tar.gz
doc more misc things
Diffstat (limited to 'dns/ttl.py')
-rw-r--r--dns/ttl.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/dns/ttl.py b/dns/ttl.py
index a27d825..4690728 100644
--- a/dns/ttl.py
+++ b/dns/ttl.py
@@ -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():