diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/geotweet/twitter/steps.py b/geotweet/twitter/steps.py index <HASH>..<HASH> 100644 --- a/geotweet/twitter/steps.py +++ b/geotweet/twitter/steps.py @@ -1,3 +1,4 @@ +import os import json from logging.handlers import TimedRotatingFileHandler @@ -6,6 +7,10 @@ logger = logging.getLogger(__name__) def g...
create log directory if it doesn't exist
py
diff --git a/salt/returners/couchdb_return.py b/salt/returners/couchdb_return.py index <HASH>..<HASH> 100644 --- a/salt/returners/couchdb_return.py +++ b/salt/returners/couchdb_return.py @@ -112,6 +112,7 @@ def get_jids(): ''' List all the jobs that we have.. ''' + options = _get_options() _respo...
Basic working get_jids
py
diff --git a/tornado/test/log_test.py b/tornado/test/log_test.py index <HASH>..<HASH> 100644 --- a/tornado/test/log_test.py +++ b/tornado/test/log_test.py @@ -95,7 +95,8 @@ class LogFormatterTest(unittest.TestCase): self.assertEqual(self.get_output(), utf8(repr(b"\xe9"))) def test_utf8_logging(self)...
Add another ignore_bytes_warning call to log_test. This fixes a failure apparently introduced by changes to warning logic in python <I>.
py
diff --git a/dftimewolf/lib/state.py b/dftimewolf/lib/state.py index <HASH>..<HASH> 100644 --- a/dftimewolf/lib/state.py +++ b/dftimewolf/lib/state.py @@ -33,7 +33,7 @@ class DFTimewolfState(object): """The main State class. Attributes: - command_line_options (dict[str, str]): Command line options passed to ...
Update state.py (#<I>) command_line_options is actually of type dict[Str, Any], as the values can be a mix of str, bools and even dicts.
py
diff --git a/pysc2/tests/replay_obs_test.py b/pysc2/tests/replay_obs_test.py index <HASH>..<HASH> 100755 --- a/pysc2/tests/replay_obs_test.py +++ b/pysc2/tests/replay_obs_test.py @@ -89,9 +89,9 @@ class Config(object): # coords should be computed at run-time, maybe with a trigger type system in # case build t...
Fix the test to work with a newer build. PiperOrigin-RevId: <I>
py
diff --git a/GPy/examples/dimensionality_reduction.py b/GPy/examples/dimensionality_reduction.py index <HASH>..<HASH> 100644 --- a/GPy/examples/dimensionality_reduction.py +++ b/GPy/examples/dimensionality_reduction.py @@ -207,7 +207,7 @@ def bgplvm_simulation(burnin='scg', plot_sim=False, # cstr = 'X_variance' #...
rewritten dim_reduction demo to match new style of getters and setters
py
diff --git a/src/sos/section_analyzer.py b/src/sos/section_analyzer.py index <HASH>..<HASH> 100644 --- a/src/sos/section_analyzer.py +++ b/src/sos/section_analyzer.py @@ -207,7 +207,7 @@ def get_step_input(section): # look for input statement. input_idx = find_statement(section, 'input') if input_idx is ...
Re-implement the detection of step input and output
py
diff --git a/ansible/modules/hashivault/hashivault_delete.py b/ansible/modules/hashivault/hashivault_delete.py index <HASH>..<HASH> 100755 --- a/ansible/modules/hashivault/hashivault_delete.py +++ b/ansible/modules/hashivault/hashivault_delete.py @@ -63,6 +63,7 @@ EXAMPLES = ''' def main(): argspec = hashivault_a...
allow deletes from kv v2
py
diff --git a/lhc/tool.py b/lhc/tool.py index <HASH>..<HASH> 100644 --- a/lhc/tool.py +++ b/lhc/tool.py @@ -1,3 +1,5 @@ +import numpy as np + from collections import deque from itertools import repeat @@ -35,3 +37,7 @@ def combinations_with_replacement(iterable, r): yield tuple(top) else: ...
Added geometric mean to tool.py This is a step to removing all dependencies on scipy (where possible)
py
diff --git a/wes_client/util.py b/wes_client/util.py index <HASH>..<HASH> 100644 --- a/wes_client/util.py +++ b/wes_client/util.py @@ -82,11 +82,11 @@ def modify_jsonyaml_paths(jsonyaml_file): "location": {"@type": "@id"}, "path": {"@type": "@id"} }) - input_dict, _ = loader.resolve_ref(jsonya...
When loading input document, use checklinks=False So it won't fail on URI schemes that schema salad doesn't know about like keep:, s3:, etc
py
diff --git a/gandi/cli/modules/paas.py b/gandi/cli/modules/paas.py index <HASH>..<HASH> 100644 --- a/gandi/cli/modules/paas.py +++ b/gandi/cli/modules/paas.py @@ -47,7 +47,7 @@ class Paas(GandiModule): opers = [] for item in resources: oper = cls.call('paas.delete', cls.usable_id(item)) -...
Fixes multi paas delete
py
diff --git a/sos/plugins/ceph.py b/sos/plugins/ceph.py index <HASH>..<HASH> 100644 --- a/sos/plugins/ceph.py +++ b/sos/plugins/ceph.py @@ -67,7 +67,9 @@ class Ceph(Plugin, RedHatPlugin, UbuntuPlugin): "ceph pg dump", "ceph health detail --format json-pretty", "ceph osd crush show-...
[ceph] Add additional commands to capture data Add addtional commands to ceph plugin. Resolves: #<I>
py
diff --git a/openquake/commonlib/oqvalidation.py b/openquake/commonlib/oqvalidation.py index <HASH>..<HASH> 100644 --- a/openquake/commonlib/oqvalidation.py +++ b/openquake/commonlib/oqvalidation.py @@ -789,8 +789,7 @@ class OqParam(valid.ParamSet): and the user must have the permission to write on it. ...
Change export dir default behavior to current working dir
py
diff --git a/webwhatsapi/objects/whatsapp_object.py b/webwhatsapi/objects/whatsapp_object.py index <HASH>..<HASH> 100755 --- a/webwhatsapi/objects/whatsapp_object.py +++ b/webwhatsapi/objects/whatsapp_object.py @@ -71,7 +71,10 @@ class WhatsappObjectWithId(WhatsappObject): """ super(WhatsappObjectWith...
Alter get id in whatsapp object
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -68,7 +68,8 @@ setup(name="grimoire-elk", 'Programming Language :: Python :: 3.5'], keywords="development repositories analytics", packages=['grimoire_elk', 'grimoire_elk.enriched', 'grimoire_elk.raw']...
[setup] Fix setup.py to install the files with the json mappings for the studies
py
diff --git a/usb/legacy.py b/usb/legacy.py index <HASH>..<HASH> 100644 --- a/usb/legacy.py +++ b/usb/legacy.py @@ -333,12 +333,14 @@ class Device(object): class Bus(object): r"""Bus object.""" - def __init__(self): + def __init__(self, devices): self.dirname = '' self.location = 0 - ...
Group devices according to their bus in legacy module. Now that we have the *bus* property in the Device class, we can group devices according to their bus, just like <I> version.
py
diff --git a/src/anyconfig/processors.py b/src/anyconfig/processors.py index <HASH>..<HASH> 100644 --- a/src/anyconfig/processors.py +++ b/src/anyconfig/processors.py @@ -226,7 +226,7 @@ def find(obj, prs, forced_type=None, cls=anyconfig.models.processor.Processor): class Processors: """An abstract class of which...
fix: initialize a member with same types of members of children classes
py
diff --git a/py/testdir_hosts/test_rf_311M_rows_fvec.py b/py/testdir_hosts/test_rf_311M_rows_fvec.py index <HASH>..<HASH> 100644 --- a/py/testdir_hosts/test_rf_311M_rows_fvec.py +++ b/py/testdir_hosts/test_rf_311M_rows_fvec.py @@ -32,8 +32,14 @@ class Basic(unittest.TestCase): print "\n" + csvFilename ...
Turn off variable importance for huge test. We'll see if it gets shorter.
py
diff --git a/mautrix/__init__.py b/mautrix/__init__.py index <HASH>..<HASH> 100644 --- a/mautrix/__init__.py +++ b/mautrix/__init__.py @@ -1,3 +1,3 @@ -__version__ = "0.4.0.dev65" +__version__ = "0.4.0.dev66" __author__ = "Tulir Asokan <tulir@maunium.net>" __all__ = ["api", "appservice", "bridge", "client", "errors",...
New pypi dev build
py
diff --git a/examples/like_users.py b/examples/like_users.py index <HASH>..<HASH> 100644 --- a/examples/like_users.py +++ b/examples/like_users.py @@ -15,6 +15,7 @@ from instabot import Bot # noqa: E402 parser = argparse.ArgumentParser(add_help=True) parser.add_argument("-u", type=str, help="username") parser.add_a...
limit arg added in like_users.py example
py
diff --git a/depot/apt.py b/depot/apt.py index <HASH>..<HASH> 100644 --- a/depot/apt.py +++ b/depot/apt.py @@ -53,13 +53,8 @@ class AptPackage(AptMeta): @property def pool_path(self): - if not hasattr(self, '_pool_path'): - filename = self.name or self['Filename'] - first_letter...
Simplify pool path now that I know how it works.
py
diff --git a/venvctrl/cli/relocate.py b/venvctrl/cli/relocate.py index <HASH>..<HASH> 100644 --- a/venvctrl/cli/relocate.py +++ b/venvctrl/cli/relocate.py @@ -25,6 +25,7 @@ def relocate(source, destination, move=False): return None venv.move(destination) + return None def main():
Fix cli module for new lint detection Since the last commit (<I>), some of the test dependencies have updated. This commit specifically addresses updates in PyLint which result in more lint being detected in the project that previous test runs.
py
diff --git a/glue/segmentdb/segmentdb_utils.py b/glue/segmentdb/segmentdb_utils.py index <HASH>..<HASH> 100644 --- a/glue/segmentdb/segmentdb_utils.py +++ b/glue/segmentdb/segmentdb_utils.py @@ -131,7 +131,7 @@ def build_segment_list_one(engine, gps_start_time, gps_end_time, ifo, segment_na sum_result |= glue....
added missig space to fix pr<I>
py
diff --git a/safe/gui/tools/test/test_wizard_dialog.py b/safe/gui/tools/test/test_wizard_dialog.py index <HASH>..<HASH> 100644 --- a/safe/gui/tools/test/test_wizard_dialog.py +++ b/safe/gui/tools/test/test_wizard_dialog.py @@ -955,7 +955,7 @@ class WizardDialogTest(unittest.TestCase): expected_subcategories = ...
Update tests to recent kw changes
py
diff --git a/scripts/compile-web-assets.py b/scripts/compile-web-assets.py index <HASH>..<HASH> 100755 --- a/scripts/compile-web-assets.py +++ b/scripts/compile-web-assets.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python from __future__ import print_function, division
Change the shebang from python3 to python
py
diff --git a/xmltodict.py b/xmltodict.py index <HASH>..<HASH> 100755 --- a/xmltodict.py +++ b/xmltodict.py @@ -2,7 +2,7 @@ "Makes working with XML feel like you are working with JSON" try: - import defusedexpat as expat + from defusedexpat import pyexpat as expat except ImportError: from xml.parsers imp...
Fixed defusedexpat expat import Original defused expat import was broken and not pointing to the location of defusedexpat's expat (pyexpat)
py
diff --git a/skyfield/tests/test_timescales.py b/skyfield/tests/test_timescales.py index <HASH>..<HASH> 100644 --- a/skyfield/tests/test_timescales.py +++ b/skyfield/tests/test_timescales.py @@ -1,3 +1,4 @@ +import numpy as np from skyfield.constants import DAY_S from skyfield.timescales import JulianDate from datet...
Confirm that UTC tuples can include array values
py
diff --git a/littlechef.py b/littlechef.py index <HASH>..<HASH> 100644 --- a/littlechef.py +++ b/littlechef.py @@ -599,8 +599,6 @@ def _print_node(node): def _get_recipes_in_cookbook(name): '''Gets the name of all recipes present in a cookbook''' recipes = [] - if not os.path.exists('cookbooks/' + name): ...
Do not check for cookbook in hardcoded `./cookbooks/` path.
py
diff --git a/autofit/optimize/non_linear/non_linear.py b/autofit/optimize/non_linear/non_linear.py index <HASH>..<HASH> 100644 --- a/autofit/optimize/non_linear/non_linear.py +++ b/autofit/optimize/non_linear/non_linear.py @@ -270,14 +270,27 @@ class NonLinearOptimizer(object): return likelihood - d...
Boolean tag customiizing how phase tag is used in copy_with_phase_extension method
py
diff --git a/tests/test_saving.py b/tests/test_saving.py index <HASH>..<HASH> 100644 --- a/tests/test_saving.py +++ b/tests/test_saving.py @@ -5,14 +5,14 @@ import pytest import graphviz -@pytest.mark.exe -def test_save_source_from_files(tmp_path): - dot = graphviz.Digraph(directory=tmp_path) - dot.edge('hel...
full line coverage with --skip-exe
py
diff --git a/metal/mmtl/glue/launch.py b/metal/mmtl/glue/launch.py index <HASH>..<HASH> 100644 --- a/metal/mmtl/glue/launch.py +++ b/metal/mmtl/glue/launch.py @@ -73,9 +73,7 @@ if __name__ == "__main__": parser = add_flags_from_config(parser, model_defaults) parser = add_flags_from_config(parser, task_default...
Launch scripts now enable booleans set to true.
py
diff --git a/bubbletools/__init__.py b/bubbletools/__init__.py index <HASH>..<HASH> 100644 --- a/bubbletools/__init__.py +++ b/bubbletools/__init__.py @@ -3,4 +3,4 @@ from bubbletools.validator import validate from bubbletools.bbltree import BubbleTree -__version__ = '0.6.10' +__version__ = '0.6.11.dev0'
Back to development: <I>
py
diff --git a/kerncraft/kernel.py b/kerncraft/kernel.py index <HASH>..<HASH> 100755 --- a/kerncraft/kernel.py +++ b/kerncraft/kernel.py @@ -47,7 +47,7 @@ class LessParanthesizingCGenerator(CGenerator): """ binary_op_precedence = { # based on https://en.cppreference.com/w/c/language/operato...
added missing /-operator to binary_op_precedence
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -38,7 +38,8 @@ setup( 'Programming Language :: Python :: 3.5', ], - install_requires=['Flask', 'boto3', 'six'], + install_requires=['Flask >=0.12.2, <1', 'boto3 >=1.6.18, <2', 'six >=1.11.0, <2', + ...
Add gunicorn and gevent as setup.py dependencies (#<I>) * Add gunicorn and gevent as setup.py dependencies * Specify version ranges for install_requires dependencies
py
diff --git a/tests/test_log_help.py b/tests/test_log_help.py index <HASH>..<HASH> 100644 --- a/tests/test_log_help.py +++ b/tests/test_log_help.py @@ -25,11 +25,7 @@ def test_format_structured_info(): many = ({'hello': 'world', 'goodbye': 'world'}, u'time=2012-01-01T00.1234-00 pid=1234 goodbye=world h...
Remove non-deterministic test case This would sometimes fail on Travis-CI giving spurious failures, and doesn't test a vitally distinct path.
py
diff --git a/scripts/lib/mha_config_helper.py b/scripts/lib/mha_config_helper.py index <HASH>..<HASH> 100644 --- a/scripts/lib/mha_config_helper.py +++ b/scripts/lib/mha_config_helper.py @@ -124,7 +124,7 @@ class MHA_global_config_helper(object): hosts = [] for section in config.sections(): - ...
Add support in config_helper to fetch slave health check port for a given host
py
diff --git a/sftpman/cli.py b/sftpman/cli.py index <HASH>..<HASH> 100644 --- a/sftpman/cli.py +++ b/sftpman/cli.py @@ -69,11 +69,11 @@ class SftpCli(object): mount_opts = [] for name, value in opts: name = name.lstrip('-') - if not hasattr(system, name): - contin...
Fix --mount_opt for setup command Fixes #<I> (Github Issue).
py
diff --git a/django_airavata/apps/api/output_views.py b/django_airavata/apps/api/output_views.py index <HASH>..<HASH> 100644 --- a/django_airavata/apps/api/output_views.py +++ b/django_airavata/apps/api/output_views.py @@ -116,7 +116,7 @@ def _generate_data(request, data_product = request.airavata_client.getDa...
AIRAVATA-<I> Fixing call to open output file
py
diff --git a/superset/db_engine_specs/druid.py b/superset/db_engine_specs/druid.py index <HASH>..<HASH> 100644 --- a/superset/db_engine_specs/druid.py +++ b/superset/db_engine_specs/druid.py @@ -54,7 +54,7 @@ class DruidEngineSpec(BaseEngineSpec): "P1D": "TIME_FLOOR({col}, 'P1D')", "P1W": "TIME_FLOOR(...
Update druid.py (#<I>)
py
diff --git a/cobald/interfaces/composite.py b/cobald/interfaces/composite.py index <HASH>..<HASH> 100644 --- a/cobald/interfaces/composite.py +++ b/cobald/interfaces/composite.py @@ -38,13 +38,13 @@ class CompositePool(Pool): """Fraction of the provided resources which are assigned for usage""" raise ...
fixed incorrect ordering of property and abstractmethod declaration
py
diff --git a/paperwork_backend/shell_cmd.py b/paperwork_backend/shell_cmd.py index <HASH>..<HASH> 100755 --- a/paperwork_backend/shell_cmd.py +++ b/paperwork_backend/shell_cmd.py @@ -121,8 +121,14 @@ def _chkdeps(module_name, distribution): def chkdeps(*args): """ Arguments: <component1> [<component2> [...]]...
paperwork-shell: improve help string of 'paperwork-shell chkdeps'
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -98,6 +98,7 @@ setup(name="streamlink", license="Simplified BSD", packages=find_packages("src"), package_dir={"": "src"}, + package_data={"streamlink.plugins": [".removed"]}, entry_points=entry...
build: include .removed file in build This file is required by tests when executing them with the build dir.
py
diff --git a/pywbem/mof_compiler.py b/pywbem/mof_compiler.py index <HASH>..<HASH> 100755 --- a/pywbem/mof_compiler.py +++ b/pywbem/mof_compiler.py @@ -30,8 +30,10 @@ """pywbem MOF Compiler Rules and implementation definition for lex and yacc. This compiler implementation is based on the PLY python package. - T...
The fixes for mof_compiler for ply
py
diff --git a/simple_settings/utils.py b/simple_settings/utils.py index <HASH>..<HASH> 100644 --- a/simple_settings/utils.py +++ b/simple_settings/utils.py @@ -24,14 +24,14 @@ class settings_stub(object): def __enter__(self): for key, value in self.new_settings.items(): - if not hasattr(settin...
change settings stub to working with settings._dict instead setattr and getattr
py
diff --git a/tests/test_cli.py b/tests/test_cli.py index <HASH>..<HASH> 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -9,6 +9,7 @@ from __future__ import absolute_import, unicode_literals import subprocess import click.testing +import pytest from elevation import cli @@ -21,6 +22,7 @@ def test_eio_...
mark failing test xfail
py
diff --git a/plaid/version.py b/plaid/version.py index <HASH>..<HASH> 100644 --- a/plaid/version.py +++ b/plaid/version.py @@ -1 +1 @@ -__version__ = '1.0.0' +__version__ = '1.1.0'
Minor bump to <I>; Python 3 support
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -51,7 +51,7 @@ setup( description = ("A collection of Python utilities for interacting with the " "Unidata technology stack."), keywords='meteorology weather', - classifiers=['D...
Pre-alpha is probably a little pessimistic.
py
diff --git a/tests/integration/modules/cp.py b/tests/integration/modules/cp.py index <HASH>..<HASH> 100644 --- a/tests/integration/modules/cp.py +++ b/tests/integration/modules/cp.py @@ -113,3 +113,15 @@ class CPModuleTest(integration.ModuleCase): for path in ret: self.assertTrue(os.path.exists(pa...
Add test for cp.cache_local_file
py
diff --git a/tchannel/sync/client.py b/tchannel/sync/client.py index <HASH>..<HASH> 100644 --- a/tchannel/sync/client.py +++ b/tchannel/sync/client.py @@ -98,6 +98,11 @@ class TChannelSyncClient(object): @gen.coroutine def make_request(): + # begin listening in thread, note that this + ...
fix sync client not listening in thread
py
diff --git a/tornado/auth.py b/tornado/auth.py index <HASH>..<HASH> 100644 --- a/tornado/auth.py +++ b/tornado/auth.py @@ -963,7 +963,7 @@ class FacebookGraphMixin(OAuth2Mixin): callback, response): session = { "access_token": cgi.parse_qs(response.body)["access_token"][-1], - ...
Avoid raising a KeyError when there's no session expiration date It happens when the token is requested with the 'offline_access' extended permission.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -12,11 +12,12 @@ setup(name='flask-restful-swagger', zip_safe=False, packages=['flask_restful_swagger'], package_data= { - 'flask_restful_swagger.static': [ - 'css/*.*', - 'images/...
Correctly include package_data in setup.py
py
diff --git a/mt940/tags.py b/mt940/tags.py index <HASH>..<HASH> 100644 --- a/mt940/tags.py +++ b/mt940/tags.py @@ -189,7 +189,7 @@ class Statement(Tag): (\n?(?P<extra_details>.{0,34}))? # [34x] Supplementary Details # (this will be on a new/separate ...
testing a fix for #<I>
py
diff --git a/orator/commands/command.py b/orator/commands/command.py index <HASH>..<HASH> 100644 --- a/orator/commands/command.py +++ b/orator/commands/command.py @@ -50,6 +50,26 @@ class Command(BaseCommand): return super(Command, self).call_silent(name, options) + def confirm(self, question, default=F...
Fixes --no-interaction option not working properly.
py
diff --git a/matplotlib2tikz/axes.py b/matplotlib2tikz/axes.py index <HASH>..<HASH> 100644 --- a/matplotlib2tikz/axes.py +++ b/matplotlib2tikz/axes.py @@ -687,8 +687,11 @@ def _handle_linear_segmented_color_map(cmap): # of 1pt, e.g., does most often not work. unit = "pt" - # Scale to integer - X = _sc...
fix #<I> by limiting the granularity of the colorbar
py
diff --git a/gns3server/controller/compute.py b/gns3server/controller/compute.py index <HASH>..<HASH> 100644 --- a/gns3server/controller/compute.py +++ b/gns3server/controller/compute.py @@ -367,6 +367,8 @@ class Compute: if not hasattr(sys, "_called_from_test") or not sys._called_from_test: ...
If server answer not found explain this could be due to the usage of 1.X server
py
diff --git a/odl/util/phantom.py b/odl/util/phantom.py index <HASH>..<HASH> 100644 --- a/odl/util/phantom.py +++ b/odl/util/phantom.py @@ -229,12 +229,11 @@ def _phantom_2d(space, ellipses): def _getshapes(center, max_radius, shape): - index_mean = (shape * center).astype(int) - index_radius = (max_radius / ...
MAINT: fix rounding error in phantom bounding box
py
diff --git a/questionary/prompts/common.py b/questionary/prompts/common.py index <HASH>..<HASH> 100644 --- a/questionary/prompts/common.py +++ b/questionary/prompts/common.py @@ -307,11 +307,12 @@ class InquirerControl(FormattedTextControl): if self.pointer is not None: tokens.appe...
Shift choices to align if a long pointer is used
py
diff --git a/insights/specs/insights_archive.py b/insights/specs/insights_archive.py index <HASH>..<HASH> 100644 --- a/insights/specs/insights_archive.py +++ b/insights/specs/insights_archive.py @@ -227,7 +227,7 @@ class InsightsArchiveSpecs(Specs): rabbitmq_queues = simple_file("insights_commands/rabbitmqctl_list...
Enahce readlink and add insights_command/ to insights_archive.py (#<I>)
py
diff --git a/graphene/core/fields.py b/graphene/core/fields.py index <HASH>..<HASH> 100644 --- a/graphene/core/fields.py +++ b/graphene/core/fields.py @@ -184,8 +184,7 @@ class Field(object): def __eq__(self, other): # Needed for @total_ordering if isinstance(other, Field): - return se...
Improved fields hash, eq methods
py
diff --git a/HARK/core.py b/HARK/core.py index <HASH>..<HASH> 100644 --- a/HARK/core.py +++ b/HARK/core.py @@ -921,7 +921,7 @@ class Market(HARKobject): layer on top of the "microeconomic" models of one or more AgentTypes. ''' def __init__(self, agents=[], sow_vars=[], reap_vars=[], const_vars=[], track_...
Market class uses assignParameters in initializer
py
diff --git a/testing/test_pdb.py b/testing/test_pdb.py index <HASH>..<HASH> 100644 --- a/testing/test_pdb.py +++ b/testing/test_pdb.py @@ -860,14 +860,14 @@ def test_paste(): print('hello world') def fn(): set_trace() - if False: g() + if 4 != 5: g() return 42 _, linen...
testing: change conditional expr because previous one got optimised away in py3k
py
diff --git a/taskw/test/test_task.py b/taskw/test/test_task.py index <HASH>..<HASH> 100644 --- a/taskw/test/test_task.py +++ b/taskw/test/test_task.py @@ -129,3 +129,31 @@ class TestTaskMarshalling(TestCase): self.assertEqual(task['tags'], arbitrary_tags) self.assertEqual(task['urgency'], arbitrary_ur...
Test composition. (It works..)
py
diff --git a/s_tui/Sources/TemperatureSource.py b/s_tui/Sources/TemperatureSource.py index <HASH>..<HASH> 100644 --- a/s_tui/Sources/TemperatureSource.py +++ b/s_tui/Sources/TemperatureSource.py @@ -76,7 +76,7 @@ class TemperatureSource(Source): self.update() - self.is_available = len(sensors_dict) ...
- fix for bar graph vector with zero length y label size
py
diff --git a/glitter/blockadmin/blocks.py b/glitter/blockadmin/blocks.py index <HASH>..<HASH> 100644 --- a/glitter/blockadmin/blocks.py +++ b/glitter/blockadmin/blocks.py @@ -192,7 +192,7 @@ class BlockAdmin(ModelAdmin): # As this is the Django admin and we can't just set self.version_id due to thread safety ...
Avoid underscore for throwaway variable Django convention uses it for translation
py
diff --git a/src/python/turicreate/data_structures/sframe.py b/src/python/turicreate/data_structures/sframe.py index <HASH>..<HASH> 100644 --- a/src/python/turicreate/data_structures/sframe.py +++ b/src/python/turicreate/data_structures/sframe.py @@ -4538,7 +4538,7 @@ class SFrame(object): # If auto target is ...
Issue for supporting Google Colab Jupyter Notebook under sframe.explore (#<I>)
py
diff --git a/tilde/core/symmetry.py b/tilde/core/symmetry.py index <HASH>..<HASH> 100755 --- a/tilde/core/symmetry.py +++ b/tilde/core/symmetry.py @@ -12,7 +12,7 @@ from numpy.linalg import det from ase.atoms import Atoms from ase.lattice.spacegroup.cell import cell_to_cellpar -from pyspglib import spglib as spg +i...
spglib installation (however a fix is still needed)
py
diff --git a/yacron/cron.py b/yacron/cron.py index <HASH>..<HASH> 100644 --- a/yacron/cron.py +++ b/yacron/cron.py @@ -179,7 +179,7 @@ class Cron: ), } ) - if request.headers["Accept"] == "application/json": + if request.headers.get("Accept") ...
don't crash when receiving a web request without Accept header. Closes #<I>
py
diff --git a/littletable_demo.py b/littletable_demo.py index <HASH>..<HASH> 100644 --- a/littletable_demo.py +++ b/littletable_demo.py @@ -7,6 +7,8 @@ from __future__ import print_function from littletable import Table from collections import namedtuple +import sys + Customer = namedtuple("Customer", "id name") C...
Python version guard in littletable_demo.py (only use present() if Python >= <I>)
py
diff --git a/authority/admin.py b/authority/admin.py index <HASH>..<HASH> 100644 --- a/authority/admin.py +++ b/authority/admin.py @@ -66,7 +66,7 @@ def edit_permissions(modeladmin, request, queryset): prefix = "%s-%s" % (FormSet.get_default_prefix(), obj.pk) prefixes[prefix] = prefixes.get(prefix, 0)...
Fix lurking bug in edit_permissions I don't have a test case, this is just code review; that string extrapolation will always raise.
py
diff --git a/pymc3/distributions/continuous.py b/pymc3/distributions/continuous.py index <HASH>..<HASH> 100644 --- a/pymc3/distributions/continuous.py +++ b/pymc3/distributions/continuous.py @@ -962,7 +962,7 @@ class Weibull(PositiveContinuous): point=point) def _random(a, ...
Fix the _random function for sampling from Weibull distribution (#<I>) * Update continuous.py
py
diff --git a/bedup/tracking.py b/bedup/tracking.py index <HASH>..<HASH> 100644 --- a/bedup/tracking.py +++ b/bedup/tracking.py @@ -243,6 +243,8 @@ class WindowedQuery(object): self.upper_bound = self.sess.query( self.unfiltered.c.size).order_by( -self.unfiltered.c.size).limit(1).s...
Guard against an empty Inode table. Closes issue #6.
py
diff --git a/pout.py b/pout.py index <HASH>..<HASH> 100644 --- a/pout.py +++ b/pout.py @@ -47,7 +47,7 @@ import codecs # pout2.b("remember to remove pout2") # except ImportError: pass -__version__ = '0.6.4' +__version__ = '0.6.5' logger = logging.getLogger(__name__) @@ -942,7 +942,7 @@ class Pout(object): ...
<I>. Fixes a class variables bug where parent's class variable values were being printed instead of the childs
py
diff --git a/src/fabops/commands/release.py b/src/fabops/commands/release.py index <HASH>..<HASH> 100644 --- a/src/fabops/commands/release.py +++ b/src/fabops/commands/release.py @@ -5,6 +5,7 @@ Helper commands for releasing to pypi. from __future__ import absolute_import, unicode_literals # stdlib imports +import ...
Ignore untracked files on release
py
diff --git a/src/python/dxpy/scripts/dx.py b/src/python/dxpy/scripts/dx.py index <HASH>..<HASH> 100755 --- a/src/python/dxpy/scripts/dx.py +++ b/src/python/dxpy/scripts/dx.py @@ -578,7 +578,7 @@ def env(args): print("Current workspace\t" + str(dxpy.WORKSPACE_ID)) if "DX_PROJECT_CONTEXT_NAME" in os.env...
Fix crash when current folder is not set
py
diff --git a/python/src/setup.py b/python/src/setup.py index <HASH>..<HASH> 100644 --- a/python/src/setup.py +++ b/python/src/setup.py @@ -6,7 +6,7 @@ import setuptools # To debug, set DISTUTILS_DEBUG env var to anything. setuptools.setup( name="GoogleAppEnginePipeline", - version="1.9.17.0", + version="1....
bump pypi version to <I>
py
diff --git a/salt/pillar/__init__.py b/salt/pillar/__init__.py index <HASH>..<HASH> 100644 --- a/salt/pillar/__init__.py +++ b/salt/pillar/__init__.py @@ -253,7 +253,7 @@ class Pillar(object): continue for tgt in targets: matches = [] - ...
Remove trailing semicolons from previous commit
py
diff --git a/ccmlib/dse_node.py b/ccmlib/dse_node.py index <HASH>..<HASH> 100644 --- a/ccmlib/dse_node.py +++ b/ccmlib/dse_node.py @@ -61,7 +61,12 @@ class DseNode(Node): self.__generate_server_xml() if 'graph' in self.workloads: (node_ip, _) = self.network_interfaces['binary'] - ...
Use existing graph settings in dse.yaml when setting host
py
diff --git a/claripy/vsa/strided_interval.py b/claripy/vsa/strided_interval.py index <HASH>..<HASH> 100644 --- a/claripy/vsa/strided_interval.py +++ b/claripy/vsa/strided_interval.py @@ -1541,22 +1541,9 @@ class StridedInterval(BackendObject): return ret.normalize() - elif self.is_integer or o.i...
Bug fix in VSA: an old premature optimization break multiplication of two strided-intervals when one operand is an integer and the final result overflows.
py
diff --git a/salt/states/mount.py b/salt/states/mount.py index <HASH>..<HASH> 100644 --- a/salt/states/mount.py +++ b/salt/states/mount.py @@ -140,7 +140,7 @@ def mounted(name, return ret else: ret['changes']['umount'] = "Forced remount ...
Fixing #<I> - When mount is True we need to ensure the directory exists
py
diff --git a/pyof/v0x04/controller2switch/features_reply.py b/pyof/v0x04/controller2switch/features_reply.py index <HASH>..<HASH> 100644 --- a/pyof/v0x04/controller2switch/features_reply.py +++ b/pyof/v0x04/controller2switch/features_reply.py @@ -6,7 +6,7 @@ # Local source tree imports from pyof.foundation.base imp...
fix switch dpid on features reply
py
diff --git a/pycbc/workflow/__init__.py b/pycbc/workflow/__init__.py index <HASH>..<HASH> 100644 --- a/pycbc/workflow/__init__.py +++ b/pycbc/workflow/__init__.py @@ -44,7 +44,6 @@ try: from pycbc.workflow.splittable import * from pycbc.workflow.coincidence import * from pycbc.workflow.injection import *...
Timeslides no longer exists (#<I>)
py
diff --git a/raiden/transfer/utils.py b/raiden/transfer/utils.py index <HASH>..<HASH> 100644 --- a/raiden/transfer/utils.py +++ b/raiden/transfer/utils.py @@ -29,10 +29,12 @@ def hash_balance_data( if transferred_amount == 0 and locked_amount == 0 and locksroot == LOCKSROOT_OF_NO_LOCKS: return BalanceHash...
Fix mypy error after eth-utils upgrade
py
diff --git a/test_addict.py b/test_addict.py index <HASH>..<HASH> 100644 --- a/test_addict.py +++ b/test_addict.py @@ -357,6 +357,12 @@ class Tests(unittest.TestCase): self.assertDictEqual(org, correct) self.assertIsInstance(org.b[0], dict) + def test_update_with_kws(self): + org = Dict(on...
Tests: add test for Dict.update called with keywords
py
diff --git a/tasks.py b/tasks.py index <HASH>..<HASH> 100644 --- a/tasks.py +++ b/tasks.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -import sys from invoke import task, run @@ -21,12 +20,7 @@ def readme(browse=False): @task def publish(test=False): """Publish to the cheeseshop.""" - try: - __impor...
wheels don't work with console scripts very well
py
diff --git a/command/build_ext.py b/command/build_ext.py index <HASH>..<HASH> 100644 --- a/command/build_ext.py +++ b/command/build_ext.py @@ -403,6 +403,10 @@ class build_ext (Command): # command line args. Hence we combine them in order: extra_args = ext.extra_compile_args or [] + ...
Fixed to respect 'define_macros' and 'undef_macros' on Extension object.
py
diff --git a/bigchaindb/pipelines/block.py b/bigchaindb/pipelines/block.py index <HASH>..<HASH> 100644 --- a/bigchaindb/pipelines/block.py +++ b/bigchaindb/pipelines/block.py @@ -8,7 +8,7 @@ function. import logging import rethinkdb as r -from multipipes import Pipeline, Node +from multipipes import Pipeline, Node,...
Fix <I> and <I> The queue/pipeline used in the block creation process is unbounded. When too many transactions occur, the backlog table fills up quite easily and bigchaindb just reads all the transaction in the backlog to create a block. This causes memory usage to grow indefinitely. Limiting the queue size to <I> tra...
py
diff --git a/raven/transport/aiohttp.py b/raven/transport/aiohttp.py index <HASH>..<HASH> 100644 --- a/raven/transport/aiohttp.py +++ b/raven/transport/aiohttp.py @@ -40,7 +40,9 @@ class AioHttpTransport(AsyncTransport, HTTPTransport): if keepalive: self._connector = aiohttp.TCPConnector(verify_...
Pass family and loop into aiohttp connector ctor
py
diff --git a/crispy_forms/layout.py b/crispy_forms/layout.py index <HASH>..<HASH> 100644 --- a/crispy_forms/layout.py +++ b/crispy_forms/layout.py @@ -416,6 +416,9 @@ class Field(LayoutObject): if not hasattr(self, 'attrs'): self.attrs = {} + else: + # Make sure shared state is...
Avoid risk for editing shared state via `self.attrs`. The code assumes the self.attrs is assigned in a super __init__(), but when it's assigned as class attribute it's state will be shared between multiple `Field` instances.
py
diff --git a/algoliasearch/__init__.py b/algoliasearch/__init__.py index <HASH>..<HASH> 100644 --- a/algoliasearch/__init__.py +++ b/algoliasearch/__init__.py @@ -35,3 +35,4 @@ class algoliasearch(object): Client = client.Client Index = index.Index AlgoliaException = helpers.AlgoliaException + Request...
feat(request_options): put RequestOptions at the top level
py
diff --git a/test_echo.py b/test_echo.py index <HASH>..<HASH> 100644 --- a/test_echo.py +++ b/test_echo.py @@ -151,6 +151,21 @@ def test_delay_callback(): test.assert_called_once_with(300) +def test_delay_callback_nested(): + test = MagicMock() + stub = Stub() + + add_callback(stub, 'prop1', test) + ...
Added regression test for nested calls to delay_callback
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ REQUIRES = [ setup( name="pyCEC", - version="0.4.13", + version="0.4.14", author="Petr Vraník", author_email="hpa@suteren.net", description=(
Increment version to <I>. (#<I>)
py
diff --git a/gcloud/storage/test_batch.py b/gcloud/storage/test_batch.py index <HASH>..<HASH> 100644 --- a/gcloud/storage/test_batch.py +++ b/gcloud/storage/test_batch.py @@ -573,7 +573,8 @@ class _Connection(object): if content_type is not None: # pragma: NO COVER headers['Content-Type'] = conte...
Change order of arguments in mock http.request. Noticed this while documenting the httplib2.Http.request() interface and our use of it
py
diff --git a/tensorflow_probability/python/distributions/platform_compatibility_test.py b/tensorflow_probability/python/distributions/platform_compatibility_test.py index <HASH>..<HASH> 100644 --- a/tensorflow_probability/python/distributions/platform_compatibility_test.py +++ b/tensorflow_probability/python/distributi...
Raise tolerance for Dirichlet XLA test, having identified the reason for inaccuracy. PiperOrigin-RevId: <I>
py
diff --git a/test/unit/test_validation.py b/test/unit/test_validation.py index <HASH>..<HASH> 100644 --- a/test/unit/test_validation.py +++ b/test/unit/test_validation.py @@ -11,7 +11,7 @@ from nose_parameterized import parameterized from spam_lists.exceptions import InvalidURLError, InvalidHostError from spam_lists....
Remove unnecessary use of lru_cache
py
diff --git a/plenum/config.py b/plenum/config.py index <HASH>..<HASH> 100644 --- a/plenum/config.py +++ b/plenum/config.py @@ -46,19 +46,19 @@ seqNoDbName = 'seq_no_db' clientBootStrategy = ClientBootStrategy.PoolTxn hashStore = { - "type": HS_LEVELDB + "type": HS_ROCKSDB } primaryStorage = None -domain...
INDY-<I>: set RocksDB as a key-value storage for all.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -200,7 +200,7 @@ def get_extension_modules(): setup(name = 'turbodbc', - version = '2.4.0', + version = '2.4.1', description = 'turbodbc is a Python DB API 2.0 compatible ODBC driver', include_pack...
Preparations for <I> release
py
diff --git a/pandas/tools/plotting.py b/pandas/tools/plotting.py index <HASH>..<HASH> 100644 --- a/pandas/tools/plotting.py +++ b/pandas/tools/plotting.py @@ -2069,7 +2069,7 @@ def plot_frame(frame=None, x=None, y=None, subplots=False, sharex=True, From 0 (left/bottom-end) to 1 (right/top-end). Default is 0.5 ...
DOC: fix non-ascii character (from #<I>)
py
diff --git a/py3status/screenshots.py b/py3status/screenshots.py index <HASH>..<HASH> 100644 --- a/py3status/screenshots.py +++ b/py3status/screenshots.py @@ -200,7 +200,8 @@ def parse_sample_data(sample_data, module_name): """ samples = {} for index, chunk in enumerate(sample_data.split("\n\n")): - ...
screenshots: don't use f-strings (#<I>)
py
diff --git a/squad/core/admin.py b/squad/core/admin.py index <HASH>..<HASH> 100644 --- a/squad/core/admin.py +++ b/squad/core/admin.py @@ -55,7 +55,7 @@ force_notify_project.short_description = "Force sending email notification for s class ProjectAdmin(admin.ModelAdmin): - list_display = ['__str__', 'is_public'...
core/admin: display "moderate notifications" in project listing
py
diff --git a/mongoctl/mongoctl.py b/mongoctl/mongoctl.py index <HASH>..<HASH> 100644 --- a/mongoctl/mongoctl.py +++ b/mongoctl/mongoctl.py @@ -3666,8 +3666,10 @@ class ReplicaSetClusterMember(DocumentWrapper): if key not in ignore : member_conf[key] = value - # append tags from ma...
Exempting arbiters from tag mapping since arbiters dont allow tags
py