diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/tests/test_pytest_cov.py b/tests/test_pytest_cov.py index <HASH>..<HASH> 100644 --- a/tests/test_pytest_cov.py +++ b/tests/test_pytest_cov.py @@ -929,7 +929,8 @@ def target_fn(): def test_run_target(): p = multiprocessing.Process(target=target_fn) p.start() - event.wait(1) + event.wait(2) ...
Increase wait time (just in case sporadic failures are caused by slow interpreter startup) and wait a bit after getting the event (just in case thiiings are slooow and interpreter is sigtermed before it gets to the sleep(5) call).
py
diff --git a/juju/model.py b/juju/model.py index <HASH>..<HASH> 100644 --- a/juju/model.py +++ b/juju/model.py @@ -567,7 +567,7 @@ class Model(object): This coroutine blocks until the new object appears in the model. """ - return await self._wait(entity_type, entity_id, predicate) + re...
Fixed call to self._wait in _wait_for_new Added 'add'
py
diff --git a/fogbugz.py b/fogbugz.py index <HASH>..<HASH> 100644 --- a/fogbugz.py +++ b/fogbugz.py @@ -1,7 +1,7 @@ import urllib import urllib2 -from BeautifulSoup.BeautifulSoup import BeautifulSoup, CData +from BeautifulSoup import BeautifulSoup, CData class FogBugzAPIError(Exception): pass
We should use the global BeautifulSoup.
py
diff --git a/Server/Python/src/dbs/dao/Oracle/ProcessingEra/List.py b/Server/Python/src/dbs/dao/Oracle/ProcessingEra/List.py index <HASH>..<HASH> 100644 --- a/Server/Python/src/dbs/dao/Oracle/ProcessingEra/List.py +++ b/Server/Python/src/dbs/dao/Oracle/ProcessingEra/List.py @@ -30,7 +30,7 @@ FROM %sPROCESSING_ERAS PE ...
bug fixing when process era version=0
py
diff --git a/tests/pytests/unit/grains/test_core.py b/tests/pytests/unit/grains/test_core.py index <HASH>..<HASH> 100644 --- a/tests/pytests/unit/grains/test_core.py +++ b/tests/pytests/unit/grains/test_core.py @@ -1438,7 +1438,7 @@ def test_xen_virtual(): ), patch.object( os.path, "isfile", - ...
More code formatting to satisfy pre-commit
py
diff --git a/python/herald/remote/discovery.py b/python/herald/remote/discovery.py index <HASH>..<HASH> 100644 --- a/python/herald/remote/discovery.py +++ b/python/herald/remote/discovery.py @@ -10,7 +10,7 @@ import herald.remote # Pelix from pelix.ipopo.decorators import ComponentFactory, Requires, Provides, \ - ...
Auto-instantiate the Herald RPC discovery
py
diff --git a/tensorlayer/layers.py b/tensorlayer/layers.py index <HASH>..<HASH> 100755 --- a/tensorlayer/layers.py +++ b/tensorlayer/layers.py @@ -1530,7 +1530,7 @@ def Conv2d(net, n_filter=32, filter_size=(3, 3), strides=(1, 1), act = None, name = name) return net -def DeConv2d(net, filt...
[LAYER] provide simplified cnn methods
py
diff --git a/pykss/section.py b/pykss/section.py index <HASH>..<HASH> 100644 --- a/pykss/section.py +++ b/pykss/section.py @@ -28,7 +28,6 @@ class Section(object): in_example = False for line in self.comment.splitlines(): - print line if line.startswith(CLASS_MODIFIER) or lin...
Removes stray print.. opps.
py
diff --git a/examples/hwapi/soft_pwm.py b/examples/hwapi/soft_pwm.py index <HASH>..<HASH> 100644 --- a/examples/hwapi/soft_pwm.py +++ b/examples/hwapi/soft_pwm.py @@ -14,10 +14,10 @@ def pwm_cycle(led, duty, cycles): duty_off = 20 - duty for i in range(cycles): if duty: - led.value(1) + ...
examples/hwapi/soft_pwm: Use Signal on()/off() methods. Just one sample is updated with on()/off() for now, there should be remaining sample(s) showing .value() use (but more can be converted later, as long as 1 or so good samples of .value() remains).
py
diff --git a/plop/viewer.py b/plop/viewer.py index <HASH>..<HASH> 100755 --- a/plop/viewer.py +++ b/plop/viewer.py @@ -9,7 +9,6 @@ from tornado.options import define, options, parse_command_line from tornado.web import RequestHandler, Application from plop.callgraph import CallGraph -from plop.pstats_loader import ...
Remove an unused import of a now-deleted module. I didn't catch this in testing because I still had the .pyc file lying around.
py
diff --git a/lib/python/vdm/server/HTTPListener.py b/lib/python/vdm/server/HTTPListener.py index <HASH>..<HASH> 100644 --- a/lib/python/vdm/server/HTTPListener.py +++ b/lib/python/vdm/server/HTTPListener.py @@ -691,7 +691,7 @@ class ServerAPI(MethodView): if not Global.SERVERS: server_id = 1 ...
VDM-<I> Modified code to fix the issue with breaking down of add functionality of database/server after deleting existing database/server.
py
diff --git a/synapse/async.py b/synapse/async.py index <HASH>..<HASH> 100644 --- a/synapse/async.py +++ b/synapse/async.py @@ -116,6 +116,7 @@ class Boss(EventBus): job[1].update( event[1] ) + job[1]['done'] = True self.fire('job:fini', job=job) def jobs(self): @@ -169,6 +170,7 @@ cl...
add done bool to job tufo
py
diff --git a/djongo/operations.py b/djongo/operations.py index <HASH>..<HASH> 100644 --- a/djongo/operations.py +++ b/djongo/operations.py @@ -96,7 +96,7 @@ class DatabaseOperations(BaseDatabaseOperations): for table in tables] def max_name_length(self): - return 80 + return 60 ...
Support for Django <I>
py
diff --git a/spyder/plugins/help/plugin.py b/spyder/plugins/help/plugin.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/help/plugin.py +++ b/spyder/plugins/help/plugin.py @@ -294,9 +294,9 @@ class Help(SpyderPluginWidget): cb = self._last_editor_cb if cb is None: if self.is_plai...
Fix switch to editor in combo at the start
py
diff --git a/cablemap.core/cablemap/core/c14n.py b/cablemap.core/cablemap/core/c14n.py index <HASH>..<HASH> 100644 --- a/cablemap.core/cablemap/core/c14n.py +++ b/cablemap.core/cablemap/core/c14n.py @@ -391,6 +391,8 @@ _SIGNER_C14N = { u'TTIGHE': u'TIGHE', u'WILLILAMSON': u'WILLIAMSON', u'WILLIASON': u'W...
Updated c<I>n of signers
py
diff --git a/gspread_dataframe.py b/gspread_dataframe.py index <HASH>..<HASH> 100644 --- a/gspread_dataframe.py +++ b/gspread_dataframe.py @@ -219,6 +219,8 @@ def set_with_dataframe( :param worksheet: the gspread worksheet to set with content of DataFrame. :param dataframe: the DataFrame. + :param row: R...
added :param entries for row and col in docstring.
py
diff --git a/openquake/hazardlib/source/base.py b/openquake/hazardlib/source/base.py index <HASH>..<HASH> 100644 --- a/openquake/hazardlib/source/base.py +++ b/openquake/hazardlib/source/base.py @@ -67,8 +67,11 @@ class BaseSeismicSource(with_metaclass(abc.ABCMeta)): :returns: the number of sites affected by t...
Added comments [skip CI]
py
diff --git a/noxfile.py b/noxfile.py index <HASH>..<HASH> 100644 --- a/noxfile.py +++ b/noxfile.py @@ -879,6 +879,10 @@ def _pytest(session, coverage, cmd_args): except CommandFailed: # Re-run failed tests session.log('Re-running failed tests') + + for idx, parg in enumerate(cmd_args): + ...
Don't write over JUnit tests results on re-runs
py
diff --git a/src/sos/_version.py b/src/sos/_version.py index <HASH>..<HASH> 100644 --- a/src/sos/_version.py +++ b/src/sos/_version.py @@ -33,7 +33,7 @@ if _py_ver.major == 2 or (_py_ver.major == 3 and (_py_ver.minor, _py_ver.micro) # version of the SoS language __sos_version__ = '1.0' # version of the sos command ...
Mark git version as <I> after the release of <I>
py
diff --git a/airflow/operators/__init__.py b/airflow/operators/__init__.py index <HASH>..<HASH> 100644 --- a/airflow/operators/__init__.py +++ b/airflow/operators/__init__.py @@ -26,6 +26,7 @@ _operators = { 'email_operator': ['EmailOperator'], 'hive_to_samba_operator': ['Hive2SambaOperator'], 'mysql_ope...
added vertica_operator include path
py
diff --git a/pysat/_instrument.py b/pysat/_instrument.py index <HASH>..<HASH> 100644 --- a/pysat/_instrument.py +++ b/pysat/_instrument.py @@ -373,6 +373,8 @@ class Instrument(object): # Check if indices are used, otherwise pass directly through if isinstance(key[0],int): ...
Added list of integers option to getitem
py
diff --git a/django_tablib/core.py b/django_tablib/core.py index <HASH>..<HASH> 100644 --- a/django_tablib/core.py +++ b/django_tablib/core.py @@ -7,6 +7,8 @@ from django.utils.encoding import smart_unicode class DatasetOptions(object): def __init__(self, options=None): self.model = getattr(options, 'mod...
DatasetOptions needs to be aware of queryset and headers options
py
diff --git a/github/PullRequest.py b/github/PullRequest.py index <HASH>..<HASH> 100644 --- a/github/PullRequest.py +++ b/github/PullRequest.py @@ -434,6 +434,8 @@ class PullRequest(github.GithubObject.CompletableGithubObject): post_parameters['event'] = 'COMMENT' if event == github.GithubObject.NotSet else eve...
Line comments are not posted in create_review() (#<I>) When create_review() is called with comments in the comments argument, they are not actually posted in the API call.
py
diff --git a/gwpy/spectrum/hist.py b/gwpy/spectrum/hist.py index <HASH>..<HASH> 100644 --- a/gwpy/spectrum/hist.py +++ b/gwpy/spectrum/hist.py @@ -72,7 +72,7 @@ class SpectralVariance(Array2D): @property def bins(self): - return self._bins + return self.metadata['bins'] @bins.setter ...
SpectralVariance: fixed bug in copy - all metadata need to be part of the cls.metadata dict otherwise they won't get copied over properly
py
diff --git a/tests/commands/test_convert.py b/tests/commands/test_convert.py index <HASH>..<HASH> 100644 --- a/tests/commands/test_convert.py +++ b/tests/commands/test_convert.py @@ -1,7 +1,13 @@ +import sys + +import pytest + from bonobo.util.environ import change_working_directory from bonobo.util.testing import al...
Skip failing order test for python <I> (temporary).
py
diff --git a/tools/debugging/stress_test_transfers.py b/tools/debugging/stress_test_transfers.py index <HASH>..<HASH> 100755 --- a/tools/debugging/stress_test_transfers.py +++ b/tools/debugging/stress_test_transfers.py @@ -297,7 +297,9 @@ def kill_restart_and_wait_for_server( # Wait for the process to completely...
Check exit code when stopping node (stress test) Without this check, the greenlet will continue past that point and start the new node even when the old one did not exit cleanly. When starting the new node, a switch happens right after the Popen, before the new process is tracked in the nursery. This causes the proces...
py
diff --git a/run_pylint.py b/run_pylint.py index <HASH>..<HASH> 100644 --- a/run_pylint.py +++ b/run_pylint.py @@ -180,6 +180,12 @@ def get_python_files(): def lint_fileset(filenames, rcfile, description): """Lints a group of files using a given rcfile.""" + # Only lint filenames that exist. For example, 'gi...
Making run_pylint skip deleted files.
py
diff --git a/openstack_dashboard/dashboards/admin/projects/workflows.py b/openstack_dashboard/dashboards/admin/projects/workflows.py index <HASH>..<HASH> 100644 --- a/openstack_dashboard/dashboards/admin/projects/workflows.py +++ b/openstack_dashboard/dashboards/admin/projects/workflows.py @@ -184,7 +184,7 @@ class Upd...
Role name should not be translated in Project Member Edit Tab Role names are retrieved from keystone and they should be displayed as-is. The same thing applies to UpdateProjectGroupsAction. Change-Id: Ieea7ba<I>cff<I>c<I>a7e7f<I>f<I>fe5afd<I>b1 Closes-Bug: #<I>
py
diff --git a/wandb/docker/__init__.py b/wandb/docker/__init__.py index <HASH>..<HASH> 100644 --- a/wandb/docker/__init__.py +++ b/wandb/docker/__init__.py @@ -204,7 +204,7 @@ def image_id(image_name: str) -> Optional[str]: if "@sha256:" in image_name: return image_name else: - digests = shell(...
Fix busted docker inspect command (#<I>)
py
diff --git a/compiler/js/component.py b/compiler/js/component.py index <HASH>..<HASH> 100644 --- a/compiler/js/component.py +++ b/compiler/js/component.py @@ -651,7 +651,7 @@ class component_generator(object): r.append(self.call_setup(registry, ident_n, var, value, closure)) if self.elements: - r.append("\t%...
replaced \t with indent var
py
diff --git a/angr/simos.py b/angr/simos.py index <HASH>..<HASH> 100644 --- a/angr/simos.py +++ b/angr/simos.py @@ -378,6 +378,9 @@ class SimCGC(SimOS): # Special stack base for CGC binaries to work with Shellphish CRS s.regs.sp = 0xbaff0000 + # 'main' gets called with the magic page address a...
Initialize CGC registers to concrete values, and set ECX to the address of the flag page
py
diff --git a/satpy/readers/generic_image.py b/satpy/readers/generic_image.py index <HASH>..<HASH> 100644 --- a/satpy/readers/generic_image.py +++ b/satpy/readers/generic_image.py @@ -103,7 +103,7 @@ class GenericImageFileHandler(BaseFileHandler): def get_dataset(self, key, info): """Get a dataset from the...
Fix: use same hardcoded dataset name for set and get
py
diff --git a/abilian/web/views/object.py b/abilian/web/views/object.py index <HASH>..<HASH> 100644 --- a/abilian/web/views/object.py +++ b/abilian/web/views/object.py @@ -632,7 +632,7 @@ class JSONWhooshSearch(JSONBaseSearch): def get_results(self, q, *args, **kwargs): svc = current_app.services['indexi...
Whoosh search: from <I> to <I> search results
py
diff --git a/h2o-py/tests/testdir_tree/pyunit_tree_irf.py b/h2o-py/tests/testdir_tree/pyunit_tree_irf.py index <HASH>..<HASH> 100644 --- a/h2o-py/tests/testdir_tree/pyunit_tree_irf.py +++ b/h2o-py/tests/testdir_tree/pyunit_tree_irf.py @@ -25,12 +25,12 @@ def check_tree(tree, tree_number, tree_class = None): def ir...
Fix test: make sure that Isolation Forest actually make a categorical split
py
diff --git a/proselint/checks/misc/phrasal_adjectives.py b/proselint/checks/misc/phrasal_adjectives.py index <HASH>..<HASH> 100644 --- a/proselint/checks/misc/phrasal_adjectives.py +++ b/proselint/checks/misc/phrasal_adjectives.py @@ -42,6 +42,7 @@ def check_examples(text): ["criminal-law professor", ["crimina...
Add phrasal adj for issues #<I> and #<I> (#<I>)
py
diff --git a/system_tests/logging_.py b/system_tests/logging_.py index <HASH>..<HASH> 100644 --- a/system_tests/logging_.py +++ b/system_tests/logging_.py @@ -45,6 +45,7 @@ def _retry_backoff(result_predicate, meth, *args, **kw): raise if backoff_intervals: time.sleep(back...
Skip remainder of backoff loop on failure.
py
diff --git a/rest_framework_json_api/utils.py b/rest_framework_json_api/utils.py index <HASH>..<HASH> 100644 --- a/rest_framework_json_api/utils.py +++ b/rest_framework_json_api/utils.py @@ -413,14 +413,13 @@ def extract_included(fields, resource, resource_instance, included_resources): if not isinstance(field...
Fix the inclusion of relations When getting a list and including data from the models in the list, only the related data of the first model in the list was included
py
diff --git a/rqalpha/core/strategy_context.py b/rqalpha/core/strategy_context.py index <HASH>..<HASH> 100644 --- a/rqalpha/core/strategy_context.py +++ b/rqalpha/core/strategy_context.py @@ -17,6 +17,8 @@ import six import pickle +import numpy as np + from rqalpha.const import DEFAULT_ACCOUNT_TYPE from rqalpha.en...
remove dependence of sys_simulation in run_info
py
diff --git a/test/docs/util.py b/test/docs/util.py index <HASH>..<HASH> 100644 --- a/test/docs/util.py +++ b/test/docs/util.py @@ -115,8 +115,11 @@ class TestApp(Sphinx): ) def cleanup(self, doctrees=False): - from sphinx.ext.autodoc import AutoDirective - AutoDirective._registry.clear() +...
fix(doc): Correct bug for sphinx AutoDirective.
py
diff --git a/police_api/forces.py b/police_api/forces.py index <HASH>..<HASH> 100644 --- a/police_api/forces.py +++ b/police_api/forces.py @@ -20,6 +20,7 @@ class Force(Resource): @property def neighbourhoods(self): + from .neighbourhoods import get_neighbourhoods if self._neighbourhoods is ...
Fix import issue in forces.py
py
diff --git a/spyderlib/config.py b/spyderlib/config.py index <HASH>..<HASH> 100644 --- a/spyderlib/config.py +++ b/spyderlib/config.py @@ -100,7 +100,7 @@ EXCLUDE_PATTERNS = [r'\.pyc$|\.pyo$|\.orig$|\.hg|\.svn|build', # Name filters for file/project explorers (excluding files without extension) NAME_FILTERS = ['*...
File/Project explorers name filters: added 'CHANGELOG' to standard name filters
py
diff --git a/libact/models/svm.py b/libact/models/svm.py index <HASH>..<HASH> 100644 --- a/libact/models/svm.py +++ b/libact/models/svm.py @@ -69,13 +69,15 @@ class SVM(Model): return self.m def predict(self, feature, *args, **kwargs): + if self.m == None: + raise RuntimeError('Model n...
svm: raise error if predict/score before train
py
diff --git a/c7n/resources/asg.py b/c7n/resources/asg.py index <HASH>..<HASH> 100644 --- a/c7n/resources/asg.py +++ b/c7n/resources/asg.py @@ -265,7 +265,7 @@ class NotEncryptedFilter(Filter, LaunchConfigFilterBase): Checks both the ami snapshots and the launch configuration. """ - schema = type_schema('...
ASG not-encrypted filter fix. registered name doesnt match schema (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ setup( # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # https://packaging.python.org/en/latest/single_source_ver...
revert version to last released one
py
diff --git a/medpy/core/logger.py b/medpy/core/logger.py index <HASH>..<HASH> 100644 --- a/medpy/core/logger.py +++ b/medpy/core/logger.py @@ -91,7 +91,7 @@ class Logger (NativeLogger): def __init__(self, name = 'MedPyLogger', level = 0) : # To guarantee that no one created more than one instance of Logge...
Python3 syntax error fixed. `raise RuntimeError 'Only one instance of Logger is allowed!'` needs to be `raise RuntimeError('Only one instance of Logger is allowed!')` to work as valid python <I> syntax.
py
diff --git a/tparser.py b/tparser.py index <HASH>..<HASH> 100644 --- a/tparser.py +++ b/tparser.py @@ -74,7 +74,7 @@ def bdecodes(bstring): len_str = str(i) next_char = reader.next() if next_char == 'e': # The line that collapses the dictionary - return next_char + retu...
Made parser consistent, added handlers for messages
py
diff --git a/salt/client/ssh/state.py b/salt/client/ssh/state.py index <HASH>..<HASH> 100644 --- a/salt/client/ssh/state.py +++ b/salt/client/ssh/state.py @@ -32,7 +32,8 @@ class SSHState(salt.state.State): Load up the modules for remote compilation via ssh ''' self.functions = self.wrapper -...
don't use the wrapper to load the state modules virtual funcs in salt-ssh
py
diff --git a/telethon/_client/telegrambaseclient.py b/telethon/_client/telegrambaseclient.py index <HASH>..<HASH> 100644 --- a/telethon/_client/telegrambaseclient.py +++ b/telethon/_client/telegrambaseclient.py @@ -141,6 +141,7 @@ def init( self._connect_timeout = connect_timeout self.flood_sleep_threshold = ...
Add back _phone_code_hash There isn't really a better way to do this.
py
diff --git a/pykube/objects.py b/pykube/objects.py index <HASH>..<HASH> 100644 --- a/pykube/objects.py +++ b/pykube/objects.py @@ -44,7 +44,8 @@ class APIObject: def delete(self): r = self.api.delete(**self.api_kwargs()) - r.raise_for_status() + if r.status_code != 404: + r.rais...
Allow deletion of API object if it did not exist
py
diff --git a/sdk/cosmos/azure-cosmos/azure/cosmos/_cosmos_client_connection.py b/sdk/cosmos/azure-cosmos/azure/cosmos/_cosmos_client_connection.py index <HASH>..<HASH> 100644 --- a/sdk/cosmos/azure-cosmos/azure/cosmos/_cosmos_client_connection.py +++ b/sdk/cosmos/azure-cosmos/azure/cosmos/_cosmos_client_connection.py @...
Lint error in cosmos (#<I>)
py
diff --git a/src/ansiblelint/rules/role_name.py b/src/ansiblelint/rules/role_name.py index <HASH>..<HASH> 100644 --- a/src/ansiblelint/rules/role_name.py +++ b/src/ansiblelint/rules/role_name.py @@ -32,7 +32,7 @@ if TYPE_CHECKING: from ansiblelint.errors import MatchError -ROLE_NAME_REGEX = r"^[a-z][a-z0-9_]+$...
Allow single letter role names (#<I>) Fixes: #<I> Fixes: #<I>
py
diff --git a/scapy/asn1/ber.py b/scapy/asn1/ber.py index <HASH>..<HASH> 100644 --- a/scapy/asn1/ber.py +++ b/scapy/asn1/ber.py @@ -260,6 +260,12 @@ class BERcodec_T61_STRING (BERcodec_STRING): class BERcodec_IA5_STRING(BERcodec_STRING): tag = ASN1_Class_UNIVERSAL.IA5_STRING +class BERcodec_NUMERIC_STRING(BERcod...
Added BER encoding classes for VIDEOTEX and NUMERIC strings
py
diff --git a/windpowerlib/power_curves.py b/windpowerlib/power_curves.py index <HASH>..<HASH> 100644 --- a/windpowerlib/power_curves.py +++ b/windpowerlib/power_curves.py @@ -74,8 +74,9 @@ def smooth_power_curve(power_curve_wind_speeds, power_curve_values, normalized_standard_deviation = 0.2 # Initialize ...
Appending to power curve dependent on wind speed range
py
diff --git a/telemetry/telemetry/page/page_runner.py b/telemetry/telemetry/page/page_runner.py index <HASH>..<HASH> 100644 --- a/telemetry/telemetry/page/page_runner.py +++ b/telemetry/telemetry/page/page_runner.py @@ -38,6 +38,7 @@ class _RunState(object): def StartBrowser(self, test, page_set, page, possible_bro...
[telemetry] Adjust my prior fix to not wait for the tab to complete loading when we did not just launch the browser. In the case where we did not just launch the browser, the previously loaded page may never complete loading so we may wait indefinitely. R=<EMAIL>, tonyg BUG=<I> Review URL: <URL>
py
diff --git a/pretrainedmodels/models/xception.py b/pretrainedmodels/models/xception.py index <HASH>..<HASH> 100644 --- a/pretrainedmodels/models/xception.py +++ b/pretrainedmodels/models/xception.py @@ -33,7 +33,7 @@ __all__ = ['xception'] pretrained_settings = { 'xception': { 'imagenet': { - ...
Fix xception state dict Parameters of size (d,h,w) are now (d,1,h,w). It did work for previous pytorch versions (with a warning), but not anymore.
py
diff --git a/charmhelpers/contrib/openstack/context.py b/charmhelpers/contrib/openstack/context.py index <HASH>..<HASH> 100644 --- a/charmhelpers/contrib/openstack/context.py +++ b/charmhelpers/contrib/openstack/context.py @@ -570,7 +570,7 @@ class NeutronContext(OSContextGenerator): if self.plugin == 'ovs':...
Detect and understand nsx plugin
py
diff --git a/openstack_dashboard/dashboards/router/nexus1000v/views.py b/openstack_dashboard/dashboards/router/nexus1000v/views.py index <HASH>..<HASH> 100644 --- a/openstack_dashboard/dashboards/router/nexus1000v/views.py +++ b/openstack_dashboard/dashboards/router/nexus1000v/views.py @@ -107,7 +107,8 @@ class CreateN...
Fix N1K Profile creation Missing reverse call in a modal form refactor (<URL>) has broken the N1k create view. This patch addresses the missing reverse. Change-Id: I3d<I>f<I>afb6e<I>d<I>bce7cd<I>d<I>fe<I> Closes-Bug: <I>
py
diff --git a/macroeco/main/main.py b/macroeco/main/main.py index <HASH>..<HASH> 100644 --- a/macroeco/main/main.py +++ b/macroeco/main/main.py @@ -243,10 +243,10 @@ def _arg_kwarg_lists(options, module): kw_names = [] # Inspection for rv classes doesn't work since it uses args internally - # Unless m...
Finish changing name of fit2 to fit_mle
py
diff --git a/tests/core/test_routes.py b/tests/core/test_routes.py index <HASH>..<HASH> 100644 --- a/tests/core/test_routes.py +++ b/tests/core/test_routes.py @@ -140,6 +140,14 @@ class TestRoutes(unittest.TestCase): self.assertEqual(['auth', 'user'], routes[1].list_middleware) self.assertEqual(['test...
Add test using route and controller in constructor
py
diff --git a/d1_libclient_python/src/examples/create_science_object.py b/d1_libclient_python/src/examples/create_science_object.py index <HASH>..<HASH> 100755 --- a/d1_libclient_python/src/examples/create_science_object.py +++ b/d1_libclient_python/src/examples/create_science_object.py @@ -63,7 +63,7 @@ import logging ...
Updated import of dataoneTypes
py
diff --git a/raiden/utils/nursery.py b/raiden/utils/nursery.py index <HASH>..<HASH> 100644 --- a/raiden/utils/nursery.py +++ b/raiden/utils/nursery.py @@ -43,6 +43,7 @@ class Janitor: self.stop_timeout = stop_timeout self._stop = AsyncResult() self._processes: Set[Popen] = set() + self...
Silence nodes killed by janitor When the janitor reaches `__exit__`, it kills all nodes. We do not want error messages for those, unless they fail at shutting down cleanly. Closes <URL>
py
diff --git a/src/Exscript/emulators/CommandSet.py b/src/Exscript/emulators/CommandSet.py index <HASH>..<HASH> 100644 --- a/src/Exscript/emulators/CommandSet.py +++ b/src/Exscript/emulators/CommandSet.py @@ -80,7 +80,7 @@ class CommandSet(object): def eval(self, command): for cmd, response in self.respon...
Exscript.emulators.CommandSet: use match() method of regex instead of search().
py
diff --git a/rcontrol/ssh.py b/rcontrol/ssh.py index <HASH>..<HASH> 100644 --- a/rcontrol/ssh.py +++ b/rcontrol/ssh.py @@ -85,7 +85,7 @@ class SshSession(BaseSession): def __init__(self, client, auto_close=True): BaseSession.__init__(self, auto_close=auto_close) self.ssh_client = client - ...
fix typo (object has no attribute open_sftp)
py
diff --git a/abilian/web/search/views.py b/abilian/web/search/views.py index <HASH>..<HASH> 100644 --- a/abilian/web/search/views.py +++ b/abilian/web/search/views.py @@ -133,8 +133,9 @@ def live(q=u'', page=None): datasets = {} for typename, docs in results.iteritems(): dataset = [] - for d in docs: - ...
live search: return minimal data instead of full whoosh record
py
diff --git a/scot/eegtopo/topoplot.py b/scot/eegtopo/topoplot.py index <HASH>..<HASH> 100644 --- a/scot/eegtopo/topoplot.py +++ b/scot/eegtopo/topoplot.py @@ -146,12 +146,12 @@ class Topoplot(object): extent=(offset[0]-self.interprange, offset[0]+self.interprange, ...
Set fixed markersize of 2 (seems to look best, no need for another parameter)
py
diff --git a/tests/test_bot.py b/tests/test_bot.py index <HASH>..<HASH> 100644 --- a/tests/test_bot.py +++ b/tests/test_bot.py @@ -33,9 +33,12 @@ class TestBot: class TestBotAPI(TestBot): - def test_login(self): + @patch('instabot.API.load_cookie') + def test_login(self, load_cookie_mock): self.b...
Test musn't use exists cookie
py
diff --git a/usagestats.py b/usagestats.py index <HASH>..<HASH> 100644 --- a/usagestats.py +++ b/usagestats.py @@ -235,6 +235,7 @@ class Stats(object): old_reports = [f for f in os.listdir(self.location) if f.startswith('report_')] old_reports.sort() + old_reports = old_...
Upload max 5 reports at a time
py
diff --git a/tests/unit/test_rda_image.py b/tests/unit/test_rda_image.py index <HASH>..<HASH> 100644 --- a/tests/unit/test_rda_image.py +++ b/tests/unit/test_rda_image.py @@ -9,7 +9,7 @@ from gbdxtools import Interface from gbdxtools import IdahoImage, CatalogImage from gbdxtools.rda.graph import get_rda_graph from ...
mock the gbdx interface in materialize tests
py
diff --git a/glim/app.py b/glim/app.py index <HASH>..<HASH> 100644 --- a/glim/app.py +++ b/glim/app.py @@ -73,6 +73,13 @@ class Glim(object): self.url_map = Map(rule_map) + self.before() + + if 'assets' in self.config['app']: + assets_url = self.config['app']['assets']['url'] + ...
move before call and assets registering into constructor
py
diff --git a/cli/sawtooth_cli/cluster.py b/cli/sawtooth_cli/cluster.py index <HASH>..<HASH> 100644 --- a/cli/sawtooth_cli/cluster.py +++ b/cli/sawtooth_cli/cluster.py @@ -23,7 +23,7 @@ import time import yaml from sawtooth_cli.exceptions import CliException -from sawtooth.exceptions import ManagementError +from saw...
Import ManagementError from manage/exceptions Import ManagementError exception from manage/exceptions rather than core.
py
diff --git a/openquake/hazardlib/geo/surface/gridded.py b/openquake/hazardlib/geo/surface/gridded.py index <HASH>..<HASH> 100644 --- a/openquake/hazardlib/geo/surface/gridded.py +++ b/openquake/hazardlib/geo/surface/gridded.py @@ -81,14 +81,14 @@ class GriddedSurface(BaseSurface): def get_surface_boundaries(self...
Improved docstring [skip CI]
py
diff --git a/beetle/builder.py b/beetle/builder.py index <HASH>..<HASH> 100644 --- a/beetle/builder.py +++ b/beetle/builder.py @@ -136,10 +136,10 @@ def make_page(path, page_defaults): # include the path page['path'] = path - # make slugs + # make slug page['slug'] = make_slug...
Improved explaination in a few comments.
py
diff --git a/gspread/models.py b/gspread/models.py index <HASH>..<HASH> 100644 --- a/gspread/models.py +++ b/gspread/models.py @@ -405,7 +405,7 @@ class Spreadsheet(object): filtered_id_list = [ p['id'] for p in permission_list - if p[key] == value and (p['role'] == role or role == 'a...
Fix KeyError on permissions list comprehension (#<I>) If there is an item in a worksheet's permissions list that does not have an `emailAddress` attribute, a `KeyError` will be raised in your listcomp [here](<URL> notation that will return `None` if the emailAddress key does not exist.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ setup( packages=find_packages('.', exclude=('tests*', 'testing*')), install_requires=[ 'argparse', - 'aspy.refactor_imports>=0.2.3', + 'aspy.refactor_imports>=0.3.2', 'c...
Require a newer version of refactor_imports
py
diff --git a/execjs/__init__.py b/execjs/__init__.py index <HASH>..<HASH> 100755 --- a/execjs/__init__.py +++ b/execjs/__init__.py @@ -41,16 +41,16 @@ runtimes = execjs._runtimes.runtimes get_from_environment = execjs._runtimes.get_from_environment -def eval(source): - return get().eval(source) -eval.__doc__= A...
Added cwd argument to module-level functions
py
diff --git a/nailgun/entities.py b/nailgun/entities.py index <HASH>..<HASH> 100644 --- a/nailgun/entities.py +++ b/nailgun/entities.py @@ -2275,7 +2275,7 @@ class HostGroup( for attr in ('content_source_id', 'content_view_id', 'lifecycle_environment_id'):...
Fix read() of hostgroup without content_source, lce or cv for <I>
py
diff --git a/tests/misc.py b/tests/misc.py index <HASH>..<HASH> 100644 --- a/tests/misc.py +++ b/tests/misc.py @@ -106,7 +106,7 @@ class MiscAPI(unittest.TestCase): def test_readconfig(self): bzapi = bugzilla.RHBugzilla(url=None) bzapi.url = "foo.example.com" - temp = tempfile.NamedTempora...
tests: Fix readconfig tests on python 3
py
diff --git a/salt/runners/cloud.py b/salt/runners/cloud.py index <HASH>..<HASH> 100644 --- a/salt/runners/cloud.py +++ b/salt/runners/cloud.py @@ -78,13 +78,13 @@ def select_query(query_type='list_nodes_select'): return info -def profile(prof, names, **kwargs): +def profile(prof, instances, **kwargs): '''...
Changes names to instances names is built in and causes this to pass each one of the list as a name.
py
diff --git a/test_bigfloat.py b/test_bigfloat.py index <HASH>..<HASH> 100644 --- a/test_bigfloat.py +++ b/test_bigfloat.py @@ -29,7 +29,8 @@ class BigFloatTests(unittest.TestCase): '1e456', '+nan', 'inf', - '-inf'] + ...
Test creating from unicode as well as str.
py
diff --git a/tests/integration/modules/test_service.py b/tests/integration/modules/test_service.py index <HASH>..<HASH> 100644 --- a/tests/integration/modules/test_service.py +++ b/tests/integration/modules/test_service.py @@ -118,7 +118,7 @@ class ServiceModuleTest(ModuleCase): systemd = salt.utils.systemd.bo...
Add windows to service disable ERROR check in tests
py
diff --git a/src/holodeck/holodeckclient.py b/src/holodeck/holodeckclient.py index <HASH>..<HASH> 100644 --- a/src/holodeck/holodeckclient.py +++ b/src/holodeck/holodeckclient.py @@ -88,7 +88,11 @@ class HolodeckClient: self.timeout = 10 if self.should_timeout else None def posix_acquire_semaphore(s...
Convert posix_ipc.BusyError to TimeoutError for error-handling consistency with Windows impl
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -101,7 +101,7 @@ greater.""", package_dir={'gnupg': 'gnupg'}, packages=['gnupg'], - package_data={'': ['README', 'LICENSE', 'TODO']}, + package_data={'': ['README', 'LICENSE', 'TODO', 'requirements.txt']}, ...
Add requirements.txt to setup.py package_data. * Fix error on PyPI download due to requirements.txt missing; this file is parsed for package requirements upon installation.
py
diff --git a/phy/cluster/manual/default_settings.py b/phy/cluster/manual/default_settings.py index <HASH>..<HASH> 100644 --- a/phy/cluster/manual/default_settings.py +++ b/phy/cluster/manual/default_settings.py @@ -10,10 +10,10 @@ manual_clustering.correlograms_binsize = 20 manual_clustering.correlograms_winsize_bins ...
Less spikes for CCG.
py
diff --git a/tests/test_tls.py b/tests/test_tls.py index <HASH>..<HASH> 100644 --- a/tests/test_tls.py +++ b/tests/test_tls.py @@ -56,7 +56,7 @@ class TLSTests(unittest.TestCase): tls.TLSSocket('www.google.com', 80) def test_tls_error_ftp(self): - with self.assertRaisesRegexp(errors.TLSError,...
Change TLS test to allow detection of FTP response or server closing connection
py
diff --git a/openpnm/topotools/topotools.py b/openpnm/topotools/topotools.py index <HASH>..<HASH> 100644 --- a/openpnm/topotools/topotools.py +++ b/openpnm/topotools/topotools.py @@ -1818,11 +1818,11 @@ def subdivide(network, pores, shape, labels=[]): if neighbor in Pn_old_net: coplanar_la...
Fixed a bug in subdivide, replaced "xnor" w/ "and"
py
diff --git a/spiketoolkit/postprocessing/postprocessing_tools.py b/spiketoolkit/postprocessing/postprocessing_tools.py index <HASH>..<HASH> 100644 --- a/spiketoolkit/postprocessing/postprocessing_tools.py +++ b/spiketoolkit/postprocessing/postprocessing_tools.py @@ -1508,6 +1508,7 @@ def _select_max_channels_from_wavef...
Fix template shape befor extracting max channels
py
diff --git a/transitfeed/__init__.py b/transitfeed/__init__.py index <HASH>..<HASH> 100644 --- a/transitfeed/__init__.py +++ b/transitfeed/__init__.py @@ -85,4 +85,4 @@ from stoptime import * from transfer import * from trip import * -__version__ = '1.2.6' +__version__ = '1.2.7'
Increasing the version number to <I> in preparation of the release
py
diff --git a/lib/python/dxpy/bindings/dxtable.py b/lib/python/dxpy/bindings/dxtable.py index <HASH>..<HASH> 100644 --- a/lib/python/dxpy/bindings/dxtable.py +++ b/lib/python/dxpy/bindings/dxtable.py @@ -62,7 +62,7 @@ class DXTable(DXClass): table_params = {"columns": columns} try: - index...
Fix format of GRI index specification.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,6 +13,23 @@ import sys import Adafruit_DHT.platform_detect as platform_detect +BINARY_COMMANDS = [ + 'build_ext', + 'build_clib', + 'bdist', + 'bdist_dumb', + 'bdist_rpm', + 'bdist_wininst', + 'bd...
Fixed setup.py to only detect platform for binary/install commands. Need to support register, etc. to enable publication to PyPI.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -56,7 +56,8 @@ class LazyBuildExtCommandClass(dict): from Cython.Distutils import build_ext as cython_build_ext - class build_ext(cython_build_ext): + # Cython_build_ext isn't a new-style class in Py...
MAINT: Different workaround for old-style class.
py
diff --git a/examples/tabus.py b/examples/tabus.py index <HASH>..<HASH> 100644 --- a/examples/tabus.py +++ b/examples/tabus.py @@ -1,8 +1,6 @@ #!/usr/bin/python """ -This example shows the functionality of the MiniPage element. - -It creates a sample page filled with labels using the MiniPage element. +This example s...
Fix description for Tabus example (#<I>)
py
diff --git a/salt/utils/jinja.py b/salt/utils/jinja.py index <HASH>..<HASH> 100644 --- a/salt/utils/jinja.py +++ b/salt/utils/jinja.py @@ -18,6 +18,7 @@ import yaml # Import salt libs import salt import salt.fileclient +from salt.utils.odict import OrderedDict log = logging.getLogger(__name__) @@ -27,6 +28,15 @...
YAML filter fix, take 2
py
diff --git a/searx/results.py b/searx/results.py index <HASH>..<HASH> 100644 --- a/searx/results.py +++ b/searx/results.py @@ -309,10 +309,11 @@ class ResultContainer: for res in results: # FIXME : handle more than one category per engine - res['category'] = engines[res['engine']].cat...
[mod] results: don't crash when an engine don't have a category According to <URL>
py
diff --git a/txaws/testing/base.py b/txaws/testing/base.py index <HASH>..<HASH> 100644 --- a/txaws/testing/base.py +++ b/txaws/testing/base.py @@ -56,7 +56,8 @@ class MemoryService(object): ) def get_state(self, creds): - return self._state.setdefault(creds, self.stateFactory()) + key = (creds...
AWSCredentials does not hash coherently. Build a key manually.
py
diff --git a/billboard.py b/billboard.py index <HASH>..<HASH> 100644 --- a/billboard.py +++ b/billboard.py @@ -54,6 +54,10 @@ class ChartData: def __getitem__(self, key): return self.entries[key] + + def __len__(self): + '''useful for things like top 40''' + return len(s...
Update billboard.py added __len__ method to chart class
py
diff --git a/tests/test_bulk.py b/tests/test_bulk.py index <HASH>..<HASH> 100644 --- a/tests/test_bulk.py +++ b/tests/test_bulk.py @@ -56,7 +56,7 @@ class TestBulk(test.TruncationTestCase): async def test_bulk_create_mix_specified(self): await UniqueName.bulk_create( [UniqueName(id=id_) for i...
test: fix test_bulk_create_mix_specified
py
diff --git a/imgaug/imgaug.py b/imgaug/imgaug.py index <HASH>..<HASH> 100644 --- a/imgaug/imgaug.py +++ b/imgaug/imgaug.py @@ -1183,8 +1183,8 @@ def compute_paddings_for_aspect_ratio(arr, aspect_ratio): elif aspect_ratio_current > aspect_ratio: # horizontal image, width > height diff = ((1/aspect...
Change pad() to prefer bottom over top side
py
diff --git a/angr/state_plugins/heap/heap_base.py b/angr/state_plugins/heap/heap_base.py index <HASH>..<HASH> 100644 --- a/angr/state_plugins/heap/heap_base.py +++ b/angr/state_plugins/heap/heap_base.py @@ -108,6 +108,8 @@ class SimHeapBase(SimStatePlugin): ...
Partially synchronize heap brk between heap and posix plugins
py
diff --git a/testsuite/test_itermethods.py b/testsuite/test_itermethods.py index <HASH>..<HASH> 100644 --- a/testsuite/test_itermethods.py +++ b/testsuite/test_itermethods.py @@ -1631,9 +1631,7 @@ class TestIterQueryInstances(object): # pylint: disable=invalid-name ContinueOnError=None, MaxOb...
Eliminate print in test_itermethods.pyu
py
diff --git a/pysat/_meta.py b/pysat/_meta.py index <HASH>..<HASH> 100644 --- a/pysat/_meta.py +++ b/pysat/_meta.py @@ -854,11 +854,10 @@ class Meta(object): if key in mdata: raise RuntimeError('Duplicated keys (variable names) ' + 'across Met...
meta bug Fixed bug in _meta.py, where strict test was placed outside of the if statement that was supposed to contain all of these commands.
py