diff options
author | Bob Halley <halley@dnspython.org> | 2020-08-06 20:02:24 -0700 |
---|---|---|
committer | Bob Halley <halley@dnspython.org> | 2020-08-07 17:03:26 -0700 |
commit | a18c51228fbc399f6582c969993c32d3b8cdc6b0 (patch) | |
tree | f087acaf1bd572bfcdc0cb82567284ee680e4083 /dns/rdataset.py | |
parent | 3aa0379a50c75647320edc9db190b4f27fb3c269 (diff) | |
download | dnspython-svcb.tar.gz |
SVCB and HTTPS checkpointsvcb
Diffstat (limited to 'dns/rdataset.py')
-rw-r--r-- | dns/rdataset.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dns/rdataset.py b/dns/rdataset.py index 0e47139..b91d288 100644 --- a/dns/rdataset.py +++ b/dns/rdataset.py @@ -268,7 +268,7 @@ class Rdataset(dns.set.Set): want_shuffle = False else: rdclass = self.rdclass - file.seek(0, 2) + file.seek(0, io.SEEK_END) if len(self) == 0: name.to_wire(file, compress, origin) stuff = struct.pack("!HHIH", self.rdtype, rdclass, 0, 0) @@ -292,7 +292,7 @@ class Rdataset(dns.set.Set): file.seek(start - 2) stuff = struct.pack("!H", end - start) file.write(stuff) - file.seek(0, 2) + file.seek(0, io.SEEK_END) return len(self) def match(self, rdclass, rdtype, covers): |