Staging
v0.5.1
https://github.com/python/cpython
Revision 78f8e98232a551f2b53fdd5e60188a14292b906c authored by Fred Drake on 29 December 1997, 21:39:39 UTC, committed by Fred Drake on 29 December 1997, 21:39:39 UTC
the info generation phases.  Most of the errors had occurred in the makeinfo
step.

Commented out the warning at the top; this should still really be removed
before 1.5, but that's not my call.  It generated problems for the info
conversion as well.
1 parent 6810a29
Raw File
Tip revision: 78f8e98232a551f2b53fdd5e60188a14292b906c authored by Fred Drake on 29 December 1997, 21:39:39 UTC
Lots of minor nits that allow this file to get processed without failures by
Tip revision: 78f8e98
libgopherlib.tex
\section{Standard Module \sectcode{gopherlib}}
\label{module-gopherlib}
\stmodindex{gopherlib}

\renewcommand{\indexsubitem}{(in module gopherlib)}

This module provides a minimal implementation of client side of the
the Gopher protocol.  It is used by the module \code{urllib} to handle
URLs that use the Gopher protocol.

The module defines the following functions:

\begin{funcdesc}{send_selector}{selector\, host\optional{\, port}}
Send a \var{selector} string to the gopher server at \var{host} and
\var{port} (default 70).  Return an open file object from which the
returned document can be read.
\end{funcdesc}

\begin{funcdesc}{send_query}{selector\, query\, host\optional{\, port}}
Send a \var{selector} string and a \var{query} string to a gopher
server at \var{host} and \var{port} (default 70).  Return an open file
object from which the returned document can be read.
\end{funcdesc}

Note that the data returned by the Gopher server can be of any type,
depending on the first character of the selector string.  If the data
is text (first character of the selector is \samp{0}), lines are
terminated by CRLF, and the data is terminated by a line consisting of
a single \samp{.}, and a leading \samp{.} should be stripped from
lines that begin with \samp{..}.  Directory listings (first charactger
of the selector is \samp{1}) are transferred using the same protocol.
back to top