diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/inspire_query_parser/parsing_driver.py b/inspire_query_parser/parsing_driver.py index <HASH>..<HASH> 100644 --- a/inspire_query_parser/parsing_driver.py +++ b/inspire_query_parser/parsing_driver.py @@ -92,13 +92,17 @@ def parse_query(query_str): logger.debug('Parse tree: \n' + emit_tree_format(res...
driver: fix logging format on exceptions
py
diff --git a/pypeerassets/voting.py b/pypeerassets/voting.py index <HASH>..<HASH> 100644 --- a/pypeerassets/voting.py +++ b/pypeerassets/voting.py @@ -36,7 +36,7 @@ class Vote: self.deck = deck @property - def vote_info_to_protobuf(self): + def to_protobuf(self): '''encode vote into proto...
voting.Vote: rename two atributes to something simpler
py
diff --git a/pytest_flask/fixtures.py b/pytest_flask/fixtures.py index <HASH>..<HASH> 100755 --- a/pytest_flask/fixtures.py +++ b/pytest_flask/fixtures.py @@ -87,7 +87,7 @@ class LiveServer(object): @pytest.fixture(scope='function') -def live_server(request, app): +def live_server(request, app, monkeypatch): ...
Use monkeypatch fixture to rewrite server name
py
diff --git a/django_choice_object/choice.py b/django_choice_object/choice.py index <HASH>..<HASH> 100644 --- a/django_choice_object/choice.py +++ b/django_choice_object/choice.py @@ -29,7 +29,6 @@ class ChoiceMetaclass(type): cls._data[value] = name_data def __iter__(self): - print(self._...
Balls. Remove debug print statement
py
diff --git a/pghoard/pghoard.py b/pghoard/pghoard.py index <HASH>..<HASH> 100644 --- a/pghoard/pghoard.py +++ b/pghoard/pghoard.py @@ -373,6 +373,13 @@ class PGHoard: for ta in self.transfer_agents: ta.start() + def _cleanup_inactive_receivexlogs(self, site): + if site in self.receivex...
receivexlogs: Get rid of old dead receivexlogs a) It's a good idea to clean up old dead threads from the background b) it makes pghoard notice that it's missing a pg_receivexlog for a site in case a pg_receivexlog process has been killed. (by OOM killer for example)
py
diff --git a/src/Exscriptd/Order.py b/src/Exscriptd/Order.py index <HASH>..<HASH> 100644 --- a/src/Exscriptd/Order.py +++ b/src/Exscriptd/Order.py @@ -138,7 +138,7 @@ class Order(object): xml = etree.Element('xml') order = etree.SubElement(xml, 'order', service = self.service) for host in s...
exclaim: fix: when reading CSV, submit the host address to the server, not the hostname.
py
diff --git a/rinoh/frontend/rst/__init__.py b/rinoh/frontend/rst/__init__.py index <HASH>..<HASH> 100644 --- a/rinoh/frontend/rst/__init__.py +++ b/rinoh/frontend/rst/__init__.py @@ -143,5 +143,25 @@ class ReStructuredTextParser(object): doctree = publish_doctree(file.read(), source_path=filename) ...
reST/Sphinx: fix handling of nodes with multiple IDs Transform the Sphinx doctree before passing it to RinohType - designate the first ID as the primary ID - replace all references to secondary IDs with their corresponding primary ID
py
diff --git a/py/selenium/webdriver/firefox/firefox_profile.py b/py/selenium/webdriver/firefox/firefox_profile.py index <HASH>..<HASH> 100644 --- a/py/selenium/webdriver/firefox/firefox_profile.py +++ b/py/selenium/webdriver/firefox/firefox_profile.py @@ -20,7 +20,6 @@ import logging import zipfile import shutil impo...
DavidBurns fix for issue <I>, removed redundant import r<I>
py
diff --git a/visidata/canvas.py b/visidata/canvas.py index <HASH>..<HASH> 100644 --- a/visidata/canvas.py +++ b/visidata/canvas.py @@ -200,17 +200,15 @@ class Plotter(Sheet): self.plotlegends() def getRowsInside(self, bbox): + 'return list of deduped rows within bbox' ret = {} - f...
[canvas] combine genRowsInside into getRowsInside and use bbox
py
diff --git a/djpaypal/models/payments.py b/djpaypal/models/payments.py index <HASH>..<HASH> 100644 --- a/djpaypal/models/payments.py +++ b/djpaypal/models/payments.py @@ -9,7 +9,7 @@ from .base import PaypalObject class Payment(PaypalObject): intent = models.CharField(max_length=9, choices=enums.PaymentIntent.choice...
Allow null in Payment.payer
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,18 +7,22 @@ REQUIRES = ["urllib3 >= 1.10"] setup( name='sdklib', - version='1.0', + version='1.1', description='SDK helper library', author='Ivan Martin', author_email='ivanprjcts@gmail.com', ...
update license and python versions
py
diff --git a/ceph_deploy/hosts/centos/mon/create.py b/ceph_deploy/hosts/centos/mon/create.py index <HASH>..<HASH> 100644 --- a/ceph_deploy/hosts/centos/mon/create.py +++ b/ceph_deploy/hosts/centos/mon/create.py @@ -1,4 +1,5 @@ from ceph_deploy.hosts import common +from ceph_deploy.util import system from ceph_deploy....
when creating monitors, enable the service on el-like distros
py
diff --git a/salt/renderers/stateconf.py b/salt/renderers/stateconf.py index <HASH>..<HASH> 100644 --- a/salt/renderers/stateconf.py +++ b/salt/renderers/stateconf.py @@ -258,7 +258,7 @@ def rewrite_single_shorthand_state_decl(data): # pylint: disable=C0103 state_id_decl: state.func: [] ''' - f...
Removing lists and change back to earlier
py
diff --git a/graphene/relay/node.py b/graphene/relay/node.py index <HASH>..<HASH> 100644 --- a/graphene/relay/node.py +++ b/graphene/relay/node.py @@ -101,8 +101,8 @@ class Node(AbstractNode): if only_type: assert graphene_type == only_type, ( - 'Must receive an {} id.' - ...
Resolve #<I> by editing assert message
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ setup( packages=[ 'elizabeth', 'elizabeth.core', - 'elizabeth.core.intd', + 'elizabeth.intd', 'elizabeth.builtins' ], keywords=[
Fixed a bug in the package path elizabeth.intd (#<I>)
py
diff --git a/pywavefront/parser.py b/pywavefront/parser.py index <HASH>..<HASH> 100644 --- a/pywavefront/parser.py +++ b/pywavefront/parser.py @@ -82,8 +82,6 @@ class Parser(object): gz = gzip.open(self.file_name, mode='rt') for line in gz.readlines(): - if line == '': - ...
Don't care about yielding empty lines in line generator Lines can contain a newline anyway
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -38,6 +38,13 @@ source_suffix = '.txt' # The master toctree document. master_doc = 'index' +def get_version(): + release_info = {} + rel_basedir = os.path.join(os.path.dirname(os.path.abspath(__file__...
read version for generated documentation from pymta.release
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ setup( # third part for minor release # second when api changes # first when it becomes stable someday - version='2.8.0', + version='3.0.0', author='Michiel Scholten', author_email...
Updated dependencies, bumped version
py
diff --git a/werkzeug/utils.py b/werkzeug/utils.py index <HASH>..<HASH> 100644 --- a/werkzeug/utils.py +++ b/werkzeug/utils.py @@ -1305,6 +1305,8 @@ def escape(s, quote=None): """ if s is None: return '' + elif hasattr(s, '__html__'): + return s.__html__() elif not isinstance(s, basest...
werkzeug.escape knows about `__html__` now.
py
diff --git a/docker/client.py b/docker/client.py index <HASH>..<HASH> 100644 --- a/docker/client.py +++ b/docker/client.py @@ -521,7 +521,7 @@ class Client(requests.Session): return self.exec_start(create_res, detach, tty, stream) def exec_create(self, container, cmd, stdout=True, stderr=True, tty=False...
Change unnecessary user=None in args to empty string and remove check.
py
diff --git a/docs/source/conf.py b/docs/source/conf.py index <HASH>..<HASH> 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -136,7 +136,8 @@ if on_rtd: def __getattr__(cls, name): return MagicMock() - MOCK_MODULES = ['numpy', 'scipy', 'gnureadline', 'asyncssh', 'networkx'] +...
Mocked cv2 import for readthedocs
py
diff --git a/ovp_core/views.py b/ovp_core/views.py index <HASH>..<HASH> 100644 --- a/ovp_core/views.py +++ b/ovp_core/views.py @@ -26,7 +26,6 @@ def contact(request): settings = helpers.get_settings() valid_emails = settings.get("VALID_CONTACT_RECIPIENTS", []) - print(request.data) name = request.data.get...
make recipients a list when it come as single email
py
diff --git a/aospy/region.py b/aospy/region.py index <HASH>..<HASH> 100644 --- a/aospy/region.py +++ b/aospy/region.py @@ -45,7 +45,7 @@ class Region(object): try: land_mask = data.land_mask except: - return 1. + return 1. # S. Clark 2016-01-28: Aquaplanet models hav...
Made more consisent with current develop branch
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ except ImportError: setup( - name="requests", + name="three", version="0.1", author="Zach Williams", author_email="hey@zachwill.com",
Change name in the setup.py file
py
diff --git a/timeside/plugins/grapher/utils.py b/timeside/plugins/grapher/utils.py index <HASH>..<HASH> 100644 --- a/timeside/plugins/grapher/utils.py +++ b/timeside/plugins/grapher/utils.py @@ -75,7 +75,7 @@ def downsample(vector, factor): Downsample (by averaging) a vector by an integer factor. """ ...
[plugins] use print() in grapher/utils.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from distutils.core import setup setup( name='utm', - version='0.2', + version='0.2.1', author='Tobias Bieniek', author_email='Tobias.Bieniek@gmx.de', url='https://github.com/Turbo87/u...
setup.py: Added utm-converter as script
py
diff --git a/switcheo/utils.py b/switcheo/utils.py index <HASH>..<HASH> 100644 --- a/switcheo/utils.py +++ b/switcheo/utils.py @@ -82,6 +82,15 @@ def current_contract_hash(contracts): return contract_dict + +class SwitcheoApiException(Exception): + + def __init__(self, error_code, error_message, error): + ...
custom exception to propagate POST error response
py
diff --git a/lib/svtplay_dl/service/svtplay.py b/lib/svtplay_dl/service/svtplay.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/service/svtplay.py +++ b/lib/svtplay_dl/service/svtplay.py @@ -111,11 +111,11 @@ class Svtplay(Service, MetadataThumbMixin): query = parse_qs(urlparse(i["url"]).query) ...
svtplay: for some reason they presented the m3u8 file as mpd fixes: #<I>
py
diff --git a/ospd/ospd.py b/ospd/ospd.py index <HASH>..<HASH> 100644 --- a/ospd/ospd.py +++ b/ospd/ospd.py @@ -1078,6 +1078,9 @@ class OSPDaemon(object): @return: 1 if scan deleted, 0 otherwise. """ + if self.get_scan_status(scan_id) == ScanStatus.RUNNING: + return 0 + try...
Check for scan status before trying to deleted.
py
diff --git a/samalg/__init__.py b/samalg/__init__.py index <HASH>..<HASH> 100644 --- a/samalg/__init__.py +++ b/samalg/__init__.py @@ -1760,24 +1760,7 @@ class SAM(object): return markers - def load(self, n, recalc_avg=True): - """Loads SAM attributes from a Pickle file. - - Loads all SAM ...
added SAM.SamPlot function to set GUI instances as attributes of SAM objects for easy recall
py
diff --git a/examples/gui_integration/python_editor.py b/examples/gui_integration/python_editor.py index <HASH>..<HASH> 100755 --- a/examples/gui_integration/python_editor.py +++ b/examples/gui_integration/python_editor.py @@ -96,6 +96,8 @@ def main(): app = QtGui.QApplication(sys.argv) win = PythonEditorWind...
Add style/settings dump to examples
py
diff --git a/Examples/SWIG/setup.py b/Examples/SWIG/setup.py index <HASH>..<HASH> 100644 --- a/Examples/SWIG/setup.py +++ b/Examples/SWIG/setup.py @@ -10,7 +10,7 @@ if flag[0]!=0: exit() from numpy.distutils.core import setup, Extension -splinalg_module = Extension('_splinalg', sources=['splinalg_wrap.cxx'],) +...
This extra macro is required for this example to compile on Open SUSE
py
diff --git a/grimoire_elk/elastic_items.py b/grimoire_elk/elastic_items.py index <HASH>..<HASH> 100644 --- a/grimoire_elk/elastic_items.py +++ b/grimoire_elk/elastic_items.py @@ -81,6 +81,11 @@ class ElasticItems(): from .utils import get_connector_name return get_connector_name(type(self)) + def...
[ocean] Filter always the raw items using the backend_name field to support that in a raw index there are items from different data sources (arthur).
py
diff --git a/picoweb/__init__.py b/picoweb/__init__.py index <HASH>..<HASH> 100644 --- a/picoweb/__init__.py +++ b/picoweb/__init__.py @@ -112,6 +112,7 @@ class WebApp: micropython.mem_info() close = True + req = None try: request_line = yield from reader.readline() ...
picoweb: _handle: Make sure that "req" var is initialized. It's referenced in "except" clause, and may be uninitialized if exception happens in .readline(). (req is initialized to None instead of HTTPRequest() as a kind of "DoS protection", where even an immediately closing connection would produce a memory garbage of...
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ if sys.version_info < (3, 4): setup(name='PyVISA', description='Python VISA bindings for GPIB, RS232, and USB instruments', - version='1.6.dev0', + version='1.6.dev1', long_description...
Bumped version to <I>.dev1
py
diff --git a/proso_flashcards/views.py b/proso_flashcards/views.py index <HASH>..<HASH> 100644 --- a/proso_flashcards/views.py +++ b/proso_flashcards/views.py @@ -21,6 +21,7 @@ import proso_models.json_enrich as models_json_enrich import proso_flashcards.json_enrich as flashcards_json_enrich from proso_flashcards.mod...
check whether set of candidates for practice is not empty
py
diff --git a/ospd/scan.py b/ospd/scan.py index <HASH>..<HASH> 100644 --- a/ospd/scan.py +++ b/ospd/scan.py @@ -397,6 +397,11 @@ class ScanCollection: return self.scans_table[scan_id]['vts'] + def release_vts_list(self, scan_id: str) -> None: + """ Release the memory used for the vts list. """ + +...
Add methods to remove the vts list from the scan table. This allows to release memory in case the vts are not used anymore during the scan.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,6 @@ if sys.version_info < (3, 4): here = os.path.dirname(__file__) readme = open(os.path.join(here, 'README.rst')).read() -extra_requirements = {(3, 4): ['typing >= 3.5.0b1']} setup( name='asphalt', @@ -41...
Removed conditional requirements from install_requires Setuptools can apparently now work with the conditional dependencies in extras_require even with an sdist.
py
diff --git a/app/drivers/openmz.py b/app/drivers/openmz.py index <HASH>..<HASH> 100644 --- a/app/drivers/openmz.py +++ b/app/drivers/openmz.py @@ -11,8 +11,8 @@ class BaseDriver(object): self.outdir = kwargs['outdir'] def create_outfilepath(self, fn, suffix=None): - basefn = os.path.basename(fn) ...
Changed out file creation method and call writer module with header and psm lines
py
diff --git a/editor/templatetags/admin_tree_list.py b/editor/templatetags/admin_tree_list.py index <HASH>..<HASH> 100644 --- a/editor/templatetags/admin_tree_list.py +++ b/editor/templatetags/admin_tree_list.py @@ -1,12 +1,12 @@ -from django.contrib.admin.templatetags.admin_list import result_headers +from django.db im...
Adding a new import and alphabetizing them (OCD, I know)
py
diff --git a/hamper/plugins/__init__.py b/hamper/plugins/__init__.py index <HASH>..<HASH> 100644 --- a/hamper/plugins/__init__.py +++ b/hamper/plugins/__init__.py @@ -1,5 +0,0 @@ -# This allows twisted.plugin to autodiscover plugins in this module. -# See: https://twistedmatrix.com/documents/12.2.0/core/howto/plugin.ht...
Dead code is dead Remove junk from the old plugins system. Re: #<I>
py
diff --git a/pyvim/io/backends.py b/pyvim/io/backends.py index <HASH>..<HASH> 100644 --- a/pyvim/io/backends.py +++ b/pyvim/io/backends.py @@ -28,7 +28,7 @@ class FileIO(EditorIO): return '://' not in location and not os.path.isdir(location) def exists(self, location): - return os.path.exists(loc...
Expand path in FileIO.exists. (Fixes bug in ~ expension in :e command.)
py
diff --git a/discord/client.py b/discord/client.py index <HASH>..<HASH> 100644 --- a/discord/client.py +++ b/discord/client.py @@ -162,7 +162,12 @@ class Client: If this is set to ``False`` then the following features will be disabled: - No user related updates (:func:`on_user_update` wi...
Better knowledge on how guild_subscriptions work now.
py
diff --git a/nodeconductor/server/base_settings.py b/nodeconductor/server/base_settings.py index <HASH>..<HASH> 100644 --- a/nodeconductor/server/base_settings.py +++ b/nodeconductor/server/base_settings.py @@ -243,7 +243,7 @@ SWAGGER_SETTINGS = { 'USE_SESSION_AUTH': False, 'APIS_SORTER': 'alpha', 'SECUR...
Replace double quotes with single - WAL-<I>
py
diff --git a/safe/definitions/default_values.py b/safe/definitions/default_values.py index <HASH>..<HASH> 100644 --- a/safe/definitions/default_values.py +++ b/safe/definitions/default_values.py @@ -124,7 +124,7 @@ adult_ratio_default_value = { # Updated for InaSAFE 4.1 # http://data.un.org/Data.aspx?d=PopDiv...
fix error in default adult ratio (#<I>)
py
diff --git a/inginious/frontend/pages/preferences/profile.py b/inginious/frontend/pages/preferences/profile.py index <HASH>..<HASH> 100644 --- a/inginious/frontend/pages/preferences/profile.py +++ b/inginious/frontend/pages/preferences/profile.py @@ -48,7 +48,7 @@ class ProfilePage(INGIniousAuthPage): else...
Remove dot from accepted chars in username To avoid id_checker to return False whenever a check is done on a username
py
diff --git a/pymatgen/util/plotting.py b/pymatgen/util/plotting.py index <HASH>..<HASH> 100644 --- a/pymatgen/util/plotting.py +++ b/pymatgen/util/plotting.py @@ -21,7 +21,7 @@ __email__ = "shyuep@gmail.com" __date__ = "Mar 13, 2012" -def pretty_plot(width=8, height=None, plt=None, dpi=300, +def pretty_plot(width=...
Fix DPI in plots. Fixes #<I>.
py
diff --git a/tohu/generators.py b/tohu/generators.py index <HASH>..<HASH> 100644 --- a/tohu/generators.py +++ b/tohu/generators.py @@ -392,7 +392,6 @@ class ItemCollection: Arguments: filename: Name of the output file. mode: How to open the file ('w' = write, 'a' = append)...
Remove obsolete line from docstring.
py
diff --git a/cmsplugin_cascade/bootstrap4/image.py b/cmsplugin_cascade/bootstrap4/image.py index <HASH>..<HASH> 100644 --- a/cmsplugin_cascade/bootstrap4/image.py +++ b/cmsplugin_cascade/bootstrap4/image.py @@ -138,7 +138,7 @@ class BootstrapImagePlugin(ImageAnnotationMixin, LinkPluginBase): def sanitize_model(cls...
handle edge case when adopting image size to breakpoints
py
diff --git a/GradientFeatureAuditor.py b/GradientFeatureAuditor.py index <HASH>..<HASH> 100644 --- a/GradientFeatureAuditor.py +++ b/GradientFeatureAuditor.py @@ -9,7 +9,7 @@ import time import os import json -ENABLE_MULTIPROCESSING = False +ENABLE_MULTIPROCESSING = True SAVE_REPAIRED_DATA = True SAVE_PREDICTION_...
Re-enabled GFA multiprocessing
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -344,3 +344,5 @@ linkcheck_ignore = [r'https://www\.youtube\.com/watch\?v=[\d\w\-_]+', r'https://youtu\.be/[\d\w\-_]+', # AMS DOIs should be stable, but resolved link consistently 403's with linkcheck...
DOCS: Fix linkcheck for NCDC link Sending "Accept-Encoding: gzip, deflate" as default for requests with a HEAD request causes the server to disconnect. Override the headers for this server to solve it.
py
diff --git a/spockbot/plugins/tools/task.py b/spockbot/plugins/tools/task.py index <HASH>..<HASH> 100644 --- a/spockbot/plugins/tools/task.py +++ b/spockbot/plugins/tools/task.py @@ -79,6 +79,20 @@ class TaskFailed(Exception): else: return self.tasktrace + def __str__(self): + """ + ...
Add TaskFailed.__str__(): newline-separated failed tasks and errors
py
diff --git a/wandb/filesync/dir_watcher.py b/wandb/filesync/dir_watcher.py index <HASH>..<HASH> 100644 --- a/wandb/filesync/dir_watcher.py +++ b/wandb/filesync/dir_watcher.py @@ -311,7 +311,7 @@ class DirWatcher: else PolicyEnd ) self._file_event_handlers[save_name...
pass settings to single file handler (#<I>)
py
diff --git a/log_request_id/session.py b/log_request_id/session.py index <HASH>..<HASH> 100644 --- a/log_request_id/session.py +++ b/log_request_id/session.py @@ -21,3 +21,5 @@ class Session(BaseSession): if REQUEST_ID_HEADER and request_id != NO_REQUEST_ID: request.headers[REQUEST_ID_HEADER] = ...
forgot to call super in the Session
py
diff --git a/manuscripts/_version.py b/manuscripts/_version.py index <HASH>..<HASH> 100644 --- a/manuscripts/_version.py +++ b/manuscripts/_version.py @@ -1,2 +1,2 @@ # Versions compliant with PEP 440 https://www.python.org/dev/peps/pep-0440 -__version__ = "0.2.3" +__version__ = "0.2.4"
Update version number to <I> The past history has changed before <I> release, so added a new release to be sure new pip packages are generated.
py
diff --git a/example/branches.py b/example/branches.py index <HASH>..<HASH> 100644 --- a/example/branches.py +++ b/example/branches.py @@ -23,7 +23,9 @@ if 'debian' in host.groups: if 'bsd' in host.groups: server.shell({'BSD-1'}, 'echo BSD-1') server.shell({'BSD-2'}, 'echo BSD-2') - server.shell({'BSD-3'}...
Add a loop to the branches example.
py
diff --git a/safe_qgis/help.py b/safe_qgis/help.py index <HASH>..<HASH> 100644 --- a/safe_qgis/help.py +++ b/safe_qgis/help.py @@ -64,7 +64,7 @@ class Help(QtGui.QDialog): myRootPath = os.path.abspath(os.path.join(myRootPath, '..', 'do...
Fix help path computation to work with new docs
py
diff --git a/angr/state_plugins/heap/heap_brk.py b/angr/state_plugins/heap/heap_brk.py index <HASH>..<HASH> 100644 --- a/angr/state_plugins/heap/heap_brk.py +++ b/angr/state_plugins/heap/heap_brk.py @@ -77,8 +77,10 @@ class SimHeapBrk(SimHeapBase): size = self.state.solver.eval(sim_size) final_s...
calloc: set final_size correctly (#<I>) The maximum size of memory allocated by calloc was always equal to plugin.max_variable_size (apparently <I> bytes), changed it to only when args are symbolic.
py
diff --git a/bot/manager.py b/bot/manager.py index <HASH>..<HASH> 100644 --- a/bot/manager.py +++ b/bot/manager.py @@ -122,7 +122,7 @@ class BotManager: ), CommandAction("ping").then( - ...
Remove "sir" from /ping response
py
diff --git a/hug/authentication.py b/hug/authentication.py index <HASH>..<HASH> 100644 --- a/hug/authentication.py +++ b/hug/authentication.py @@ -47,6 +47,7 @@ def authenticator(function): def basic(request, response, verify_user, **kwargs): '''Basic HTTP Authentication''' http_auth = request.auth + resp...
Set correct response header to cause authentication to occur with browser
py
diff --git a/test/vertical_split.py b/test/vertical_split.py index <HASH>..<HASH> 100755 --- a/test/vertical_split.py +++ b/test/vertical_split.py @@ -112,9 +112,6 @@ index by_msg (msg) '-sql=' + create_table_template % (t), 'source_keyspace'], auto...
optimize vertical_split.py test We don't need to wait one second for the schema updates any more since reload schema can handle these now.
py
diff --git a/great_expectations/render/renderer/content_block/validation_results_table_content_block.py b/great_expectations/render/renderer/content_block/validation_results_table_content_block.py index <HASH>..<HASH> 100644 --- a/great_expectations/render/renderer/content_block/validation_results_table_content_block.p...
* killed some dead imports in validation_results_table_content_block.py
py
diff --git a/eqcorrscan/utils/sfile_util.py b/eqcorrscan/utils/sfile_util.py index <HASH>..<HASH> 100644 --- a/eqcorrscan/utils/sfile_util.py +++ b/eqcorrscan/utils/sfile_util.py @@ -785,21 +785,21 @@ def eventtosfile(event, userID, evtype, outdir, wavefiles, explosion=False, raise IOError(outdir + os.sep + sf...
Bug-fix in stile-util for zero depths and lat/lons - already fixed in obspy
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( license='MIT', url='https://github.com/uber/tchannel', packages=find_packages(), - install_requires=['contextlib2', 'enum34'], + install_requires=['contextlib2', 'enum34', 'futures'],...
Add futures as a dependency.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,10 +2,6 @@ from setuptools import setup, find_packages -import emirdrp - -version = emirdrp.__version__ - setup(name='pyemir', version='0.15.dev2',
Do not self import emirdrp in setup.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -77,7 +77,7 @@ setup(name = 'GPy', py_modules = ['GPy.__init__'], test_suite = 'GPy.testing', long_description=read('README.md'), - install_requires=['numpy>=1.7', 'scipy>=0.14'], + install_requi...
[readthedocs] forcing readthedocs into not failing
py
diff --git a/telluric/georaster.py b/telluric/georaster.py index <HASH>..<HASH> 100644 --- a/telluric/georaster.py +++ b/telluric/georaster.py @@ -917,6 +917,7 @@ class GeoRaster2(WindowMethodsMixin, _Raster): dst_array = self.image dst_array = dst_array.astype(dst_type) + dst_array.mask ...
returning masked arrays from as type
py
diff --git a/nginx/test/test_nginx.py b/nginx/test/test_nginx.py index <HASH>..<HASH> 100644 --- a/nginx/test/test_nginx.py +++ b/nginx/test/test_nginx.py @@ -71,7 +71,7 @@ class TestNginx(unittest.TestCase): # Checking that 'tags' attribute of some result is equal to 'tags' attribute in config for instance ...
[nginx] fix tests (#<I>) * [nginx] fix tests * this too
py
diff --git a/ifaddr/_posix.py b/ifaddr/_posix.py index <HASH>..<HASH> 100644 --- a/ifaddr/_posix.py +++ b/ifaddr/_posix.py @@ -57,6 +57,8 @@ def get_adapters(): name = addr[0].ifa_name ip = shared.sockaddr_to_ip(addr[0].ifa_addr) if ip: + if addr[0].ifa_netmask and not addr[0].ifa_...
GH-1 workaround cygwin netmask family bug
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -38,6 +38,7 @@ distutils.core.setup( version=version, packages = ["tornado", "tornado.test"], package_data = { + "tornado": ["ca-certificates.crt"], "tornado.test": ["README", "test.crt", "test.k...
Add ca-certificates.crt as a data file in setup.py
py
diff --git a/openquake/calculators/base.py b/openquake/calculators/base.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/base.py +++ b/openquake/calculators/base.py @@ -18,7 +18,6 @@ import os import sys import abc -import csv import pdb import logging import operator @@ -31,7 +30,7 @@ from openquake.ba...
Removed unused imports [skip CI]
py
diff --git a/condoor/actions.py b/condoor/actions.py index <HASH>..<HASH> 100644 --- a/condoor/actions.py +++ b/condoor/actions.py @@ -96,6 +96,7 @@ def a_not_committed(ctx): """Provide the message that current software is not committed and reload is not possible.""" ctx.ctrl.sendline('n') ctx.msg = "Som...
Message emited to callback in case of not_commited software before reload
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -72,14 +72,15 @@ class ConfigTest(TestCase): class RequestTest(TestCase): @patch('requests.get') def test_request_params(self, get): - cs = CloudStack(endpoint='localhost', key='foo', secret='bar') + c...
Alter a test to make sure timeout is correctly passed to requests
py
diff --git a/wanikani/core.py b/wanikani/core.py index <HASH>..<HASH> 100644 --- a/wanikani/core.py +++ b/wanikani/core.py @@ -33,7 +33,7 @@ class Radical(BaseObject): if self.raw['character']: return '<Radical: {0}>'.format(self.raw['character'].encode('utf8')) # Some characters do not h...
Fix radical representation when there is no unicode character
py
diff --git a/girder/api/rest.py b/girder/api/rest.py index <HASH>..<HASH> 100644 --- a/girder/api/rest.py +++ b/girder/api/rest.py @@ -298,9 +298,10 @@ def endpoint(fun): if 'Content-Range' in cherrypy.response.headers: cherrypy.response.status = 206 - if isinstance(val, types...
Allow endpoints to return any callable Now, an endpoint returning a lambda or a functools.partial object will be correctly recognised as a streaming response.
py
diff --git a/kubespawner/spawner.py b/kubespawner/spawner.py index <HASH>..<HASH> 100644 --- a/kubespawner/spawner.py +++ b/kubespawner/spawner.py @@ -10,7 +10,7 @@ import string from urllib.parse import urlparse, urlunparse from tornado import gen -from tornado.curl_httpclient import CurlAsyncHTTPClient +from torn...
Fallback to SimpleAsyncHTTPClient if pycurl isn't installed Also useful for times when pycurl refuses to work (because it doesn't deal with IPs in SANs properly, for instance!)
py
diff --git a/librosa/core.py b/librosa/core.py index <HASH>..<HASH> 100644 --- a/librosa/core.py +++ b/librosa/core.py @@ -124,6 +124,9 @@ def load(path, sr=22050, mono=True, offset=0.0, duration=None, dtype=np.float32) else: sr = sr_native + # Final cleanup for dtype and contiguity + y = np.ascon...
In response to #<I> force contiguity and dtype in load/resample
py
diff --git a/source/rafcon/statemachine/states/state.py b/source/rafcon/statemachine/states/state.py index <HASH>..<HASH> 100644 --- a/source/rafcon/statemachine/states/state.py +++ b/source/rafcon/statemachine/states/state.py @@ -802,16 +802,10 @@ class State(Observable, YAMLObject, JSONObject, Hashable): ...
Fix issues introduced by f<I>a<I>d
py
diff --git a/exa/core/editor.py b/exa/core/editor.py index <HASH>..<HASH> 100644 --- a/exa/core/editor.py +++ b/exa/core/editor.py @@ -444,7 +444,7 @@ def lines_from_file(path, as_interned=False, encoding=None): strings (list): File line list """ lines = None - with open(path, encoding=encoding) a...
Fixed open for py<I> compat with encodings
py
diff --git a/videodownloader/providers/__init__.py b/videodownloader/providers/__init__.py index <HASH>..<HASH> 100644 --- a/videodownloader/providers/__init__.py +++ b/videodownloader/providers/__init__.py @@ -95,10 +95,10 @@ class Provider(object): self._debug('Provider', 'run', 'Running in-download call...
Update the actual filename if we are doing Windows safe character replacement.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ from distutils.core import setup setup( - version="0.0.3-dev", + version="0.0.5-dev", name="infoqscraper", description="A Web scraper for www.InfoQ.com",
Version bump <I>-dev
py
diff --git a/salt/modules/upstart.py b/salt/modules/upstart.py index <HASH>..<HASH> 100644 --- a/salt/modules/upstart.py +++ b/salt/modules/upstart.py @@ -47,6 +47,7 @@ import os # Import salt libs import salt.utils import salt.modules.cmdmod +from salt.modules.systemd import _sd_booted __func_alias__ = { 'r...
ubuntu is switching from upstart to systemd
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100755 --- a/tests.py +++ b/tests.py @@ -194,6 +194,10 @@ server{ } """ +TESTBLOCK_CASE_12 = """ +server{ +}""" + class TestPythonNginx(unittest.TestCase): def test_basic_load(self): @@ -312,6 +316,9 @@ class TestPythonNginx(unittest.TestCase): ...
Add previously failing test for missing last line break
py
diff --git a/anpy/dossier_like_senapy.py b/anpy/dossier_like_senapy.py index <HASH>..<HASH> 100644 --- a/anpy/dossier_like_senapy.py +++ b/anpy/dossier_like_senapy.py @@ -394,6 +394,7 @@ def parse(url, verbose=True, logfile=sys.stderr, cached_opendata_an={}): resp = download_an(url) return historic_doslegs_pa...
formatting: add missing space (it's fixing the tests because the code wasn't flake8 compliant)
py
diff --git a/zounds/nputil/test_nputil.py b/zounds/nputil/test_nputil.py index <HASH>..<HASH> 100644 --- a/zounds/nputil/test_nputil.py +++ b/zounds/nputil/test_nputil.py @@ -263,3 +263,9 @@ class WindowedTest(unittest.TestCase): f = np.fft.fft(w)[:, 1:] _, w2 = windowed(f, 3, 1) self.assertE...
Add a test to ensure that sliding window can be applied to a dtype other than float<I>
py
diff --git a/hgtools/managers/cmd.py b/hgtools/managers/cmd.py index <HASH>..<HASH> 100644 --- a/hgtools/managers/cmd.py +++ b/hgtools/managers/cmd.py @@ -131,3 +131,9 @@ class Git(Command): """ rev = rev or 'HEAD' return set(self._invoke('tag', '--points-at', rev).splitlines()) + + def is_modified(self): + "...
Supply stubbed is_modified so at least recently-tagged heads can produce suitable versions.
py
diff --git a/mautrix/types/event/beeper.py b/mautrix/types/event/beeper.py index <HASH>..<HASH> 100644 --- a/mautrix/types/event/beeper.py +++ b/mautrix/types/event/beeper.py @@ -34,7 +34,7 @@ class MessageStatusReason(SerializableEnum): class MessageStatus(SerializableEnum): SUCCESS = "SUCCESS" - PENDING = ...
PENDNIG -> PENDING (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,11 +3,13 @@ import sys, os version = '0.1' +with os.open('README.md', 'r') as f: + long_desc = f.readlines() + setup(name='pyinter', version=version, description="An interval package which deals wit...
setting the long desctiption to be the readme text
py
diff --git a/src/urh/dev/native/HackRF.py b/src/urh/dev/native/HackRF.py index <HASH>..<HASH> 100644 --- a/src/urh/dev/native/HackRF.py +++ b/src/urh/dev/native/HackRF.py @@ -1,4 +1,6 @@ import numpy as np +import time + from urh.dev.native.Device import Device from urh.dev.native.lib import hackrf from urh.util.Lo...
add timeout to processes to increase async performance
py
diff --git a/github/Repository.py b/github/Repository.py index <HASH>..<HASH> 100644 --- a/github/Repository.py +++ b/github/Repository.py @@ -1433,7 +1433,7 @@ class Repository(github.GithubObject.CompletableGithubObject): "encrypted_value": payload, } status, headers, data = self._reque...
Switch repository secrets to using f-strings (#<I>) New code written before we switched to f-strings need to get updated to using them, so do so.
py
diff --git a/ncclient/manager.py b/ncclient/manager.py index <HASH>..<HASH> 100644 --- a/ncclient/manager.py +++ b/ncclient/manager.py @@ -112,7 +112,12 @@ def connect_ssh(*args, **kwds): session = transport.SSHSession(device_handler) session.load_known_hosts() - session.connect(*args, **kwds) + try: ...
session close was hanging ncclient authentication error leaves socket open for long time
py
diff --git a/bitcoin/core.py b/bitcoin/core.py index <HASH>..<HASH> 100644 --- a/bitcoin/core.py +++ b/bitcoin/core.py @@ -26,6 +26,7 @@ __all__ = [ 'Input', 'Transaction', 'Block', + 'ConnectedBlockInfo', ] # ===----------------------------------------------------------------------=== @@ -310,6 +...
Add ConnectedBlockInfo structure, which records some extra useful information about a block which is learned from its place in the block graph.
py
diff --git a/tests/cases/search_test.py b/tests/cases/search_test.py index <HASH>..<HASH> 100644 --- a/tests/cases/search_test.py +++ b/tests/cases/search_test.py @@ -175,14 +175,6 @@ class SearchTestCase(base.TestCase): 'types': '["collection"]' }, user=admin) self.assertEqual(2, len(res...
Don't try to depend on an undefined ordering.
py
diff --git a/nipap/nipap/xmlrpc.py b/nipap/nipap/xmlrpc.py index <HASH>..<HASH> 100644 --- a/nipap/nipap/xmlrpc.py +++ b/nipap/nipap/xmlrpc.py @@ -382,7 +382,9 @@ class NipapProtocol(xmlrpc.XMLRPC): """ try: - return self.nipap.smart_search_vrf(args.get('auth'), args.get('query_string'), ...
Pass extra_query to backend function Fixes extra_query support for smart_search_vrf. Slightly related of #<I>.
py
diff --git a/template_debug/templatetags/debug_tags.py b/template_debug/templatetags/debug_tags.py index <HASH>..<HASH> 100644 --- a/template_debug/templatetags/debug_tags.py +++ b/template_debug/templatetags/debug_tags.py @@ -68,6 +68,7 @@ def _get_detail_value(var, attr): a callable that is flagged with alters_d...
Fixes #4 - Added check to remove methods that require arguments (other than self)
py
diff --git a/pandasdmx/util.py b/pandasdmx/util.py index <HASH>..<HASH> 100644 --- a/pandasdmx/util.py +++ b/pandasdmx/util.py @@ -9,17 +9,21 @@ from typing import ( try: from typing import OrderedDict except ImportError: + import collections import sys if sys.version_info.minor == 7: # P...
Update <I> typing workaround
py
diff --git a/goatools/godag/relationship_combos.py b/goatools/godag/relationship_combos.py index <HASH>..<HASH> 100755 --- a/goatools/godag/relationship_combos.py +++ b/goatools/godag/relationship_combos.py @@ -71,7 +71,7 @@ class RelationshipCombos: rels_unexpected = relationships_usr.difference(relationships...
improve message. Lower severity from warning to note
py
diff --git a/glue/ligolw/lsctables.py b/glue/ligolw/lsctables.py index <HASH>..<HASH> 100644 --- a/glue/ligolw/lsctables.py +++ b/glue/ligolw/lsctables.py @@ -922,6 +922,7 @@ class MultiInspiralTable(table.Table): "inclination": "real_4", "polarization": "real_4", "event_id": "ilwd:char", + "null_statistic": ...
Added null_statistic column to the multi_inspiral_table definition.
py
diff --git a/examples/device_directory/queries.py b/examples/device_directory/queries.py index <HASH>..<HASH> 100644 --- a/examples/device_directory/queries.py +++ b/examples/device_directory/queries.py @@ -69,6 +69,12 @@ def _main(): assert updated_gf.filter['serial_number']['$eq'] == '12345' print ("Updated...
Add example to filter devices using query object
py
diff --git a/falafel/content.py b/falafel/content.py index <HASH>..<HASH> 100644 --- a/falafel/content.py +++ b/falafel/content.py @@ -117,11 +117,7 @@ def import_tsv(): to_add = [] for d in data: to_add.extend(list(save_rule(d, CONTENT_PREFIX))) - apply_changeset(repo, - to_add...
Only stage (don't commit) the inital import to content repo
py