Commit ea966ba2 authored by Štěpán Balážik's avatar Štěpán Balážik

Merge branch 'minor-fixes' into 'master'

minor fixes

See merge request !150
parents 2a9c7de5 fd25ffe1
Pipeline #44373 passed with stage
in 1 minute and 39 seconds
......@@ -5,7 +5,7 @@
import posixpath
import logging
import os
import collections
import collections.abc
from augeas import Augeas
......@@ -122,7 +122,7 @@ class AugeasWrapper:
yield AugeasNode(self._aug, matched_path)
class AugeasNode(collections.MutableMapping):
class AugeasNode(collections.abc.MutableMapping):
"""One Augeas tree node with dict-like interface."""
def __init__(self, aug, path):
......
......@@ -209,6 +209,8 @@ class DNSReplyRaw(DNSBlob):
assert wire is not None
self.wire = wire
if copy_id:
if query is None:
raise ValueError("query must be provided to adjust copy_id")
self.adjust_reply(query, copy_id)
def adjust_reply(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment