diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/theanets/layers.py b/theanets/layers.py index <HASH>..<HASH> 100644 --- a/theanets/layers.py +++ b/theanets/layers.py @@ -718,16 +718,18 @@ class Recurrent(Layer): Returns ------- - output(s) : sequence of theano expression(s) + output(s) : theano expression(s) ...
Tweak how Recurrent._scan calls theano.
py
diff --git a/torchvision/datasets/utils.py b/torchvision/datasets/utils.py index <HASH>..<HASH> 100644 --- a/torchvision/datasets/utils.py +++ b/torchvision/datasets/utils.py @@ -7,6 +7,7 @@ import os import os.path import pathlib import re +import sys import tarfile import urllib import urllib.error @@ -62,7 +63...
indicate md5 checksum is not used for security (#<I>) * indicate md5 checksum is not used for security * add explanation
py
diff --git a/rules/__init__.py b/rules/__init__.py index <HASH>..<HASH> 100644 --- a/rules/__init__.py +++ b/rules/__init__.py @@ -4,6 +4,6 @@ from .predicates import (Predicate, predicate, always_allow, always_deny, is_authenticated, is_superuser, is_staff, is_active, ...
There's no "dev" version identifier
py
diff --git a/pyOutlook/core/message.py b/pyOutlook/core/message.py index <HASH>..<HASH> 100644 --- a/pyOutlook/core/message.py +++ b/pyOutlook/core/message.py @@ -29,9 +29,6 @@ class Message(object): self.to_recipients = to_recipients def __str__(self): - return self.__getattribute__('message_id'...
Removal of __repr__ method
py
diff --git a/charmhelpers/core/hookenv.py b/charmhelpers/core/hookenv.py index <HASH>..<HASH> 100644 --- a/charmhelpers/core/hookenv.py +++ b/charmhelpers/core/hookenv.py @@ -212,10 +212,7 @@ class Config(dict): try: return dict.__getitem__(self, key) except KeyError: - val = s...
Simplify _prev_dict lookup
py
diff --git a/tools/distrib/check_copyright.py b/tools/distrib/check_copyright.py index <HASH>..<HASH> 100755 --- a/tools/distrib/check_copyright.py +++ b/tools/distrib/check_copyright.py @@ -105,6 +105,8 @@ _EXEMPT = frozenset(( 'src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.h', 'src/core/ext/...
exclude newly added file from copyright check
py
diff --git a/karaage/institutes/views.py b/karaage/institutes/views.py index <HASH>..<HASH> 100644 --- a/karaage/institutes/views.py +++ b/karaage/institutes/views.py @@ -143,7 +143,8 @@ def add_edit_institute(request, institute_id=None): institute = None delegate_formset_class = inlineformset_factory( ...
Require at least one institute delegate Might need to consider some of the implications of this. Bootstraping new institutes might be harder, as you can't create the person until you create the insitute, but you can't set the institute delegate until you create the person. Work around is to create the person and put ...
py
diff --git a/spyderlib/__init__.py b/spyderlib/__init__.py index <HASH>..<HASH> 100644 --- a/spyderlib/__init__.py +++ b/spyderlib/__init__.py @@ -27,7 +27,7 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ -__version__ = '2.4.0dev' +__version__ = '3.0.0dev' __li...
Change version to <I> for our next release This will give us more freedom to break with our current code layout (and possibly solve issue #<I>)
py
diff --git a/ginga/rv/plugins/SAMP.py b/ginga/rv/plugins/SAMP.py index <HASH>..<HASH> 100644 --- a/ginga/rv/plugins/SAMP.py +++ b/ginga/rv/plugins/SAMP.py @@ -7,12 +7,16 @@ # import os +# astropy.vo.samp moved to astropy.samp in astropy v2.0. try: - import astropy.vo.samp as samp + from astropy import samp ...
Ensure compatibility with astropy <I>
py
diff --git a/a10_neutron_lbaas/tests/unit/v2/test_base.py b/a10_neutron_lbaas/tests/unit/v2/test_base.py index <HASH>..<HASH> 100644 --- a/a10_neutron_lbaas/tests/unit/v2/test_base.py +++ b/a10_neutron_lbaas/tests/unit/v2/test_base.py @@ -14,6 +14,9 @@ import a10_neutron_lbaas.tests.unit.test_base as test_base +im...
Added vip_port_id member to FakeLB model
py
diff --git a/dxf/__init__.py b/dxf/__init__.py index <HASH>..<HASH> 100644 --- a/dxf/__init__.py +++ b/dxf/__init__.py @@ -281,6 +281,7 @@ class DXFBase(object): } else: headers = {} + headers["User-Agent"] = "Docker-Client/19.03.2 (linux)" if 'bearer' in parsed: ...
Fix authentication issues Some authentication services have filter on the user agent, that are allowed to request authentication. This patch fixes this issue as it overwrites the default user agent with a default docker signature.
py
diff --git a/salt/modules/s3.py b/salt/modules/s3.py index <HASH>..<HASH> 100644 --- a/salt/modules/s3.py +++ b/salt/modules/s3.py @@ -15,6 +15,9 @@ Connection module for Amazon S3 s3.keyid: GKTADJGHEIQSXMKKRBJ08H s3.key: askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs + (Note: this is literally the pi...
clarify this, because it messes people up in the mailing lists, and myself briefly before I thought about it
py
diff --git a/lib/svtplay_dl/service/svtplay.py b/lib/svtplay_dl/service/svtplay.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/service/svtplay.py +++ b/lib/svtplay_dl/service/svtplay.py @@ -93,7 +93,7 @@ class Svtplay(Service, MetadataThumbMixin): yield ServiceError(f"Can't decode api request: {res.re...
Fixes better language on error message when there's no video file found.
py
diff --git a/indra/statements/concept.py b/indra/statements/concept.py index <HASH>..<HASH> 100644 --- a/indra/statements/concept.py +++ b/indra/statements/concept.py @@ -150,6 +150,8 @@ class Concept(object): def compositional_sort_key(entry): """Return a sort key from a compositional grounding entry""" + c...
Fixes to compositional grounding functions
py
diff --git a/src/python/dxpy/utils/pretty_print.py b/src/python/dxpy/utils/pretty_print.py index <HASH>..<HASH> 100644 --- a/src/python/dxpy/utils/pretty_print.py +++ b/src/python/dxpy/utils/pretty_print.py @@ -103,6 +103,6 @@ def format_table(table, column_names=None, column_specs=None, max_col_width=32, formatt...
PTFM-<I>: fixing bug that was mis-reporting the # characters needed for the table width
py
diff --git a/sprockets/mixins/http/__init__.py b/sprockets/mixins/http/__init__.py index <HASH>..<HASH> 100644 --- a/sprockets/mixins/http/__init__.py +++ b/sprockets/mixins/http/__init__.py @@ -313,7 +313,8 @@ class HTTPClientMixin: connect_timeout = connect_timeout or self.DEFAULT_CONNECT_TIMEOUT re...
Addressed a PEP 8 line length violation.
py
diff --git a/deis/settings.py b/deis/settings.py index <HASH>..<HASH> 100644 --- a/deis/settings.py +++ b/deis/settings.py @@ -165,12 +165,13 @@ CORS_ALLOW_HEADERS = ( 'content-type', 'accept', 'origin', - 'Authentication', + 'Authorization', + 'Host', ) CORS_EXPOSE_HEADERS = ( - 'X_DEIS_...
fix(controller): Update CORS whitelisted request headers.
py
diff --git a/openquake/db/models.py b/openquake/db/models.py index <HASH>..<HASH> 100644 --- a/openquake/db/models.py +++ b/openquake/db/models.py @@ -457,7 +457,7 @@ class OqJob(djm.Model): An OpenQuake engine run started by the user ''' owner = djm.ForeignKey('OqUser') - hazard_calculation = djm.For...
Django model for oq_job was missing null=True directive for hazard_calculation FK
py
diff --git a/examples/benchmarks.py b/examples/benchmarks.py index <HASH>..<HASH> 100644 --- a/examples/benchmarks.py +++ b/examples/benchmarks.py @@ -532,7 +532,6 @@ def _compute_tensorflow( except tf.errors.ResourceExhaustedError as e: print("Doesn't fit on GPU.", e) - ...
removing torch.cuda.empty_cache() from TF function (#<I>) torch.cuda.empty_cache() was being called from a TF function (even when torch is unavailable) not sure any replacement is needed if TF OOMs
py
diff --git a/fulltext/backends/__zip.py b/fulltext/backends/__zip.py index <HASH>..<HASH> 100644 --- a/fulltext/backends/__zip.py +++ b/fulltext/backends/__zip.py @@ -1,5 +1,6 @@ from __future__ import absolute_import +import logging import zipfile from six import StringIO @@ -8,6 +9,10 @@ from contextlib2 impor...
make zip backend log extracted file names
py
diff --git a/synology_dsm/api/surveillance_station/__init__.py b/synology_dsm/api/surveillance_station/__init__.py index <HASH>..<HASH> 100644 --- a/synology_dsm/api/surveillance_station/__init__.py +++ b/synology_dsm/api/surveillance_station/__init__.py @@ -37,6 +37,9 @@ class SynoSurveillanceStation: ...
Fix Surveillance Station update when no cameras linked (#<I>)
py
diff --git a/hypermap/tests/test_end_to_end_selenium_firefox.py b/hypermap/tests/test_end_to_end_selenium_firefox.py index <HASH>..<HASH> 100644 --- a/hypermap/tests/test_end_to_end_selenium_firefox.py +++ b/hypermap/tests/test_end_to_end_selenium_firefox.py @@ -18,7 +18,7 @@ BROWSER_HYPERMAP_URL = os.environ.get("BROW...
Making flake8 happy (not sure why Travis is not complaining about this, but my setup does)
py
diff --git a/kubespawner/objects.py b/kubespawner/objects.py index <HASH>..<HASH> 100644 --- a/kubespawner/objects.py +++ b/kubespawner/objects.py @@ -99,6 +99,10 @@ def make_pod( run_as_gid: The GID used to run single-user pods. The default is to run as the primary group of the user specified in...
Update documentation regarding run_as_gid behavior Added brief information for `run_as_gid` that it requires enablement of feature-gate RunAsGroup and how various settings could yield effective GIDs of root. Fixes #<I>
py
diff --git a/cherrypy/lib/filter/staticfilter.py b/cherrypy/lib/filter/staticfilter.py index <HASH>..<HASH> 100644 --- a/cherrypy/lib/filter/staticfilter.py +++ b/cherrypy/lib/filter/staticfilter.py @@ -47,9 +47,9 @@ class StaticFilter(BaseFilter): extraPath = cherrypy.request.path[len(section) + 1:] ...
oops. I meant root, not documentRoot
py
diff --git a/openquake/engine/engine.py b/openquake/engine/engine.py index <HASH>..<HASH> 100644 --- a/openquake/engine/engine.py +++ b/openquake/engine/engine.py @@ -110,10 +110,10 @@ def parse_config(source): :param source: File-like object containing the config parameters. :returns: - A `di...
engine: Updated/corrected docstring for `parse_config`.
py
diff --git a/salt/crypt.py b/salt/crypt.py index <HASH>..<HASH> 100644 --- a/salt/crypt.py +++ b/salt/crypt.py @@ -40,6 +40,34 @@ def dropfile(cachedir, user=None): ''' dfnt = os.path.join(cachedir, '.dfnt') dfn = os.path.join(cachedir, '.dfn') + + def ready(): + """ + Because MWorker._u...
Wait for new time_t before updating AES key file This is a mitigation for issue <I>, wherein the master experiences a communications failure when multiple key updates happen in one second. We reduce the chance of this by checking time() against the mtime of the file and waiting until they are not equal.
py
diff --git a/pypot/utils/trajectory.py b/pypot/utils/trajectory.py index <HASH>..<HASH> 100644 --- a/pypot/utils/trajectory.py +++ b/pypot/utils/trajectory.py @@ -74,11 +74,15 @@ class GotoMinJerk(StoppableLoopThread): self.duration = duration # seconds def setup(self): - self.trajs = MinimumJer...
fix LialgError : Singular matrix if duration in goto is set to 0
py
diff --git a/redis/connection.py b/redis/connection.py index <HASH>..<HASH> 100644 --- a/redis/connection.py +++ b/redis/connection.py @@ -383,6 +383,15 @@ class ConnectionPool(object): "Generic connection pool" def __init__(self, connection_class=Connection, max_connections=None, **connecti...
Update documentation on __init__ of ConnectionPool to explain usage and behavior
py
diff --git a/safe_qgis/test_safe_interface.py b/safe_qgis/test_safe_interface.py index <HASH>..<HASH> 100644 --- a/safe_qgis/test_safe_interface.py +++ b/safe_qgis/test_safe_interface.py @@ -27,7 +27,7 @@ from safe_qgis.safe_interface import (getOptimalExtent, from safe_qgis.exceptions import (KeywordNotFoundException...
Fix for failing function count test in safe_qgis.
py
diff --git a/salt/cloud/exceptions.py b/salt/cloud/exceptions.py index <HASH>..<HASH> 100644 --- a/salt/cloud/exceptions.py +++ b/salt/cloud/exceptions.py @@ -57,4 +57,3 @@ class SaltCloudPasswordError(SaltCloudException): ''' Raise when virtual terminal password input failed ''' -
Missed one lint
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,12 +1,6 @@ import os from setuptools import setup, find_packages -# work around to prevent http://bugs.python.org/issue15881 from showing up -try: - import multiprocessing -except ImportError: - pass - try: ...
Get rid of work around for setuptools bug. See <URL>
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 @@ -334,6 +334,18 @@ def login(args): if args.save: write_env_var('DX_SECURITY_CONTEXT', sec_context) + # If login via token, ...
Obtain user ID when logging in with dx login --token.
py
diff --git a/melodist/data_reader.py b/melodist/data_reader.py index <HASH>..<HASH> 100644 --- a/melodist/data_reader.py +++ b/melodist/data_reader.py @@ -146,7 +146,7 @@ def read_dwd(filename, metadata, mode="d", skip_last=True): 'LUFTTEMPERATUR_MINIMUM':'tmin', #no spec 'LUFT...
Bug in data_reader.py (function read_dwd()) fixed that caused an error when reading radiation files
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -93,6 +93,17 @@ class BuildSupport(object): for a in dir(self): info("%s=%s" % (a, getattr(self, a))) + def find_swig(self): + # Find SWIG executable + swig_executable = None + f...
Move generic find_swig method into baseclass
py
diff --git a/splitters.py b/splitters.py index <HASH>..<HASH> 100644 --- a/splitters.py +++ b/splitters.py @@ -1,4 +1,3 @@ - import random def split_by_percent(data, train_percentage): @@ -6,3 +5,16 @@ def split_by_percent(data, train_percentage): train = [row for i,row in enumerate(data) if i in train_indices] ...
Added test for basic portion-splitter.
py
diff --git a/sark/code/function.py b/sark/code/function.py index <HASH>..<HASH> 100644 --- a/sark/code/function.py +++ b/sark/code/function.py @@ -56,6 +56,10 @@ class Function(object): def comment(self, value): idaapi.set_func_cmt(self._func, value, False) + @property + def frame_size(self): + ...
Added code to get the frame size of a function.
py
diff --git a/master/buildbot/test/unit/test_process_properties.py b/master/buildbot/test/unit/test_process_properties.py index <HASH>..<HASH> 100644 --- a/master/buildbot/test/unit/test_process_properties.py +++ b/master/buildbot/test/unit/test_process_properties.py @@ -949,6 +949,25 @@ class TestWithProperties(unittes...
add a few extra WithProperties tests
py
diff --git a/src/unity/python/turicreate/visualization/_plot.py b/src/unity/python/turicreate/visualization/_plot.py index <HASH>..<HASH> 100644 --- a/src/unity/python/turicreate/visualization/_plot.py +++ b/src/unity/python/turicreate/visualization/_plot.py @@ -199,7 +199,7 @@ class Plot(object): def _repr_javasc...
Fix #<I> (#<I>) Remove extra ["vega_spec"] - we already return only the vega spec.
py
diff --git a/indy_node/__metadata__.py b/indy_node/__metadata__.py index <HASH>..<HASH> 100644 --- a/indy_node/__metadata__.py +++ b/indy_node/__metadata__.py @@ -1,7 +1,7 @@ """ indy-node package metadata """ -__version_info__ = (1, 2) +__version_info__ = (1, 3) __version__ = '.'.join(map(str, __version_info__)) ...
Set version <I> (#<I>)
py
diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index <HASH>..<HASH> 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -288,19 +288,25 @@ class Client(Methods, BaseClient): await self.stop() - def run(self): + def run(self, coroutine=None): """Use t...
Make run() accept a coroutine
py
diff --git a/test/connection_test.py b/test/connection_test.py index <HASH>..<HASH> 100755 --- a/test/connection_test.py +++ b/test/connection_test.py @@ -61,7 +61,7 @@ class BaseTest(unittest.TestCase): json.dump(klass.dbconfig, f) @classmethod - def setUpClass(klass): + def _setUpClass(klass): os.m...
Make connection_test.py work in both <I> and <I>.
py
diff --git a/server.py b/server.py index <HASH>..<HASH> 100644 --- a/server.py +++ b/server.py @@ -15,6 +15,10 @@ work_dir = os.path.split(os.path.join(os.getcwd(), __file__))[0] pid_file = os.path.join(work_dir, 'server.pid') log_file = os.path.join(work_dir, 'server.log') +# Set MONGO_ORCHESTRATION_HOME to curren...
Set MONGO_ORCHESTRATION_HOME to current working directory if unset at startup.
py
diff --git a/niworkflows/interfaces/nibabel.py b/niworkflows/interfaces/nibabel.py index <HASH>..<HASH> 100644 --- a/niworkflows/interfaces/nibabel.py +++ b/niworkflows/interfaces/nibabel.py @@ -125,7 +125,8 @@ class SplitSeries(SimpleInterface): self._results["out_files"] = [] for i, img_3d in enumer...
FIX: Merge/SplitSeries write to path of input image, instead of cwd Addresses an oversight in #<I> .
py
diff --git a/fuse.py b/fuse.py index <HASH>..<HASH> 100644 --- a/fuse.py +++ b/fuse.py @@ -549,8 +549,8 @@ class Operations: def statfs(self, path): """Returns a dictionary with keys identical to the statvfs C structure - of statvfs(3). The f_frsize, f_favail, f_fsid and f_flag fields are ...
Previous comment (taken from fuse.h) was misleading. git-svn-id: <URL>
py
diff --git a/steampy/models.py b/steampy/models.py index <HASH>..<HASH> 100644 --- a/steampy/models.py +++ b/steampy/models.py @@ -1,9 +1,12 @@ import enum +from collections import namedtuple -class GameOptions(enum.Enum): - DOTA2 = ('570', '2') - CS = ('730', '2') +class GameOptions: + PredefinedOptions ...
Models - change GameOptions from enum to generic class preserving backwards compatibility
py
diff --git a/doctr/travis.py b/doctr/travis.py index <HASH>..<HASH> 100644 --- a/doctr/travis.py +++ b/doctr/travis.py @@ -62,8 +62,7 @@ def setup_deploy_key(): " LogLevel ERROR\n" % key_path) # start ssh-agent and add key to it - run(['eval', 'ssh-agent -s']) - run(['ssh-add', os.path.ex...
run ssh-agent at the same time as ssh-add
py
diff --git a/datalad_service/common/s3.py b/datalad_service/common/s3.py index <HASH>..<HASH> 100644 --- a/datalad_service/common/s3.py +++ b/datalad_service/common/s3.py @@ -48,6 +48,7 @@ def setup_s3_sibling(dataset, realm): 'type=S3', 'bucket={}'.format(realm.s3_bucket), 'exporttree=yes', ...
Add 'versioning=yes' to s3 remotes.
py
diff --git a/spyderlib/widgets/externalshell/sitecustomize.py b/spyderlib/widgets/externalshell/sitecustomize.py index <HASH>..<HASH> 100644 --- a/spyderlib/widgets/externalshell/sitecustomize.py +++ b/spyderlib/widgets/externalshell/sitecustomize.py @@ -85,7 +85,8 @@ except ImportError: basestring = (str,) ...
Consoles: Correctly close a file when executing it on Python 3 Fixes #<I>
py
diff --git a/gns3server/compute/qemu/qemu_vm.py b/gns3server/compute/qemu/qemu_vm.py index <HASH>..<HASH> 100644 --- a/gns3server/compute/qemu/qemu_vm.py +++ b/gns3server/compute/qemu/qemu_vm.py @@ -1640,7 +1640,7 @@ class QemuVM(BaseNode): if interface == "sata": # special case, sata co...
Don't specify the PCI bus for AHCI device pci.X is not always defined, let qemu handle this. I think PCI buses only exist if PCI network adapters are defined, this is not the case with virtio.
py
diff --git a/openquake/engine/calculators/hazard/event_based/core.py b/openquake/engine/calculators/hazard/event_based/core.py index <HASH>..<HASH> 100644 --- a/openquake/engine/calculators/hazard/event_based/core.py +++ b/openquake/engine/calculators/hazard/event_based/core.py @@ -60,7 +60,7 @@ from openquake.engine.p...
Since we are using little memory, we can raise the BLOCK_SIZE
py
diff --git a/tibber/__init__.py b/tibber/__init__.py index <HASH>..<HASH> 100644 --- a/tibber/__init__.py +++ b/tibber/__init__.py @@ -36,7 +36,7 @@ class Tibber: async def _create_session(): return aiohttp.ClientSession( - headers={aiohttp.hdrs.USER_AGENT: "pyTibber"}...
user agent (#<I>)
py
diff --git a/setuptools/tests/test_dist.py b/setuptools/tests/test_dist.py index <HASH>..<HASH> 100644 --- a/setuptools/tests/test_dist.py +++ b/setuptools/tests/test_dist.py @@ -125,8 +125,6 @@ def __read_test_cases(): merge_dicts(base_attrs, { 'provides_extras': ['foo', 'bar'] ...
Remove superfluous test and re-organize tests for clarity.
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 @@ -52,8 +52,10 @@ class BaseAnimation(object): if self.thread_strategy.animation_stop_event.isSet(): return False ...
Another logic tweak in BaseAnimation.run.
py
diff --git a/etrago/cluster/disaggregation.py b/etrago/cluster/disaggregation.py index <HASH>..<HASH> 100644 --- a/etrago/cluster/disaggregation.py +++ b/etrago/cluster/disaggregation.py @@ -326,7 +326,7 @@ class UniformDisaggregation(Disaggregation): "Cluster {} has {} generators for carrier {}.\n"...
Remove `"cluster_id carrier"` entries earlier IMHO this is more readable and on top if it these entries no longer skew the summation used for distributing the solution to each generator, so it's probably also more correct.
py
diff --git a/airflow/contrib/sensors/bash_sensor.py b/airflow/contrib/sensors/bash_sensor.py index <HASH>..<HASH> 100644 --- a/airflow/contrib/sensors/bash_sensor.py +++ b/airflow/contrib/sensors/bash_sensor.py @@ -80,7 +80,6 @@ class BashSensor(BaseSensorOperator): self.sp = sp self...
AIRFLOW-<I>: Remove unneeded assignment of variable (#<I>)
py
diff --git a/alerta/webhooks/custom.py b/alerta/webhooks/custom.py index <HASH>..<HASH> 100644 --- a/alerta/webhooks/custom.py +++ b/alerta/webhooks/custom.py @@ -16,7 +16,7 @@ def custom(webhook): try: incomingAlert = custom_webhooks.webhooks[webhook].incoming( query_string=request.args, - ...
Get plain body if json and text is missing (#<I>)
py
diff --git a/tests/test_sqldiff.py b/tests/test_sqldiff.py index <HASH>..<HASH> 100644 --- a/tests/test_sqldiff.py +++ b/tests/test_sqldiff.py @@ -2,14 +2,20 @@ from django.apps import apps from django.test import TestCase -from django_extensions.management.commands.sqldiff import SqliteSQLDiff +from django_extensi...
update sqldiff test to include all options from command parser
py
diff --git a/law/decorator.py b/law/decorator.py index <HASH>..<HASH> 100644 --- a/law/decorator.py +++ b/law/decorator.py @@ -122,9 +122,9 @@ def log(fn, opts, task, *args, **kwargs): sys.stderr = tee try: ret = fn(task, *args, **kwargs) - except Exception as e: + ...
Fix re-raising in log decorator.
py
diff --git a/py/h2o.py b/py/h2o.py index <HASH>..<HASH> 100644 --- a/py/h2o.py +++ b/py/h2o.py @@ -1065,6 +1065,8 @@ class H2O(object): def exec_query(self, timeoutSecs=20, ignoreH2oError=False, **kwargs): params_dict = { 'expression': None, + ## 'escape_nan': 0, + ## 'd...
placeholder comments for exec default params..was playing to see if they affect anything
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -26,6 +26,7 @@ setup( url="https://github.com/python-gitlab/python-gitlab", packages=find_packages(), install_requires=["requests>=2.22.0"], + python_requires=">=3.6.0", entry_points={"console_scripts": ...
chore: enforce python version requirements
py
diff --git a/salt/modules/freebsdpkg.py b/salt/modules/freebsdpkg.py index <HASH>..<HASH> 100644 --- a/salt/modules/freebsdpkg.py +++ b/salt/modules/freebsdpkg.py @@ -130,9 +130,8 @@ def version(*names, **kwargs): def refresh_db(): ''' - Use pkg update to get latest repo.txz when using pkgng, else update the...
Fix docstring for freebsdpkg.refresh_db. The current code does not support using portsnap at all.
py
diff --git a/glances/core/glances_main.py b/glances/core/glances_main.py index <HASH>..<HASH> 100644 --- a/glances/core/glances_main.py +++ b/glances/core/glances_main.py @@ -60,7 +60,7 @@ class GlancesMain(object): """Init all the command line arguments.""" version = "Glances v" + __version__ + " wit...
Use -V (capital V) for version -v is for verbose.
py
diff --git a/datajoint/connection.py b/datajoint/connection.py index <HASH>..<HASH> 100644 --- a/datajoint/connection.py +++ b/datajoint/connection.py @@ -59,7 +59,7 @@ class Connection: else: port = config['database.port'] self.conn_info = dict(host=host, port=port, user=user, passwd=pas...
restored the init_command in Connection
py
diff --git a/src/super_archives/views.py b/src/super_archives/views.py index <HASH>..<HASH> 100644 --- a/src/super_archives/views.py +++ b/src/super_archives/views.py @@ -74,6 +74,7 @@ class ThreadView(View): raise http.Http404 data = { + 'in_reply_to': thread.message_set.last().messa...
Adding in_reply_to to request data
py
diff --git a/worker/buildbot_worker/scripts/runner.py b/worker/buildbot_worker/scripts/runner.py index <HASH>..<HASH> 100644 --- a/worker/buildbot_worker/scripts/runner.py +++ b/worker/buildbot_worker/scripts/runner.py @@ -21,10 +21,15 @@ import re import sys import textwrap +from twisted.logger import ILogObserver...
configure logging for buildbot-worker runner As alternative we can revert changes from 4d<I>e6 commit by @jvlomax (in buildbot-worker copy). By default Twisted log is not written anywhere so we don't see any errors from buildbot-worker invocations, e.g. ``` $ buildbot-worker create-worker w $ echo $? 1 $ ```
py
diff --git a/tools/dbmaint.py b/tools/dbmaint.py index <HASH>..<HASH> 100755 --- a/tools/dbmaint.py +++ b/tools/dbmaint.py @@ -160,8 +160,9 @@ def run_scripts(artefact, rev_info, scripts, config): break if max_step != 0: - cmd=("UPDATE admin.revision_info SET step=%s WHERE artefact='%s'" ...
refreshed time stamp for upgraded artefact
py
diff --git a/tests/cli.py b/tests/cli.py index <HASH>..<HASH> 100644 --- a/tests/cli.py +++ b/tests/cli.py @@ -90,16 +90,11 @@ class Test_20_Base(RunTestBase): def setUp(self): self.workdir = tests.common.setup_workdir() - self.script = os.path.join(tests.common.selfdir(), - ...
fix: remove the script ref not used actually in the cli test cases
py
diff --git a/charmhelpers/contrib/openstack/context.py b/charmhelpers/contrib/openstack/context.py index <HASH>..<HASH> 100644 --- a/charmhelpers/contrib/openstack/context.py +++ b/charmhelpers/contrib/openstack/context.py @@ -981,7 +981,7 @@ class WorkerConfigContext(OSContextGenerator): return NUM_CPUS ...
worker-multiplier default should be 0
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ deps = { # Installing these libraries may make the evm perform better than # using the default fallbacks though. 'eth-extra': [ - "coincurve>=8.0.0,<9.0.0", + "coincurve>=10.0.0,<11....
update coincurve from 8 to <I> version
py
diff --git a/aiger/aig.py b/aiger/aig.py index <HASH>..<HASH> 100644 --- a/aiger/aig.py +++ b/aiger/aig.py @@ -222,7 +222,7 @@ class AIG: inputs = yield outputs, latches def simulate(self, input_seq, latches=None): - sim = self.simulator() + sim = self.simulator(latches) next(...
Simulation doesn't propogate latches.
py
diff --git a/airflow/migrations/versions/cc1e65623dc7_add_max_tries_column_to_task_instance.py b/airflow/migrations/versions/cc1e65623dc7_add_max_tries_column_to_task_instance.py index <HASH>..<HASH> 100644 --- a/airflow/migrations/versions/cc1e65623dc7_add_max_tries_column_to_task_instance.py +++ b/airflow/migrations/...
Remove redundant ``session.commit()`` in migration (#<I>) `session.commit()` is redundant as we won't have anything to commit.
py
diff --git a/scbw/defaults.py b/scbw/defaults.py index <HASH>..<HASH> 100644 --- a/scbw/defaults.py +++ b/scbw/defaults.py @@ -10,7 +10,7 @@ def get_data_dir() -> str: return os.path.expanduser("~") + "/.scbw" -VERSION = "1.0.2" +VERSION = "1.0.3" SCBW_BASE_DIR = get_data_dir() SC_GAME_DIR = f"{SCBW_BA...
Get rid of bogus f version
py
diff --git a/tests/test_quantity.py b/tests/test_quantity.py index <HASH>..<HASH> 100644 --- a/tests/test_quantity.py +++ b/tests/test_quantity.py @@ -2870,6 +2870,11 @@ def test_potential_paramunits(): pot= potential.NFWPotential(amp=20.*units.Msun,a=15.*units.kpc,ro=ro,vo=vo) # Check density at r=a ass...
Add test of NFWPotential rmax,vmax setup with quantities
py
diff --git a/doc/source/conf.py b/doc/source/conf.py index <HASH>..<HASH> 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -61,14 +61,14 @@ copyright = u'2015, Dominique Orban, Sylvain Arreckx and Nikolaj van Omme' # built documents. # # The short X.Y version. -#try: -from cygenja import __version__ -# Th...
adapted conf.py to skip version if cygenja is not installed
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 @@ -29,8 +29,7 @@ HAZARD_CALCULATORS = [ RISK_CALCULATORS = [ 'classical_risk', 'event_based_risk', 'scenario_ris...
Removed the reference to the non-existent calculator event_loss
py
diff --git a/src/pop/control.py b/src/pop/control.py index <HASH>..<HASH> 100644 --- a/src/pop/control.py +++ b/src/pop/control.py @@ -80,14 +80,17 @@ class CommandConfiguration(object): # service_parser.type = converter for name, factory in self.services.items(): - if factory is None or ...
Don't add parser to configurator if description is trivial. We use this for internal services that are mostly useful for testing.
py
diff --git a/dingo/core/__init__.py b/dingo/core/__init__.py index <HASH>..<HASH> 100644 --- a/dingo/core/__init__.py +++ b/dingo/core/__init__.py @@ -134,7 +134,7 @@ class NetworkDingo: orm_GridDistrict.geom, srid)).\ label('poly_geom...
modify column for substation import Column 'geom' was renamed to 'point'. See here for context: <URL>
py
diff --git a/nidmresults/graph.py b/nidmresults/graph.py index <HASH>..<HASH> 100644 --- a/nidmresults/graph.py +++ b/nidmresults/graph.py @@ -326,8 +326,9 @@ SELECT DISTINCT ?type ?version ?exp_act WHERE { self.info['Inferences'][-1][clus][-1][cl_pfdr] = ( ...
fix: saving peaks as JSON
py
diff --git a/src/frogsay/client.py b/src/frogsay/client.py index <HASH>..<HASH> 100644 --- a/src/frogsay/client.py +++ b/src/frogsay/client.py @@ -1,6 +1,14 @@ import contextlib import os import random + +try: + # OS X apparently lacks gdbm and will fail unless we monkey-patch it + import anydbm + anydbm.__...
Added monkey patch for OS X issue
py
diff --git a/demands/service.py b/demands/service.py index <HASH>..<HASH> 100644 --- a/demands/service.py +++ b/demands/service.py @@ -98,10 +98,8 @@ class HTTPService(object): """ response.is_ok = response.status_code < 300 - expected_response_codes = kwargs.get('expected_response_codes', []...
Update if statement as pleases V
py
diff --git a/ores/wsgi/util.py b/ores/wsgi/util.py index <HASH>..<HASH> 100644 --- a/ores/wsgi/util.py +++ b/ores/wsgi/util.py @@ -192,7 +192,7 @@ def build_event_set(event): else: event_set.add('nonbot_edit') - if event['rev_parent_id'] == 0: + if not event.get('rev_parent_id'): ...
Make check for parent rev in precache more robust to change The stream can stop sending rev_parent_id for page creation or send null. We should handle all possible cases Bug: T<I>
py
diff --git a/src/flask_rq2/cli.py b/src/flask_rq2/cli.py index <HASH>..<HASH> 100644 --- a/src/flask_rq2/cli.py +++ b/src/flask_rq2/cli.py @@ -118,8 +118,8 @@ def info(rq, ctx, path, interval, raw, only_queues, only_workers, by_queue, @click.option('--name', '-n', help='Specify a different name') @click.option('--pat...
Update cli.py and issue #<I>
py
diff --git a/django_bouncy/migrations/0003_auto_20151106_1626.py b/django_bouncy/migrations/0003_auto_20151106_1626.py index <HASH>..<HASH> 100644 --- a/django_bouncy/migrations/0003_auto_20151106_1626.py +++ b/django_bouncy/migrations/0003_auto_20151106_1626.py @@ -31,6 +31,7 @@ class Migration(migrations.Migration): ...
Adjusting options in migration to remove notice Django was complaining that there were model changes, when in fact those changes were just a change to the verbose name. Since this doesn't usually persist to the database, it's safe to just make the change on the existing migration.
py
diff --git a/subreddit_stats.py b/subreddit_stats.py index <HASH>..<HASH> 100755 --- a/subreddit_stats.py +++ b/subreddit_stats.py @@ -59,8 +59,8 @@ class SubRedditStats(object): break except RateLimitExceeded as error: sleep(error.sleep_time) - except Exception...
Fix ratelimit handling when error is contained in an ExceptionList.
py
diff --git a/arangodb/tests.py b/arangodb/tests.py index <HASH>..<HASH> 100644 --- a/arangodb/tests.py +++ b/arangodb/tests.py @@ -1,5 +1,6 @@ import unittest import datetime +from uuid import uuid4 from arangodb.api import Client, Database, Collection, Document from arangodb.orm.fields import CharField, ForeignK...
Added test for retrieving a single object
py
diff --git a/src/masonite/routes.py b/src/masonite/routes.py index <HASH>..<HASH> 100644 --- a/src/masonite/routes.py +++ b/src/masonite/routes.py @@ -213,7 +213,7 @@ class BaseHttpRoute: self.controller = getattr(module, get_controller) # Set the controller method on class. This is a string...
Route controllers can now be set without a method, and makes it more similar to Laravel routing.
py
diff --git a/netmiko/ssh_dispatcher.py b/netmiko/ssh_dispatcher.py index <HASH>..<HASH> 100644 --- a/netmiko/ssh_dispatcher.py +++ b/netmiko/ssh_dispatcher.py @@ -10,6 +10,7 @@ from netmiko.huawei import HuaweiSSH from netmiko.f5 import F5LtmSSH from netmiko.juniper import JuniperSSH from netmiko.brocade import Broc...
Added AvayaVspSSH to import and CLASS_MAPPER
py
diff --git a/src/python/pants/engine/internals/engine_test.py b/src/python/pants/engine/internals/engine_test.py index <HASH>..<HASH> 100644 --- a/src/python/pants/engine/internals/engine_test.py +++ b/src/python/pants/engine/internals/engine_test.py @@ -651,7 +651,9 @@ class StreamingWorkunitTests(unittest.TestCase, S...
Fix collision in workunit affecting patches. (#<I>) #<I> and #<I> collided, and a test broke on master.
py
diff --git a/git/repo/fun.py b/git/repo/fun.py index <HASH>..<HASH> 100644 --- a/git/repo/fun.py +++ b/git/repo/fun.py @@ -35,7 +35,7 @@ def is_git_dir(d): There is the unlikely danger to throw if we see directories which just look like a worktree dir, but are none.""" if osp.isdir(d): - ...
Satisfy flake8 requirement related to #<I>
py
diff --git a/salt/returners/mongo_return.py b/salt/returners/mongo_return.py index <HASH>..<HASH> 100644 --- a/salt/returners/mongo_return.py +++ b/salt/returners/mongo_return.py @@ -1,7 +1,7 @@ ''' -Return data to a redis server -This is a VERY simple example for pushing data to a redis server and is not -necessarily...
fix docstring in mongo returner
py
diff --git a/fonduer/async_annotations.py b/fonduer/async_annotations.py index <HASH>..<HASH> 100644 --- a/fonduer/async_annotations.py +++ b/fonduer/async_annotations.py @@ -8,7 +8,7 @@ import numpy as np import scipy.sparse as sparse from pandas import DataFrame, Series -from snorkel.annotations import _to_annota...
quick fix fns in annotation for new version, need update again
py
diff --git a/openquake/calculators/ebrisk.py b/openquake/calculators/ebrisk.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/ebrisk.py +++ b/openquake/calculators/ebrisk.py @@ -184,7 +184,7 @@ class EbriskCalculator(event_based.EventBasedCalculator): def execute(self): oq = self.oqparam ...
Changed weights Former-commit-id: fb<I>a<I>a<I>c0f<I>f<I>a<I>b<I>e
py
diff --git a/lizzy_client/metrics.py b/lizzy_client/metrics.py index <HASH>..<HASH> 100644 --- a/lizzy_client/metrics.py +++ b/lizzy_client/metrics.py @@ -28,7 +28,7 @@ def report_metric(metric_name: str, value: int, fail_silently: bool=True): try: lizzy_domain = urlparse(configuration.lizzy_url).netloc ...
Exception as e -> Exception
py
diff --git a/static.py b/static.py index <HASH>..<HASH> 100755 --- a/static.py +++ b/static.py @@ -110,7 +110,7 @@ class StatusApp: Headers(headers).add_header('Content-type', 'text/plain') start_response(self.status, headers) if environ['REQUEST_METHOD'] == 'HEAD': - return [_...
Fix type (econding -> encoding)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import find_packages, setup install_requires = [ 'django>=2.0', - 'wagtail>=2.0' + 'wagtail>=2.9' ] test_require = [ @@ -35,8 +35,8 @@ setup( 'Framework :: Django', ...
update requirements for wagtail <I>
py
diff --git a/ibei/main.py b/ibei/main.py index <HASH>..<HASH> 100644 --- a/ibei/main.py +++ b/ibei/main.py @@ -47,6 +47,7 @@ def bb_rad_power(temp): """ Blackbody radiant power (Stefan-Boltzmann). """ + temp = units.Quantity(temp, "K") return constants.sigma_sb * temp**4
Coerce temp to astropy.units.Quantity
py
diff --git a/pyws/functions/args/__init__.py b/pyws/functions/args/__init__.py index <HASH>..<HASH> 100644 --- a/pyws/functions/args/__init__.py +++ b/pyws/functions/args/__init__.py @@ -28,13 +28,15 @@ class SimpleType(object): @classmethod def validate(cls, value): - raise NotImplemented('SimpleTyp...
String type checks if value is a basestring
py
diff --git a/nidmresults/exporter.py b/nidmresults/exporter.py index <HASH>..<HASH> 100644 --- a/nidmresults/exporter.py +++ b/nidmresults/exporter.py @@ -146,7 +146,6 @@ class NIDMExporter(): """ Initialise NIDM-Results bundle. """ - software_lc = self.software.name.lower() ...
fix: bundle id set as UUID is qualified generation
py
diff --git a/src/wa_kat/settings.py b/src/wa_kat/settings.py index <HASH>..<HASH> 100755 --- a/src/wa_kat/settings.py +++ b/src/wa_kat/settings.py @@ -59,6 +59,7 @@ TIMEOUT_MESSAGE = "Požadovanou stránku nebylo možné stáhnout. Zkuste url s GUI_TO_REST_PERIODE = 2 #: How often check the REST API. +WHOIS_URL = "ht...
#4: settings.py: Added new variable WHOIS_URL.
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -32,13 +32,13 @@ # -- Project information ----------------------------------------------------- project = 'Qiskit' -copyright = '2018, Qiskit Development Team' +copyright = '2019, Qiskit Development Team' ...
Update docs metadata (#<I>) This commit just fixes two small pieces of metadata in the docs sphinx configuration. The first is the version number which has increased from <I> to <I>. The second issue is the copyright date since it's now <I>.
py