This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import threading | |
class TestableThread(threading.Thread): | |
"""Wrapper around `threading.Thread` that propagates exceptions.""" | |
def __init__(self, target, args): | |
super().__init__(self, target=target, args=args) | |
self.exc = None |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 1ba6e724dabf3a91e59b871750e22d420a4b1238 Mon Sep 17 00:00:00 2001 | |
From: Star Brilliant <[email protected]> | |
Date: Wed, 5 Oct 2016 22:02:36 +0800 | |
Subject: [PATCH] Add a critical action: Ignore | |
--- | |
etc/UPower.conf | 3 ++- | |
src/linux/up-backend.c | 5 +++++ | |
2 files changed, 7 insertions(+), 1 deletion(-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import urllib.request | |
import re | |
import ssl | |
import sys | |
# # find generic mirrors | |
mirrors = urllib.request.urlopen('http://www.debian.org/mirror/list') | |
https = [] |