Comments (3)
Interesting. This code works in 2.6 but not in 2.7:
class X(object):
def __init__(self):
self.f = open('test.txt', 'w')
def __getattr__(self, name):
return getattr(self.f, name)
with X():
pass
Adding dummy __enter__
and __exit__
resolves it. Will push a fix soon.
from luigi.
Pushed a fix, let me know if the problem persists.
from luigi.
your fix resolves the issue for me. Thanks!
from luigi.
Related Issues (20)
- `h5py` compatibility with `S3Target` ? HOT 2
- Facing test failures for test/servertest.py on PPC64LE
- Only one worker process being created despite of passing workers as 3 and having simultaneous tasks to perform
- Faulty DONE status assignment HOT 2
- sqla.SQLAlchemyTarget.exist() won't work with SqlAlchemy 2.x version
- TypeError: <Target> object is not iterable when check_complete(dep) is False HOT 3
- Questions about Copilot + Open Source Software Hierarchy
- `JobTask.dump` raises `TypeError` when replacing bytes to string
- Change `subprocess.check_output` option for bytes/string mismatch HOT 1
- Feature request: Include completed task runs in task history
- Bug-Report: Tenacity 8.4.0 HOT 4
- In configuration docs, email_interval_minutes should be email_interval
- In the configuration docs, batch_notifier should be batch_email
- scheduler prune_on_get_work configuration parameter is not documented
- Sequential processing of a specific task with resouces:1 seems to be not working
- Clear-text Logging of Sensitive Information in `luigi/contrib/pai.py`
- Arbitrary file write during tarfile extraction in `luigi/contrib/sge_runner.py`
- Arbitrary file write during tarfile extraction in `luigi/contrib/lsf_runner.py`
- Overly permissive file permissions in `luigi/lock.py`
- Unsafe shell command constructed from library input in `luigi/contrib/lsf.py`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luigi.