"Fossies" - the Fresh Open Source Software Archive

Member "roundup-2.0.0/roundup/anypy/cookie_.py" (29 Feb 2020, 338 Bytes) of package /linux/www/roundup-2.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "cookie_.py": 1.6.1_vs_2.0.0.

    1 
    2 try:
    3     # Python 3+
    4     from http import cookies as Cookie
    5     from http.cookies import CookieError, BaseCookie, SimpleCookie
    6     from http.cookies import _getdate as get_cookie_date
    7 except ImportError:
    8     # Python 2.5-2.7
    9     from Cookie import CookieError, BaseCookie, SimpleCookie
   10     from Cookie import _getdate as get_cookie_date