blob: 5d26da29d1791981f8ace7b2d331ef41be202b83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import re
import os
import tempfile
from . import ConfigParser
config = ConfigParser.Config()
tempfile.tempdir = config.get("global", "tempdir", None) or None # when ""
del ConfigParser
def disable_mirror(*a, **kw):
config.set("global", "use-mirror", "no")
class Error(Exception): pass
class SilentError(Error): pass
# vim:et:ts=4:sw=4
|