diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/luigi/worker.py b/luigi/worker.py index <HASH>..<HASH> 100644 --- a/luigi/worker.py +++ b/luigi/worker.py @@ -161,7 +161,12 @@ class TaskProcess(multiprocessing.Process): # External task # TODO(erikbern): We should check for task completeness after non-external tasks too! ...
Add error info for external task incomplete From UI it is not clear what is going on with external tasks that fail. This adds a message to explain the data-missing failure.
py
diff --git a/zebra/mixins.py b/zebra/mixins.py index <HASH>..<HASH> 100644 --- a/zebra/mixins.py +++ b/zebra/mixins.py @@ -91,6 +91,8 @@ class StripeSubscriptionMixin(object): customer = _get_attr_value(self, 'stripe_customer') if hasattr(customer, 'subscription'): subscription = customer...
when coming back directly from the stripe API, customer is a dict. That will probably change someday, so this method now handles both cases.
py
diff --git a/cumulusci/core/tests/test_flows.py b/cumulusci/core/tests/test_flows.py index <HASH>..<HASH> 100644 --- a/cumulusci/core/tests/test_flows.py +++ b/cumulusci/core/tests/test_flows.py @@ -76,7 +76,7 @@ class TestBaseFlow(unittest.TestCase): 'cumulusci.core.tests.test_flows._TaskRaisesExc...
Change message from raise_exception task to make output less startling
py
diff --git a/bokeh/charts/attributes.py b/bokeh/charts/attributes.py index <HASH>..<HASH> 100644 --- a/bokeh/charts/attributes.py +++ b/bokeh/charts/attributes.py @@ -113,7 +113,10 @@ class AttrSpec(HasProps): self.default = next(iter(copy(self.iterable))) if self.data is not None and self.colum...
Use dataframe if it is available, which is required for maintaining categorical information.
py
diff --git a/penn/fitness.py b/penn/fitness.py index <HASH>..<HASH> 100644 --- a/penn/fitness.py +++ b/penn/fitness.py @@ -58,7 +58,7 @@ class Fitness(object): for item in soup.findAll("div", {"class": "barChart"}): data = [x.strip() for x in item.get_text("\n").strip().split("\n")] d...
don't titleize (messes up numbering 1st 2nd 3rd)
py
diff --git a/python/ccxt/base/exchange.py b/python/ccxt/base/exchange.py index <HASH>..<HASH> 100644 --- a/python/ccxt/base/exchange.py +++ b/python/ccxt/base/exchange.py @@ -155,6 +155,7 @@ class Exchange(object): 'fetchClosedOrders': False, 'fetchCurrencies': False, 'fetchDepositAddress': F...
added has['fetchL2OrderBook'] to exchange.py
py
diff --git a/SpiffWorkflow/bpmn/specs/BpmnSpecMixin.py b/SpiffWorkflow/bpmn/specs/BpmnSpecMixin.py index <HASH>..<HASH> 100644 --- a/SpiffWorkflow/bpmn/specs/BpmnSpecMixin.py +++ b/SpiffWorkflow/bpmn/specs/BpmnSpecMixin.py @@ -24,7 +24,7 @@ class SequenceFlow(object): Constructor. """ self.id...
Validate that conditions match choices, and make choices white-space tolerant.
py
diff --git a/tests/test_workflow.py b/tests/test_workflow.py index <HASH>..<HASH> 100644 --- a/tests/test_workflow.py +++ b/tests/test_workflow.py @@ -14,7 +14,7 @@ def load_yaml(filename): content = myfile.read() if "win" in sys.platform: content = content.replace("\\", "/") - ret...
Add space to fix pep8 conformity
py
diff --git a/reana_db/models.py b/reana_db/models.py index <HASH>..<HASH> 100644 --- a/reana_db/models.py +++ b/reana_db/models.py @@ -737,7 +737,7 @@ class ResourceUnit(enum.Enum): units = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] digits = 2 k = 1024 - unit_index = mat...
ci: adopted db models to work with python <I> closes #<I>
py
diff --git a/src/passa/markers.py b/src/passa/markers.py index <HASH>..<HASH> 100644 --- a/src/passa/markers.py +++ b/src/passa/markers.py @@ -37,17 +37,16 @@ def _strip_extra(elements): def get_without_extra(marker): """Build a new marker without the `extra == ...` part. - #TODO: Why is this very deep in th...
TODO should be comment, not docstring
py
diff --git a/src/cattrs/gen.py b/src/cattrs/gen.py index <HASH>..<HASH> 100644 --- a/src/cattrs/gen.py +++ b/src/cattrs/gen.py @@ -36,7 +36,11 @@ class AttributeOverride: omit: bool = False # Omit the field completely. -def override(omit_if_default=None, rename=None, omit: bool = False): +def override( + o...
fix: missing annotations from gen and make_unstructure_dict_fn
py
diff --git a/pyaxiom/netcdf/sensors/timeseries.py b/pyaxiom/netcdf/sensors/timeseries.py index <HASH>..<HASH> 100644 --- a/pyaxiom/netcdf/sensors/timeseries.py +++ b/pyaxiom/netcdf/sensors/timeseries.py @@ -282,7 +282,9 @@ class TimeSeries(object): return var - def add_variable_object(self, varobject): ...
Support a dimension_map for mapping dimensions to new dimensions
py
diff --git a/openstack_dashboard/dashboards/admin/info/panel.py b/openstack_dashboard/dashboards/admin/info/panel.py index <HASH>..<HASH> 100644 --- a/openstack_dashboard/dashboards/admin/info/panel.py +++ b/openstack_dashboard/dashboards/admin/info/panel.py @@ -27,4 +27,4 @@ class Info(horizon.Panel): policy_rule...
Correct the word orchestation to orchestration Heat policy rule key is orchestration. Change-Id: Iad<I>ff<I>d3c5ad6c6c<I>ea<I> Closes-Bug: #<I>
py
diff --git a/testproject/articles/models.py b/testproject/articles/models.py index <HASH>..<HASH> 100644 --- a/testproject/articles/models.py +++ b/testproject/articles/models.py @@ -213,7 +213,7 @@ Test models for the multilingual library. ###### Check if the admin behaviour for categories with incomplete translation...
Updated tests to work with Django trunk. API for User.objects.create_superuser changed a bit: the method recently started to return the created User object. Doctests did not expect that. git-svn-id: <URL>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -39,7 +39,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...
Removed RC version tag from setup.py
py
diff --git a/metaseq/scripts/download_metaseq_example_data.py b/metaseq/scripts/download_metaseq_example_data.py index <HASH>..<HASH> 100755 --- a/metaseq/scripts/download_metaseq_example_data.py +++ b/metaseq/scripts/download_metaseq_example_data.py @@ -320,6 +320,7 @@ def cufflinks_conversion(): if __name__ == "...
perform requirements check at start of data download
py
diff --git a/endpoints_management/__init__.py b/endpoints_management/__init__.py index <HASH>..<HASH> 100644 --- a/endpoints_management/__init__.py +++ b/endpoints_management/__init__.py @@ -16,7 +16,7 @@ from __future__ import absolute_import from . import auth, config, control, gen -__version__ = '1.2.0' +__vers...
Bump subminor version (<I> -> <I>)
py
diff --git a/mbuild/compound.py b/mbuild/compound.py index <HASH>..<HASH> 100755 --- a/mbuild/compound.py +++ b/mbuild/compound.py @@ -716,7 +716,7 @@ class Compound(Part): try: ele = get_by_symbol(atom.name) except KeyError: - ele = Element(1000, atom.name, ato...
Unknown elements labelled as VS in mdtraj
py
diff --git a/pdfconduit/watermark/draw/image.py b/pdfconduit/watermark/draw/image.py index <HASH>..<HASH> 100644 --- a/pdfconduit/watermark/draw/image.py +++ b/pdfconduit/watermark/draw/image.py @@ -40,7 +40,7 @@ def img_opacity(image, opacity, tempdir=None, bw=True): # Save modified image file dst = ...
Removed .name method from return as it was redundant and caused an error
py
diff --git a/osbs/core.py b/osbs/core.py index <HASH>..<HASH> 100755 --- a/osbs/core.py +++ b/osbs/core.py @@ -78,7 +78,10 @@ class Openshift(object): # append token to URL, and set Authorization for httpd's basic auth if self.token is None: self.get_oauth_token() - ...
core,auth: fail when token's retrieved also request token when no auth is specified
py
diff --git a/invenio_records/version.py b/invenio_records/version.py index <HASH>..<HASH> 100644 --- a/invenio_records/version.py +++ b/invenio_records/version.py @@ -13,4 +13,4 @@ and parsed by ``setup.py``. """ -__version__ = '1.5.0a12' +__version__ = '1.5.0b1'
release: <I>b1
py
diff --git a/cumulusci/tasks/bulkdata/mapping_parser.py b/cumulusci/tasks/bulkdata/mapping_parser.py index <HASH>..<HASH> 100644 --- a/cumulusci/tasks/bulkdata/mapping_parser.py +++ b/cumulusci/tasks/bulkdata/mapping_parser.py @@ -51,7 +51,7 @@ class MappingStep(CCIDictModel): "Step in a load or extract process" ...
also remove Optional from MappingStep.fields_; a mapping with no fields is represented using an empty dict
py
diff --git a/wpull/options.py b/wpull/options.py index <HASH>..<HASH> 100644 --- a/wpull/options.py +++ b/wpull/options.py @@ -77,12 +77,12 @@ class AppArgumentParser(argparse.ArgumentParser): action='version', version=wpull.version.__version__ ) - self.add_argument( - ...
Comments out --background which is not yet supported.
py
diff --git a/fabfile.py b/fabfile.py index <HASH>..<HASH> 100644 --- a/fabfile.py +++ b/fabfile.py @@ -158,6 +158,9 @@ def create_cert(name, **kwargs): @task def init_demo(fixture='n'): + def ok(): + print(green(' OK.')) + fixture = fixture == 'y' # setup environment os.chdir('ca') @@ -231,...
add intermediate CA to stunnel cert chain
py
diff --git a/salt/output/highstate.py b/salt/output/highstate.py index <HASH>..<HASH> 100644 --- a/salt/output/highstate.py +++ b/salt/output/highstate.py @@ -125,22 +125,7 @@ def output(data): changes += 'Invalid Changes data: {0}'.format( ret['changes']) ...
Use the nested outputter for changes in highstate display
py
diff --git a/airflow/cli/commands/dag_processor_command.py b/airflow/cli/commands/dag_processor_command.py index <HASH>..<HASH> 100644 --- a/airflow/cli/commands/dag_processor_command.py +++ b/airflow/cli/commands/dag_processor_command.py @@ -70,11 +70,9 @@ def dag_processor(args): ) with ctx:...
Remove redundant register exit signals in `dag-processor` command (#<I>)
py
diff --git a/pyemma/msm/tests/test_its.py b/pyemma/msm/tests/test_its.py index <HASH>..<HASH> 100644 --- a/pyemma/msm/tests/test_its.py +++ b/pyemma/msm/tests/test_its.py @@ -96,7 +96,7 @@ class ImpliedTimescalesTest(unittest.TestCase): t2 = timescales(self.P2)[1] lags = [1,2,3,4,5] its = Imp...
[msm.tests.test_its]: fixed after refactor
py
diff --git a/tests/integration/states/file.py b/tests/integration/states/file.py index <HASH>..<HASH> 100644 --- a/tests/integration/states/file.py +++ b/tests/integration/states/file.py @@ -226,3 +226,21 @@ class FileTest(integration.ModuleCase): self.assertIn('#comment', fp_.read()) result = ret...
test interface test for file.comment
py
diff --git a/addok/helpers/collectors.py b/addok/helpers/collectors.py index <HASH>..<HASH> 100644 --- a/addok/helpers/collectors.py +++ b/addok/helpers/collectors.py @@ -38,6 +38,8 @@ def only_commons(helper): def bucket_with_meaningful(helper): + if not helper.meaningful: + return if len(helper.me...
No need to try to add to bucket with meaningful if their are empty
py
diff --git a/prestans/types.py b/prestans/types.py index <HASH>..<HASH> 100644 --- a/prestans/types.py +++ b/prestans/types.py @@ -136,7 +136,7 @@ class String(DataType): try: if isinstance(value, unicode): - _validated_value = str(value.decode(self._utf_encoding)) + ...
Fixes issue with unicode parsing
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ setup( author_email = "adam@element34.ca", install_requires = ['pytest>2.0.2', 'pytest-marks', - 'pytest-markfiltration>=0.7', + '...
forgot to bump the version of the filter plugin
py
diff --git a/openprovider/tests/test_util.py b/openprovider/tests/test_util.py index <HASH>..<HASH> 100644 --- a/openprovider/tests/test_util.py +++ b/openprovider/tests/test_util.py @@ -30,3 +30,18 @@ class SnakeToCamelTest(unittest.TestCase): def test_camel_case_as_input(self): # This may not be what th...
Add tests for parse_phone_number
py
diff --git a/neutronclient/neutron/v2_0/lb/pool.py b/neutronclient/neutron/v2_0/lb/pool.py index <HASH>..<HASH> 100644 --- a/neutronclient/neutron/v2_0/lb/pool.py +++ b/neutronclient/neutron/v2_0/lb/pool.py @@ -121,11 +121,13 @@ class RetrievePoolStats(neutronV20.ShowCommand): self.log.debug('run(%s)' % parsed...
Add ability to reference pool by name in lb-pool-stats command Change-Id: I5a<I>dac7e<I>a<I>cebadcdcb<I>c<I>afc4a8cc<I> Closes-Bug: #<I>
py
diff --git a/attitude/orientation/pca.py b/attitude/orientation/pca.py index <HASH>..<HASH> 100644 --- a/attitude/orientation/pca.py +++ b/attitude/orientation/pca.py @@ -467,3 +467,25 @@ class PCAOrientation(BaseOrientation): #if spherical: # return e + N.array([self.azimuth+N.pi/2,0]) re...
added skeletal to_json method
py
diff --git a/h2o-hadoop/tests/python/pyunit_gbm_on_hive.py b/h2o-hadoop/tests/python/pyunit_gbm_on_hive.py index <HASH>..<HASH> 100644 --- a/h2o-hadoop/tests/python/pyunit_gbm_on_hive.py +++ b/h2o-hadoop/tests/python/pyunit_gbm_on_hive.py @@ -34,7 +34,8 @@ def gbm_on_hive(): airlines_dataset = h2o.import_sql_selec...
[HOTFIX] Fix import_sql_select API call in Hive test
py
diff --git a/bakery/views.py b/bakery/views.py index <HASH>..<HASH> 100644 --- a/bakery/views.py +++ b/bakery/views.py @@ -41,7 +41,7 @@ class BuildableTemplateView(TemplateView): dirname = os.path.join(settings.BUILD_DIR, dirname) os.path.exists(dirname) or os.makedirs(dirname) # Wri...
What if we open with 'wb'
py
diff --git a/paramz/parameterized.py b/paramz/parameterized.py index <HASH>..<HASH> 100644 --- a/paramz/parameterized.py +++ b/paramz/parameterized.py @@ -289,9 +289,9 @@ class Parameterized(Parameterizable): """ if not isinstance(regexp, _pattern_type): regexp = compile(regexp) found_params ...
[regexp] matching setting getting and concatenation
py
diff --git a/insane.py b/insane.py index <HASH>..<HASH> 100755 --- a/insane.py +++ b/insane.py @@ -1,5 +1,6 @@ #!/usr/bin/env python +import os import sys import math import random @@ -1535,7 +1536,7 @@ def main(argv=None): # Set the XY coordinates # To randomize the lipids we add a random num...
Allows to choose the random seed. Having a different random seed for each run is the expected behaviour in most cases. Yet, it prevents reproducible outputs. This commit allows to set the random seed with the INSANE_SEED environment variable. If the environment variable is not set, then the behaviour is the same as b...
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages setup( name="secure-smtpd", - version="1.1.9", + version="2.0.0", description="Adds support for SSL, AUTH, and other goodies, to Petri Lehtinen's SMTP...
bumped version # to <I>, since we've introduced the run command.
py
diff --git a/ibis/backends/sqlite/tests/test_client.py b/ibis/backends/sqlite/tests/test_client.py index <HASH>..<HASH> 100644 --- a/ibis/backends/sqlite/tests/test_client.py +++ b/ibis/backends/sqlite/tests/test_client.py @@ -107,3 +107,24 @@ def test_verbose_log_queries(con): expected += 'FROM base.functional_al...
test: add test for DatabaseTable equality semantics
py
diff --git a/tofu/spectro/_plot.py b/tofu/spectro/_plot.py index <HASH>..<HASH> 100644 --- a/tofu/spectro/_plot.py +++ b/tofu/spectro/_plot.py @@ -334,15 +334,15 @@ def plot_fit1d( else: titi = tit - fig = fig = plt.figure(figsize=fs) + fig = plt.figure(figsize=fs) gs = gr...
[#<I>] Think I found the bug (fig = fig = ...)
py
diff --git a/wooey/backend/utils.py b/wooey/backend/utils.py index <HASH>..<HASH> 100644 --- a/wooey/backend/utils.py +++ b/wooey/backend/utils.py @@ -188,10 +188,13 @@ def add_wooey_script(script_version=None, script_path=None, group=None): current_storage = get_storage(local=not wooey_settings.WOOEY_EPHEME...
Additional check for existing filenames for script updating
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -31,6 +31,7 @@ sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) import distutilazy import distutilazy.clean +import distutilazy.test CLASSIFIERS = [ "Development Status :: 4 - Beta", @@ -60,7 +61,11 @...
Use the new test runner class as the test command for setup.py So now runnint setup.py test runs unit tests for distutilazy.
py
diff --git a/tensorflow_probability/python/experimental/nn/affine_layers.py b/tensorflow_probability/python/experimental/nn/affine_layers.py index <HASH>..<HASH> 100644 --- a/tensorflow_probability/python/experimental/nn/affine_layers.py +++ b/tensorflow_probability/python/experimental/nn/affine_layers.py @@ -79,7 +79,...
changed `tf.cast` to `prefer_static.cast` PiperOrigin-RevId: <I>
py
diff --git a/schedule/templatetags/scheduletags.py b/schedule/templatetags/scheduletags.py index <HASH>..<HASH> 100644 --- a/schedule/templatetags/scheduletags.py +++ b/schedule/templatetags/scheduletags.py @@ -185,7 +185,7 @@ def querystring_for_date(date, num=6): query_string = '?' qs_parts = ['year=%d', 'm...
escape the '&' used to join the query string. Now passed html validation.
py
diff --git a/jax/lax/lax.py b/jax/lax/lax.py index <HASH>..<HASH> 100644 --- a/jax/lax/lax.py +++ b/jax/lax/lax.py @@ -785,6 +785,9 @@ def scatter_max(operand, scatter_indices, updates, dimension_numbers): update_consts=consts, dimension_numbers=dimension_numbers, updates_shape=updates.shape) +# Define ...
Ensure lax.scatter cache hits in op-by-op mode
py
diff --git a/uproot/rootio.py b/uproot/rootio.py index <HASH>..<HASH> 100644 --- a/uproot/rootio.py +++ b/uproot/rootio.py @@ -362,6 +362,9 @@ class ROOTDirectory(object): else: raise _KeyError("not found: {0} with cycle {1}\n in file: {2}".format(repr(name), cycle, self._context.sourcepat...
Add close method to ROOTDictionary
py
diff --git a/source/rafcon/core/execution/execution_history.py b/source/rafcon/core/execution/execution_history.py index <HASH>..<HASH> 100644 --- a/source/rafcon/core/execution/execution_history.py +++ b/source/rafcon/core/execution/execution_history.py @@ -269,8 +269,8 @@ class StateMachineStartItem(HistoryItem): ...
less confusinf state_type and name for StartItem
py
diff --git a/schema/test_queries.py b/schema/test_queries.py index <HASH>..<HASH> 100644 --- a/schema/test_queries.py +++ b/schema/test_queries.py @@ -268,6 +268,7 @@ def test_write_output(rethink): assert output == content def test_verify_output_content(rethink): + sleep(2) job = queries.RBJ.run(connec...
some previous tests were failing, added sleep time
py
diff --git a/shinken/objects/config.py b/shinken/objects/config.py index <HASH>..<HASH> 100644 --- a/shinken/objects/config.py +++ b/shinken/objects/config.py @@ -97,7 +97,7 @@ class Config(Item): 'lock_file': StringProp(default='/usr/local/shinken/var/arbiterd.pid'), 'retain_state_info...
Fix : (reported by Denis GERMAIN) set by default retention update inverval to <I> minutes.
py
diff --git a/safe/gui/widgets/test/test_dock_regressions.py b/safe/gui/widgets/test/test_dock_regressions.py index <HASH>..<HASH> 100644 --- a/safe/gui/widgets/test/test_dock_regressions.py +++ b/safe/gui/widgets/test/test_dock_regressions.py @@ -7,19 +7,18 @@ from qgis.core import QgsMapLayerRegistry from PyQt4 imp...
Make test works on test_dock_regressions.
py
diff --git a/protowhat/Feedback.py b/protowhat/Feedback.py index <HASH>..<HASH> 100644 --- a/protowhat/Feedback.py +++ b/protowhat/Feedback.py @@ -46,18 +46,19 @@ class Feedback: if not self.highlighting_disabled: position = self.get_highlight_position(self.highlight) - # TODO: disabl...
Don't try to prevent highlighting everything It should be disabled where it's caused (and the message should not refer to a highlight)
py
diff --git a/mwxml/map/map.py b/mwxml/map/map.py index <HASH>..<HASH> 100644 --- a/mwxml/map/map.py +++ b/mwxml/map/map.py @@ -1,8 +1,8 @@ import logging +import mwtypes.files import para -from .. import files from ..iteration import Dump logger = logging.getLogger(__name__) @@ -40,10 +40,10 @@ def map(proces...
Finishes mwtypes 'files' transition in the map()
py
diff --git a/src/functions.py b/src/functions.py index <HASH>..<HASH> 100644 --- a/src/functions.py +++ b/src/functions.py @@ -1,3 +1,4 @@ +import sys import igraph as _ig from . import _c_louvain from ._c_louvain import ALL_COMMS @@ -8,12 +9,8 @@ from ._c_louvain import RAND_NEIGH_COMM from ._c_louvain import MOVE...
Because of circular import needed to change order back.
py
diff --git a/openquake/risklib/riskinput.py b/openquake/risklib/riskinput.py index <HASH>..<HASH> 100644 --- a/openquake/risklib/riskinput.py +++ b/openquake/risklib/riskinput.py @@ -264,8 +264,6 @@ class RiskModel(collections.Mapping): if hasattr(riskinput, 'rup_slice'): ...
Removed two .flush in the workers
py
diff --git a/salt/crypt.py b/salt/crypt.py index <HASH>..<HASH> 100644 --- a/salt/crypt.py +++ b/salt/crypt.py @@ -85,6 +85,7 @@ def gen_keys(keydir, keyname, keysize, user=None): priv = '{0}.pem'.format(base) pub = '{0}.pub'.format(base) + salt.utils.reinit_crypto() gen = RSA.generate(bits=keysize,...
Reinit crypto before calling RSA.generate when generating keys. Fixes #<I> In order for the `-P` argument to work with salt-cloud, we need to make sure we're re-initing crypto before calling RSA.generate. This is similar to the fixes in #<I>.
py
diff --git a/src/python/pants/backend/python/goals/repl.py b/src/python/pants/backend/python/goals/repl.py index <HASH>..<HASH> 100644 --- a/src/python/pants/backend/python/goals/repl.py +++ b/src/python/pants/backend/python/goals/repl.py @@ -52,8 +52,9 @@ def validate_compatible_resolve(root_targets: Iterable[Target],...
Improve REPL multiple resolves error to mention `[python].default_resolve` (#<I>) `./pants hep` will not have eagerly applied the default for the resolve field, so this is necessary to add. Note that it's wrong to use `or .resolve == null` for any resolve but the default. [ci skip-rust]
py
diff --git a/treenode/models.py b/treenode/models.py index <HASH>..<HASH> 100644 --- a/treenode/models.py +++ b/treenode/models.py @@ -466,15 +466,17 @@ class TreeNodeModel(models.Model): # update db data for obj_key in objs_dict: - obj_pk = int(obj_key) - obj_data = objs_dict[...
Fixed bug on delete node with children
py
diff --git a/pyemma/_base/logging.py b/pyemma/_base/logging.py index <HASH>..<HASH> 100644 --- a/pyemma/_base/logging.py +++ b/pyemma/_base/logging.py @@ -30,9 +30,7 @@ def _clean_dead_refs(): _refs = [r for r in _refs if r() is not None] def instance_name(self, id): - i = self.__module__.rfind(".") - ...
[log] do not strip package path
py
diff --git a/chess/engine.py b/chess/engine.py index <HASH>..<HASH> 100644 --- a/chess/engine.py +++ b/chess/engine.py @@ -569,7 +569,8 @@ class MockTransport: assert self.expectations, "unexpected: {}".format(line) expectation, responses = self.expectations.popleft() ...
Avoid MockTransport responding with empty lines
py
diff --git a/i3pystatus/cpu_usage.py b/i3pystatus/cpu_usage.py index <HASH>..<HASH> 100644 --- a/i3pystatus/cpu_usage.py +++ b/i3pystatus/cpu_usage.py @@ -29,6 +29,7 @@ class CpuUsage(IntervalModule): format = "{usage:02}%" format_all = "{core}:{usage:02}%" exclude_average = False + interval = 1 ...
readded default intervall 1 but in the right way this time
py
diff --git a/colin/core/target.py b/colin/core/target.py index <HASH>..<HASH> 100644 --- a/colin/core/target.py +++ b/colin/core/target.py @@ -407,10 +407,11 @@ class OstreeTarget(AbstractImageTarget): if wd: kwargs["cwd"] = wd try: - subprocess.check_call(cmd, **kwargs) + ...
put output of atomic [un,]mount to logger, not colin's stdout Fixes #<I>
py
diff --git a/avatar/templatetags/avatar_tags.py b/avatar/templatetags/avatar_tags.py index <HASH>..<HASH> 100644 --- a/avatar/templatetags/avatar_tags.py +++ b/avatar/templatetags/avatar_tags.py @@ -1,10 +1,10 @@ import urllib import urlparse +import hashlib from django import template from django.template.loader...
Replace Django hashcompat with hashlib This fixes a DeprecationWarning in Django <I>, which recommends no longer using django.utils.hashcompat.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,11 @@ -import ez_setup -ez_setup.use_setuptools() -from setuptools import setup +try: + from setuptools import setup +except ImportError: + from distutils.core import setup + setup( name = 'django-audit...
removed reliance on ez_setup and setuptools
py
diff --git a/treetime/treeanc.py b/treetime/treeanc.py index <HASH>..<HASH> 100644 --- a/treetime/treeanc.py +++ b/treetime/treeanc.py @@ -93,6 +93,8 @@ class TreeAnc(object): return for node in self._tree.find_clades(): + if hasattr(node, "sequence"): + node.__delattr_...
wipe sequences off tree on instantiation
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='pyarlo', packages=['pyarlo'], - version='0.0.5', + version='0.0.6', description='Python Arlo is a library written in Python 2.7/3x ' + ...
Bump dev version <I>
py
diff --git a/src/python/grpcio_tests/tests_aio/unit/compatibility_test.py b/src/python/grpcio_tests/tests_aio/unit/compatibility_test.py index <HASH>..<HASH> 100644 --- a/src/python/grpcio_tests/tests_aio/unit/compatibility_test.py +++ b/src/python/grpcio_tests/tests_aio/unit/compatibility_test.py @@ -168,7 +168,7 @@ c...
Add port needs a FQN
py
diff --git a/hedgehog/protocol/errors.py b/hedgehog/protocol/errors.py index <HASH>..<HASH> 100644 --- a/hedgehog/protocol/errors.py +++ b/hedgehog/protocol/errors.py @@ -6,7 +6,6 @@ Every error corresponds to one acknowledge code from ack.proto; the `OK` code na from typing import Dict, Type -from .messages impor...
add factory method for creating UnsupportedCommandErrors from message types (reverted from commit <I>d8ba8e<I>a<I>d<I>a6aafcb<I>c<I>)
py
diff --git a/stacker/commands/stacker/base.py b/stacker/commands/stacker/base.py index <HASH>..<HASH> 100644 --- a/stacker/commands/stacker/base.py +++ b/stacker/commands/stacker/base.py @@ -147,9 +147,9 @@ class BaseCommand(object): metavar="ENV=VALUE", type=key_value_arg, ...
re-indent help to match the surrounding code
py
diff --git a/dolt/__init__.py b/dolt/__init__.py index <HASH>..<HASH> 100644 --- a/dolt/__init__.py +++ b/dolt/__init__.py @@ -33,7 +33,7 @@ class Dolt(object): def __getattr__(self, name): if name in self._supported_methods: self._method = name - else: + elif not name.endswith(...
Fix for iPython Apparently __getattr__() is called twice for each method when using iPython. One of calls is done with the full name plus parenthesis, so its easy enough to catch, but still odd.
py
diff --git a/tftpy/__init__.py b/tftpy/__init__.py index <HASH>..<HASH> 100644 --- a/tftpy/__init__.py +++ b/tftpy/__init__.py @@ -11,14 +11,15 @@ directly. The TftpClient and TftpServer classes can be reached through it. import sys # Make sure that this is at least Python 2.3 -verlist = sys.version_info -if not (v...
Improved version check so it is much cleaner, fix relative import issue with Python <I> not working
py
diff --git a/src/distdiff.py b/src/distdiff.py index <HASH>..<HASH> 100644 --- a/src/distdiff.py +++ b/src/distdiff.py @@ -625,13 +625,16 @@ def distdiff_optgroup(parser): from optparse import OptionGroup from multiprocessing import cpu_count + # for the --processes default + cpus = cpu_count() + ...
default to just the number of CPUs, rather than CPUs<I>
py
diff --git a/perceval/backends/core/git.py b/perceval/backends/core/git.py index <HASH>..<HASH> 100644 --- a/perceval/backends/core/git.py +++ b/perceval/backends/core/git.py @@ -59,7 +59,7 @@ class Git(Backend): :raises RepositoryError: raised when there was an error cloning or updating the repository. ...
[git] Replace 'origin' by FETCH_HEAD on 'git reset --hard' When repositories are reset to the current status on upstream, some of them cannot deal with 'origin' reference because it is ambiguous. Replacing it by FETCH_HEAD works on those repositories with defined branches on the origin.
py
diff --git a/napalm/iosxr.py b/napalm/iosxr.py index <HASH>..<HASH> 100644 --- a/napalm/iosxr.py +++ b/napalm/iosxr.py @@ -23,11 +23,12 @@ from exceptions import MergeConfigException, ReplaceConfigException class IOSXRDriver(NetworkDriver): - def __init__(self, hostname, username, password): + def __init__(s...
added iosxr timeout
py
diff --git a/hijack_admin/tests/test_app/models.py b/hijack_admin/tests/test_app/models.py index <HASH>..<HASH> 100644 --- a/hijack_admin/tests/test_app/models.py +++ b/hijack_admin/tests/test_app/models.py @@ -7,4 +7,4 @@ class BasicModel(models.Model): class RelatedModel(models.Model): - user = models.Foreign...
added argument: 'on_delete' for test model
py
diff --git a/pycfmodel/model/resources/properties/policy_document.py b/pycfmodel/model/resources/properties/policy_document.py index <HASH>..<HASH> 100644 --- a/pycfmodel/model/resources/properties/policy_document.py +++ b/pycfmodel/model/resources/properties/policy_document.py @@ -55,7 +55,7 @@ class PolicyDocument(ob...
removed case sensitivity, fixed data overwrite, added missing comma
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -68,7 +68,7 @@ setup( "asttokens==2.0.4", "pycryptodome>=3.5.1,<4", "semantic-version==2.8.5", - "cached-property==1.5.2", + "cached-property==1.5.2 ; python_version<'3.8'", ], ...
import cached-property conditionally
py
diff --git a/grapheneexchange/grapheneexchange.py b/grapheneexchange/grapheneexchange.py index <HASH>..<HASH> 100644 --- a/grapheneexchange/grapheneexchange.py +++ b/grapheneexchange/grapheneexchange.py @@ -78,6 +78,8 @@ class GrapheneExchange(GrapheneClient) : * market pairs are denoted as 'quote'_'base',...
[GrapheneExchange] Fix Buy price invert
py
diff --git a/pyradio/radio.py b/pyradio/radio.py index <HASH>..<HASH> 100644 --- a/pyradio/radio.py +++ b/pyradio/radio.py @@ -259,7 +259,7 @@ class PyRadio(object): ret_string = self.player.save_volume() if ret_string: self.log.write(ret_string) - self.player.t...
fixing "volume saved" (with lock)
py
diff --git a/meshio/_mesh.py b/meshio/_mesh.py index <HASH>..<HASH> 100644 --- a/meshio/_mesh.py +++ b/meshio/_mesh.py @@ -24,10 +24,11 @@ class Mesh: return def __repr__(self): - lines = [] - lines.append("<meshio mesh object>") - lines.append(" Number of points: {}".format(len(se...
Avoid append and construct list elements inplace
py
diff --git a/tcex/tcex_ti/tcex_ti.py b/tcex/tcex_ti/tcex_ti.py index <HASH>..<HASH> 100644 --- a/tcex/tcex_ti/tcex_ti.py +++ b/tcex/tcex_ti/tcex_ti.py @@ -172,9 +172,9 @@ class TcExTi(object): else: try: if upper_indicator_type in self._custom_indicator_classes.keys(): - ...
making it so that cusom indicators unique_id are url safe
py
diff --git a/pynetgear/router.py b/pynetgear/router.py index <HASH>..<HASH> 100644 --- a/pynetgear/router.py +++ b/pynetgear/router.py @@ -959,9 +959,9 @@ class Netgear(object): _LOGGER.debug("Could not parse response for speed test result") return None - if node.text == "...
Fix response codes speed test (#<I>)
py
diff --git a/system_maintenance/models.py b/system_maintenance/models.py index <HASH>..<HASH> 100644 --- a/system_maintenance/models.py +++ b/system_maintenance/models.py @@ -46,9 +46,7 @@ class DocumentationRecord(models.Model): documentation = MarkupField( blank=True, - default_markup_type='Mar...
Remove MarkupField args already defined by markupfield helper
py
diff --git a/filetracker/parallel_test.py b/filetracker/parallel_test.py index <HASH>..<HASH> 100644 --- a/filetracker/parallel_test.py +++ b/filetracker/parallel_test.py @@ -43,6 +43,11 @@ class ParallelTest(unittest.TestCase): client = Client( local_store=None, r...
Fixed parallel_test after client update (#<I>)
py
diff --git a/tests/test_compat.py b/tests/test_compat.py index <HASH>..<HASH> 100644 --- a/tests/test_compat.py +++ b/tests/test_compat.py @@ -260,6 +260,8 @@ def test_weakmethod_callback_when_method_dead(subclass): gc.collect() assert calls == [r] +@pytest.mark.xfail(hasattr(sys, 'pypy_version_info'), + ...
xfail weakmethod tests on pypy
py
diff --git a/sumo/plotting/__init__.py b/sumo/plotting/__init__.py index <HASH>..<HASH> 100644 --- a/sumo/plotting/__init__.py +++ b/sumo/plotting/__init__.py @@ -219,9 +219,9 @@ def draw_themed_line(y, ax, orientation='horizontal'): linewidth=rcParams['ytick.major.width']) if ori...
change 0 to y in the function of draw_themed_line
py
diff --git a/sos/plugins/grafana.py b/sos/plugins/grafana.py index <HASH>..<HASH> 100644 --- a/sos/plugins/grafana.py +++ b/sos/plugins/grafana.py @@ -8,16 +8,16 @@ # # See the LICENSE file in the source distribution for further information. -from sos.plugins import Plugin, RedHatPlugin +from sos.plugins import Plu...
[grafana] Updates Grafana plugin to work on Debian and Ubuntu. Closes: #<I> Resolves: #<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages setup(name='instana', - version='0.5.0', + version='0.5.1', download_url='https://github.com/instana/python-sensor', url='https://www.instana...
Bump package version to <I>
py
diff --git a/harvestingkit/elsevier_package.py b/harvestingkit/elsevier_package.py index <HASH>..<HASH> 100644 --- a/harvestingkit/elsevier_package.py +++ b/harvestingkit/elsevier_package.py @@ -639,7 +639,7 @@ class ElsevierPackage(object): return start_date.strftime("%Y-%m-%d") impor...
elsevier-package: parse dates with month-range properly * Transforms dates with month ranges (April-May) such that dateutil.parser.parse can handle it.
py
diff --git a/wpull/document.py b/wpull/document.py index <HASH>..<HASH> 100644 --- a/wpull/document.py +++ b/wpull/document.py @@ -614,7 +614,6 @@ def detect_response_encoding(response, is_html=False, peek=1048576): def is_gzip(data): '''Return whether the data is likely to be gzip.''' - # FIXME: gzip doesn'...
document.py: Removes incorrect fixme comment. It's deflate that does not have the magic bytes. [ci skip]
py
diff --git a/skyfield/almanac.py b/skyfield/almanac.py index <HASH>..<HASH> 100644 --- a/skyfield/almanac.py +++ b/skyfield/almanac.py @@ -294,10 +294,3 @@ def risings_and_settings(ephemeris, target, topos, is_body_up_at.rough_period = 0.5 # twice a day return is_body_up_at - -def _distance_to(center, targ...
Remove unused private routine in almanac.py
py
diff --git a/src/fileLoaders.py b/src/fileLoaders.py index <HASH>..<HASH> 100644 --- a/src/fileLoaders.py +++ b/src/fileLoaders.py @@ -44,9 +44,8 @@ class BaseLoader: def getLicenceURL(self): for f in self.fetchFiles(): - if 'name' in f: - if f['name'].lower() == 'license' or f...
Removing 'name' in file check
py
diff --git a/tests/graph.py b/tests/graph.py index <HASH>..<HASH> 100644 --- a/tests/graph.py +++ b/tests/graph.py @@ -1,4 +1,6 @@ +import os import unittest + from blur.markov import graph, nodes @@ -283,8 +285,14 @@ class TestGraph(unittest.TestCase): # merge_same_words = False # test_source_t...
Allow tests to be run from within tests dir or root dir
py
diff --git a/pliers/transformers/api/google.py b/pliers/transformers/api/google.py index <HASH>..<HASH> 100644 --- a/pliers/transformers/api/google.py +++ b/pliers/transformers/api/google.py @@ -53,7 +53,7 @@ class GoogleAPITransformer(Transformer, EnvironmentKeyMixin): class GoogleVisionAPITransformer(BatchTransforme...
fixing google batch size to one for now
py
diff --git a/mesh_tensorflow/ops.py b/mesh_tensorflow/ops.py index <HASH>..<HASH> 100644 --- a/mesh_tensorflow/ops.py +++ b/mesh_tensorflow/ops.py @@ -662,7 +662,7 @@ class Lowering(object): log_variable_sizes( graph.all_variables, "All Variables", verbose=False, mesh_to_impl=self.mesh_to_impl) -...
Suppress additional logging by default. PiperOrigin-RevId: <I>
py
diff --git a/usb1.py b/usb1.py index <HASH>..<HASH> 100644 --- a/usb1.py +++ b/usb1.py @@ -650,7 +650,8 @@ class USBPoller(object): event_flags have the same meaning as in poll API (POLLIN & POLLOUT) - unregister(fd) - poll(timeout) - timeout being a float in seconds, or None if th...
Support negative poll timeouts. Just as select.poll API.
py
diff --git a/pyvirtualdisplay/abstractdisplay.py b/pyvirtualdisplay/abstractdisplay.py index <HASH>..<HASH> 100644 --- a/pyvirtualdisplay/abstractdisplay.py +++ b/pyvirtualdisplay/abstractdisplay.py @@ -149,13 +149,20 @@ class AbstractDisplay(object): if self.has_displayfd: self._start1() ...
raise exception after <I> retries
py
diff --git a/tests/jenkins.py b/tests/jenkins.py index <HASH>..<HASH> 100644 --- a/tests/jenkins.py +++ b/tests/jenkins.py @@ -421,7 +421,7 @@ def run(opts): sys.exit(retcode) remotes_info = json.loads(stdout.strip()) - if remotes_info is None or opts.salt_url not in remotes_info[vm_name]...
The returned value can also be `None`
py
diff --git a/raiden/transfer/mediated_transfer/mediator.py b/raiden/transfer/mediated_transfer/mediator.py index <HASH>..<HASH> 100644 --- a/raiden/transfer/mediated_transfer/mediator.py +++ b/raiden/transfer/mediated_transfer/mediator.py @@ -116,7 +116,7 @@ def is_safe_to_wait( def is_send_transfer_almost_equal( ...
Relax sanity check for mediators Checking the transferred amount would make a lot of sense, but this is hard to do precisely without larger changes to the codebase. With the uncertainty about how we want to deal with refunds and backtracking in the long term, this check is skipped for now.
py
diff --git a/tests/explainers/test_tree.py b/tests/explainers/test_tree.py index <HASH>..<HASH> 100644 --- a/tests/explainers/test_tree.py +++ b/tests/explainers/test_tree.py @@ -238,10 +238,10 @@ def test_sum_match_extra_trees(): X_train,X_test,Y_train,Y_test = train_test_split(*shap.datasets.adult(), test_size=0...
Update test_tree.py
py