| Trees | Indices | Help |
|---|
|
|
|
|||
|
UTC Used for creating offset-aware datetime objects in Python 2. |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
rfc822_days =
|
|||
rfc822_mons =
|
|||
re_rpmName = re.compile(r'^
|
|||
utc = UTC()
|
|||
__package__ =
|
|||
|
|||
Return time as a string formatted such as: 'Wed, 23 Jun 2001 23:08:35 GMT'.
We must not use locale-specific functions such as strftime here because
the RFC explicitly requires C-locale only formatting. To satisfy this
requirement, we declare our own days and months here and do the formatting
manually.
This function accepts a single argument. If it is a List or Tuple type,
it is assumed to be of the form struct_time, as specified in the Python
time module reference. If the argument is a float, it is expected to be
the number of seconds from the epoch.
NOTE: In all cases, the argument is assumed to be in local time. It will
be translated to GMT in the return value.
|
urlparse is more complicated than what we need.
We make the assumption that the URL has real URL information.
NOTE: http/https ONLY for right now.
The normal behavior of urlparse:
- if no {http[s],file}:// then the string is considered everything
that normally follows the URL, e.g. /XMLRPC
- if {http[s],file}:// exists, anything between that and the next /
is the URL.
The behavior of *this* function:
- if no {http[s],file}:// then the string is simply assumed to be a
URL without the {http[s],file}:// attached. The parsed info is
reparsed as one would think it would be:
- returns: (addressing scheme, network location, path,
parameters, query, fragment identifier).
NOTE: netloc (or network location) can be HOSTNAME:PORT
|
Given an object id (assumed to be <label>-<number>), returns the last few digits for the number. For instance, (812345, 3) should return 345 |
IN: Package string in, n-n-n-v.v.v-r.r_r, format. OUT: Four strings (in a tuple): name, epoch, version, release. |
IN: Package string in, n-n_v.v-v.v-r.r, format. OUT: Four strings (in a tuple): name, epoch, version, release. |
|
|||
rfc822_mons
|
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Wed Mar 4 07:37:11 2020 | http://epydoc.sourceforge.net |