Browse Source

Move method doc to comment

pull/343/head
Ross McFarland 7 years ago
committed by GitHub
parent
commit
8c9b9fce89
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 6 deletions
  1. +3
    -6
      octodns/source/tinydns.py

+ 3
- 6
octodns/source/tinydns.py View File

@ -47,14 +47,11 @@ class TinyDnsBaseSource(BaseSource):
} }
def _data_for_AAAA(self, _type, records): def _data_for_AAAA(self, _type, records):
'''
TinyDNS files have the ipv6 address written in full, but with the
colons removed. This inserts a colon every 4th character to make
the address correct.
'''
values = [] values = []
for record in records: for record in records:
# TinyDNS files have the ipv6 address written in full, but with the
# colons removed. This inserts a colon every 4th character to make
# the address correct.
values.append(u":".join(textwrap.wrap(record[0], 4))) values.append(u":".join(textwrap.wrap(record[0], 4)))
try: try:
ttl = records[0][1] ttl = records[0][1]


Loading…
Cancel
Save