diff options
| author | Arch Librarian <arch@canonical.com> | 2004-11-24 10:00:18 +0000 |
|---|---|---|
| committer | Arch Librarian <arch@canonical.com> | 2004-11-24 10:00:18 +0000 |
| commit | 8d69127bf89691cec365780ccc10d6ee5be7332e (patch) | |
| tree | 727ff8024d530ce7950da8c0b70134efe7a57a8e /python/string.cc | |
| parent | edd251528cddb41b2e378c33b7092f845f31374a (diff) | |
| download | python-apt-8d69127bf89691cec365780ccc10d6ee5be7332e.tar.gz | |
Alfredo's no_proxy patch
Author: jgg
Date: 2001-02-23 05:46:02 GMT
Alfredo's no_proxy patch
Diffstat (limited to 'python/string.cc')
| -rw-r--r-- | python/string.cc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/python/string.cc b/python/string.cc index 7564899b..5ad7fddb 100644 --- a/python/string.cc +++ b/python/string.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: string.cc,v 1.1 2001/02/20 06:32:01 jgg Exp $ +// $Id: string.cc,v 1.2 2001/02/23 05:46:02 jgg Exp $ /* ###################################################################### string - Mappings for the string functions that are worthwile for @@ -93,4 +93,14 @@ PyObject *StrStrToTime(PyObject *Self,PyObject *Args) return Py_BuildValue("i",Result); } + +PyObject *StrCheckDomainList(PyObject *Self,PyObject *Args) +{ + char *Host = 0; + char *List = 0; + if (PyArg_ParseTuple(Args,"ss",&Host,&List) == 0) + return 0; + return Py_BuildValue("i",CheckDomainList(Host,List)); +} + /*}}}*/ |
