Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
python
cpython
Repository navigation
Code
Issues
5k+
(5k+)
Pull requests
2.7k
(2.7k)
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Lib
netrc.py
on
3.9
User selector
All users
Datepicker
All time
Commit history
Commits on Nov 25, 2017
bpo-28334: netrc() now uses expanduser() to find .netrc file (GH-4537)
Show description for 8d9bb11
berkerpeksag
authored
8d9bb11
View commit details
Copy full SHA for 8d9bb11
View code at this point
Browse repository at this point
Commits on Sep 30, 2017
bpo-30806 netrc.__repr__() is broken for writing to file (GH-2491)
Show description for b24cd05
Bezier89
authored and
methane
committed
b24cd05
View commit details
Copy full SHA for b24cd05
View code at this point
Browse repository at this point
Commits on Apr 5, 2017
bpo-29762: More use "raise from None". (#569)
Show description for 5affd23
serhiy-storchaka
authored
5affd23
View commit details
Copy full SHA for 5affd23
View code at this point
Browse repository at this point
Commits on Sep 18, 2013
Merge #14984: only import pwd on POSIX.
Show description for 6bd3e44
bitdancer
committed
6bd3e44
View commit details
Copy full SHA for 6bd3e44
View code at this point
Browse repository at this point
#14984: only import pwd on POSIX.
bitdancer
committed
505be21
View commit details
Copy full SHA for 505be21
View code at this point
Browse repository at this point
Merge #14984: On POSIX, enforce permissions when reading default .netrc.
bitdancer
committed
4750fa8
View commit details
Copy full SHA for 4750fa8
View code at this point
Browse repository at this point
#14984: On POSIX, enforce permissions when reading default .netrc.
Show description for 104aab9
bitdancer
committed
104aab9
View commit details
Copy full SHA for 104aab9
View code at this point
Browse repository at this point
Commits on Dec 25, 2012
Replace IOError with OSError (#16715)
asvetlov
committed
f7a17b4
View commit details
Copy full SHA for f7a17b4
View code at this point
Browse repository at this point
Commits on Jun 10, 2011
fix regression in netrc comment handling (closes #12009)
benjaminp
committed
1df0f21
View commit details
Copy full SHA for 1df0f21
View code at this point
Browse repository at this point
Commits on Dec 2, 2010
Merged revisions 86925 via svnmerge from
Show description for 78a1a15
bitdancer
committed
78a1a15
View commit details
Copy full SHA for 78a1a15
View code at this point
Browse repository at this point
Commits on Oct 26, 2007
Patch # 1331 by Christian Heimes.
Show description for c12a813
gvanrossum
committed
c12a813
View commit details
Copy full SHA for c12a813
View code at this point
Browse repository at this point
Commits on Feb 9, 2007
Fix most trivially-findable print statements.
Show description for be19ed7
gvanrossum
committed
be19ed7
View commit details
Copy full SHA for be19ed7
View code at this point
Browse repository at this point
Commits on Apr 24, 2003
SF bug 557704: netrc module can't handle all passwords
Show description for b34ef94
rhettinger
committed
b34ef94
View commit details
Copy full SHA for b34ef94
View code at this point
Browse repository at this point
Commits on Apr 23, 2003
SF 557704: netrc module can't handle all passwords
Show description for 6eca358
rhettinger
committed
6eca358
View commit details
Copy full SHA for 6eca358
View code at this point
Browse repository at this point
Commits on Jun 1, 2002
Replace boolean test with is None.
rhettinger
committed
16e3c42
View commit details
Copy full SHA for 16e3c42
View code at this point
Browse repository at this point
SF 563203. Replaced 'has_key()' with 'in'.
rhettinger
committed
54f0222
View commit details
Copy full SHA for 54f0222
View code at this point
Browse repository at this point
Commits on Mar 22, 2002
[Bug #532115] netrc module was broken
Show description for 366a1df
akuchling
committed
366a1df
View commit details
Copy full SHA for 366a1df
View code at this point
Browse repository at this point
Commits on Mar 18, 2002
netrc will now raise a more predictable exception when $HOME is not set
Show description for b845f3b
Paul Prescod
committed
b845f3b
View commit details
Copy full SHA for b845f3b
View code at this point
Browse repository at this point
Commits on Apr 15, 2001
Fix typo in attribute name (file should be filename) found by
Show description for 815bee4
gvanrossum
committed
815bee4
View commit details
Copy full SHA for 815bee4
View code at this point
Browse repository at this point
Commits on Mar 6, 2001
Define & use NetrcParseError instead of improperly overloading SyntaxError.
Show description for ec6ec90
freddrake
committed
ec6ec90
View commit details
Copy full SHA for ec6ec90
View code at this point
Browse repository at this point
Commits on Feb 6, 2001
added several more __all__ lists
Skip Montanaro
committed
269b83b
View commit details
Copy full SHA for 269b83b
View code at this point
Browse repository at this point
Commits on Jan 15, 2001
Whitespace normalization.
tim-one
committed
2344fae
View commit details
Copy full SHA for 2344fae
View code at this point
Browse repository at this point
Commits on Dec 23, 2000
Remove superfluous semicolons
akuchling
committed
49d27c8
View commit details
Copy full SHA for 49d27c8
View code at this point
Browse repository at this point
Commits on Dec 12, 2000
Update the code to better reflect recommended style:
Show description for 8152d32
freddrake
committed
8152d32
View commit details
Copy full SHA for 8152d32
View code at this point
Browse repository at this point
Commits on Jul 13, 2000
Apply Greg Kochanski's fix for open/265.
eric-s-raymond
committed
5e70cfe
View commit details
Copy full SHA for 5e70cfe
View code at this point
Browse repository at this point
Fix bug open/243 reported by Dimitri Papadopoulos
eric-s-raymond
committed
dfbd4c7
View commit details
Copy full SHA for dfbd4c7
View code at this point
Browse repository at this point
Commits on Feb 4, 2000
More trivial comment -> docstring transformations by Ka-Ping Yee,
Show description for 54f22ed
gvanrossum
committed
54f22ed
View commit details
Copy full SHA for 54f22ed
View code at this point
Browse repository at this point
Commits on May 3, 1999
No need to import sys or string. (Andrew Dalke & kjpylint)
gvanrossum
committed
1e1cfa3
View commit details
Copy full SHA for 1e1cfa3
View code at this point
Browse repository at this point
Commits on Apr 9, 1999
Get rid of #! line
gvanrossum
committed
6a86f66
View commit details
Copy full SHA for 6a86f66
View code at this point
Browse repository at this point
Commits on Dec 22, 1998
Adding shlex and netrc by Eric Raymond.
gvanrossum
committed
9c30c24
View commit details
Copy full SHA for 9c30c24
View code at this point
Browse repository at this point
Loading
You can’t perform that action at this time.