summaryrefslogtreecommitdiff
path: root/zuul/driver/github/githubconnection.py
diff options
context:
space:
mode:
authorMatthieu Huin <mhuin@redhat.com>2021-06-14 12:18:58 +0200
committerMatthieu Huin <mhuin@redhat.com>2021-06-14 13:13:07 +0000
commitd72ddd01e35fe42f83ed3a580b27858cefa65eb5 (patch)
treea433c016346792e2109fc56bb67fb6ee5cb47122 /zuul/driver/github/githubconnection.py
parent09eaad4087b2055ac0db8291cb7c8034a2497457 (diff)
downloadzuul-d72ddd01e35fe42f83ed3a580b27858cefa65eb5.tar.gz
Import collections.Mapping correctly4.5.1
With newer versions of python, Mapping has been moved to collections.abc. Get the correct import in that case. Change-Id: I5ea0cff10f13cf648efff7ede93c129e6f46e606
Diffstat (limited to 'zuul/driver/github/githubconnection.py')
-rw-r--r--zuul/driver/github/githubconnection.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/zuul/driver/github/githubconnection.py b/zuul/driver/github/githubconnection.py
index 6089d4beb..33364d3ed 100644
--- a/zuul/driver/github/githubconnection.py
+++ b/zuul/driver/github/githubconnection.py
@@ -22,6 +22,7 @@ import threading
import time
import json
from collections import OrderedDict, defaultdict
+from collections.abc import Mapping
from itertools import chain
from json.decoder import JSONDecodeError
from typing import List, Optional
@@ -773,7 +774,7 @@ class GithubEventConnector:
return EventTuple(time.time(), body, event_type, delivery)
-class GithubUser(collections.Mapping):
+class GithubUser(Mapping):
log = logging.getLogger('zuul.GithubUser')
def __init__(self, username, connection, project_name):