summaryrefslogtreecommitdiffstats
path: root/Lib/netrc.py
Commit message (Collapse)AuthorAgeFilesLines
* Patch # 1331 by Christian Heimes.Guido van Rossum2007-10-261-1/+4
| | | | | The patch fixes some of the problems on Windows. It doesn't introduce addition problems on Linux.
* Fix most trivially-findable print statements.Guido van Rossum2007-02-091-1/+1
| | | | | | | | | There's one major and one minor category still unfixed: doctests are the major category (and I hope to be able to augment the refactoring tool to refactor bona fide doctests soon); other code generating print statements in strings is the minor category. (Oh, and I don't know if the compiler package works.)
* SF bug 557704: netrc module can't handle all passwordsRaymond Hettinger2003-04-241-2/+3
| | | | | | | Let netrc handle entries with login fields (mail servers for instance) by having login default to ''. Backport candidate.
* SF 557704: netrc module can't handle all passwordsRaymond Hettinger2003-04-231-2/+1
| | | | | | Expanded the range of allowable characters to include ascii punctuation. Allows resource files to have a larger character set for passwords. (Idea contributed by Bram Moolenaar.)
* Replace boolean test with is None.Raymond Hettinger2002-06-011-1/+1
|
* SF 563203. Replaced 'has_key()' with 'in'.Raymond Hettinger2002-06-011-2/+2
|
* [Bug #532115] netrc module was brokenAndrew M. Kuchling2002-03-221-11/+9
| | | | | | | | * 'macdef' (macro definition) wasn't parsed correctly * account value not reset for a subsequent 'default' line * typo: 'whitepace' -> 'whitespace' Bugfix candidate.
* netrc will now raise a more predictable exception when $HOME is not setPaul Prescod2002-03-181-1/+4
| | | | | | | | | (as it is often not on Windows). The code was always designed so that it would raise an IOError if there was no .netrc. But if there was no $HOME it would return a KeyError which would be somewhat unexpected for code that didn't know the algorithm it used to find .netrc. The particular code that triggered this problem for me was ftpmirror.py which handled the IOError gracefully, but not the KeyError.
* Fix typo in attribute name (file should be filename) found byGuido van Rossum2001-04-151-1/+1
| | | | Neil Norwitz's PyChecker.
* Define & use NetrcParseError instead of improperly overloading SyntaxError.Fred Drake2001-03-061-5/+22
| | | | Always has the lineno and filename of the source text.
* added several more __all__ listsSkip Montanaro2001-02-061-0/+2
|
* Whitespace normalization.Tim Peters2001-01-151-6/+5
|
* Remove superfluous semicolonsAndrew M. Kuchling2000-12-231-1/+1
|
* Update the code to better reflect recommended style:Fred Drake2000-12-121-1/+1
| | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
* Apply Greg Kochanski's fix for open/265.Eric S. Raymond2000-07-131-4/+1
|
* Fix bug open/243 reported by Dimitri PapadopoulosEric S. Raymond2000-07-131-1/+2
|
* More trivial comment -> docstring transformations by Ka-Ping Yee,Guido van Rossum2000-02-041-2/+4
| | | | | | | | | | | | | | | | | | who writes: Here is batch 2, as a big collection of CVS context diffs. Along with moving comments into docstrings, i've added a couple of missing docstrings and attempted to make sure more module docstrings begin with a one-line summary. I did not add docstrings to the methods in profile.py for fear of upsetting any careful optimizations there, though i did move class documentation into class docstrings. The convention i'm using is to leave credits/version/copyright type of stuff in # comments, and move the rest of the descriptive stuff about module usage into module docstrings. Hope this is okay.
* No need to import sys or string. (Andrew Dalke & kjpylint)Guido van Rossum1999-05-031-1/+1
|
* Get rid of #! lineGuido van Rossum1999-04-091-1/+0
|
* Adding shlex and netrc by Eric Raymond.Guido van Rossum1998-12-221-0/+93