diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/troposphere/awslambda.py b/troposphere/awslambda.py index <HASH>..<HASH> 100644 --- a/troposphere/awslambda.py +++ b/troposphere/awslambda.py @@ -110,13 +110,20 @@ class EventSourceMapping(AWSObject): } +class Environment(AWSProperty): + + props = { + 'Variables': (dict, True), + } + ...
Create new property Environment for aws lambda Function (#<I>)
py
diff --git a/awacs/aws.py b/awacs/aws.py index <HASH>..<HASH> 100644 --- a/awacs/aws.py +++ b/awacs/aws.py @@ -45,7 +45,15 @@ class Action(AWSHelperFn): class BaseARN(AWSHelperFn): def __init__(self, service, resource, region='', account=''): - self.data = "arn:aws:%s:%s:%s:%s" % ( + region_string...
Generate valid ARNs for GovCloud and CN partitions of AWS in BaseARN (#<I>)
py
diff --git a/pysat/tests/test_utils.py b/pysat/tests/test_utils.py index <HASH>..<HASH> 100644 --- a/pysat/tests/test_utils.py +++ b/pysat/tests/test_utils.py @@ -798,8 +798,8 @@ class TestAvailableInst(TestWithRegistration): captured = capsys.readouterr() # Numbers should match supported data produ...
TST: update test to be robust on CI
py
diff --git a/openquake/commands/dump.py b/openquake/commands/dump.py index <HASH>..<HASH> 100644 --- a/openquake/commands/dump.py +++ b/openquake/commands/dump.py @@ -39,6 +39,7 @@ def smart_save(dbpath, archive, jobs): conn.execute('DELETE FROM job WHERE id=?', (job.id,)) except: safepri...
Small fix [skip CI]
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -50,14 +50,17 @@ class ReleaseCheck(Command): pass def run(self): - from subprocess import check_output - tag = check_output(['git', 'describe', '--all', '--exact-match', 'HEAD']).strip() + ...
Fix release check for multiple versions of git
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -56,7 +56,7 @@ setup( data_files=[( (BASE_DIR, ['data/nssm_original.exe']) )], - install_requires=['indy-plenum-dev==1.2.238', + install_requires=['indy-plenum-dev==1.2.241', 'in...
INDY-<I>: Updated indy-plenum dependency (#<I>) * INDY-<I>: Updated indy-plenum dependency
py
diff --git a/ipfshttpclient/multipart.py b/ipfshttpclient/multipart.py index <HASH>..<HASH> 100644 --- a/ipfshttpclient/multipart.py +++ b/ipfshttpclient/multipart.py @@ -181,7 +181,7 @@ class StreamBase(object): for data in gen: #PERF: This is zero-copy if `len(data) <= self.chunk_size` for offset in range(...
bug fix: when storing large amounts of text or bytes the data would be truncated Problem was because in the generator StreamBase._gen_chunks() the second parameter in the data slice was not incremented with the offset. Because of this only the first chunk was yielded correctly.
py
diff --git a/proso/release.py b/proso/release.py index <HASH>..<HASH> 100644 --- a/proso/release.py +++ b/proso/release.py @@ -1 +1 @@ -VERSION = '3.20.5' +VERSION = '3.20.6.dev'
start working on <I>.dev
py
diff --git a/openquake/calculators/base.py b/openquake/calculators/base.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/base.py +++ b/openquake/calculators/base.py @@ -166,7 +166,9 @@ class BaseCalculator(metaclass=abc.ABCMeta): self.datastore.create_dset('performance_data', perf_dt) ...
Better logging [skip CI]
py
diff --git a/tests/test_build_ext.py b/tests/test_build_ext.py index <HASH>..<HASH> 100644 --- a/tests/test_build_ext.py +++ b/tests/test_build_ext.py @@ -52,9 +52,14 @@ class BuildExtTestCase(TempdirManager, # To further add to the fun, we can't just add library_dirs to the # Extension() instance bec...
Should fix remaining <I> buildbot failure
py
diff --git a/salt/states/saltmod.py b/salt/states/saltmod.py index <HASH>..<HASH> 100644 --- a/salt/states/saltmod.py +++ b/salt/states/saltmod.py @@ -110,10 +110,10 @@ def state( cmd_kw = {'arg': []} if expr_form and tgt_type: - ret['warnings'] = [ + ret.setdefault('warnings', []).append( ...
Don't override `warnings`, append to them.
py
diff --git a/python/neuroglancer/server.py b/python/neuroglancer/server.py index <HASH>..<HASH> 100644 --- a/python/neuroglancer/server.py +++ b/python/neuroglancer/server.py @@ -61,8 +61,10 @@ class Server(object): sockjs_router = sockjs.tornado.SockJSRouter( SockJSHandler, SOCKET_PATH_REGEX_WITH...
fix(python): make server.debug=True actually print information The existing debug printing was accidentally lost during the refactor to use tornado.
py
diff --git a/src/benchsuite/controller.py b/src/benchsuite/controller.py index <HASH>..<HASH> 100644 --- a/src/benchsuite/controller.py +++ b/src/benchsuite/controller.py @@ -61,7 +61,7 @@ class ControllerConfiguration(): class BenchmarkingController(): """ - Create and manage a new sqlite database. + The...
testing the integration with readthedocs
py
diff --git a/astroid/brain/pysix_moves.py b/astroid/brain/pysix_moves.py index <HASH>..<HASH> 100644 --- a/astroid/brain/pysix_moves.py +++ b/astroid/brain/pysix_moves.py @@ -65,6 +65,8 @@ def six_moves_transform_py2(): import xmlrpclib as xmlrpc_client import _winreg as winreg import robotpa...
Add missing tkinter imports.
py
diff --git a/test/specs.py b/test/specs.py index <HASH>..<HASH> 100644 --- a/test/specs.py +++ b/test/specs.py @@ -220,6 +220,8 @@ class WhenRunningMultipleSpecsUsingUnpackedSyntax(object): if __name__ == "__main__": + import sys + specs = [ WhenASpecPasses(), WhenASpecFails(), @@ -229,4 ...
Reporting failures with exit code 1
py
diff --git a/src/python/test/test_dxclient.py b/src/python/test/test_dxclient.py index <HASH>..<HASH> 100755 --- a/src/python/test/test_dxclient.py +++ b/src/python/test/test_dxclient.py @@ -4745,8 +4745,8 @@ class TestDXCp(DXTestCase): # The file {p1}:/{f} exists, however, {p1}/{f} does not. We # w...
Fix expected error message in test due to server-side change
py
diff --git a/master/buildbot/status/client.py b/master/buildbot/status/client.py index <HASH>..<HASH> 100644 --- a/master/buildbot/status/client.py +++ b/master/buildbot/status/client.py @@ -205,6 +205,9 @@ class RemoteBuild(pb.Referenceable): logs[name] = IRemote(log) return logs + def remot...
Add a getProperties method to Build remote object
py
diff --git a/tests/is_text_present.py b/tests/is_text_present.py index <HASH>..<HASH> 100644 --- a/tests/is_text_present.py +++ b/tests/is_text_present.py @@ -23,7 +23,9 @@ class IsTextPresentTest(object): def test_is_text_not_present(self): "should verify if text is not present" - self.assertTru...
tests/is_text_present.py is now pep8 certified
py
diff --git a/bfg9000/build_inputs.py b/bfg9000/build_inputs.py index <HASH>..<HASH> 100644 --- a/bfg9000/build_inputs.py +++ b/bfg9000/build_inputs.py @@ -1,4 +1,5 @@ -from six import iteritems +from collections import OrderedDict +from six import iteritems, itervalues from .path import Path, Root from .file_types ...
Only record unique paths in BuildInputs.sources
py
diff --git a/pysat/_instrument.py b/pysat/_instrument.py index <HASH>..<HASH> 100644 --- a/pysat/_instrument.py +++ b/pysat/_instrument.py @@ -205,7 +205,7 @@ class Instrument(object): setattr(self, iattr, getattr(inst_module, iattr).lower()) else: raise Attrib...
MAINT: fixed typo Added a missing space to an error message.
py
diff --git a/plenum/common/messages/fields.py b/plenum/common/messages/fields.py index <HASH>..<HASH> 100644 --- a/plenum/common/messages/fields.py +++ b/plenum/common/messages/fields.py @@ -239,7 +239,7 @@ class IterableField(FieldBase): if not m > 0: raise PlenumValueError(k, m, ...
INDY-<I>: Revert some of performance optimizations
py
diff --git a/neat/attributes.py b/neat/attributes.py index <HASH>..<HASH> 100644 --- a/neat/attributes.py +++ b/neat/attributes.py @@ -48,7 +48,7 @@ class FloatAttribute(BaseAttribute): mutate_power = getattr(config, self.mutate_power_name) return self.clamp(value + gauss(0.0, mutate_power), c...
Remove unnecessary clamp of unmodified value
py
diff --git a/pghoard/restore.py b/pghoard/restore.py index <HASH>..<HASH> 100644 --- a/pghoard/restore.py +++ b/pghoard/restore.py @@ -8,6 +8,8 @@ from . import common, config, logutil, version from .patchedtarfile import tarfile from .postgres_command import PGHOARD_HOST, PGHOARD_PORT from concurrent import futures...
restore: fix version comparison to work with pg <I>
py
diff --git a/satpy/readers/helper_functions.py b/satpy/readers/helper_functions.py index <HASH>..<HASH> 100644 --- a/satpy/readers/helper_functions.py +++ b/satpy/readers/helper_functions.py @@ -111,14 +111,6 @@ def get_area_slices(data_area, area_to_cover): intersection = data_boundary.contour_poly.intersection( ...
Remove plotting from helper_functions
py
diff --git a/airflow/contrib/operators/bigquery_operator.py b/airflow/contrib/operators/bigquery_operator.py index <HASH>..<HASH> 100644 --- a/airflow/contrib/operators/bigquery_operator.py +++ b/airflow/contrib/operators/bigquery_operator.py @@ -30,9 +30,10 @@ class BigQueryOperator(BaseOperator): super(BigQu...
Update write disposition to work properly for BigQuery hook.
py
diff --git a/debug_toolbar_mongo/operation_tracker.py b/debug_toolbar_mongo/operation_tracker.py index <HASH>..<HASH> 100644 --- a/debug_toolbar_mongo/operation_tracker.py +++ b/debug_toolbar_mongo/operation_tracker.py @@ -44,7 +44,9 @@ def _insert(collection_self, doc_or_docs, manipulate=True, result = _original_...
Added missing arguments to original insert method
py
diff --git a/finglish/f2p.py b/finglish/f2p.py index <HASH>..<HASH> 100755 --- a/finglish/f2p.py +++ b/finglish/f2p.py @@ -41,7 +41,7 @@ def f2p_word_internal(word): converter = middle conversions = converter.get(letter) if conversions == None: - conversions = letter + ...
Return the original word if one of the letters is invalid.
py
diff --git a/chirptext/anhxa.py b/chirptext/anhxa.py index <HASH>..<HASH> 100644 --- a/chirptext/anhxa.py +++ b/chirptext/anhxa.py @@ -59,7 +59,10 @@ class DataObject(object): return dumps(self, *args, **kwargs) def to_dict(self, *args, **kwargs): - return to_json(self) + a_dict = to_json(...
Don't dump __extra_data to json when it's empty
py
diff --git a/potypo/__main__.py b/potypo/__main__.py index <HASH>..<HASH> 100644 --- a/potypo/__main__.py +++ b/potypo/__main__.py @@ -8,13 +8,6 @@ from .check import Check from enchant import DictWithPWL from enchant.checker import SpellChecker -# TODO: packaging -# TODO: gh + README -# TODO: alle .po-files finden...
move TODOs from __main__ to README
py
diff --git a/rest_assured/testcases.py b/rest_assured/testcases.py index <HASH>..<HASH> 100644 --- a/rest_assured/testcases.py +++ b/rest_assured/testcases.py @@ -246,7 +246,7 @@ class CreateAPITestCaseMixin(object): response = self.get_create_response(data, **kwargs) - self.assertEqual(response.sta...
Fixed error when bad HTTP request doesn't contain a data attribute
py
diff --git a/kibitzr/conf.py b/kibitzr/conf.py index <HASH>..<HASH> 100644 --- a/kibitzr/conf.py +++ b/kibitzr/conf.py @@ -48,7 +48,7 @@ class ReloadableSettings(object): with open(self.filename) as fp: conf = yaml.load(fp) changed = self.read_creds() - pages = conf.get('pages', []...
Added alias for 'pages' in config - 'checks'
py
diff --git a/system_tests/retry.py b/system_tests/retry.py index <HASH>..<HASH> 100644 --- a/system_tests/retry.py +++ b/system_tests/retry.py @@ -76,7 +76,7 @@ class RetryErrors(RetryBase): delay = self.delay * self.backoff**tries msg = ("%s, Trying again in %d seconds..." %...
Avoid double-casting execption to string. Addresses: <URL>
py
diff --git a/tests/unit/test_image_pixels_encoder.py b/tests/unit/test_image_pixels_encoder.py index <HASH>..<HASH> 100644 --- a/tests/unit/test_image_pixels_encoder.py +++ b/tests/unit/test_image_pixels_encoder.py @@ -52,6 +52,8 @@ class TestImagePixelsEncoder(object): 'omero:details': {'@type': 'TBD#...
Encode will contain id and type
py
diff --git a/examples/block_bots.py b/examples/block_bots.py index <HASH>..<HASH> 100644 --- a/examples/block_bots.py +++ b/examples/block_bots.py @@ -42,7 +42,7 @@ your_followers = list(set(your_followers) - your_likers) random.shuffle(your_followers) for user in tqdm(your_followers): - time.sleep(1) + time....
Update block_bots.py increased time delay between get_user_info otherwise it will fail after <I>th request
py
diff --git a/scapy/arch/__init__.py b/scapy/arch/__init__.py index <HASH>..<HASH> 100644 --- a/scapy/arch/__init__.py +++ b/scapy/arch/__init__.py @@ -21,7 +21,8 @@ try: else: MATPLOTLIB_INLINED = 0 MATPLOTLIB_DEFAULT_PLOT_KARGS = {"marker": "+"} -except ImportError: +# RuntimeError to catch gtk "Can...
Fix scapy init without gtk matplotlib.pyplot inits gtk, which may not be available. If so, handles this as if the import failed.
py
diff --git a/yagocd/resources/pipeline.py b/yagocd/resources/pipeline.py index <HASH>..<HASH> 100644 --- a/yagocd/resources/pipeline.py +++ b/yagocd/resources/pipeline.py @@ -120,6 +120,25 @@ class PipelineManager(object): return EasyDict(response.json()) + def pause(self, name, cause): + self._c...
Add pause/unpause methods for Pipeline.
py
diff --git a/scripts/wrapper/apt-get.py b/scripts/wrapper/apt-get.py index <HASH>..<HASH> 100755 --- a/scripts/wrapper/apt-get.py +++ b/scripts/wrapper/apt-get.py @@ -45,7 +45,10 @@ def call_apt_get_update_and_install( # any call is considered a try tries += 1 known_error_strings_...
Add cannot be authenticated to our retry strings. This was observed on several jobs as a failure reason. It was an intermittent configuration error on the upstream server and resolved itself with a rerun of the jobs. Hopefully this will catch it and it will be resolved before the jobs fails.
py
diff --git a/bigquery/google/cloud/bigquery/table.py b/bigquery/google/cloud/bigquery/table.py index <HASH>..<HASH> 100644 --- a/bigquery/google/cloud/bigquery/table.py +++ b/bigquery/google/cloud/bigquery/table.py @@ -70,7 +70,7 @@ _NO_PANDAS_ERROR = ( ) _NO_PYARROW_ERROR = ( "The pyarrow library is not install...
fix(bigquery): fix typo in import error message (pandas -> pyarrow) (#<I>)
py
diff --git a/gwpy/plotter/gps.py b/gwpy/plotter/gps.py index <HASH>..<HASH> 100644 --- a/gwpy/plotter/gps.py +++ b/gwpy/plotter/gps.py @@ -19,7 +19,6 @@ """This module defines a locators/formatters and a scale for GPS data. """ -import re from decimal import Decimal from numbers import Number
plotter.gps: removed unused import [ci skip]
py
diff --git a/tests/plugin_test.py b/tests/plugin_test.py index <HASH>..<HASH> 100644 --- a/tests/plugin_test.py +++ b/tests/plugin_test.py @@ -228,7 +228,7 @@ class DjangoPluginTestCase(StdStreamCapturingMixin, TempDirMixin, TestCase): stderr = self.stderr() self.assertIn( "Coverage.py wa...
Fix failing tests due to typo in error message Commit <I>a<I> of coverage.py changed the error message string. <URL>
py
diff --git a/odinweb/testing.py b/odinweb/testing.py index <HASH>..<HASH> 100644 --- a/odinweb/testing.py +++ b/odinweb/testing.py @@ -7,12 +7,14 @@ Collection of Mocks and Tools for testing APIs. """ from odin.codecs import json_codec +from odinweb.constants import Method + class MockRequest(object): """ ...
Default method to use a Method constant
py
diff --git a/pandas/tools/merge.py b/pandas/tools/merge.py index <HASH>..<HASH> 100644 --- a/pandas/tools/merge.py +++ b/pandas/tools/merge.py @@ -312,28 +312,6 @@ class _MergeOperation(object): sort=self.sort) return left_group_key, right_group_key, max_groups - -def _get_join_...
ENH: delete cruft from #<I>
py
diff --git a/jira/client.py b/jira/client.py index <HASH>..<HASH> 100644 --- a/jira/client.py +++ b/jira/client.py @@ -3061,7 +3061,7 @@ class JIRA(object): """ @translate_resource_args - def boards(self, startAt=0, maxResults=50, type=None, name=None): + def boards(self, startAt=0, maxResults=50, typ...
Add projectKeyOrID param to boards() as a search filter param
py
diff --git a/datasketch/weighted_minhash.py b/datasketch/weighted_minhash.py index <HASH>..<HASH> 100644 --- a/datasketch/weighted_minhash.py +++ b/datasketch/weighted_minhash.py @@ -99,7 +99,7 @@ class WeightedMinHashGenerator(object): t = np.floor((vlog / self.rs[i]) + self.betas[i]) ln_y = ...
Fix argmin with NaNs
py
diff --git a/openquake/hazard/opensha.py b/openquake/hazard/opensha.py index <HASH>..<HASH> 100644 --- a/openquake/hazard/opensha.py +++ b/openquake/hazard/opensha.py @@ -732,7 +732,6 @@ class EventBasedMixin(BasePSHAMixin): common_path = os.path.join(self.base_path, self['OUTPUT_DIR'], ...
removed tiff output from event based Former-commit-id: b<I>e<I>c<I>c3dbb<I>d<I>be0f<I>fe2ca
py
diff --git a/mesh_tensorflow/transformer/utils.py b/mesh_tensorflow/transformer/utils.py index <HASH>..<HASH> 100644 --- a/mesh_tensorflow/transformer/utils.py +++ b/mesh_tensorflow/transformer/utils.py @@ -1235,6 +1235,9 @@ def _score_with_estimator(estimator, input_fn, eval_checkpoint_step, model_dir, scores.app...
Remove padded examples after scoring by assuming that empty targets at end are padding. PiperOrigin-RevId: <I>
py
diff --git a/openquake/baselib/parallel.py b/openquake/baselib/parallel.py index <HASH>..<HASH> 100644 --- a/openquake/baselib/parallel.py +++ b/openquake/baselib/parallel.py @@ -794,22 +794,17 @@ def split_task(func, *args, duration=1000, :param weight: weight function for the elements in args[0] :yields: a ...
Introduced random.choice in split_task
py
diff --git a/pychatjs/server/user_server.py b/pychatjs/server/user_server.py index <HASH>..<HASH> 100644 --- a/pychatjs/server/user_server.py +++ b/pychatjs/server/user_server.py @@ -47,7 +47,7 @@ class UserServer(object): def is_username_used(self, username): return username in self.registered_names ...
durp - forgot to revert changes made for new user model
py
diff --git a/editquality/utilities/prelabel.py b/editquality/utilities/prelabel.py index <HASH>..<HASH> 100644 --- a/editquality/utilities/prelabel.py +++ b/editquality/utilities/prelabel.py @@ -107,7 +107,7 @@ def run(api_host, rev_ids, labels, trusted_groups, trusted_edits, user_id, user_text = rev_doc.g...
Fixes deleted user issues in prelabeler
py
diff --git a/pliers/extractors/base.py b/pliers/extractors/base.py index <HASH>..<HASH> 100644 --- a/pliers/extractors/base.py +++ b/pliers/extractors/base.py @@ -5,7 +5,7 @@ from six import with_metaclass import pandas as pd import numpy as np from pliers.transformers import Transformer -from pliers.utils import is...
test onset/duration mismatch in all extractors
py
diff --git a/trakt/version.py b/trakt/version.py index <HASH>..<HASH> 100644 --- a/trakt/version.py +++ b/trakt/version.py @@ -1 +1 @@ -__version__ = '2.7.1' +__version__ = '2.8.0'
Bumped version to <I>
py
diff --git a/libexec/windows_shares_discovery_runner.py b/libexec/windows_shares_discovery_runner.py index <HASH>..<HASH> 100755 --- a/libexec/windows_shares_discovery_runner.py +++ b/libexec/windows_shares_discovery_runner.py @@ -30,7 +30,7 @@ parser = optparse.OptionParser( "%prog [options] -H HOSTADRESS -u DOMA...
Add long option `--hostname`: same as short option `-H`.
py
diff --git a/lenses/baselens.py b/lenses/baselens.py index <HASH>..<HASH> 100644 --- a/lenses/baselens.py +++ b/lenses/baselens.py @@ -133,9 +133,10 @@ class ComposedLens(LensLike): @staticmethod def _filter_lenses(lenses): for lens in lenses: - if isinstance(lens, TrivialLens): + ...
factor out type(lens) from ComposedLens._filter_lenses this mainly exists to stop autopep8 from trying to use isinstance here
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -29,6 +29,11 @@ pkgversion = couchbase_version.get_version() LCB_NAME = None if sys.platform != 'win32': extoptions['libraries'] = ['couchbase'] + if sys.platform == 'darwin' and sys.executable == '/usr/bin/python': ...
Manually add /usr/local when Apple's python is being used. Change-Id: I8dc5fab<I>cdaf<I>e<I>cef4ba7a<I>a<I>ade6 Reviewed-on: <URL>
py
diff --git a/Lib/fontbakery/profiles/googlefonts.py b/Lib/fontbakery/profiles/googlefonts.py index <HASH>..<HASH> 100644 --- a/Lib/fontbakery/profiles/googlefonts.py +++ b/Lib/fontbakery/profiles/googlefonts.py @@ -5230,12 +5230,18 @@ def com_google_fonts_check_metadata_escaped_strings(metadata_file): @check( i...
rationale for check/metadata/designer_profiles
py
diff --git a/napalm_eos/eos.py b/napalm_eos/eos.py index <HASH>..<HASH> 100644 --- a/napalm_eos/eos.py +++ b/napalm_eos/eos.py @@ -1429,13 +1429,13 @@ class EOSDriver(NetworkDriver): return optics_detail - def get_config(self, retrieve=None): + def get_config(self, retrieve="all"): """get_co...
Updating retrieve default value of None to all
py
diff --git a/datatableview/columns.py b/datatableview/columns.py index <HASH>..<HASH> 100644 --- a/datatableview/columns.py +++ b/datatableview/columns.py @@ -118,9 +118,6 @@ class Column(six.with_metaclass(ColumnMetaclass)): self.allow_regex = allow_regex self.allow_full_text_search = allow_full_text...
Remove forced sortable=False Pure virtual columns still need to be sortable if the developer wishes.
py
diff --git a/troposphere/codepipeline.py b/troposphere/codepipeline.py index <HASH>..<HASH> 100644 --- a/troposphere/codepipeline.py +++ b/troposphere/codepipeline.py @@ -131,3 +131,32 @@ class Pipeline(AWSObject): 'RoleArn': (basestring, True), 'Stages': ([Stages], True) } + + +class WebhookAuth...
Add CodePipeline::Webhook resource
py
diff --git a/nefertari/elasticsearch.py b/nefertari/elasticsearch.py index <HASH>..<HASH> 100644 --- a/nefertari/elasticsearch.py +++ b/nefertari/elasticsearch.py @@ -549,11 +549,6 @@ class ES(object): else: _params['body'] = params['body'] - if _identifiers is not None: - perm...
Apply ACL filtering last in ES
py
diff --git a/salt/minion.py b/salt/minion.py index <HASH>..<HASH> 100644 --- a/salt/minion.py +++ b/salt/minion.py @@ -478,7 +478,8 @@ class Minion(object): poller = zmq.Poller() socket = context.socket(zmq.SUB) socket.setsockopt(zmq.SUBSCRIBE, '') - socket.setsockopt(zmq.IDENTITY, sel...
only use zmq identity if the sub_timeout is being used
py
diff --git a/tomodachi/transport/aws_sns_sqs.py b/tomodachi/transport/aws_sns_sqs.py index <HASH>..<HASH> 100644 --- a/tomodachi/transport/aws_sns_sqs.py +++ b/tomodachi/transport/aws_sns_sqs.py @@ -133,7 +133,10 @@ class AWSSNSSQSTransport(Invoker): async def handler(payload: Optional[str], receipt_handle: ...
Fixes race condition while draining SQS receive_messages call and shutting down service
py
diff --git a/tests/tests_client/test_properties.py b/tests/tests_client/test_properties.py index <HASH>..<HASH> 100644 --- a/tests/tests_client/test_properties.py +++ b/tests/tests_client/test_properties.py @@ -28,6 +28,7 @@ request_test = RequestTest @pytest.mark.asyncio +@pytest.mark.skip async def test_peony_c...
disable get_user test that definitely works in a real case but the tests fail
py
diff --git a/intranet/apps/eighth/forms/admin/activities.py b/intranet/apps/eighth/forms/admin/activities.py index <HASH>..<HASH> 100644 --- a/intranet/apps/eighth/forms/admin/activities.py +++ b/intranet/apps/eighth/forms/admin/activities.py @@ -116,5 +116,6 @@ class ActivityForm(forms.ModelForm): "senior...
keep width of name in act edit constant with other fields
py
diff --git a/fireplace/cards/classic/neutral_legendary.py b/fireplace/cards/classic/neutral_legendary.py index <HASH>..<HASH> 100644 --- a/fireplace/cards/classic/neutral_legendary.py +++ b/fireplace/cards/classic/neutral_legendary.py @@ -17,7 +17,7 @@ class EX1_014: # Bananas class EX1_014t: - action = [Buff("EX1_...
Fix Bananas from Mukla
py
diff --git a/axes/checks.py b/axes/checks.py index <HASH>..<HASH> 100644 --- a/axes/checks.py +++ b/axes/checks.py @@ -99,11 +99,14 @@ def axes_deprecation_check(app_configs, **kwargs): # pylint: disable=unused-arg ] for deprecated_setting in deprecated_settings: - if getattr(settings, deprecated_se...
Improve check for deprecated flags Checking with getattr(object, name, [default]) provides false positivies for flags that have their value set to None. Checking with try: getattr(object, name) always produces correct check values if a flag is defined in project settings. Default values for flags are defined in the Ax...
py
diff --git a/locksmith/mongoauth/middleware.py b/locksmith/mongoauth/middleware.py index <HASH>..<HASH> 100644 --- a/locksmith/mongoauth/middleware.py +++ b/locksmith/mongoauth/middleware.py @@ -14,7 +14,3 @@ class APIKeyMiddleware(object): apikey = db.keys.find_one({'_id':key}) if apikey: ...
don't log every request.path
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -67,7 +67,6 @@ setup( "Products.ATContentTypes", "Products.CMFEditions", "Products.DataGridField", - "Products.TextIndexNG3", "Products.contentmigration", # tinycss2 >= 1.0.0...
Remove Products.TextIndexNG3 requirement (#<I>)
py
diff --git a/menuconfig.py b/menuconfig.py index <HASH>..<HASH> 100755 --- a/menuconfig.py +++ b/menuconfig.py @@ -90,7 +90,7 @@ import re import textwrap from kconfiglib import Symbol, Choice, MENU, COMMENT, MenuNode, \ - BOOL, STRING, INT, HEX, UNKNOWN, \ + BOOL, TRISTA...
menuconfig: Omit tristate value hint for int/string/hex defaults Previously, defaults for string/int/hex symbols showed up as e.g. '<I> (value: "n")' in the symbol information, which looks confusing. Only display the hint for bool/tristate symbols to fix it. For "non-literal" symbols, _expr_str() still takes care of ...
py
diff --git a/openquake/risk/common.py b/openquake/risk/common.py index <HASH>..<HASH> 100644 --- a/openquake/risk/common.py +++ b/openquake/risk/common.py @@ -25,6 +25,7 @@ or loss curves. from numpy import mean from openquake import shapes +from openquake.utils.general import unique def compute_conditional_lo...
loss curve must have no dups
py
diff --git a/slave/__init__.py b/slave/__init__.py index <HASH>..<HASH> 100644 --- a/slave/__init__.py +++ b/slave/__init__.py @@ -5,7 +5,7 @@ import warnings -__version__ = '0.3.0.dev' +__version__ = '0.3.0' # Test if ipythons autocall feature is enabled. It can cause serious problems, # because attributes ar...
Bumped version number to <I>
py
diff --git a/jaraco/services/__init__.py b/jaraco/services/__init__.py index <HASH>..<HASH> 100644 --- a/jaraco/services/__init__.py +++ b/jaraco/services/__init__.py @@ -116,7 +116,21 @@ class ServiceManager(list): class Guard(object): - "Prevent execution of a function unless arguments pass self.allowed()" + ...
Add docs and tests for Guard
py
diff --git a/socialregistration/templatetags/socialregistration_tags.py b/socialregistration/templatetags/socialregistration_tags.py index <HASH>..<HASH> 100644 --- a/socialregistration/templatetags/socialregistration_tags.py +++ b/socialregistration/templatetags/socialregistration_tags.py @@ -50,7 +50,9 @@ class OpenI...
Don't blindly set the value, delete it if it exists instead. Otherwise you negatively impact your cache hit count.
py
diff --git a/optalg/opt_solver/augl.py b/optalg/opt_solver/augl.py index <HASH>..<HASH> 100644 --- a/optalg/opt_solver/augl.py +++ b/optalg/opt_solver/augl.py @@ -366,7 +366,10 @@ class OptSolverAugL(OptSolver): if not self.linsolver1.is_analyzed(): self.linsolver1.analyze(W) - return sel...
caught runtime error during augl computation of search dir
py
diff --git a/gwpy/io/cache.py b/gwpy/io/cache.py index <HASH>..<HASH> 100644 --- a/gwpy/io/cache.py +++ b/gwpy/io/cache.py @@ -161,7 +161,7 @@ def file_segment(filename): e.args = ('Failed to parse %r as LIGO-T050017-compatible filename' % filename,) raise - s = i...
cache_segments: allow float GPS start time doesn't really fit with T<I>, but pycbc files use it
py
diff --git a/src/sentry_plugins/github/endpoints/webhook.py b/src/sentry_plugins/github/endpoints/webhook.py index <HASH>..<HASH> 100644 --- a/src/sentry_plugins/github/endpoints/webhook.py +++ b/src/sentry_plugins/github/endpoints/webhook.py @@ -57,6 +57,12 @@ class PushEventWebhook(Webhook): except Repositor...
github: store full_name in repository metadata
py
diff --git a/bugzoo/__init__.py b/bugzoo/__init__.py index <HASH>..<HASH> 100644 --- a/bugzoo/__init__.py +++ b/bugzoo/__init__.py @@ -3,4 +3,4 @@ import bugzoo.cli import bugzoo.tool from bugzoo.patch import Patch -from bugzoo.bug import Artefact +from bugzoo.bug import Bug
fixed instance of Artefact to Bug
py
diff --git a/salt/utils/config.py b/salt/utils/config.py index <HASH>..<HASH> 100644 --- a/salt/utils/config.py +++ b/salt/utils/config.py @@ -312,7 +312,7 @@ from __future__ import absolute_import, print_function import sys import inspect -#import textwrap +import textwrap import functools # Import salt libs @@...
Dedent and strip description if equal to docstring
py
diff --git a/revrand/basis_functions.py b/revrand/basis_functions.py index <HASH>..<HASH> 100644 --- a/revrand/basis_functions.py +++ b/revrand/basis_functions.py @@ -303,10 +303,12 @@ class BiasBasis(Basis): A scalar value to give the bias column. By default this is one. """ + @slice_init def _...
slice_init and slice_call needed by BiasBasis
py
diff --git a/pycanvas/course.py b/pycanvas/course.py index <HASH>..<HASH> 100644 --- a/pycanvas/course.py +++ b/pycanvas/course.py @@ -517,6 +517,22 @@ class Course(CanvasObject): ) return Page(self._requester, response.json()) + def create_front_page(self, **kwargs): + """ + Update...
added method for create front page for courses
py
diff --git a/bqplot/marks.py b/bqplot/marks.py index <HASH>..<HASH> 100644 --- a/bqplot/marks.py +++ b/bqplot/marks.py @@ -587,7 +587,7 @@ class OHLC(Mark): # Other attributes marker = Enum(['candle', 'bar'], allow_none=False, sync=True, default_value='candle', exposed=True, display_index=3, display_name='Mar...
Reverted one line in marks.py, it was meant for a future commit
py
diff --git a/ceam/components/disease_models.py b/ceam/components/disease_models.py index <HASH>..<HASH> 100644 --- a/ceam/components/disease_models.py +++ b/ceam/components/disease_models.py @@ -63,7 +63,7 @@ def heart_disease_factory(): # TODO: Figure out how to make asymptomatic ihd be equal to whatever is left ...
only test left is to do a full run
py
diff --git a/lewis/core/devices.py b/lewis/core/devices.py index <HASH>..<HASH> 100644 --- a/lewis/core/devices.py +++ b/lewis/core/devices.py @@ -114,8 +114,8 @@ class DeviceBuilder(object): submodules = get_submodules(self._module) # Devices can be in __init__.py, device.py, or any devices/*.py - ...
Re-added list conversions for Py3
py
diff --git a/bibliopixel/animation/base.py b/bibliopixel/animation/base.py index <HASH>..<HASH> 100644 --- a/bibliopixel/animation/base.py +++ b/bibliopixel/animation/base.py @@ -13,7 +13,6 @@ class BaseAnimation(object): self._step = 0 self._timeRef = 0 self._internalDelay = None - se...
Get rid of BaseAnimation._callback.
py
diff --git a/pifpaf/drivers/gnocchi.py b/pifpaf/drivers/gnocchi.py index <HASH>..<HASH> 100644 --- a/pifpaf/drivers/gnocchi.py +++ b/pifpaf/drivers/gnocchi.py @@ -103,6 +103,9 @@ class GnocchiDriver(drivers.Driver): f.write("""[storage] driver = %s %s = %s +[metricd] +metric_processing_delay = 1 +metric_...
gnocchi: Reduce the metricd delays pifpaf is mainly used for testing, waiting 1 or 5 minutes per test in not fun, so this reduces gnocchi-metricd delays to 1 second.
py
diff --git a/HARK/tests/test_econforgeinterp.py b/HARK/tests/test_econforgeinterp.py index <HASH>..<HASH> 100644 --- a/HARK/tests/test_econforgeinterp.py +++ b/HARK/tests/test_econforgeinterp.py @@ -1,5 +1,3 @@ -from operator import index -from typing import no_type_check_decorator import unittest import numpy as np ...
Rm unused imports and methods
py
diff --git a/jplephem/daf.py b/jplephem/daf.py index <HASH>..<HASH> 100644 --- a/jplephem/daf.py +++ b/jplephem/daf.py @@ -169,7 +169,20 @@ class DAF(object): values = self.summary_struct.unpack(data) yield name, values - def _add_summary(self, record_number, data, name): + def...
Add method that knows where summary indexes are
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -74,6 +74,7 @@ setup( scripts=["tools/parse_xsd2.py", "tools/make_metadata.py"], tests_require=[ + 'mongodict', 'pyasn1', 'pymongo', 'python-memcached', @@ -81,12 +82,6 @@ setup( ...
Add pymongo to tests_requires and remove extras_requires since it is not used
py
diff --git a/hotdoc/utils/patcher.py b/hotdoc/utils/patcher.py index <HASH>..<HASH> 100644 --- a/hotdoc/utils/patcher.py +++ b/hotdoc/utils/patcher.py @@ -1,14 +1,26 @@ +""" +Banana banana +""" import codecs import commands + +# pylint: disable=too-few-public-methods class Patcher(object): - def patch (self, fi...
patcher: pylint + pep8
py
diff --git a/Lib/glyphsLib/classes.py b/Lib/glyphsLib/classes.py index <HASH>..<HASH> 100755 --- a/Lib/glyphsLib/classes.py +++ b/Lib/glyphsLib/classes.py @@ -58,10 +58,10 @@ class GSBase(object): klass = self._classesForName[key] if issubclass(klass, GSBase): ...
classes: defaults as None in GSBase and GSGlyphs
py
diff --git a/salt/modules/nzbget.py b/salt/modules/nzbget.py index <HASH>..<HASH> 100644 --- a/salt/modules/nzbget.py +++ b/salt/modules/nzbget.py @@ -6,7 +6,7 @@ import salt.utils def __virtual__(): ''' - Only load the module if apache is installed + Only load the module if nzbget is installed ''' ...
Change apache to nzbget
py
diff --git a/holoviews/plotting/bokeh/element.py b/holoviews/plotting/bokeh/element.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/bokeh/element.py +++ b/holoviews/plotting/bokeh/element.py @@ -596,7 +596,9 @@ class ElementPlot(BokehPlot, GenericElementPlot): def framewise(self): """ Pro...
Improved docstring for bokeh ElementPlot framewise property
py
diff --git a/filterpy/common/discretization.py b/filterpy/common/discretization.py index <HASH>..<HASH> 100644 --- a/filterpy/common/discretization.py +++ b/filterpy/common/discretization.py @@ -126,7 +126,7 @@ def Q_discrete_white_noise(dim, dt=1., var=1., block_size=1, order_by_dim=True): """ if not (dim ...
Changed assert to raise I was trying to raise ValueError, but I asserted on it, which of course did nothing, being != False.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,14 +1,14 @@ from distutils.core import setup setup(name='webcolors', - version='0.1', + version='1.0', description='A library for working with sRGB color specifications as used in HTML and CSS.', ...
Let's call it <I> already
py
diff --git a/cassandra/metadata.py b/cassandra/metadata.py index <HASH>..<HASH> 100644 --- a/cassandra/metadata.py +++ b/cassandra/metadata.py @@ -130,7 +130,7 @@ class Metadata(object): new_table_metas = {} for table_row in cf_results: table_meta = self._build_table_metadata( - ...
Row format is dict, not namedtuple for schema refresh
py
diff --git a/zopkio/deployer.py b/zopkio/deployer.py index <HASH>..<HASH> 100644 --- a/zopkio/deployer.py +++ b/zopkio/deployer.py @@ -245,8 +245,9 @@ class Deployer(object): install_path = self.processes[unique_id].install_path self.fetch_logs_from_host(hostname, install_path, unique_id, logs, directory, pat...
Make the fetch logs from host function static so it gives greater flexibilty to test writes having their own deploy mechanisms.
py
diff --git a/entry.py b/entry.py index <HASH>..<HASH> 100644 --- a/entry.py +++ b/entry.py @@ -26,11 +26,6 @@ app.config.from_object('config') app.config.from_pyfile('local.cfg', silent=True) init_app(app) -import logging -LOG_FILENAME = 'data/run.log' -logging.basicConfig(filename=LOG_FILENAME, level=logging.INFO)...
Log isn't needed for dev server
py
diff --git a/fontbakery.py b/fontbakery.py index <HASH>..<HASH> 100755 --- a/fontbakery.py +++ b/fontbakery.py @@ -67,8 +67,8 @@ def run_bakery(sourcedir, config=None): b.load_config(config) b.run() - except Exception, ex: - print >> sys.stderr, ex + except Exception: + print >> ...
to stderr print failed font
py
diff --git a/cassandra/metadata.py b/cassandra/metadata.py index <HASH>..<HASH> 100644 --- a/cassandra/metadata.py +++ b/cassandra/metadata.py @@ -862,7 +862,10 @@ class TokenMap(object): def replica_map_for_keyspace(self, ks_metadata): strategy = ks_metadata.replication_strategy - return strateg...
Handle missing/unrecognized replication strategy
py
diff --git a/src/python/pants/binaries/binary_tool.py b/src/python/pants/binaries/binary_tool.py index <HASH>..<HASH> 100644 --- a/src/python/pants/binaries/binary_tool.py +++ b/src/python/pants/binaries/binary_tool.py @@ -9,6 +9,7 @@ import logging import os from pants.binaries.binary_util import BinaryRequest, Bi...
Script BinaryUtils can be captured as snapshots (#<I>) This is a hacky transition step until we pull the BinaryUtils subsystem into v2. I could not work out how to unit test this change, as I could not create a context object which actually had the options I specified. An integration test, however, will follow...
py
diff --git a/nudibranch/helpers.py b/nudibranch/helpers.py index <HASH>..<HASH> 100644 --- a/nudibranch/helpers.py +++ b/nudibranch/helpers.py @@ -13,7 +13,7 @@ class DummyTemplateAttr(object): def readlines(path): with open(path, 'r') as fh: - return fh.readlines() + return fh.read().splitlines()...
Fixed issue involving newlines being masked in diff output.
py