3
3
# This file is part of launchpadlib.
5
# launchpadlib is free software: you can redistribute it and/or modify
6
# it under the terms of the GNU Lesser General Public License as
7
# published by the Free Software Foundation, either version 3 of the
8
# License, or (at your option) any later version.
10
# launchpadlib is distributed in the hope that it will be useful, but
11
# WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
# Lesser General Public License for more details.
15
# You should have received a copy of the GNU Lesser General Public
16
# License along with launchpadlib. If not, see
17
# <http://www.gnu.org/licenses/>.
5
# launchpadlib is free software: you can redistribute it and/or modify it
6
# under the terms of the GNU Lesser General Public License as published by the
7
# Free Software Foundation, version 3 of the License.
9
# launchpadlib is distributed in the hope that it will be useful, but WITHOUT
10
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
14
# You should have received a copy of the GNU Lesser General Public License
15
# along with launchpadlib. If not, see <http://www.gnu.org/licenses/>.
19
17
"""launchpadlib credentials and authentication support."""
26
from ConfigParser import SafeConfigParser
29
from oauth.oauth import OAuthConsumer, OAuthToken
30
30
from urllib import urlencode
32
from ConfigParser import SafeConfigParser
33
32
from launchpadlib.errors import CredentialsFileError, HTTPError
34
from launchpadlib._oauth.oauth import OAuthConsumer, OAuthToken
37
35
CREDENTIALS_FILE_VERSION = '1'