diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( long_description=open('README.md').read(), author = u'Juan Pedro Fisanotti', author_email = 'fisadev@gmail.com', - url='', + url='http://github.com/fisadev/simpleai', packages=['...
Url filled on setup.py
py
diff --git a/oauthlib/oauth2/rfc6749/grant_types/openid_connect.py b/oauthlib/oauth2/rfc6749/grant_types/openid_connect.py index <HASH>..<HASH> 100644 --- a/oauthlib/oauth2/rfc6749/grant_types/openid_connect.py +++ b/oauthlib/oauth2/rfc6749/grant_types/openid_connect.py @@ -96,14 +96,14 @@ class OpenIDConnectBase(Grant...
Test for membership should be "not in", here too.
py
diff --git a/salt/daemons/flo/core.py b/salt/daemons/flo/core.py index <HASH>..<HASH> 100644 --- a/salt/daemons/flo/core.py +++ b/salt/daemons/flo/core.py @@ -403,6 +403,7 @@ class SaltManorLaneSetup(ioflo.base.deeding.Deed): worker_seed.append('yard{0}'.format(ind + 1)) self.workers.value...
Fix missing line lint issue
py
diff --git a/airflow/www/views.py b/airflow/www/views.py index <HASH>..<HASH> 100644 --- a/airflow/www/views.py +++ b/airflow/www/views.py @@ -2336,7 +2336,7 @@ class TaskInstanceModelView(ModelViewOnly): queued_dttm=datetime_f, dag_id=dag_link, duration=duration_f) column_searchable_list = ('dag...
[AIRFLOW-<I>] Change default sort to job_id for TaskInstanceModelView The TaskInstanceModelView default sort column is on an unindexed column. We shouldn't need an index on start_date, and job_id is just as logical of a default sort. Closes #<I> from saguziel/aguziel-fix-ti-page
py
diff --git a/python/herald/core.py b/python/herald/core.py index <HASH>..<HASH> 100644 --- a/python/herald/core.py +++ b/python/herald/core.py @@ -489,23 +489,7 @@ class Herald(object): :param message: Message received from another peer :param kind: Kind of directory message """ - if k...
Removed unused 2-steps directory update from Herald Core
py
diff --git a/modularodm/StoredObject.py b/modularodm/StoredObject.py index <HASH>..<HASH> 100644 --- a/modularodm/StoredObject.py +++ b/modularodm/StoredObject.py @@ -412,6 +412,12 @@ class StoredObject(object): return self._backrefs[item] raise AttributeError(item + ' not found') + def __set...
warn on storedobject __setattr__ if key not in fields and not special
py
diff --git a/openquake/calculators/event_based.py b/openquake/calculators/event_based.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/event_based.py +++ b/openquake/calculators/event_based.py @@ -260,7 +260,7 @@ class EventBasedRuptureCalculator(base.HazardCalculator): oq = self.oqparam src...
Changed weight in event_based hazard [skip hazardlib] Former-commit-id: b2ec6f<I>a1d<I>a<I>d<I>ae8a
py
diff --git a/tools/c7n_org/c7n_org/cli.py b/tools/c7n_org/c7n_org/cli.py index <HASH>..<HASH> 100644 --- a/tools/c7n_org/c7n_org/cli.py +++ b/tools/c7n_org/c7n_org/cli.py @@ -341,6 +341,8 @@ def report_account(account, region, policies_config, output_path, cache_path, de for t in account.get('tags', ()): ...
c7n-org - report - don't overwrite when merging account tags to resource (#<I>)
py
diff --git a/www/src/Lib/browser/template.py b/www/src/Lib/browser/template.py index <HASH>..<HASH> 100644 --- a/www/src/Lib/browser/template.py +++ b/www/src/Lib/browser/template.py @@ -233,8 +233,10 @@ class Template: nothing otherwise. If the value is of another type, add its string representation....
Fix bug in template with attribute values : they are always strings, so for value-less attributes (eg "checked" for radio buttons), test values "False" and "True" as strings, not booleans.
py
diff --git a/tests/test_main.py b/tests/test_main.py index <HASH>..<HASH> 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -376,8 +376,8 @@ class TestMain(TmpDirTestCase): f.write('image: scuba/notheredoesnotexistbb7e344f9722\n') args = [ - '--image', 'scuba/entrypoint-test...
test: Use normal DOCKER_IMAGE for tests that don't need entrypoint-test
py
diff --git a/settings.py b/settings.py index <HASH>..<HASH> 100644 --- a/settings.py +++ b/settings.py @@ -48,7 +48,7 @@ MIDDLEWARE = ( 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', - 'django.contrib...
:bug: :white_check_mark: more settings fixes after merge
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ def update_and_get_version(): tcod/version.txt is placed in sdist, but is not in the master branch ''' try: - version = subprocess.check_output(['git', 'describe']) + version = subpr...
include stderr in those details
py
diff --git a/src/transformers/keras_callbacks.py b/src/transformers/keras_callbacks.py index <HASH>..<HASH> 100644 --- a/src/transformers/keras_callbacks.py +++ b/src/transformers/keras_callbacks.py @@ -202,7 +202,7 @@ class KerasMetricCallback(Callback): predictions = self.model.generate(generation_...
Reduce console spam when using the KerasMetricCallback (#<I>) * Reduce console spam when using the KerasMetricCallback * Switch to predict_on_batch to improve performance
py
diff --git a/src/REST/keywords.py b/src/REST/keywords.py index <HASH>..<HASH> 100644 --- a/src/REST/keywords.py +++ b/src/REST/keywords.py @@ -1245,9 +1245,10 @@ class Keywords(object): try: response_body = response.json() except ValueError: - logger.warn("Response body is not ...
Fix logging warning on content not JSON, when no content at all
py
diff --git a/fc/plot.py b/fc/plot.py index <HASH>..<HASH> 100644 --- a/fc/plot.py +++ b/fc/plot.py @@ -219,12 +219,12 @@ def density2d(data, """ Plot a 2D density plot from two specified channels of a FCSData object. - `density2d` has two plotting modes, which are selected using the `mode` + `density2...
Small changes to docstring in fc.plot.density2d.
py
diff --git a/features/eolearn/features/interpolation.py b/features/eolearn/features/interpolation.py index <HASH>..<HASH> 100644 --- a/features/eolearn/features/interpolation.py +++ b/features/eolearn/features/interpolation.py @@ -128,7 +128,8 @@ class InterpolationTask(EOTask): if self.feature_name not in eop...
minor fixes * copy data array when setting invalid data to nans * adding bbox to newly created eopatch
py
diff --git a/ssbio/test/conftest.py b/ssbio/test/conftest.py index <HASH>..<HASH> 100644 --- a/ssbio/test/conftest.py +++ b/ssbio/test/conftest.py @@ -43,6 +43,20 @@ def test_files_outputs(test_files): @pytest.fixture(scope='module') +def test_files_atlas(test_files): + """ATLAS files""" + # ssbio/test/test_...
Many more GEMPRO pipeline tests! (cherry picked from commit <I>ad)
py
diff --git a/pandas/core/series.py b/pandas/core/series.py index <HASH>..<HASH> 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -1063,7 +1063,7 @@ class Series(np.ndarray, PandasGeneric): if method == 'bfill': method = 'backfill' - mask = isnull(self.values) ...
casting to uint8 for numpy < <I> compat
py
diff --git a/test_autolens/unit/pipeline/phase/test_phase_extensions.py b/test_autolens/unit/pipeline/phase/test_phase_extensions.py index <HASH>..<HASH> 100644 --- a/test_autolens/unit/pipeline/phase/test_phase_extensions.py +++ b/test_autolens/unit/pipeline/phase/test_phase_extensions.py @@ -34,7 +34,10 @@ class Mock...
added method overrides to optimizer
py
diff --git a/parsl/executors/high_throughput/interchange.py b/parsl/executors/high_throughput/interchange.py index <HASH>..<HASH> 100644 --- a/parsl/executors/high_throughput/interchange.py +++ b/parsl/executors/high_throughput/interchange.py @@ -548,7 +548,7 @@ class Interchange(object): resul...
Send only log manager failure report once per manager (#<I>) Prior to this, it was logged for each outstanding task.
py
diff --git a/wafer/users/serializers.py b/wafer/users/serializers.py index <HASH>..<HASH> 100644 --- a/wafer/users/serializers.py +++ b/wafer/users/serializers.py @@ -6,3 +6,6 @@ class UserSerializer(serializers.ModelSerializer): class Meta: model = get_user_model() + # Arguably not useful to exp...
Don't expose password via the api for now
py
diff --git a/planet/api/sync.py b/planet/api/sync.py index <HASH>..<HASH> 100644 --- a/planet/api/sync.py +++ b/planet/api/sync.py @@ -125,7 +125,7 @@ class _SyncSummary(object): with self._lock: self.remaining -= 1 self.transferred += len(body) - recent = strp_timestamp(me...
fix for sync tool being out of sync use published date for latest timestamp tracking
py
diff --git a/vdom/core.py b/vdom/core.py index <HASH>..<HASH> 100644 --- a/vdom/core.py +++ b/vdom/core.py @@ -177,8 +177,9 @@ class VDOM(object): return attributes def to_dict(self): - - attr_tuple = (self.attributes.items(), {"style": self.style}.items()) if self.style else (self.attributes.ite...
coerce style into being a dict
py
diff --git a/pylint/checkers/imports.py b/pylint/checkers/imports.py index <HASH>..<HASH> 100644 --- a/pylint/checkers/imports.py +++ b/pylint/checkers/imports.py @@ -86,9 +86,7 @@ def _get_first_import(node, context, name, base, level, alias): if fullname == '%s.%s' % (first.modname, imported_name...
Simplify the code by removing an indentation level.
py
diff --git a/djstripe/decorators.py b/djstripe/decorators.py index <HASH>..<HASH> 100644 --- a/djstripe/decorators.py +++ b/djstripe/decorators.py @@ -5,7 +5,6 @@ from functools import wraps from django.core.exceptions import ImproperlyConfigured from django.shortcuts import redirect -from django.utils.decorators i...
Django <I> compatibility fix (#<I>) ``django.utils.decorators.available_attrs`` was removed in Django <I>, but it had no effect in python 3 anyway - it returned ``functools.WRAPPER_ASSIGNMENTS``, which is the default param of wraps (it doesn't do anything with the passed function).
py
diff --git a/pandas/tests/groupby/transform/test_numba.py b/pandas/tests/groupby/transform/test_numba.py index <HASH>..<HASH> 100644 --- a/pandas/tests/groupby/transform/test_numba.py +++ b/pandas/tests/groupby/transform/test_numba.py @@ -131,7 +131,7 @@ def test_use_global_config(): @td.skip_if_no("numba", "0.46.0"...
remove trailing comma (#<I>)
py
diff --git a/ipa/ipa_provider.py b/ipa/ipa_provider.py index <HASH>..<HASH> 100644 --- a/ipa/ipa_provider.py +++ b/ipa/ipa_provider.py @@ -198,9 +198,13 @@ class IpaProvider(object): The test files are expanded to absolute paths given test names and a list of availble test dirs to use. """ - ...
Allow test directory args to override defaults. This prevents confusion when user supplies directories.
py
diff --git a/stacker/blueprints/vpc.py b/stacker/blueprints/vpc.py index <HASH>..<HASH> 100644 --- a/stacker/blueprints/vpc.py +++ b/stacker/blueprints/vpc.py @@ -88,10 +88,20 @@ class VPC(Blueprint): VPCId=VPC_ID, VPCRegion=Ref("AWS::Region"))], Condition="Cre...
Add a condition on CreateInternalDomain before referencing output InternalDomain output is only available if CreateInternalDomain is specified
py
diff --git a/gflex/base.py b/gflex/base.py index <HASH>..<HASH> 100644 --- a/gflex/base.py +++ b/gflex/base.py @@ -280,9 +280,9 @@ class Plotting(object): ax.plot(self.x/1000., self.qs/(self.rho_m*self.g) + self.w,'g-',linewidth=2,label="Deflection [m] + load thickness [m mantle equivalent]") # ...
Deflection plot label fix -- units plain meters
py
diff --git a/petrel/petrel/topologybuilder.py b/petrel/petrel/topologybuilder.py index <HASH>..<HASH> 100644 --- a/petrel/petrel/topologybuilder.py +++ b/petrel/petrel/topologybuilder.py @@ -49,6 +49,9 @@ class TopologyBuilder(object): self._initCommon(id, spout, parallelism_hint); self._spouts[id] = ...
New "addOutputStream()" function on TopologyBuilder
py
diff --git a/test_schedule.py b/test_schedule.py index <HASH>..<HASH> 100644 --- a/test_schedule.py +++ b/test_schedule.py @@ -101,8 +101,12 @@ class SchedulerTests(unittest.TestCase): # test a valid unit with invalid hours/minutes/seconds job_instance.unit = "days" + self.assertRaises(Schedu...
Properly test invalid hours/minutes/seconds
py
diff --git a/synapse/tests/test_lib_ingest.py b/synapse/tests/test_lib_ingest.py index <HASH>..<HASH> 100644 --- a/synapse/tests/test_lib_ingest.py +++ b/synapse/tests/test_lib_ingest.py @@ -747,8 +747,8 @@ class IngTest(SynTest): ]], ["inet:email",[ - ...
make ingest test syntax more json like
py
diff --git a/zarr/tests/test_core.py b/zarr/tests/test_core.py index <HASH>..<HASH> 100644 --- a/zarr/tests/test_core.py +++ b/zarr/tests/test_core.py @@ -876,9 +876,14 @@ class TestArray(unittest.TestCase): def test_object_arrays(self): # an object_codec is required for object arrays - with pyte...
raise error when we can be sure there is no object codec
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -258,6 +258,9 @@ class testIcalendar(unittest.TestCase): # END PY3 PROBLEM!!!!!!!!!!!!!! def test_recurrence(self): + # PY3 PROBLEM!!!!!!!!!!!!!! + # strings mean vevent is not what is expected, a...
back up to working build :-(
py
diff --git a/atx/drivers/ios_webdriveragent.py b/atx/drivers/ios_webdriveragent.py index <HASH>..<HASH> 100644 --- a/atx/drivers/ios_webdriveragent.py +++ b/atx/drivers/ios_webdriveragent.py @@ -120,14 +120,19 @@ class IOSDevice(DeviceMixin): Args: x, y(int): position """ - if self...
add swipe to ios, close #<I>
py
diff --git a/ross/templates/notes.py b/ross/templates/notes.py index <HASH>..<HASH> 100644 --- a/ross/templates/notes.py +++ b/ross/templates/notes.py @@ -9,6 +9,13 @@ Copyright (C) 2015 """ en_templates = ( + # All notes + (r'(all )?notes', + lambda m: {'type': 'notes',...
Change priority of "all notes" phrase
py
diff --git a/openquake/calculators/extract.py b/openquake/calculators/extract.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/extract.py +++ b/openquake/calculators/extract.py @@ -249,8 +249,7 @@ def extract_hmaps(dstore, what): for kind, hcurves in getters.PmapGetter(dstore).items(what): hmap ...
We can now see the hazards produced by engine-<I> with engine <I> [skip hazardlib]
py
diff --git a/dvc/scm/git/__init__.py b/dvc/scm/git/__init__.py index <HASH>..<HASH> 100644 --- a/dvc/scm/git/__init__.py +++ b/dvc/scm/git/__init__.py @@ -277,8 +277,8 @@ class Git(Base): config = yaml.safe_load(fobj) entry = { - "repo": "https://github.com/andrewhare/dvc", # FIX...
install: use hooks from master Same as with shell completion, it is better to use the newest hooks.
py
diff --git a/salt/utils/minions.py b/salt/utils/minions.py index <HASH>..<HASH> 100644 --- a/salt/utils/minions.py +++ b/salt/utils/minions.py @@ -228,7 +228,7 @@ class CkMinions(object): Retreive complete minion list from PKI dir. Respects cache if configured ''' - if self.opts.get('_...
Fix master-side ckminions check
py
diff --git a/aaf2/cfb.py b/aaf2/cfb.py index <HASH>..<HASH> 100644 --- a/aaf2/cfb.py +++ b/aaf2/cfb.py @@ -302,19 +302,20 @@ class DirEntry(object): return self.storage.read_dir_entry(self.child_id, self) def add_child(self, entry): - self._children_cache = None + if self._children_cache i...
don't invalidate cache on add_child
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -45,9 +45,7 @@ sphinx_gallery_conf = { 'doc_module': ('siphon',), 'reference_url': { 'siphon': None, - 'matplotlib': 'http://matplotlib.org', - 'numpy': 'http://docs.scipy.org/d...
Update sphinx-gallery config Now it just users intersphinx if you have it set up. This fixes the docs failing to build right now.
py
diff --git a/bedup/tracking.py b/bedup/tracking.py index <HASH>..<HASH> 100644 --- a/bedup/tracking.py +++ b/bedup/tracking.py @@ -472,11 +472,7 @@ def dedup_tracked1(sess, tt, ofile_reserved, query, fs, skipped): for buf in iter(lambda: afile.read(BUFSIZE), b''): hasher.up...
Prevent shrunk inodes from causing perpetual updates.
py
diff --git a/src/cr/cube/cube_slice.py b/src/cr/cube/cube_slice.py index <HASH>..<HASH> 100644 --- a/src/cr/cube/cube_slice.py +++ b/src/cr/cube/cube_slice.py @@ -154,6 +154,21 @@ class CubeSlice(object): return 'categorical_array' in self.dim_types @property + def ca_dim_ind(self): + index = ...
[#<I>]: Implement CA index in slices properly
py
diff --git a/lib/meta/list.py b/lib/meta/list.py index <HASH>..<HASH> 100644 --- a/lib/meta/list.py +++ b/lib/meta/list.py @@ -364,7 +364,9 @@ class List(memory_region.MemoryRegion): @classmethod def static_bitspan(cls, **kwargs): - if not cls.DECLARATIONS: + declarations = kwargs.setdefau...
static_bitspan culls from kwarg declarations
py
diff --git a/pymc/threadpool.py b/pymc/threadpool.py index <HASH>..<HASH> 100644 --- a/pymc/threadpool.py +++ b/pymc/threadpool.py @@ -307,7 +307,8 @@ class ThreadPool: if os.environ.has_key('OMP_NUM_THREADS'): __PyMCThreadPool__ = ThreadPool(int(os.environ['OMP_NUM_THREADS'])) else: - __PyMCThreadPool__ = Th...
Improved threadpool initialization when no OMP_NUM_THREADS environment variable.
py
diff --git a/rocketchat_API/rocketchat.py b/rocketchat_API/rocketchat.py index <HASH>..<HASH> 100644 --- a/rocketchat_API/rocketchat.py +++ b/rocketchat_API/rocketchat.py @@ -6,7 +6,7 @@ import requests from rocketchat_API.APIExceptions.RocketExceptions import RocketConnectionException, RocketAuthenticationException, ...
Change logging level to WARNING
py
diff --git a/aikif/environments/happiness.py b/aikif/environments/happiness.py index <HASH>..<HASH> 100644 --- a/aikif/environments/happiness.py +++ b/aikif/environments/happiness.py @@ -274,13 +274,27 @@ class Person(object): def __init__(self, nme, prefs): self.prefs = prefs self.nme = nme + ...
added values that can be ranked by people
py
diff --git a/openquake/commonlib/source.py b/openquake/commonlib/source.py index <HASH>..<HASH> 100644 --- a/openquake/commonlib/source.py +++ b/openquake/commonlib/source.py @@ -829,7 +829,7 @@ class SourceManager(object): """ def __init__(self, csm, taskfunc, maximum_distance, dstore, moni...
Increased the number of tasks produced by the tiling calculator
py
diff --git a/productmd/common.py b/productmd/common.py index <HASH>..<HASH> 100644 --- a/productmd/common.py +++ b/productmd/common.py @@ -106,6 +106,7 @@ RELEASE_TYPES = [ "fast", "ga", "updates", + "updates-testing", "eus", "aus", "els",
add updates-testing as a valid compose type (#<I>) Fedora is moving to having bodhi use pungi to do composes for pushing updates, in order to cover the use cases we need to have a updates-testing compose in addition to a updates compose type.
py
diff --git a/tests/test_normal.py b/tests/test_normal.py index <HASH>..<HASH> 100644 --- a/tests/test_normal.py +++ b/tests/test_normal.py @@ -144,9 +144,7 @@ class TestPyTime(unittest.TestCase): self.assertTrue(this10) def test_from_str(self): - with self.assertRaises(Exception): - py...
fixing to python <I>
py
diff --git a/hwt/serializer/vhdl/types.py b/hwt/serializer/vhdl/types.py index <HASH>..<HASH> 100644 --- a/hwt/serializer/vhdl/types.py +++ b/hwt/serializer/vhdl/types.py @@ -47,7 +47,7 @@ class ToHdlAstVhdl2008_types(): return HdlOp(HdlOpType.CALL, [ name, HdlOp(HdlOpType.DOWNTO, [ -...
ToHdlAstVhdl<I>_types.as_hdl_HdlType_bits support for width as expr
py
diff --git a/test/test_workflow.py b/test/test_workflow.py index <HASH>..<HASH> 100644 --- a/test/test_workflow.py +++ b/test/test_workflow.py @@ -193,7 +193,7 @@ def test_continuous(capfd, basic_conf): assert "params_examples.ClassOne" in text # Check processes were interleaved (timing benchmark was run tw...
Fix test_continuous vs. commit decoration changes
py
diff --git a/master/contrib/git_buildbot.py b/master/contrib/git_buildbot.py index <HASH>..<HASH> 100755 --- a/master/contrib/git_buildbot.py +++ b/master/contrib/git_buildbot.py @@ -25,6 +25,7 @@ import commands import logging +import subprocess import os import re import sys @@ -238,7 +239,10 @@ def gen_update...
fix execution of git merge-base and remove extraneous newlines commands.getoutput was producing an error message "'{' is not recognized as an internal or external command," I assume it was trying to run the command in a subshell using sh syntax, which is not valid in a cmd.exe shell. The whole script should probabl...
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup -required_modules = ['bouncer', 'Flask>=0.9', 'blinker'] +required_modules = ['bouncer>=0.1', 'Flask>=0.9', 'blinker'] setup(name='flask-bouncer', version='0.0.1',
trying to fix <I> compatability
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -25,6 +25,7 @@ install_requires = [ tests_require = [ 'pytest', + 'pytest-cov', 'flake8', ]
Add pytest-cov to test requirements
py
diff --git a/blanc_basic_assets/listeners.py b/blanc_basic_assets/listeners.py index <HASH>..<HASH> 100644 --- a/blanc_basic_assets/listeners.py +++ b/blanc_basic_assets/listeners.py @@ -1,7 +1,11 @@ from django.db.models.signals import post_delete, pre_save -def asset_file_change(sender, instance, **kwargs): +def...
Don't update file on loaddata
py
diff --git a/tests/thumbnail_tests/test_templatetags.py b/tests/thumbnail_tests/test_templatetags.py index <HASH>..<HASH> 100644 --- a/tests/thumbnail_tests/test_templatetags.py +++ b/tests/thumbnail_tests/test_templatetags.py @@ -108,7 +108,9 @@ class TemplateTestCaseA(BaseTestCase): self.assertLess(epsil...
Don't check EXIF orientation with GraphicsMagick The doc says it has no EXIF editor, which can lead to inconsistend EXIF data.
py
diff --git a/oauth2/flaskweb.py b/oauth2/flaskweb.py index <HASH>..<HASH> 100644 --- a/oauth2/flaskweb.py +++ b/oauth2/flaskweb.py @@ -98,6 +98,4 @@ class OAuth2(object): response = self.controller.dispatch(Request(), environ={}) - status_code_parts = response.status_code.split(" ") ...
Use status code of a response without splitting
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ #!/usr/bin/env python from setuptools import find_packages, setup -version = '0.611' +version = '0.612' setup( name='test_tube',
releasing hpc tng continuation
py
diff --git a/cheroot/test/test_ssl.py b/cheroot/test/test_ssl.py index <HASH>..<HASH> 100644 --- a/cheroot/test/test_ssl.py +++ b/cheroot/test/test_ssl.py @@ -31,6 +31,7 @@ from ..testing import ( IS_LIBRESSL_BACKEND = ssl.OPENSSL_VERSION.startswith('LibreSSL') PY27 = sys.version_info[:2] == (2, 7) +PY37 = sys.vers...
Expect pyopenssl+py<I> to work nice
py
diff --git a/api_core/google/api_core/bidi.py b/api_core/google/api_core/bidi.py index <HASH>..<HASH> 100644 --- a/api_core/google/api_core/bidi.py +++ b/api_core/google/api_core/bidi.py @@ -669,9 +669,6 @@ class BackgroundConsumer(object): exc, ) - else: - _LOGGER.erro...
Remove error log entry on clean BiDi shutdown. (#<I>) Closes #<I>.
py
diff --git a/pyof/v0x04/symmetric/hello.py b/pyof/v0x04/symmetric/hello.py index <HASH>..<HASH> 100644 --- a/pyof/v0x04/symmetric/hello.py +++ b/pyof/v0x04/symmetric/hello.py @@ -5,25 +5,10 @@ # Third-party imports from pyof.foundation.base import GenericMessage -from pyof.v0x04.common.header import Header, Type - ...
Updating hello implementation on v0x<I> as we expect it to be
py
diff --git a/tests/unit/utils/scheduler/test_schedule.py b/tests/unit/utils/scheduler/test_schedule.py index <HASH>..<HASH> 100644 --- a/tests/unit/utils/scheduler/test_schedule.py +++ b/tests/unit/utils/scheduler/test_schedule.py @@ -458,6 +458,7 @@ class ScheduleTestCase(SchedulerTestsBase): self.assertI...
only run test on Windows since we are testing schedule.handle_func on Windows.
py
diff --git a/datalad_service/common/celery.py b/datalad_service/common/celery.py index <HASH>..<HASH> 100644 --- a/datalad_service/common/celery.py +++ b/datalad_service/common/celery.py @@ -17,7 +17,7 @@ def dataset_queue(dataset): def dataset_hash(key): """Return which worker for a given task.""" - return ...
Change worker ids to one indexed to match docker-compose.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from distutils.core import setup #from setuptools import setup setup(name='lifxlan', - version='0.4.0', + version='1.0.0', description='API for local communication with LIFX devices over a LAN...
Official <I> release now that lifxlan supports Python 2 AND Python 3! Plus all outstanding issues and feature requests to-date have been addressed for the first time since its initial release. Yay!
py
diff --git a/sanic/request.py b/sanic/request.py index <HASH>..<HASH> 100644 --- a/sanic/request.py +++ b/sanic/request.py @@ -69,10 +69,10 @@ class Request(dict): self.stream = None @property - def json(self, loads=json_loads): + def json(self): if self.parsed_json is None: ...
make method instead of property for alternative json decoding of request
py
diff --git a/robjects/tests.py b/robjects/tests.py index <HASH>..<HASH> 100644 --- a/robjects/tests.py +++ b/robjects/tests.py @@ -2,6 +2,8 @@ import unittest import redis from robjects.base import BaseObject +from robjects.objects import JsonObject, HashObject + r = redis.Redis() r.flushdb() @@ -65,5 +67,23 @@...
add tests for JsonObject and HashObject
py
diff --git a/mpu/__init__.py b/mpu/__init__.py index <HASH>..<HASH> 100644 --- a/mpu/__init__.py +++ b/mpu/__init__.py @@ -113,11 +113,6 @@ class Location(object): """Getter for latiutde.""" return self._latitude - @property - def longitude(self): - """Getter for longitude.""" - ...
MAINT: Fix mypy issues
py
diff --git a/alot/crypto.py b/alot/crypto.py index <HASH>..<HASH> 100644 --- a/alot/crypto.py +++ b/alot/crypto.py @@ -2,6 +2,7 @@ # This file is released under the GNU GPL, version 3 or a later revision. # For further details see the COPYING file import re +import logging from email.generator import Generator f...
add encryption function This function takes a plaintext string and encryptes it with a given gpg key and returns the encrypted text
py
diff --git a/virtualchain/virtualchain.py b/virtualchain/virtualchain.py index <HASH>..<HASH> 100644 --- a/virtualchain/virtualchain.py +++ b/virtualchain/virtualchain.py @@ -30,6 +30,8 @@ import json import datetime import traceback import time +import random +import errno from ConfigParser import SafeConfigPars...
If we fail to advance the virtual chain, employ global exponential backoff with jitter. The current slice of blocks will be retried.
py
diff --git a/aiohttp/connector.py b/aiohttp/connector.py index <HASH>..<HASH> 100644 --- a/aiohttp/connector.py +++ b/aiohttp/connector.py @@ -6,6 +6,7 @@ import traceback import warnings from collections import defaultdict from hashlib import md5, sha1, sha256 +from time import monotonic from types import MappingP...
Remove support for systems without monotonic function
py
diff --git a/tests/utils_testing.py b/tests/utils_testing.py index <HASH>..<HASH> 100644 --- a/tests/utils_testing.py +++ b/tests/utils_testing.py @@ -107,3 +107,17 @@ def train_basic_multilabel_classifier(df_twitter_train): ml_predictor.train(df_twitter_train) return ml_predictor + + +import pandas as pd +...
utility function to create sample df
py
diff --git a/salt/modules/mod_random.py b/salt/modules/mod_random.py index <HASH>..<HASH> 100644 --- a/salt/modules/mod_random.py +++ b/salt/modules/mod_random.py @@ -137,6 +137,8 @@ def rand_int(start=1, end=10): end : 10 Any valid integer number + CLI Example: + .. code-block:: bash ...
Adding CLI Example for random.rand_int so tests don't fail
py
diff --git a/Lib/ufo2ft/kernFeatureWriter.py b/Lib/ufo2ft/kernFeatureWriter.py index <HASH>..<HASH> 100644 --- a/Lib/ufo2ft/kernFeatureWriter.py +++ b/Lib/ufo2ft/kernFeatureWriter.py @@ -180,9 +180,9 @@ class KernFeatureWriter(object): groups = {} for name, members in self.groups.items(): - ...
[kernFeatureWriter] keep kern groups' internal order Don't convert groups to sets and then back to list, else we end up with differently sorted lists at every run.
py
diff --git a/test/unit/test_api_interfaces.py b/test/unit/test_api_interfaces.py index <HASH>..<HASH> 100644 --- a/test/unit/test_api_interfaces.py +++ b/test/unit/test_api_interfaces.py @@ -270,7 +270,6 @@ class TestApiPortchannelInterface(EapiConfigUnitTest): lacp_mode='on', minimum_links=0, ...
Fix more flake8 errors in test
py
diff --git a/vent/api/plugins.py b/vent/api/plugins.py index <HASH>..<HASH> 100644 --- a/vent/api/plugins.py +++ b/vent/api/plugins.py @@ -78,7 +78,7 @@ class Plugin: for branch in branches: try: junk = subprocess.check_output(shlex.split("git checkout " + branch), std...
resolving codeclimate issues
py
diff --git a/pancloud/credentials.py b/pancloud/credentials.py index <HASH>..<HASH> 100644 --- a/pancloud/credentials.py +++ b/pancloud/credentials.py @@ -297,7 +297,7 @@ class Credentials(object): """ if not self.token_lock.locked(): with self.token_lock: - if access_token...
Compare passed access_token to property method instead of instance attribute
py
diff --git a/datadog_checks_dev/setup.py b/datadog_checks_dev/setup.py index <HASH>..<HASH> 100644 --- a/datadog_checks_dev/setup.py +++ b/datadog_checks_dev/setup.py @@ -84,6 +84,7 @@ setup( 'toml>=0.9.4, <1.0.0', 'tox>=3.12.1', 'twine>=1.11.0', + 'virtualenv>=20.0.0b1...
Use the latest beta release of virtualenv for performance improvements (#<I>) * Use the latest beta release of virtualenv for performance improvements * test * works on everything :pineapple:
py
diff --git a/openstack/datadog_checks/openstack/openstack.py b/openstack/datadog_checks/openstack/openstack.py index <HASH>..<HASH> 100644 --- a/openstack/datadog_checks/openstack/openstack.py +++ b/openstack/datadog_checks/openstack/openstack.py @@ -807,7 +807,6 @@ class OpenStackCheck(AgentCheck): self.l...
Remove auth token from debug logs
py
diff --git a/rocketchat_API/rocketchat.py b/rocketchat_API/rocketchat.py index <HASH>..<HASH> 100644 --- a/rocketchat_API/rocketchat.py +++ b/rocketchat_API/rocketchat.py @@ -643,17 +643,17 @@ class RocketChat: # Settings - def settings_get(self, _id): + def settings_get(self, _id, **kwargs): ""...
#<I>: adds kwargs to settings in order to use API-options
py
diff --git a/openquake/calculators/disaggregation.py b/openquake/calculators/disaggregation.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/disaggregation.py +++ b/openquake/calculators/disaggregation.py @@ -215,7 +215,7 @@ producing too small PoEs.''' oq = self.oqparam tl = oq.truncation_l...
Avoided double prefiltering in disaggregation [skip CI] Former-commit-id: <I>bb7edfb<I>a4a<I>b<I>ab<I>dae2a1c<I>c
py
diff --git a/salt/modules/defaults.py b/salt/modules/defaults.py index <HASH>..<HASH> 100644 --- a/salt/modules/defaults.py +++ b/salt/modules/defaults.py @@ -78,9 +78,30 @@ def get(key, default=''): key is not defined. ''' - stack = inspect.stack() - sls = inspect.getargvalues(stack[2][0]).locals.get...
Searching the stack for a few other locations to find the sls name and template file. This allows us to use defaults.get from inside jinja templates
py
diff --git a/config/data_store.py b/config/data_store.py index <HASH>..<HASH> 100644 --- a/config/data_store.py +++ b/config/data_store.py @@ -86,11 +86,11 @@ config_lib.DEFINE_string("Mysql.database_username", default="root", config_lib.DEFINE_string("Mysql.database_password", default="", he...
Altered connection pool defaults to be more conservative
py
diff --git a/numina/core/recipes.py b/numina/core/recipes.py index <HASH>..<HASH> 100644 --- a/numina/core/recipes.py +++ b/numina/core/recipes.py @@ -29,6 +29,7 @@ import abc import traceback import logging +from .. import __version__ from .recipeinout import ErrorRecipeResult from .recipeinout import RecipeResu...
Add a method to write recipe metadata in FITS headers
py
diff --git a/pykeepass/pykeepass.py b/pykeepass/pykeepass.py index <HASH>..<HASH> 100644 --- a/pykeepass/pykeepass.py +++ b/pykeepass/pykeepass.py @@ -233,17 +233,6 @@ class PyKeePass(object): return res - def find_groups_by_path(self, group_path_str=None, regex=False, flags=None, - ...
deleted wrong definition of find_groups_by_path
py
diff --git a/submissions/views.py b/submissions/views.py index <HASH>..<HASH> 100644 --- a/submissions/views.py +++ b/submissions/views.py @@ -3,7 +3,7 @@ import logging from django.contrib.auth.decorators import login_required -from django.shortcuts import render_to_response +from django.shortcuts import render ...
refactor: address ancient django feature removal this was removed in django 3. (Also this view file can likely be deleted.)
py
diff --git a/bulbs/content/models.py b/bulbs/content/models.py index <HASH>..<HASH> 100644 --- a/bulbs/content/models.py +++ b/bulbs/content/models.py @@ -348,7 +348,7 @@ class Content(PolymorphicIndexable, PolymorphicModel): self._feature_type = value def save(self, *args, **kwargs): - self.slug...
Make sure the slug is never too long
py
diff --git a/broqer/op/map_threaded.py b/broqer/op/map_threaded.py index <HASH>..<HASH> 100644 --- a/broqer/op/map_threaded.py +++ b/broqer/op/map_threaded.py @@ -105,8 +105,10 @@ class MapThreaded(Operator): * QUEUE - queue the value(s) and call after coroutine is finished * LAST - use last e...
added docu to MapThreaded: INTERRUPT as mode is not supported
py
diff --git a/src/python/dxpy/scripts/dx_gtf_to_genes.py b/src/python/dxpy/scripts/dx_gtf_to_genes.py index <HASH>..<HASH> 100755 --- a/src/python/dxpy/scripts/dx_gtf_to_genes.py +++ b/src/python/dxpy/scripts/dx_gtf_to_genes.py @@ -41,7 +41,7 @@ def importGTF(**args): if outputName != '': name = outputNam...
No longer use dxpy file reference to fix issues when running locally
py
diff --git a/tests/test_endpoints.py b/tests/test_endpoints.py index <HASH>..<HASH> 100644 --- a/tests/test_endpoints.py +++ b/tests/test_endpoints.py @@ -227,10 +227,10 @@ class TestRequestJson(TestCase): @ignore_warnings @patch('mapi.endpoints.requests_cache.CachedSession.request') @patch('mapi.endpoin...
Ensures compatibility with Python <I>
py
diff --git a/spyder/utils/ipython/style.py b/spyder/utils/ipython/style.py index <HASH>..<HASH> 100644 --- a/spyder/utils/ipython/style.py +++ b/spyder/utils/ipython/style.py @@ -160,6 +160,7 @@ def create_pygments_dict(color_scheme_name): String: string_token.strip(), ...
one line was missing in last commit...
py
diff --git a/test/test_python_code.py b/test/test_python_code.py index <HASH>..<HASH> 100644 --- a/test/test_python_code.py +++ b/test/test_python_code.py @@ -16,6 +16,7 @@ import xcffib import xcffib.xproto import struct +import sys from xcffib.xproto import EventMask from .testing import XcffibTest @@ -44,9 +4...
handle endian-ness in test cases Partial fix for #<I>
py
diff --git a/napalm/eos.py b/napalm/eos.py index <HASH>..<HASH> 100644 --- a/napalm/eos.py +++ b/napalm/eos.py @@ -33,7 +33,7 @@ class EOSDriver(NetworkDriver): if optional_args is None: optional_args = {} - self.port = optional_args.pop('port', 443) + self.port = optional_args.get...
Replaced pop with get for the dict optional_args, bad idea from the beginning
py
diff --git a/canmatrix/exportyaml.py b/canmatrix/exportyaml.py index <HASH>..<HASH> 100644 --- a/canmatrix/exportyaml.py +++ b/canmatrix/exportyaml.py @@ -46,7 +46,7 @@ def exportYaml(db, filename, **options): for i,frame in enumerate(newdb._fl._list): for j,signal in enumerate(frame._signals): ...
Update exportyaml.py tabs/spaces issue
py
diff --git a/bin/pysaunter.py b/bin/pysaunter.py index <HASH>..<HASH> 100644 --- a/bin/pysaunter.py +++ b/bin/pysaunter.py @@ -104,6 +104,7 @@ p.add_argument('--new', action='store_true', default=False) p.add_argument('-f', action='append', default=['shallow'], nargs='*') p.add_argument('-v', action='store_true', def...
exposing py.test's --tb flag to enable full tracebacks to be displayed. default is to trunc all but the first list
py
diff --git a/LogData.py b/LogData.py index <HASH>..<HASH> 100755 --- a/LogData.py +++ b/LogData.py @@ -16,6 +16,7 @@ import sys import time import DataStore +from TimeZone import Local import WeatherStation def LogData(params, raw_data): @@ -25,6 +26,20 @@ def LogData(params, raw_data): if not fixed_block:...
LogData.py : now warns if weather station and computer clocks don't agree.
py
diff --git a/core/polyaxon/cli/operations.py b/core/polyaxon/cli/operations.py index <HASH>..<HASH> 100644 --- a/core/polyaxon/cli/operations.py +++ b/core/polyaxon/cli/operations.py @@ -735,6 +735,9 @@ def dashboard(ctx, yes, external, url): run_url = "{}/{}/{}/runs/{}/service".format( dashboard_url, own...
Fix ops dashboard/service url commands
py
diff --git a/dbkit.py b/dbkit.py index <HASH>..<HASH> 100644 --- a/dbkit.py +++ b/dbkit.py @@ -546,6 +546,20 @@ def connect(module, *args, **kwargs): return Context(module, mdr) +def create_pool(module, max_conns, *args, **kwargs): + """ + Create a connection pool appropriate to the driver module's capab...
A function for creating an module-appropriate connection pool.
py
diff --git a/steam_idle.py b/steam_idle.py index <HASH>..<HASH> 100755 --- a/steam_idle.py +++ b/steam_idle.py @@ -237,6 +237,8 @@ def main_idle(apps): p = Idle(appid, args) p.start() processes.append((endtime, p)) + # Steam client will crash if childs spawn too fast; F...
Steam client will crash if childs spawn too fast; Fixes #1
py
diff --git a/setup_libuv.py b/setup_libuv.py index <HASH>..<HASH> 100644 --- a/setup_libuv.py +++ b/setup_libuv.py @@ -116,6 +116,8 @@ class libuv_build_ext(build_ext): env['CFLAGS'] = ' '.join(x for x in (cflags, env.get('CFLAGS', None)) if x) log.info('Building libuv...') if win...
Fixed choosing the right version of Visual Studio Fixes #<I>
py