0
     YˆßŽþDÑVl¯ŒŒ‰±Œ óÞ590ÝÁÛ N    Y€}q (X	   locale_idqX   mfe_MUqX   territoriesq}qX	   languagesq}qX   variantsq}qX   scriptsq	}q
X   list_patternsq}qX	   week_dataq}qX   zone_formatsq}qX
   time_zonesq}qX
   meta_zonesq}qX   number_symbolsq}qX   decimal_formatsq}qX   scientific_formatsq}qX   percent_formatsq}qX   currency_formatsq}qX   currency_unit_patternsq}q X   currency_namesq!}q"X   currency_names_pluralq#}q$X   currency_symbolsq%}q&X   unit_patternsq'}q(X   compound_unit_patternsq)}q*X   unit_display_namesq+}q,X   date_fieldsq-}q.X   measurement_systemsq/}q0u.  M   [ˆl–äY>”Ên-ji@¿pB¸ÈÅ£�þcYYÁ	Çã„óïùß„i×šgÞa–ßi~” T¾R( 	Å õÆÁp.©‹FÿÝ ?÷     [#!/usr/bin/python3
#
# Copyright 2020 Johannes Schauer Marin Rodrigues <josch@debian.org>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.

# snapshot.d.o API feature requests:
#
# Currently, the API does not allow to list all dates for which a snapshot
# was made. This would be useful to allow skipping snapshots. Currently we
# blindly bisect but without knowing which date on snapshot.d.o a given
# timestamp resolves to, we cannot mark it as untestable (see feature request
# above) and without a list of testable timestamps we cannot reliably test
# a timestamp before and after the one to skip.
# See also: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=969603
#
# It would be useful to know when a package version was first seen in a given
# suite. Without this knowledge we cannot reliably pick the snapshot timestamps
# at which we want to test a given suite. For example, a package version might
# appear in experimental long before it appears in unstable or any other suite
# that is to be tested. Thus, the first_seen attribute of the snapshot API is
# not very useful to determine a limited set of timestamps to test.
# See also: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=806329

# wishlist features
# -----------------
#
#  - restrict set of tested snapshot timestamps to those where a given package
#    set actually changed (needs a resolution to #806329)
#
#  - allow marking snapshot timestamps as skippable, for example via script
#    exit code (needs resolution to #969603)
#
#  - add convenience function which builds a given source package and installs
#    its build dependencies automatically

# complains about log_message cannot be fixed because the original function
# names one of its arguments "format" which is also forbidden...
# pylint: disable=W0221
#
# pylint complains about too many branches but the code would not become more
# readable by spreading it out across more functions
# pylint: disable=R0912
#
# allow more than 1000 lines in this file
# pylint: disable=C0302
#
# TODO: Adress invalid names
# pylint: disable=invalid-name

import argparse
import atexit
import collections
import email.utils
import http.client
import http.server
import io
import logging
import lzma
import math
import os
import pty
import re
import select
import shutil
import socketserver
import subprocess
import sys
import tempfile
import threading
import urllib.error
import urllib.request
from datetime import date, datetime, time, timedelta, timezone
from functools import partial
from http import HTTPStatus
from time import sleep

import debian
import debian.deb822
import requests

HAVE_DATEUTIL = True
try:
    import dateutil.parser
except ImportError:
    HAVE_DATEUTIL = False

HAVE_PARSEDATETIME = True
try:
    import parsedatetime
except ImportError:
    HAVE_PARSEDATETIME = False

DINS