diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/firenado/conf.py b/firenado/conf.py index <HASH>..<HASH> 100644 --- a/firenado/conf.py +++ b/firenado/conf.py @@ -120,6 +120,12 @@ def get_class_from_config(config): return getattr(module, config['class']) +def load_yaml_config_file(path): + """ Returns the parsed structure from a yaml config f...
Introduced a function to load a yaml config file.
py
diff --git a/webdriver_test_tools/__about__.py b/webdriver_test_tools/__about__.py index <HASH>..<HASH> 100644 --- a/webdriver_test_tools/__about__.py +++ b/webdriver_test_tools/__about__.py @@ -10,7 +10,7 @@ __title__ = 'webdriver_test_tools' __project__ = 'WebDriver Test Tools' __summary__ = 'A front-end testing fr...
bumped version to <I>
py
diff --git a/chess/engine.py b/chess/engine.py index <HASH>..<HASH> 100644 --- a/chess/engine.py +++ b/chess/engine.py @@ -376,26 +376,6 @@ class Cp(Score): def __str__(self): return "+{}".format(self.cp) if self.cp > 0 else str(self.cp) - def __add__(self, other): - try: - return C...
remove chess.engine.Cp arithmetic
py
diff --git a/troposphere/validators.py b/troposphere/validators.py index <HASH>..<HASH> 100644 --- a/troposphere/validators.py +++ b/troposphere/validators.py @@ -24,7 +24,7 @@ def integer(x): def positive_integer(x): p = integer(x) if int(p) < 0: - raise ValueError + raise ValueError("%r is no...
Tweaked a few integer validation messages * Added exception message to positive_integer validation * Take advantage of "integer" method for int() casting * Added exception message to network_port range validation
py
diff --git a/datadog_checks_dev/datadog_checks/dev/tooling/commands/meta/manifest.py b/datadog_checks_dev/datadog_checks/dev/tooling/commands/meta/manifest.py index <HASH>..<HASH> 100644 --- a/datadog_checks_dev/datadog_checks/dev/tooling/commands/meta/manifest.py +++ b/datadog_checks_dev/datadog_checks/dev/tooling/com...
Don't set empty asset values on migration (#<I>)
py
diff --git a/src/discoursegraphs/readwrite/anaphoricity.py b/src/discoursegraphs/readwrite/anaphoricity.py index <HASH>..<HASH> 100755 --- a/src/discoursegraphs/readwrite/anaphoricity.py +++ b/src/discoursegraphs/readwrite/anaphoricity.py @@ -117,7 +117,7 @@ class AnaphoraDocumentGraph(DiscourseDocumentGraph): ...
minor: converted anaphoricity:certainty values from float to str
py
diff --git a/sos/report/plugins/python.py b/sos/report/plugins/python.py index <HASH>..<HASH> 100644 --- a/sos/report/plugins/python.py +++ b/sos/report/plugins/python.py @@ -30,7 +30,13 @@ class Python(Plugin, DebianPlugin, UbuntuPlugin): self.add_cmd_output( self.python_version, suggest_filename...
[python] collect all pips installed lists Collect "pip list installed" for all versions of pip. Resolves: #<I>
py
diff --git a/neo/SmartContract/StateMachine.py b/neo/SmartContract/StateMachine.py index <HASH>..<HASH> 100644 --- a/neo/SmartContract/StateMachine.py +++ b/neo/SmartContract/StateMachine.py @@ -396,7 +396,7 @@ class StateMachine(StateReader): self._contracts.Add(hash.ToBytes(), contract) - ...
#<I> Exception during Contract.Migrate
py
diff --git a/perceval/backends/core/discourse.py b/perceval/backends/core/discourse.py index <HASH>..<HASH> 100644 --- a/perceval/backends/core/discourse.py +++ b/perceval/backends/core/discourse.py @@ -52,7 +52,7 @@ class Discourse(Backend): :param tag: label used to mark the data :param archive: archive to ...
[discourse] Set category when calling fetch and fetch_from_archive This patch adds to the params of the fetch_items method the category. Thus, it allows to handle fetching operations (fetch and fetch_from_archive) with multiple categories
py
diff --git a/python/ray/tune/suggest/__init__.py b/python/ray/tune/suggest/__init__.py index <HASH>..<HASH> 100644 --- a/python/ray/tune/suggest/__init__.py +++ b/python/ray/tune/suggest/__init__.py @@ -73,6 +73,10 @@ def create_searcher( from ray.tune.suggest.sigopt import SigOptSearch return SigOptS...
[tune] Add HEBO to search algorithm shim function (#<I>)
py
diff --git a/sdl2hl/renderer.py b/sdl2hl/renderer.py index <HASH>..<HASH> 100644 --- a/sdl2hl/renderer.py +++ b/sdl2hl/renderer.py @@ -215,7 +215,7 @@ class Renderer(object): """ rect_array = ffi.new('SDL_Rect[]', len(rects)) for i, r in enumerate(rects): - rect_array[i] = r._ptr +...
Fix a bug with drawing lists of primitives. Again.
py
diff --git a/iktomi/cli/app.py b/iktomi/cli/app.py index <HASH>..<HASH> 100644 --- a/iktomi/cli/app.py +++ b/iktomi/cli/app.py @@ -84,17 +84,27 @@ class App(Cli): class DevServerThread(threading.Thread): def __init__(self, host, port, app): - from wsgiref.simple_server import make_server, WSGIServer + ...
removed getfqdn call from DevServer
py
diff --git a/bokeh/webutils.py b/bokeh/webutils.py index <HASH>..<HASH> 100644 --- a/bokeh/webutils.py +++ b/bokeh/webutils.py @@ -1,4 +1,4 @@ -def json(request): +def get_json(request): """request from requests library handles backwards compatability for requests < 1.0 """
FIX: forgot to save files last time
py
diff --git a/pydantic/mypy.py b/pydantic/mypy.py index <HASH>..<HASH> 100644 --- a/pydantic/mypy.py +++ b/pydantic/mypy.py @@ -270,7 +270,9 @@ class PydanticModelTransformer: # Basically, it is an edge case when dealing with complex import logic # This is the same logic used in the dat...
fix: coverage Following <URL>
py
diff --git a/ev3dev2/button.py b/ev3dev2/button.py index <HASH>..<HASH> 100644 --- a/ev3dev2/button.py +++ b/ev3dev2/button.py @@ -130,7 +130,7 @@ class ButtonCommon(object): """ if new_state is None: new_state = set(self.buttons_pressed) - old_state = self._state + old_stat...
Fix Button process() on Micropython Micropython doesn't handle deep superclass constructors properly, so the _state attribute wasn't initialized.
py
diff --git a/openstack_dashboard/dashboards/project/volumes/views.py b/openstack_dashboard/dashboards/project/volumes/views.py index <HASH>..<HASH> 100644 --- a/openstack_dashboard/dashboards/project/volumes/views.py +++ b/openstack_dashboard/dashboards/project/volumes/views.py @@ -26,7 +26,6 @@ from django.urls import...
trivial: Remove 'cache_control' decorator The referenced bug has been fixed in all supported versions. Change-Id: I<I>dd<I>d<I>e<I>dc7edb9b<I>d<I>ba4e<I>f1
py
diff --git a/aikif/toolbox/Toolbox.py b/aikif/toolbox/Toolbox.py index <HASH>..<HASH> 100644 --- a/aikif/toolbox/Toolbox.py +++ b/aikif/toolbox/Toolbox.py @@ -3,7 +3,6 @@ # class to manage the functional toolbox of AIKIF import AIKIF_utils as aikif -import fileMapping as filemap import os class Toolbox():
removed old import to fileMapping, never used
py
diff --git a/thingy.py b/thingy.py index <HASH>..<HASH> 100644 --- a/thingy.py +++ b/thingy.py @@ -89,8 +89,8 @@ class Thingy(object): def update(self, *args, **kwargs): self._update(*args, **kwargs) - def view(self, name="defaults", *args, **kwargs): - return self._views[name](self, *args, **...
Simplify Thingy.view for now
py
diff --git a/kanboard/client.py b/kanboard/client.py index <HASH>..<HASH> 100644 --- a/kanboard/client.py +++ b/kanboard/client.py @@ -79,7 +79,9 @@ class Kanboard(object): async def function(*args, **kwargs): return await self._event_loop.run_in_executor( None, - ...
Shorten line too under <I> chars
py
diff --git a/utils/multires/generate.py b/utils/multires/generate.py index <HASH>..<HASH> 100755 --- a/utils/multires/generate.py +++ b/utils/multires/generate.py @@ -136,8 +136,8 @@ text.append('{') text.append(' "type": "multires",') text.append(' ') text.append(' "multiRes": {') -text.append(' "pa...
Do not prefix paths with dot Extra dot in front of paths like 'path' and 'fallbackPath' are not necessary and may cause unexpected errors.
py
diff --git a/eppy/tests/integration/integration.py b/eppy/tests/integration/integration.py index <HASH>..<HASH> 100644 --- a/eppy/tests/integration/integration.py +++ b/eppy/tests/integration/integration.py @@ -31,6 +31,7 @@ def setversion(idf, newversion): def test_modeleditor(): """test reading a idf file""" ...
modified: eppy/tests/integration/integration.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from distutils.core import setup, Command setup(name='dryscrape', - version='1.0', + version='1.0.1', description='a lightweight Javascript-aware, headless web scraping library for Python', ...
Updating version in setup.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,8 @@ setup(name='greenwich', 'License :: OSI Approved :: BSD License', 'Natural Language :: English', 'Programming Language :: Python :: 2', - 'Programming Language :: Python...
Official support for <I>, drop <I>
py
diff --git a/skosprovider/skos.py b/skosprovider/skos.py index <HASH>..<HASH> 100644 --- a/skosprovider/skos.py +++ b/skosprovider/skos.py @@ -477,6 +477,7 @@ def label(labels=[], language='any', sortLabel=False): sortLabels will be preferred over prefLabels. Bear in mind that these are still language...
Changed dict_to_label. No longer does an instance check.
py
diff --git a/tests/test_spans.py b/tests/test_spans.py index <HASH>..<HASH> 100644 --- a/tests/test_spans.py +++ b/tests/test_spans.py @@ -283,12 +283,9 @@ class Spans(TestCase): parse_to_spans(bytearray( b'<ref>[[{{text|link}}]]</ref>'))['Template']) - def test_nested_param_semiparse...
Use a more clear testcase for extraction order of params and pfs
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 @@ -136,7 +136,7 @@ def outputfilename(data, filename, raw): name = name.replace("arkiv-", "") name = name.replace(...
svtplay: use context instead of statistics for filename
py
diff --git a/projects/feedback/feedback_experiment.py b/projects/feedback/feedback_experiment.py index <HASH>..<HASH> 100644 --- a/projects/feedback/feedback_experiment.py +++ b/projects/feedback/feedback_experiment.py @@ -250,8 +250,9 @@ class FeedbackExperiment(object): else: # Train L4 self._setLe...
Use predictedSegmentDecrement in feedback experiment This eliminates a bunch of orphan segments. Before this change, in the random stimulus + shared range experiment, without feedback it wouldn't recover after the shared range because of the strange orphaned segments that happen when the TM learns sequences with share...
py
diff --git a/elkm1_lib/message.py b/elkm1_lib/message.py index <HASH>..<HASH> 100644 --- a/elkm1_lib/message.py +++ b/elkm1_lib/message.py @@ -51,7 +51,11 @@ class MessageDecode: def call_handlers(self, cmd, decoded_msg): """Call the message handlers.""" - for handler in self._handlers.get(cmd, [...
Improve call_handlers. While calling the handlers, user code could add/remove a handler, i.e.: modify the handlers list while iterating over it. This change copies the handlers list into a temp variable that is iterated over.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ setup( py_modules=['trie'], setup_requires=['setuptools-markdown'], install_requires=[ - "eth-utils>=1.0.0b2,<2.0.0", + "eth-utils>=1.0.0,<2.0.0", "rlp>=0.4.7,<1.0.0", ...
Bump eth-utils to stable release.
py
diff --git a/secedgar/tests/filings/test_filings.py b/secedgar/tests/filings/test_filings.py index <HASH>..<HASH> 100644 --- a/secedgar/tests/filings/test_filings.py +++ b/secedgar/tests/filings/test_filings.py @@ -100,10 +100,6 @@ class TestFiling(object): first_txt_url = aapl.get_urls()['aapl'][0] a...
CLN: Get rid of unnecessary enum test
py
diff --git a/userena/tests/views.py b/userena/tests/views.py index <HASH>..<HASH> 100644 --- a/userena/tests/views.py +++ b/userena/tests/views.py @@ -62,20 +62,20 @@ class AccountViewsTests(TestCase): self.failUnless(isinstance(response.context['form'], forms.Authentication...
BUGFIX: Remember me functionality was not properly tested.
py
diff --git a/estnltk/layer/enveloping_span.py b/estnltk/layer/enveloping_span.py index <HASH>..<HASH> 100644 --- a/estnltk/layer/enveloping_span.py +++ b/estnltk/layer/enveloping_span.py @@ -61,15 +61,6 @@ class EnvelopingSpan(Span): return target_layer.get(self.base_span) - def __getattr__(self, item):...
removed EnvelopingSpan.__getattr__ method
py
diff --git a/lintly/git.py b/lintly/git.py index <HASH>..<HASH> 100644 --- a/lintly/git.py +++ b/lintly/git.py @@ -4,4 +4,4 @@ import six def head(): """Returns the head commit""" - return six.u(sh.git('rev-parse', 'HEAD').stdout[:40]) + return six.u(sh.git('rev-parse', 'HEAD').stdout)[:40]
First <I> characters of SHA
py
diff --git a/duniterpy/documents/transaction.py b/duniterpy/documents/transaction.py index <HASH>..<HASH> 100644 --- a/duniterpy/documents/transaction.py +++ b/duniterpy/documents/transaction.py @@ -171,6 +171,22 @@ class OutputSource: self.base = base self.condition = self.condition_from_text(conditi...
[feat] OutputSource: add equality and hash methods
py
diff --git a/holoviews/view/tabular.py b/holoviews/view/tabular.py index <HASH>..<HASH> 100644 --- a/holoviews/view/tabular.py +++ b/holoviews/view/tabular.py @@ -39,7 +39,8 @@ class ItemTable(Layer): data=dict((k.name if isinstance(k, Dimension) else k ,v) for (k,v) in data.items()) - ...
Ensuring ItemTable does not receive dimensions keyword argument twice
py
diff --git a/dp_tornado/__init__.py b/dp_tornado/__init__.py index <HASH>..<HASH> 100644 --- a/dp_tornado/__init__.py +++ b/dp_tornado/__init__.py @@ -116,6 +116,19 @@ class Bootstrap(object): engine.logger.log(100, 'CPU Count : %d' % multiprocessing.cpu_count()) engine.logger.log(100, '------------...
exception caught, failed to service binding.
py
diff --git a/awslimitchecker/tests/support.py b/awslimitchecker/tests/support.py index <HASH>..<HASH> 100644 --- a/awslimitchecker/tests/support.py +++ b/awslimitchecker/tests/support.py @@ -159,6 +159,12 @@ class LogRecordHelper(object): r.funcName == 'quotas_for_service' and ...
Issue #<I> - integration tests - ignore expected WARNING message
py
diff --git a/openpnm/models/geometry/throat_endpoints.py b/openpnm/models/geometry/throat_endpoints.py index <HASH>..<HASH> 100644 --- a/openpnm/models/geometry/throat_endpoints.py +++ b/openpnm/models/geometry/throat_endpoints.py @@ -42,9 +42,10 @@ def cubic_pores(target, pore_diameter='pore.diameter'): EP2 = xyz...
Fixed a bug in throat endpoints: broken logic for overlapping pores.
py
diff --git a/Lib/fontbakery/profiles/googlefonts.py b/Lib/fontbakery/profiles/googlefonts.py index <HASH>..<HASH> 100644 --- a/Lib/fontbakery/profiles/googlefonts.py +++ b/Lib/fontbakery/profiles/googlefonts.py @@ -3937,9 +3937,7 @@ def com_google_fonts_check_integer_ppem_if_hinted(ttFont): rationale = """ ...
com.google.fonts/check/ligature_carets: Update rationale for caret anchors
py
diff --git a/airflow/bin/cli.py b/airflow/bin/cli.py index <HASH>..<HASH> 100755 --- a/airflow/bin/cli.py +++ b/airflow/bin/cli.py @@ -32,7 +32,7 @@ def process_subdir(subdir): if "DAGS_FOLDER" in subdir: subdir = subdir.replace("DAGS_FOLDER", dags_folder) subdir = os.path.abspath(os.path...
make sure paths don't conflict bc of trailing /
py
diff --git a/db_tests/helpers.py b/db_tests/helpers.py index <HASH>..<HASH> 100644 --- a/db_tests/helpers.py +++ b/db_tests/helpers.py @@ -147,9 +147,7 @@ class DbTestMixin(TestMixin): job = job_to_use if job_to_use else self.setup_classic_job() output = Output(owner=job.owner, oq_job=job, output_type...
Removed duplicated code to compute output filename for hazard writer tests.
py
diff --git a/rtwilio/views.py b/rtwilio/views.py index <HASH>..<HASH> 100644 --- a/rtwilio/views.py +++ b/rtwilio/views.py @@ -58,6 +58,10 @@ class TwilioBackendView(GenericHttpBackendView): def dispatch(self, *args, **kwargs): return super(TwilioBackendView, self).dispatch(*args, **kwargs) + def for...
Don't send OK seeing this creates an error on twilio. Twilio produces the following error: Warning: <I> Schema validation warning Description: Content is not allowed in prolog.
py
diff --git a/doc/conf.py b/doc/conf.py index <HASH>..<HASH> 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -36,7 +36,7 @@ if on_rtd: # -- General configuration ------------------------------------------------ # If your documentation needs a minimal Sphinx version, state it here. -needs_sphinx = '3.0.0' +needs_sphinx...
MAINT: Update sphinx configuration
py
diff --git a/pmxbot/pmxbot.py b/pmxbot/pmxbot.py index <HASH>..<HASH> 100644 --- a/pmxbot/pmxbot.py +++ b/pmxbot/pmxbot.py @@ -674,7 +674,7 @@ def defit(client, event, channel, nick, rest): word = rest.strip() res = lookup(word) if res is None: - return "Arg! I didn't find a definition for that." + return u"Ar...
defit now returns unicode when the definition is not found
py
diff --git a/builders/build_novas_tests.py b/builders/build_novas_tests.py index <HASH>..<HASH> 100644 --- a/builders/build_novas_tests.py +++ b/builders/build_novas_tests.py @@ -456,7 +456,7 @@ def call(function, *args): def slugify(name): - """Turn 'jupiter_barycenter' into 'jupiter barycenter'.""" + """Tu...
Un-backwards a comment
py
diff --git a/test/on_yubikey/framework/__init__.py b/test/on_yubikey/framework/__init__.py index <HASH>..<HASH> 100644 --- a/test/on_yubikey/framework/__init__.py +++ b/test/on_yubikey/framework/__init__.py @@ -237,6 +237,8 @@ def _make_test_suite_decorator( def decorate(create_test_classes): def addition...
Add comment about py2 compatibility
py
diff --git a/sdk/core/azure-core/samples/test_example_sync.py b/sdk/core/azure-core/samples/test_example_sync.py index <HASH>..<HASH> 100644 --- a/sdk/core/azure-core/samples/test_example_sync.py +++ b/sdk/core/azure-core/samples/test_example_sync.py @@ -91,7 +91,7 @@ def test_example_pipeline_client(): # [END bui...
check response code is an int rather than <I> (#<I>)
py
diff --git a/pangaea/xlsm.py b/pangaea/xlsm.py index <HASH>..<HASH> 100644 --- a/pangaea/xlsm.py +++ b/pangaea/xlsm.py @@ -264,7 +264,7 @@ class LSMGridReader(object): def _export_dataset(self, variable, new_data, grid): """Export subset of dataset.""" - lats, lons = grid.latlon(as_2d=True) + ...
modified to new latlon in sloot
py
diff --git a/openquake/server/dbserver.py b/openquake/server/dbserver.py index <HASH>..<HASH> 100644 --- a/openquake/server/dbserver.py +++ b/openquake/server/dbserver.py @@ -146,8 +146,8 @@ def run_server(dbhostport=None, dbpath=None, logfile=DATABASE['LOG'], # create and upgrade the db if needed db('PRAGM...
Cleanup [skip CI]
py
diff --git a/salt/utils/process.py b/salt/utils/process.py index <HASH>..<HASH> 100644 --- a/salt/utils/process.py +++ b/salt/utils/process.py @@ -178,8 +178,8 @@ class ThreadPool(object): continue try: func(*args, **kwargs) - except Exception: - ...
Add debug logging to threadpool targets
py
diff --git a/wdiffhtml/__init__.py b/wdiffhtml/__init__.py index <HASH>..<HASH> 100644 --- a/wdiffhtml/__init__.py +++ b/wdiffhtml/__init__.py @@ -46,7 +46,7 @@ def wdiff(settings, wrap_with_html=False, fold_breaks=False): `<br />` tags. """ - diff = generate_wdiff(settings.org_file, settings.new_file) + diff...
fix: `generate_wdiff` call
py
diff --git a/tests/test_pipelines_fill_mask.py b/tests/test_pipelines_fill_mask.py index <HASH>..<HASH> 100644 --- a/tests/test_pipelines_fill_mask.py +++ b/tests/test_pipelines_fill_mask.py @@ -183,7 +183,7 @@ class FillMaskPipelineTests(MonoInputPipelineCommonMixin, unittest.TestCase): ] valid_targe...
topk -> top_k (#<I>)
py
diff --git a/src/molecule/provisioner/ansible.py b/src/molecule/provisioner/ansible.py index <HASH>..<HASH> 100644 --- a/src/molecule/provisioner/ansible.py +++ b/src/molecule/provisioner/ansible.py @@ -19,6 +19,7 @@ # DEALINGS IN THE SOFTWARE. """Ansible Provisioner Module.""" +# pylint: disable=too-many-lines i...
doc: update doc on inventory/host section for provisioner (#<I>) * doc: update doc on inventory/host section for povisioner 1. Fix incorrect example, as 'hosts' should be two times, first time as a name for for 'inventory' section, and second, as normal ansible `hosts` stanza in the group. 2. Add well-kn...
py
diff --git a/tests/test_jwt.py b/tests/test_jwt.py index <HASH>..<HASH> 100644 --- a/tests/test_jwt.py +++ b/tests/test_jwt.py @@ -44,8 +44,8 @@ class TestJWT: decoded = jwt.decode(encoded, key) assert claims == decoded all_headers = jwt.get_unverified_headers(encoded) - custom_headers...
Remove dict comprehension to support python <I> in tests
py
diff --git a/openquake/calculators/getters.py b/openquake/calculators/getters.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/getters.py +++ b/openquake/calculators/getters.py @@ -19,6 +19,7 @@ import collections import operator import logging import numpy +from openquake.baselib import hdf5 from openqua...
Made it possible to pass a path to PmapGetter [skip hazardlib] Former-commit-id: <I>c8aaf<I>edf<I>a<I>c6f1c9fdf<I>
py
diff --git a/pyemma/util/annotators.py b/pyemma/util/annotators.py index <HASH>..<HASH> 100644 --- a/pyemma/util/annotators.py +++ b/pyemma/util/annotators.py @@ -204,6 +204,7 @@ def deprecated(*optional_message): # skip callee frames if they are other decorators or this file(func) if 'decorat...
[annotators/deprecated] only skip decorators and self.__file__
py
diff --git a/klab/cluster/__init__.py b/klab/cluster/__init__.py index <HASH>..<HASH> 100644 --- a/klab/cluster/__init__.py +++ b/klab/cluster/__init__.py @@ -17,8 +17,7 @@ def require_qsub(): subprocess.Popen(command, stdout=devnull, stderr=devnull).communicate() except OSError as e: if e.errno ...
Make require_qsub() crash if qsub isn't found.
py
diff --git a/openfisca_core/taxbenefitsystems.py b/openfisca_core/taxbenefitsystems.py index <HASH>..<HASH> 100644 --- a/openfisca_core/taxbenefitsystems.py +++ b/openfisca_core/taxbenefitsystems.py @@ -9,7 +9,6 @@ from . import conv, legislations, legislationsxml __all__ = [ 'AbstractTaxBenefitSystem', - 'L...
Remove LegacyTaxBenefitSystem
py
diff --git a/sovrin_client/test/cli/test_save_and_restore_wallet.py b/sovrin_client/test/cli/test_save_and_restore_wallet.py index <HASH>..<HASH> 100644 --- a/sovrin_client/test/cli/test_save_and_restore_wallet.py +++ b/sovrin_client/test/cli/test_save_and_restore_wallet.py @@ -112,7 +112,6 @@ def useKeyring(name, do, ...
Enabled testSaveAndRestoreWallet since it passes on Windows now.
py
diff --git a/pyforms/gui/Controls/ControlPlayer/AbstractGLWidget.py b/pyforms/gui/Controls/ControlPlayer/AbstractGLWidget.py index <HASH>..<HASH> 100644 --- a/pyforms/gui/Controls/ControlPlayer/AbstractGLWidget.py +++ b/pyforms/gui/Controls/ControlPlayer/AbstractGLWidget.py @@ -332,7 +332,7 @@ class AbstractGLWidget(ob...
fix issue with ControlPlayer on mac
py
diff --git a/rope/base/prefs.py b/rope/base/prefs.py index <HASH>..<HASH> 100644 --- a/rope/base/prefs.py +++ b/rope/base/prefs.py @@ -15,7 +15,7 @@ class Prefs: """Class to store rope preferences.""" ignored_resources: List[str] = field( - default_factory=[ + default_factory=lambda: [ ...
fix: use lambda and remove extra pass
py
diff --git a/lib/numina/recipes/__init__.py b/lib/numina/recipes/__init__.py index <HASH>..<HASH> 100644 --- a/lib/numina/recipes/__init__.py +++ b/lib/numina/recipes/__init__.py @@ -62,8 +62,8 @@ class RecipeBase: self.repeat = run.get('repeat', 1) self._current = 0 - def setup(s...
setup method is reserrected
py
diff --git a/grimoirelab_toolkit/_version.py b/grimoirelab_toolkit/_version.py index <HASH>..<HASH> 100644 --- a/grimoirelab_toolkit/_version.py +++ b/grimoirelab_toolkit/_version.py @@ -1,2 +1,2 @@ # Versions compliant with PEP 440 https://www.python.org/dev/peps/pep-0440 -__version__ = "0.1.9" +__version__ = "0.1.10...
Update version number to <I>
py
diff --git a/neuroanalysis/interfaces/mrtrix.py b/neuroanalysis/interfaces/mrtrix.py index <HASH>..<HASH> 100644 --- a/neuroanalysis/interfaces/mrtrix.py +++ b/neuroanalysis/interfaces/mrtrix.py @@ -150,7 +150,7 @@ class DWIPreprocInputSpec(CommandLineInputSpec): mandatory=True, argstr='%s', desc=("Th...
fixed bug with "gen_file" kwarg in dwipreproc (should be genfile)
py
diff --git a/tools/c7n_mailer/c7n_mailer/utils.py b/tools/c7n_mailer/c7n_mailer/utils.py index <HASH>..<HASH> 100644 --- a/tools/c7n_mailer/c7n_mailer/utils.py +++ b/tools/c7n_mailer/c7n_mailer/utils.py @@ -86,6 +86,9 @@ def get_message_subject(sqs_message): subject = jinja_template.render( account=sqs_me...
tools/c7n_mailer - subject template render additional variables (#<I>)
py
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index <HASH>..<HASH> 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -781,7 +781,7 @@ class NDFrame(PandasObject, SelectionMixin): Parameters ---------- - axis : axis : {0 or ‘index’, 1 or ‘columns’, None}, defau...
fix non-ascii characters in doc-string
py
diff --git a/python/test/test_graph.py b/python/test/test_graph.py index <HASH>..<HASH> 100644 --- a/python/test/test_graph.py +++ b/python/test/test_graph.py @@ -180,6 +180,9 @@ def test_graph_clear_buffer(seed): g = list(nn.get_parameters().values())[0].g.copy() else: g2...
Workaround for test fails on ppc<I>le
py
diff --git a/osm_processor.py b/osm_processor.py index <HASH>..<HASH> 100644 --- a/osm_processor.py +++ b/osm_processor.py @@ -114,6 +114,10 @@ class GTFSPreprocessor(o.SimpleHandler): agency_id = abs(hash(relation.tags['operator'])) self.agencies[agency_id] = {'agency_id': agency_id, ...
Add dummy agency for missing ones. Fix #2
py
diff --git a/aston/ui/Navbar.py b/aston/ui/Navbar.py index <HASH>..<HASH> 100644 --- a/aston/ui/Navbar.py +++ b/aston/ui/Navbar.py @@ -23,6 +23,8 @@ class AstonNavBar(NavigationToolbar2QTAgg): self.removeAction(self.actions()[-1]) #add the alignment tool + if not hasattr(self, '_actions'): + ...
Fix for older version of PyQt? Navbar was crashing on Ubuntu.
py
diff --git a/openpnm/__init__.py b/openpnm/__init__.py index <HASH>..<HASH> 100644 --- a/openpnm/__init__.py +++ b/openpnm/__init__.py @@ -52,7 +52,7 @@ It consists of the following submodules: """ -__version__ = '2.2.0' +__version__ = '2.3.0' import numpy as np np.seterr(divide='ignore', invalid='ignore')
Updating version number in init file, in preparation for <I> release
py
diff --git a/respite/views/views.py b/respite/views/views.py index <HASH>..<HASH> 100644 --- a/respite/views/views.py +++ b/respite/views/views.py @@ -155,7 +155,13 @@ class Views(object): status = status ) elif template: - raise + raise T...
Enhance re-raised TemplateDoesNotExist exception
py
diff --git a/openquake/hazard/hazard_curve.py b/openquake/hazard/hazard_curve.py index <HASH>..<HASH> 100644 --- a/openquake/hazard/hazard_curve.py +++ b/openquake/hazard/hazard_curve.py @@ -115,16 +115,15 @@ class QuantileHazardCurveCalculator: """Execute the logic of this mixin.""" quantiles = self....
Optimized quantile loop Former-commit-id: f9f<I>ee<I>c<I>f4af<I>c<I>fd<I>c1d
py
diff --git a/planet/api/models.py b/planet/api/models.py index <HASH>..<HASH> 100644 --- a/planet/api/models.py +++ b/planet/api/models.py @@ -322,6 +322,7 @@ class WFS3Features(AnalyticsPaged): class Orders(Paged): ITEM_KEY = 'orders' + NEXT_KEY = 'next' class Order(JSON):
fixed orders model object with next key, Fix #<I>
py
diff --git a/angr/analyses/vfg.py b/angr/analyses/vfg.py index <HASH>..<HASH> 100644 --- a/angr/analyses/vfg.py +++ b/angr/analyses/vfg.py @@ -1665,7 +1665,11 @@ class VFG(ForwardAnalysis, Analysis): # pylint:disable=abstract-method # we are entering a new function. now it's time to figure out how to optim...
VFG: take care of missing functiosn in _merge_points()
py
diff --git a/openquake/server/dbserver.py b/openquake/server/dbserver.py index <HASH>..<HASH> 100644 --- a/openquake/server/dbserver.py +++ b/openquake/server/dbserver.py @@ -111,8 +111,7 @@ class DbServer(object): self.thread.join() -def runserver(dbpathport=None, loglevel='WARN', logfile=None): - ...
Turned logfile into a positional argument Former-commit-id: <I>f<I>c<I>bd4de<I>a<I>baa9bbfdfca9bf
py
diff --git a/salt/modules/inspectlib/query.py b/salt/modules/inspectlib/query.py index <HASH>..<HASH> 100644 --- a/salt/modules/inspectlib/query.py +++ b/salt/modules/inspectlib/query.py @@ -392,7 +392,10 @@ class Query(object): data['software'] = self._software(**kwargs) data['system'] = self._system...
Do not raise "No data" exception when querying for all information
py
diff --git a/python-package/xgboost/callback.py b/python-package/xgboost/callback.py index <HASH>..<HASH> 100644 --- a/python-package/xgboost/callback.py +++ b/python-package/xgboost/callback.py @@ -222,9 +222,9 @@ def early_stop(stopping_rounds, maximize=False, verbose=True): def callback(env): """inte...
Empty evaluation list in early stopping should produce meaningful error message (#<I>) * Empty evaluation list should not break early stopping * Fix lint * Update callback.py
py
diff --git a/openid/consumer/consumer.py b/openid/consumer/consumer.py index <HASH>..<HASH> 100644 --- a/openid/consumer/consumer.py +++ b/openid/consumer/consumer.py @@ -1389,8 +1389,8 @@ class AuthRequest(object): """Add an extension to this checkid request. @param extension_request: An object tha...
[project @ Docstring nit]
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -60,7 +60,7 @@ setup( classifiers=CLASSIFIERS, url=URL, packages=find_packages(), - package_data={"instagraal": ("kernels/*.cu")}, + package_data={"instagraal": ("kernels/*.cu",)}, scripts=["scripts/i...
Update setup.py to fix "values of 'package_data' dict" must be a list of strings (got 'kernels/*.cu')
py
diff --git a/test/rlite.py b/test/rlite.py index <HASH>..<HASH> 100644 --- a/test/rlite.py +++ b/test/rlite.py @@ -39,3 +39,15 @@ class RliteTest(TestCase): def test_array(self): self.rlite.command('rpush', 'mylist', '1', '2', '3') self.assertEquals(self.rlite.command('lrange', 'mylist', '0', '-1...
Add tests for Rlite.__getattr__
py
diff --git a/src/chemcoord/internal_coordinates/_zmat_class_core.py b/src/chemcoord/internal_coordinates/_zmat_class_core.py index <HASH>..<HASH> 100644 --- a/src/chemcoord/internal_coordinates/_zmat_class_core.py +++ b/src/chemcoord/internal_coordinates/_zmat_class_core.py @@ -159,18 +159,18 @@ The only allowed differ...
MAINT: Better change_numbering
py
diff --git a/eadred/helpers.py b/eadred/helpers.py index <HASH>..<HASH> 100644 --- a/eadred/helpers.py +++ b/eadred/helpers.py @@ -2,6 +2,11 @@ import os import random from itertools import count +try: + from django.utils.six import text_type +except ImportError: + text_type = unicode + def get_file(fn): ...
Use text_type instead of built-in unicode
py
diff --git a/astrocats/catalog/catalog.py b/astrocats/catalog/catalog.py index <HASH>..<HASH> 100644 --- a/astrocats/catalog/catalog.py +++ b/astrocats/catalog/catalog.py @@ -787,6 +787,7 @@ class Catalog: reference=reference, url=url, secondary=secondary, + private=pri...
BUG: wasn't passing `private`
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ from setuptools import setup setup( name="threat_intel", - version='0.1.11', + version='0.1.12', provides=['threat_intel'], author="Yelp Security", url='https://github.com/Yelp/threat_...
Bumping the version to <I>
py
diff --git a/tool.py b/tool.py index <HASH>..<HASH> 100755 --- a/tool.py +++ b/tool.py @@ -762,6 +762,7 @@ class IANA(object): 'bananarepublic': 'whois.nic.bananarepublic', 'baseball': 'whois.nic.baseball', 'bharti': 'whois.nic.bharti', + 'bing': 'whois.nic.bing', ...
Introduction of `bing` whois server cf: Whois lookup to whois.nic.bing
py
diff --git a/bika/lims/browser/analysisrequest/analysisrequests.py b/bika/lims/browser/analysisrequest/analysisrequests.py index <HASH>..<HASH> 100644 --- a/bika/lims/browser/analysisrequest/analysisrequests.py +++ b/bika/lims/browser/analysisrequest/analysisrequests.py @@ -687,15 +687,17 @@ class AnalysisRequestsView(...
HEALTH-<I>: Provinces and Districts Refactoring: use client variable the same way as in /bika/lims/browser/sample.py
py
diff --git a/pypsa/plot.py b/pypsa/plot.py index <HASH>..<HASH> 100644 --- a/pypsa/plot.py +++ b/pypsa/plot.py @@ -127,6 +127,7 @@ def plot(n, margin=None, ax=None, geomap=True, projection=None, Specify colors to paint land and sea areas in. If True, it defaults to `{'ocean': 'lightblue', 'land': 'whi...
network.plot: allow setting color_geomap=False to disable plotting of geographical features. Users can now use cartopy to draw a map as they like and then pass the Axes to network.plot() to have pypsa add only the network buses and branches.
py
diff --git a/salt/modules/archive.py b/salt/modules/archive.py index <HASH>..<HASH> 100644 --- a/salt/modules/archive.py +++ b/salt/modules/archive.py @@ -6,6 +6,7 @@ A module to wrap (non-Windows) archive calls ''' from __future__ import absolute_import import os +import contextlib # For < 2.7 compat # Import s...
fix for <I> modules/archive.py ZipFile instance has no attribute '__exit__' - only python <I>? #<I>
py
diff --git a/tpot/base.py b/tpot/base.py index <HASH>..<HASH> 100644 --- a/tpot/base.py +++ b/tpot/base.py @@ -398,9 +398,9 @@ class TPOTBase(BaseEstimator): else: self._fitted_pipeline = self._toolbox.compile(expr=self._optimized_pipeline) - with warnings.catc...
fix output failed pipeline when verbosity >= 3
py
diff --git a/cumulusci/cli/tests/test_robot.py b/cumulusci/cli/tests/test_robot.py index <HASH>..<HASH> 100644 --- a/cumulusci/cli/tests/test_robot.py +++ b/cumulusci/cli/tests/test_robot.py @@ -113,7 +113,8 @@ def test_playwright_dry_run(sarge): "would run /Users/boakley/.venv/cci/bin/python -m Browse...
Add better assertion error; for some reason this test is failing on CI but isn't failing for me locally.
py
diff --git a/discord/voice_client.py b/discord/voice_client.py index <HASH>..<HASH> 100644 --- a/discord/voice_client.py +++ b/discord/voice_client.py @@ -188,6 +188,10 @@ class VoiceClient: return self.endpoint, _, _ = endpoint.rpartition(':') + if self.endpoint.startswith('wss://'): + ...
Be defensive in case Discord breaks something with WS URLs again
py
diff --git a/ctfile/__init__.py b/ctfile/__init__.py index <HASH>..<HASH> 100644 --- a/ctfile/__init__.py +++ b/ctfile/__init__.py @@ -1,6 +1,32 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- +"""The ``ctfile`` package is a Python library that facilitates +reading and writing of ``CTfile`` formats. CTfile stand...
Added package-level docstring.
py
diff --git a/smolder/smolder.py b/smolder/smolder.py index <HASH>..<HASH> 100644 --- a/smolder/smolder.py +++ b/smolder/smolder.py @@ -128,8 +128,6 @@ def http_test(test, host, force): else: LOG.error("validate_cert must be 'True', 'False' or absent (defaults to False)") sys.exit(7) - if not...
Remove invalid disable of request SSL validation Tests were failing due to an invalid call to disable ssl certificate validation in the requests library. Removing the offending code has fixed tests.
py
diff --git a/mapchete/commands/_convert.py b/mapchete/commands/_convert.py index <HASH>..<HASH> 100644 --- a/mapchete/commands/_convert.py +++ b/mapchete/commands/_convert.py @@ -251,6 +251,7 @@ def convert( f"Output format type ({output_type}) is incompatible with input format ({input_info['input_type']})...
also set process metatiling so output tiles cannot be larger than process metatiles
py
diff --git a/tests/test_fetcher_processor.py b/tests/test_fetcher_processor.py index <HASH>..<HASH> 100644 --- a/tests/test_fetcher_processor.py +++ b/tests/test_fetcher_processor.py @@ -48,6 +48,7 @@ class TestFetcherProcessor(unittest.TestCase): self.httpbin_thread.terminate() self.httpbin_thread.jo...
attempting to remove "unexpected successes"
py
diff --git a/neo.py b/neo.py index <HASH>..<HASH> 100755 --- a/neo.py +++ b/neo.py @@ -865,7 +865,7 @@ def import_(url, path=None, depth=None, protocol=None, top=True): sorted_scms = sorted(sorted_scms, key=lambda (m, _): not m) text = "Importing program" if top else "Adding library" - action("%s \"%s\" ...
Fix backward and forward slashes (let OS report paths instead)
py
diff --git a/OpenPNM/Utilities/IO.py b/OpenPNM/Utilities/IO.py index <HASH>..<HASH> 100644 --- a/OpenPNM/Utilities/IO.py +++ b/OpenPNM/Utilities/IO.py @@ -173,6 +173,11 @@ class PNM(object): for item in obj['models'].keys(): PNM._load_model(phase,obj['models'][item]) + for...
PNM.save/load now works with mixtures - The root of all our problems is the object linking - This means that objects must be re-initialized in the correct order and all kinds of tricks must be taken to recreate the linkages. - There must be a better way! - I'm hoping that the 'simulation controller' object will solve t...
py
diff --git a/cmsplugin_cascade/link/forms.py b/cmsplugin_cascade/link/forms.py index <HASH>..<HASH> 100644 --- a/cmsplugin_cascade/link/forms.py +++ b/cmsplugin_cascade/link/forms.py @@ -6,6 +6,7 @@ from django.db.models.fields.related import ManyToOneRel from django.forms import fields, Media, ModelChoiceField from ...
In LinkPlugin, mark search result as safe html
py
diff --git a/tofu/geom/_comp_solidangles.py b/tofu/geom/_comp_solidangles.py index <HASH>..<HASH> 100644 --- a/tofu/geom/_comp_solidangles.py +++ b/tofu/geom/_comp_solidangles.py @@ -179,16 +179,18 @@ def calc_solidangle_particle( """ ################ # Prepare inputs - traj, pts, rad, config, approx,...
[Issue<I>_SolidAngleParticleVectorized] PEP8 compliance 1
py
diff --git a/genes/api.py b/genes/api.py index <HASH>..<HASH> 100644 --- a/genes/api.py +++ b/genes/api.py @@ -58,16 +58,14 @@ class GeneResource(ModelResource): self.throttle_check(request) if request.method == 'GET': - gene_result_limit = request.GET.get('gene_result_limit') - ...
Cutting down on some code repetition in gene search function in api.py
py