Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
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 }}
bpython
bpython
Repository navigation
Code
Issues
144
(144)
Pull requests
7
(7)
Actions
Projects
Wiki
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
bpython
bpython
filelock.py
on
main
User selector
All users
Datepicker
All time
Commit history
Commits on Sep 26, 2025
Refactor
sebastinas
committed
a04d423
View commit details
Copy full SHA for a04d423
View code at this point
Browse repository at this point
Remove unused imports
sebastinas
committed
9b99543
View commit details
Copy full SHA for 9b99543
View code at this point
Browse repository at this point
Commits on Jun 2, 2025
Upgrade to Python 3.10+
sebastinas
committed
982bd7e
View commit details
Copy full SHA for 982bd7e
View code at this point
Browse repository at this point
Commits on Jan 17, 2025
Upgrade code to 3.9+
sebastinas
committed
9b34424
View commit details
Copy full SHA for 9b34424
View code at this point
Browse repository at this point
Commits on Jan 15, 2023
Remove support for Python 3.7 (fixes #940)
sebastinas
committed
46dc081
View commit details
Copy full SHA for 46dc081
View code at this point
Browse repository at this point
Commits on Dec 8, 2021
Add a typing compat module to avoid a dependency on typing-extensions for Py >= 3.8
sebastinas
committed
51ebc86
View commit details
Copy full SHA for 51ebc86
View code at this point
Browse repository at this point
Commits on Oct 31, 2021
Fix import of Literal
sebastinas
committed
194a000
View commit details
Copy full SHA for 194a000
View code at this point
Browse repository at this point
Commits on Oct 30, 2021
Improve signature of __exit__
sebastinas
committed
f51d61b
View commit details
Copy full SHA for f51d61b
View code at this point
Browse repository at this point
Commits on Mar 28, 2021
Add type annotations
sebastinas
committed
ae67b5a
View commit details
Copy full SHA for ae67b5a
View code at this point
Browse repository at this point
Commits on Feb 14, 2021
Turn FileLock into a wrapper function
Show description for 624116e
sebastinas
committed
624116e
View commit details
Copy full SHA for 624116e
View code at this point
Browse repository at this point
Commits on Oct 19, 2020
Apply black
sebastinas
committed
80539f1
View commit details
Copy full SHA for 80539f1
View code at this point
Browse repository at this point
Commits on Oct 13, 2020
Catch and raise OSError
sebastinas
committed
3cfda64
View commit details
Copy full SHA for 3cfda64
View code at this point
Browse repository at this point
Update use of super and class definitions
sebastinas
committed
8f03ee2
View commit details
Copy full SHA for 8f03ee2
View code at this point
Browse repository at this point
Remove encoding header
sebastinas
committed
ebe19cc
View commit details
Copy full SHA for ebe19cc
View code at this point
Browse repository at this point
Remove __future__ imports
sebastinas
committed
bebcdb3
View commit details
Copy full SHA for bebcdb3
View code at this point
Browse repository at this point
Commits on Nov 22, 2019
Blacken the source code and add `black` configuration.
Show description for cde2aad
ikanobori
committed
cde2aad
View commit details
Copy full SHA for cde2aad
View code at this point
Browse repository at this point
Commits on Oct 25, 2019
Close lock file using os close()
mportesdev
authored and
sebastinas
committed
22db98c
View commit details
Copy full SHA for 22db98c
View code at this point
Browse repository at this point
Commits on Oct 23, 2019
Create a lock file on Windows
sebastinas
committed
52580b4
View commit details
Copy full SHA for 52580b4
View code at this point
Browse repository at this point
Commits on Oct 21, 2019
Mark as not locked before releasing the lock
sebastinas
committed
afc0eb3
View commit details
Copy full SHA for afc0eb3
View code at this point
Browse repository at this point
Commits on Mar 8, 2018
Fix file locking on Windows
Show description for 1b20689
sebastinas
committed
1b20689
View commit details
Copy full SHA for 1b20689
View code at this point
Browse repository at this point
Commits on Jan 10, 2017
Fix typo
sebastinas
committed
7c8cef6
View commit details
Copy full SHA for 7c8cef6
View code at this point
Browse repository at this point
Commits on Dec 20, 2016
Fix __enter__
Show description for 4e61156
sebastinas
committed
4e61156
View commit details
Copy full SHA for 4e61156
View code at this point
Browse repository at this point
Port FileLock to Windows
Show description for 3e99cc5
sebastinas
committed
3e99cc5
View commit details
Copy full SHA for 3e99cc5
View code at this point
Browse repository at this point
Commits on Aug 27, 2016
Ignore locking errors if locks are not available
Show description for fa3dbbf
sebastinas
committed
fa3dbbf
View commit details
Copy full SHA for fa3dbbf
View code at this point
Browse repository at this point
Commits on Mar 15, 2015
Change default to None and set it to LOCK_EX in __init__ (fixes #509)
Show description for e83fb4a
sebastinas
committed
e83fb4a
View commit details
Copy full SHA for e83fb4a
View code at this point
Browse repository at this point
Commits on Feb 9, 2015
Update copyright information
Show description for 2d4fc0b
sebastinas
committed
2d4fc0b
View commit details
Copy full SHA for 2d4fc0b
View code at this point
Browse repository at this point
Commits on Jan 11, 2015
Add file locking for history file
Show description for 0b626d4
sebastinas
committed
0b626d4
View commit details
Copy full SHA for 0b626d4
View code at this point
Browse repository at this point
Loading
You can’t perform that action at this time.