##// END OF EJS Templates
Make event triggering robust to (un)registration....
Make event triggering robust to (un)registration. Event callbacks can register or unregister new callbacks for the same event while executing, and the previous triggering implementation allowed for event callbacks to be inadvertently skipped. The fix is to make a copy of the list of callbacks before executing any of them. With this change, the resulting semantics are simple: any callbacks registered before triggering are executed, and any new callbacks registered are only visible at the next triggering of the event. Note that this could potentially break existing callers who expected newly-appended callbacks were immediately executed. Fixes #9447. Originally based on a patch by @marksandler2.

File last commit:

r5731:a1ccd554
r22317:68860ee5
Show More
testupload
22 lines | 618 B | text/plain | TextLexer
#!/usr/bin/env python
"""Simple upload script to push up into the testing directory a local build
"""
from __future__ import print_function
from toollib import *
# Get main ipython dir, this will raise if it doesn't pass some checks
ipdir = get_ipdir()
distdir = pjoin(ipdir, 'dist')
# Load release info
execfile(pjoin(ipdir, 'IPython','core','release.py'))
# Build site addresses for file uploads
testing_site = '%s/testing/%s' % (archive, version)
cd(distdir)
# Create remote path if it doesn't exist.
sh('ssh %s "mkdir -p %s/testing/%s" ' % (archive_user, archive_dir, version))
sh('scp * %s' % testing_site)