Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork938
Fixes to support Python 2.6 again.#541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -139,9 +139,9 @@ def dict_to_slots_and__excluded_are_none(self, d, excluded=()): | ||
CREATE_NO_WINDOW = 0x08000000 | ||
## CREATE_NEW_PROCESS_GROUP is needed to allow killing it afterwards, | ||
#see https://docs.python.org/3/library/subprocess.html#subprocess.Popen.send_signal | ||
PROC_CREATIONFLAGS = (CREATE_NO_WINDOW | subprocess.CREATE_NEW_PROCESS_GROUP | ||
if is_win and sys.version_info >= (2, 7) | ||
else 0) | ||
@@ -245,7 +245,7 @@ def __del__(self): | ||
return | ||
# can be that nothing really exists anymore ... | ||
if os is None orgetattr(os, 'kill', None) is None: | ||
return | ||
# try to kill it | ||
@@ -831,8 +831,12 @@ def _call_process(self, method, *args, **kwargs): | ||
:return: Same as ``execute``""" | ||
# Handle optional arguments prior to calling transform_kwargs | ||
# otherwise these'll end up in args, which is bad. | ||
_kwargs = dict() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Can you replace it with this more pythonic and quicker to follow (in debug-mode also) code? _kwargs=dict(k,v)fork,vinkwargs.items()ifkinexecute_kwargs)kwargs=dict((k,v)fork,vinkwargs.items()ifknotinexecute_kwargs) | ||
for kwarg in execute_kwargs: | ||
try: | ||
_kwargs[kwarg] = kwargs.pop(kwarg) | ||
except KeyError: | ||
pass | ||
insert_after_this_arg = kwargs.pop('insert_kwargs_after', None) | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
gitdb>=0.6.4 | ||
ddt>=1.1.1 | ||
unittest2; python_version < '2.7' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Can you modify also ifsys.version_info[:2]< (2,6):test_requires.append('unittest2') |