diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/internals/labels.py b/internals/labels.py
index <HASH>..<HASH> 100644
--- a/internals/labels.py
+++ b/internals/labels.py
@@ -56,6 +56,9 @@ class Labels(object):
self.r = np.exp(logr - logr.max(1)[:,na])
self.r /= self.r.sum(1)[:,na]
+ # for plotting
+ self.z = self.r.argm... | fixed plotting for mean field (labels weren't being assigned) | py |
diff --git a/branca/element.py b/branca/element.py
index <HASH>..<HASH> 100644
--- a/branca/element.py
+++ b/branca/element.py
@@ -309,7 +309,7 @@ class Figure(Element):
"""
html = self.render(**kwargs)
- html = "data:text/html;base64," + base64.b64encode(html.encode('utf8')).decode('utf8') ... | correct rendering utf-8 IFrame The iframe didn't render properly utf-8 text, because the charset is missing | py |
diff --git a/airflow/kubernetes/worker_configuration.py b/airflow/kubernetes/worker_configuration.py
index <HASH>..<HASH> 100644
--- a/airflow/kubernetes/worker_configuration.py
+++ b/airflow/kubernetes/worker_configuration.py
@@ -35,7 +35,6 @@ class WorkerConfiguration(LoggingMixin):
git_sync_ssh_secret_volume_na... | [AIRFLOW-XXXX] Remove unused line in k8s worker_configuration.py (#<I>) | py |
diff --git a/python/ccxt/base/exchange.py b/python/ccxt/base/exchange.py
index <HASH>..<HASH> 100644
--- a/python/ccxt/base/exchange.py
+++ b/python/ccxt/base/exchange.py
@@ -113,6 +113,7 @@ class Exchange(object):
twofa = False
marketsById = None
markets_by_id = None
+ currencies_by_id = None
... | added .currencies_by_id to the base class in py #<I> | py |
diff --git a/bookstore/_version.py b/bookstore/_version.py
index <HASH>..<HASH> 100644
--- a/bookstore/_version.py
+++ b/bookstore/_version.py
@@ -18,7 +18,7 @@ No dot before alpha/beta/rc. Use dot before `.dev`. Examples::
- suffix (dev or "" to designate a final version)
"""
-version_info = (2, 5, 0)
+version_inf... | Move version number back to <I>.dev0 | py |
diff --git a/pysat/tests/test_params.py b/pysat/tests/test_params.py
index <HASH>..<HASH> 100644
--- a/pysat/tests/test_params.py
+++ b/pysat/tests/test_params.py
@@ -163,8 +163,8 @@ class TestCIonly():
"""Runs after every method to clean up previous testing."""
del self.ci_env
- def test_initial... | STY: Updated docstring for clarity | py |
diff --git a/SoftLayer/managers/vs.py b/SoftLayer/managers/vs.py
index <HASH>..<HASH> 100644
--- a/SoftLayer/managers/vs.py
+++ b/SoftLayer/managers/vs.py
@@ -332,7 +332,7 @@ class VSManager(utils.IdentifierMixin, object):
if nic_speed:
data['networkComponents'] = [{'maxSpeed': nic_speed}]
- ... | Fixes ordering with multiple disks There was a type check for lists... With click, multiple items are represented with tuples. | py |
diff --git a/panphon/test_sonority.py b/panphon/test_sonority.py
index <HASH>..<HASH> 100644
--- a/panphon/test_sonority.py
+++ b/panphon/test_sonority.py
@@ -32,7 +32,7 @@ class TestSonority(unittest.TestCase):
self.assertEqual(map(self.son.sonority, segs), scores)
def test_sonority_five(self):
- ... | Slight changes to test_sonority.py to test for past pathologies | py |
diff --git a/salt/runners/cache.py b/salt/runners/cache.py
index <HASH>..<HASH> 100644
--- a/salt/runners/cache.py
+++ b/salt/runners/cache.py
@@ -388,7 +388,7 @@ def cloud(tgt, provider=None):
'''
if not isinstance(tgt, six.string_types):
return {}
- ret = {}
+
opts = salt.config.cloud_confi... | runners.cache.cloud: Define var where it's actually going to be used The 'ret' variable only makes sense after all the checks passed. Place its definition before the loop over 'cloud_cache'. | py |
diff --git a/salt/utils/dictupdate.py b/salt/utils/dictupdate.py
index <HASH>..<HASH> 100644
--- a/salt/utils/dictupdate.py
+++ b/salt/utils/dictupdate.py
@@ -21,10 +21,10 @@ def update(dest, upd):
for key, val in six.iteritems(upd):
try:
if isinstance(val, OrderedDict):
- klas... | Rename klass to valtype | py |
diff --git a/parsl/executors/high_throughput/process_worker_pool.py b/parsl/executors/high_throughput/process_worker_pool.py
index <HASH>..<HASH> 100755
--- a/parsl/executors/high_throughput/process_worker_pool.py
+++ b/parsl/executors/high_throughput/process_worker_pool.py
@@ -416,7 +416,7 @@ class Manager(object):
... | Log that workers were started, rather than synced (#<I>) | py |
diff --git a/jax/numpy/lax_numpy.py b/jax/numpy/lax_numpy.py
index <HASH>..<HASH> 100644
--- a/jax/numpy/lax_numpy.py
+++ b/jax/numpy/lax_numpy.py
@@ -633,6 +633,8 @@ def stack(arrays):
def concatenate(arrays, axis=0):
if not arrays:
raise ValueError("Need at least one array to concatenate.")
+ if ndim(arrays... | More informative error on trying to concatenate 0-dim arrays. | py |
diff --git a/test/test_buffer.py b/test/test_buffer.py
index <HASH>..<HASH> 100644
--- a/test/test_buffer.py
+++ b/test/test_buffer.py
@@ -101,10 +101,10 @@ def test_number():
def test_name():
vim.command('new')
eq(vim.current.buffer.name, '')
- new_name = vim.eval('tempname()')
+ new_name = vim.eval('... | Resolve file name and silent write. This fixes symlink issues on OS X for /var and /private/var It also stops vim.command('w!') from blocking. | py |
diff --git a/src/saml2/attribute_converter.py b/src/saml2/attribute_converter.py
index <HASH>..<HASH> 100644
--- a/src/saml2/attribute_converter.py
+++ b/src/saml2/attribute_converter.py
@@ -244,17 +244,14 @@ class AttributeConverter(object):
ext = extension_elements_to_elements(value.extension_element... | Switch from urlencode to dictionary value representation. | py |
diff --git a/safe/utilities/file_downloader.py b/safe/utilities/file_downloader.py
index <HASH>..<HASH> 100644
--- a/safe/utilities/file_downloader.py
+++ b/safe/utilities/file_downloader.py
@@ -130,8 +130,12 @@ class FileDownloader(object):
QCoreApplication.processEvents()
result = self.reply.e... | fix if the request is cancelled, the http response is none | py |
diff --git a/lark/tools/nearley.py b/lark/tools/nearley.py
index <HASH>..<HASH> 100644
--- a/lark/tools/nearley.py
+++ b/lark/tools/nearley.py
@@ -172,7 +172,7 @@ def create_code_for_nearley_grammar(g, start, builtin_path, folder_path):
def main(fn, start, nearley_lib):
with codecs.open(fn, encoding='utf8') as f:... | Minor fix: Removed printing in new nearley tests | py |
diff --git a/bucky/main.py b/bucky/main.py
index <HASH>..<HASH> 100644
--- a/bucky/main.py
+++ b/bucky/main.py
@@ -116,6 +116,10 @@ def main():
cfgfile = None
load_config(cfgfile, full_trace=opts.full_trace)
+ # Mandatory second commandline
+ # processing pass to override values in cfg
+ parser... | Fix config options override with commandline | py |
diff --git a/marshmallow_mongoengine/fields.py b/marshmallow_mongoengine/fields.py
index <HASH>..<HASH> 100644
--- a/marshmallow_mongoengine/fields.py
+++ b/marshmallow_mongoengine/fields.py
@@ -27,7 +27,7 @@ class Point(fields.Field):
try:
return dict(
type="Point",
- ... | Use x, y for Point instead of longitude, latitude since x, y are more generic. | py |
diff --git a/modesolverpy/design.py b/modesolverpy/design.py
index <HASH>..<HASH> 100644
--- a/modesolverpy/design.py
+++ b/modesolverpy/design.py
@@ -1,13 +1,15 @@
import numpy as np
-def directional_coupler_lc(wavelength, n_eff_1, n_eff_2):
+def directional_coupler_lc(wavelength_nm, n_eff_1, n_eff_2):
'''
... | Updated directional coupler design code. | py |
diff --git a/dfply/transform.py b/dfply/transform.py
index <HASH>..<HASH> 100644
--- a/dfply/transform.py
+++ b/dfply/transform.py
@@ -35,7 +35,7 @@ def row_number(series):
return row_numbers
-def between(series, a, b, inclusive=True):
+def between(series, a, b, inclusive=False):
if inclusive == True:
... | default is inclusive=False for between now | py |
diff --git a/cumulusci/robotframework/Salesforce.py b/cumulusci/robotframework/Salesforce.py
index <HASH>..<HASH> 100644
--- a/cumulusci/robotframework/Salesforce.py
+++ b/cumulusci/robotframework/Salesforce.py
@@ -264,7 +264,10 @@ class Salesforce(object):
For more info see https://stackoverflow.com/a/5204523... | Improvement to our `scroll_element_into_view` keyword Our tests work with the previous version. I have received reports that this change helps some tests on some other projects, even though our own tests work without this fix. | py |
diff --git a/examples/multigpu_advtrain/make_model.py b/examples/multigpu_advtrain/make_model.py
index <HASH>..<HASH> 100644
--- a/examples/multigpu_advtrain/make_model.py
+++ b/examples/multigpu_advtrain/make_model.py
@@ -10,7 +10,7 @@ from cleverhans_tutorials.tutorial_models import MaxPool
from resnet_tf import Res... | make_madry name change to ngpu | py |
diff --git a/master/buildbot/test/util/misc.py b/master/buildbot/test/util/misc.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/util/misc.py
+++ b/master/buildbot/test/util/misc.py
@@ -15,6 +15,7 @@
import cStringIO
import os
import sys
+from future.utils import text_type
class PatcherMixin(object):
@... | Add a utility function to encode() an executable filename and command-line arguments as bytes. This is needed to eliminate warnings on Python 3 when we pass an executable and arguments to reactor.spawnProcess(), which can only take bytes, not unicode. | py |
diff --git a/zipline/lines.py b/zipline/lines.py
index <HASH>..<HASH> 100644
--- a/zipline/lines.py
+++ b/zipline/lines.py
@@ -99,7 +99,7 @@ class SimulatedTrading(object):
:param config: a dict with the following required properties::
- algorithm: a class that follows the algorithm protocol. See
- ... | update to pass along the new log socket address | py |
diff --git a/doctor/flask.py b/doctor/flask.py
index <HASH>..<HASH> 100644
--- a/doctor/flask.py
+++ b/doctor/flask.py
@@ -141,10 +141,6 @@ def handle_http_v3(handler: flask_restful.Resource, args: Tuple, kwargs: Dict,
sig.return_annotation(_response)
except TypeSystemError as e:
... | Remove syslog specific check for response validation warning log | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -44,6 +44,7 @@ setup(
zip_safe = False,
data_files = [
("{install_platlib}", ["{build_lib}/clrmagic.dll"]),
+ ],
cmdclass = {
"build_ext": clrmagic_build_ext
} | Update setup.py forgot brackets | py |
diff --git a/rest_pandas/views.py b/rest_pandas/views.py
index <HASH>..<HASH> 100644
--- a/rest_pandas/views.py
+++ b/rest_pandas/views.py
@@ -44,6 +44,7 @@ class PandasView(ListAPIView):
"""
model_serializer_class = PandasModelSerializer
renderer_classes = PANDAS_RENDERERS
+ paginate_by = None
c... | don't paginate pandas views | py |
diff --git a/src/ossos-pipeline/ossos/storage.py b/src/ossos-pipeline/ossos/storage.py
index <HASH>..<HASH> 100644
--- a/src/ossos-pipeline/ossos/storage.py
+++ b/src/ossos-pipeline/ossos/storage.py
@@ -511,7 +511,8 @@ def build_counter_tag(epoch_field, dry_run=False):
Builds the tag for the counter of a given epo... | Corrected the way names are assigned during 'dry-run' to account for our removal of the '<I>A/B' part from object names. This is just a knock on effect of how dry-run was using the name generator. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ If you get errors, check the following things:
setup(name='CleanerVersion',
version='1.3.3',
- description='A versioning solution for relational data models',
+ description='A versioning solu... | mention Django in the short package description shown on PyPi | py |
diff --git a/setuptools/build_meta.py b/setuptools/build_meta.py
index <HASH>..<HASH> 100644
--- a/setuptools/build_meta.py
+++ b/setuptools/build_meta.py
@@ -112,12 +112,12 @@ def _get_immediate_subdirectories(a_dir):
def get_requires_for_build_wheel(config_settings=None):
config_settings = _fix_config(config_... | Backend should not say that setuptools is needed to build | py |
diff --git a/good/voluptuous.py b/good/voluptuous.py
index <HASH>..<HASH> 100644
--- a/good/voluptuous.py
+++ b/good/voluptuous.py
@@ -24,6 +24,16 @@ Migration steps:
2. Run your application tests and see how it behaves
3. Module by module, replace `good.voluptuous` with just `good`, keeping the differences in mind.
... | voluptuous: notes on differences | py |
diff --git a/lib/passenger/wsgi/request_handler.py b/lib/passenger/wsgi/request_handler.py
index <HASH>..<HASH> 100755
--- a/lib/passenger/wsgi/request_handler.py
+++ b/lib/passenger/wsgi/request_handler.py
@@ -29,7 +29,10 @@ class RequestHandler:
try:
try:
env, input_stream = self.parse_request(clien... | Fix an infinite loop in the WSGI request handler. | py |
diff --git a/etc/reset.py b/etc/reset.py
index <HASH>..<HASH> 100755
--- a/etc/reset.py
+++ b/etc/reset.py
@@ -143,6 +143,9 @@ def main():
print_status("using the k8s for docker driver")
driver = DockerDriver()
+
+ run("pachctl", "delete", "all", raise_on_error=False)
+
driver.clear()
... | Delete all before clearing underlying resources | py |
diff --git a/eventkit/models.py b/eventkit/models.py
index <HASH>..<HASH> 100644
--- a/eventkit/models.py
+++ b/eventkit/models.py
@@ -281,6 +281,16 @@ class AbstractEvent(PolymorphicMPTTModel, AbstractBaseModel):
missing = rruleset.between(starts, end_repeat)
return missing
+ @property
+ def ... | Add `period` property. Returns "AM" or "PM" for the localised starts time. | py |
diff --git a/dimod/binary/binary_quadratic_model.py b/dimod/binary/binary_quadratic_model.py
index <HASH>..<HASH> 100644
--- a/dimod/binary/binary_quadratic_model.py
+++ b/dimod/binary/binary_quadratic_model.py
@@ -729,6 +729,9 @@ class BinaryQuadraticModel(QuadraticViewsMixin):
Args:
linear:
... | Fix some warnings in generated docs | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -55,6 +55,7 @@ setuptools.setup(
"Bug Tracker": "https://github.com/RDIL/area4/issues",
"Documentation": "https://area4.readthedocs.io/en/stable/",
"Source Code": "https://github.com/RDIL/area4",
+ ... | Added a link to the license | py |
diff --git a/py/apigen/apigen.py b/py/apigen/apigen.py
index <HASH>..<HASH> 100644
--- a/py/apigen/apigen.py
+++ b/py/apigen/apigen.py
@@ -47,7 +47,6 @@ def build(pkgdir, dsa, capture):
apb.build_namespace_pages(ns_data, proj)
capture.err.writeorg('building class pages\n')
apb.build_class_pages(class_dat... | [svn r<I>] Fixed problem probably caused by removing some comment or something... --HG-- branch : trunk | py |
diff --git a/pygerrit2/rest/__init__.py b/pygerrit2/rest/__init__.py
index <HASH>..<HASH> 100644
--- a/pygerrit2/rest/__init__.py
+++ b/pygerrit2/rest/__init__.py
@@ -153,7 +153,7 @@ class GerritRestAPI(object):
"""
args = {}
- if "data" in kwargs:
+ if "data" in kwargs or "json" in kw... | making use of requests' json argument This one makes sending JSON data in requests a bit easier - instead of sending JSON string in "data", one can send a dictionary as "json" argument and allow requests library to do the conversion. Change-Id: Ia<I>df<I>af<I>e<I>aa<I>ce<I>ac6a4ebcd<I> | py |
diff --git a/pipenv/progress.py b/pipenv/progress.py
index <HASH>..<HASH> 100644
--- a/pipenv/progress.py
+++ b/pipenv/progress.py
@@ -28,8 +28,8 @@ if os.name != 'nt':
BAR_EMPTY_CHAR = str(crayons.black('-'))
else:
if PIPENV_COLORBLIND:
- BAR_FILLED_CHAR = str(crayons.white('▉', b... | Fix: don't use crayons for colorblind. | py |
diff --git a/roca/detect.py b/roca/detect.py
index <HASH>..<HASH> 100644
--- a/roca/detect.py
+++ b/roca/detect.py
@@ -727,7 +727,7 @@ class RocaFingerprinter(object):
sub = self.process_file(fh.read(), fname)
ret.append(sub)
- else:
+ elif os.path.isdir... | Only call process_dir on directories There are mor than files and directories in a filesystem (named pipes, etc. …) so should only call process_dir if a directory. | py |
diff --git a/atest/servercontroller.py b/atest/servercontroller.py
index <HASH>..<HASH> 100644
--- a/atest/servercontroller.py
+++ b/atest/servercontroller.py
@@ -25,6 +25,7 @@ import socket
from os.path import abspath, dirname, exists, join
import os
import sys
+import glob
BASE = dirname(abspath(__file__))
@@... | handle changing filename of main jar | py |
diff --git a/quilt/tools/build.py b/quilt/tools/build.py
index <HASH>..<HASH> 100644
--- a/quilt/tools/build.py
+++ b/quilt/tools/build.py
@@ -36,7 +36,7 @@ def _run_checks(dataframe, checks, checks_contents, nodename, rel_path, target,
_ = env # TODO: env support for checks
print("Running data integrity ch... | small code review change: set(dict) | py |
diff --git a/polyaxon/events/management/commands/monitor_resources.py b/polyaxon/events/management/commands/monitor_resources.py
index <HASH>..<HASH> 100644
--- a/polyaxon/events/management/commands/monitor_resources.py
+++ b/polyaxon/events/management/commands/monitor_resources.py
@@ -1,6 +1,7 @@
import time
from ... | Prevent resources from crashing while waiting for hooks to migrate db | py |
diff --git a/siteprefs/__init__.py b/siteprefs/__init__.py
index <HASH>..<HASH> 100644
--- a/siteprefs/__init__.py
+++ b/siteprefs/__init__.py
@@ -1,4 +1,4 @@
-VERSION = (0, 5, 1)
+VERSION = (0, 5, 2)
default_app_config = 'siteprefs.config.SiteprefsConfig' | Version number is bumped up. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ import sys
from setuptools import setup, find_packages
NAME = 'django-debug-toolbar-vcs-info'
-VERSION = '1.0.0'
+VERSION = '1.1.0'
def read(filename): | Bump up version to <I> | py |
diff --git a/gnupg/tests/test_gnupg.py b/gnupg/tests/test_gnupg.py
index <HASH>..<HASH> 100644
--- a/gnupg/tests/test_gnupg.py
+++ b/gnupg/tests/test_gnupg.py
@@ -420,7 +420,7 @@ class GPGTestCase(unittest.TestCase):
barbara = key.fingerprint
gpg = self.gpg
gpg.encoding = 'latin-1'
- i... | Fix a bug due to the _py3k check being moved to the utils module. | py |
diff --git a/openquake/baselib/performance.py b/openquake/baselib/performance.py
index <HASH>..<HASH> 100644
--- a/openquake/baselib/performance.py
+++ b/openquake/baselib/performance.py
@@ -34,7 +34,7 @@ task_info_dt = numpy.dtype(
('received', numpy.int64), ('mem_gb', numpy.float32)])
-def init_performance(... | init_performance can now work in swmr mode | py |
diff --git a/src/setup.py b/src/setup.py
index <HASH>..<HASH> 100644
--- a/src/setup.py
+++ b/src/setup.py
@@ -426,7 +426,7 @@ def main():
'description': 'A WBEM client and related utilities',
'long_description': __doc__,
'platforms': ['any'],
- 'url': 'https://github.com/pywbem/pywbem... | Updated URL in setup script to new web page on GitHub pages. | py |
diff --git a/abilian/core/models/subjects.py b/abilian/core/models/subjects.py
index <HASH>..<HASH> 100644
--- a/abilian/core/models/subjects.py
+++ b/abilian/core/models/subjects.py
@@ -41,16 +41,20 @@ following = Table(
)
membership = Table(
'membership', db.Model.metadata,
- Column('user_id', Integer, ForeignK... | members/admins table: cascade group/user delete M2M tables should not prevent user/group delete, just like single FK column. | py |
diff --git a/lago/virt.py b/lago/virt.py
index <HASH>..<HASH> 100644
--- a/lago/virt.py
+++ b/lago/virt.py
@@ -1146,23 +1146,32 @@ class VM(object):
self._service_class = service_class
self._spec['service_class'] = manager_name
self.save()
- break
+ ... | Better handling of hosts with no service manager Change-Id: I<I>ff<I>ca<I>e<I>c2b<I>a<I>ca8e | py |
diff --git a/celeryconfig.py b/celeryconfig.py
index <HASH>..<HASH> 100644
--- a/celeryconfig.py
+++ b/celeryconfig.py
@@ -48,9 +48,11 @@ BROKER_PORT = int(amqp.get("port"))
BROKER_USER = amqp.get("user")
BROKER_PASSWORD = amqp.get("password")
BROKER_VHOST = amqp.get("vhost")
-# Force BROKER_POOL_LIMIT to 1024 so it... | Moved BROKER_POOL_LIMIT from <I> to <I> as it's the default is Celery <I> Former-commit-id: e<I>ea<I>c<I>dd<I>e<I>eb<I>f<I>eb<I> | py |
diff --git a/src/globus_cli/commands/collection/list.py b/src/globus_cli/commands/collection/list.py
index <HASH>..<HASH> 100644
--- a/src/globus_cli/commands/collection/list.py
+++ b/src/globus_cli/commands/collection/list.py
@@ -94,14 +94,13 @@ def collection_list(
List the Collections on a given Globus Connect ... | Move collection list args to "top level" Now that the SDK supports these arguments on `GCSClient.get_collection_list`, we can pass them directly: `mapped_collection_id`, `filter`. - | py |
diff --git a/tornado/test/netutil_test.py b/tornado/test/netutil_test.py
index <HASH>..<HASH> 100644
--- a/tornado/test/netutil_test.py
+++ b/tornado/test/netutil_test.py
@@ -1,5 +1,6 @@
from __future__ import absolute_import, division, print_function, with_statement
+import platform
import signal
import socket
f... | Disable port-allocation test on mac to avoid annoying firewall prompts. | py |
diff --git a/twarc.py b/twarc.py
index <HASH>..<HASH> 100755
--- a/twarc.py
+++ b/twarc.py
@@ -237,7 +237,22 @@ def catch_conn_reset(f):
def new_f(self, *args, **kwargs):
try:
return f(self, *args, **kwargs)
- except ConnectionError:
+ except ConnectionError as e:
+ l... | catch and recover from timeout errors; fixes #<I> | py |
diff --git a/grimoire_elk/_version.py b/grimoire_elk/_version.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/_version.py
+++ b/grimoire_elk/_version.py
@@ -1,2 +1,2 @@
# Versions compliant with PEP 440 https://www.python.org/dev/peps/pep-0440
-__version__ = "0.47.0"
+__version__ = "0.48.0" | Update version number to <I> | py |
diff --git a/indra/tests/test_util.py b/indra/tests/test_util.py
index <HASH>..<HASH> 100644
--- a/indra/tests/test_util.py
+++ b/indra/tests/test_util.py
@@ -6,6 +6,7 @@ import xml.etree.ElementTree as ET
from indra.util import UnicodeXMLTreeBuilder as UTB, kappy_json_to_graph
from indra.util import unicode_strs
fr... | Fix test to work from any directory. | py |
diff --git a/can/interfaces/cantact.py b/can/interfaces/cantact.py
index <HASH>..<HASH> 100644
--- a/can/interfaces/cantact.py
+++ b/can/interfaces/cantact.py
@@ -27,8 +27,10 @@ class CantactBus(BusABC):
def _detect_available_configs():
try:
interface = cantact.Interface()
- except (Na... | Fix _detect_available_configs | py |
diff --git a/gns3server/modules/virtualbox/virtualbox_vm.py b/gns3server/modules/virtualbox/virtualbox_vm.py
index <HASH>..<HASH> 100644
--- a/gns3server/modules/virtualbox/virtualbox_vm.py
+++ b/gns3server/modules/virtualbox/virtualbox_vm.py
@@ -778,6 +778,13 @@ class VirtualBoxVM(object):
"--register... | Add snapshot named reset to linked cloned Vbox | py |
diff --git a/cloudvolume/datasource/graphene/metadata.py b/cloudvolume/datasource/graphene/metadata.py
index <HASH>..<HASH> 100644
--- a/cloudvolume/datasource/graphene/metadata.py
+++ b/cloudvolume/datasource/graphene/metadata.py
@@ -96,6 +96,7 @@ class GrapheneMetadata(PrecomputedMetadata):
self.auth_header = ... | fix(graphene): use_https was clobbered by precomputed parent class Resolves #<I> | py |
diff --git a/shinken/scheduler.py b/shinken/scheduler.py
index <HASH>..<HASH> 100644
--- a/shinken/scheduler.py
+++ b/shinken/scheduler.py
@@ -1508,6 +1508,10 @@ class Scheduler:
timeout = 1.0 # For the select
gogogo = time.time()
+
+ # We must reset it if we received a new conf from... | Fix : reset self.nb_check_received before the main loop in scheduler.py The stats were incorrect in debug when restarting the arbiter. | py |
diff --git a/lib/emir/recipes/direct_imaging.py b/lib/emir/recipes/direct_imaging.py
index <HASH>..<HASH> 100644
--- a/lib/emir/recipes/direct_imaging.py
+++ b/lib/emir/recipes/direct_imaging.py
@@ -340,7 +340,7 @@ class Recipe(nr.RecipeBase):
# Combine the sky images with masks
_logge... | emir prefix added to superflat output image | py |
diff --git a/export_app/management/commands/export.py b/export_app/management/commands/export.py
index <HASH>..<HASH> 100644
--- a/export_app/management/commands/export.py
+++ b/export_app/management/commands/export.py
@@ -61,7 +61,8 @@ class Command(SerializerExporterWithFields, BaseCommand):
... | :bug: instanciate viewset in adapters that require them | py |
diff --git a/s3_mysql_backup/backup_db.py b/s3_mysql_backup/backup_db.py
index <HASH>..<HASH> 100644
--- a/s3_mysql_backup/backup_db.py
+++ b/s3_mysql_backup/backup_db.py
@@ -37,11 +37,9 @@ def backup_db(args):
subprocess.call(cmd.split())
# append '.bz2'
sql_local_full_target = sql_full_target
- sql_... | remove bad path from s3 dest | py |
diff --git a/web/core/application.py b/web/core/application.py
index <HASH>..<HASH> 100644
--- a/web/core/application.py
+++ b/web/core/application.py
@@ -254,12 +254,11 @@ class Application(object):
# Make sure the handler can actually accept these arguments.
# Passing invalid arguments would 500 Internal Serv... | Development-time friendly argument checking. In production environments the argument mismatch would propagate and exhibit as a <I> Internal Server Error. | py |
diff --git a/napalm/exceptions.py b/napalm/exceptions.py
index <HASH>..<HASH> 100644
--- a/napalm/exceptions.py
+++ b/napalm/exceptions.py
@@ -16,4 +16,7 @@ class ReplaceConfigException(Exception):
pass
class MergeConfigException(Exception):
- pass
\ No newline at end of file
+ pass
+
+class SessionLocked... | Added new exception to indicate that a session is already locked | py |
diff --git a/trollimage/image.py b/trollimage/image.py
index <HASH>..<HASH> 100644
--- a/trollimage/image.py
+++ b/trollimage/image.py
@@ -43,6 +43,7 @@ except ImportError:
logger = logging.getLogger(__name__)
PIL_IMAGE_FORMATS = Pil.registered_extensions()
+PIL_FORMAT_URL = "https://pillow.readthedocs.io/en/stable... | Link to Pillow documentation in docstrings. | py |
diff --git a/sark/code/line.py b/sark/code/line.py
index <HASH>..<HASH> 100644
--- a/sark/code/line.py
+++ b/sark/code/line.py
@@ -283,6 +283,10 @@ class Line(object):
def offset_name(self):
return get_offset_name(self.ea)
+ @property
+ def bytes(self):
+ return idaapi.get_many_bytes(self.e... | add "bytes" property to a Line object | py |
diff --git a/demos/demo_sftp.py b/demos/demo_sftp.py
index <HASH>..<HASH> 100755
--- a/demos/demo_sftp.py
+++ b/demos/demo_sftp.py
@@ -104,7 +104,8 @@ try:
print('created demo_sftp_folder/ on the server')
# copy the README back here
- data = sftp.open('demo_sftp_folder/README', 'r').read()
+ with ... | Use 'with' for opening most file and SFTPFIle objects | py |
diff --git a/photutils/isophote/tests/test_model.py b/photutils/isophote/tests/test_model.py
index <HASH>..<HASH> 100644
--- a/photutils/isophote/tests/test_model.py
+++ b/photutils/isophote/tests/test_model.py
@@ -2,6 +2,7 @@
"""
Tests for the model module.
"""
+import warnings
from astropy.io import fits
from ... | Handle test warning that only sometimes occurs | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -12,8 +12,8 @@ import sys
if 'sdist' in sys.argv or 'develop' in sys.argv:
try:
os.chdir('fluent_comments')
- from django.core.management.commands.compilemessages import compile_messages
- compile_... | updated setup.py to correct import statement for compilemessages | py |
diff --git a/wafer/registration/views.py b/wafer/registration/views.py
index <HASH>..<HASH> 100644
--- a/wafer/registration/views.py
+++ b/wafer/registration/views.py
@@ -36,8 +36,14 @@ def github_login(request):
assert r.status_code == 200
gh = r.json()
- user = authenticate(github_login=gh['login'], na... | If there isn't a public e-mail address, pick the first private one | 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 setup, find_packages
setup(
name='pyseleniumjs',
description='Small library with javascript utilities for official Python selenium bindings.',
- version='1.1.2',
+ version='... | Updated package version to <I> | py |
diff --git a/openpnm/io/PNM.py b/openpnm/io/PNM.py
index <HASH>..<HASH> 100644
--- a/openpnm/io/PNM.py
+++ b/openpnm/io/PNM.py
@@ -65,7 +65,12 @@ class PNM(GenericIO):
temp['model'] = a.__module__ + '|' + \
a.__code__.co_name
obj_mod... | Skip models that are non-serializable in PNM format (fixes #<I>) | py |
diff --git a/pmagpy/contribution_builder.py b/pmagpy/contribution_builder.py
index <HASH>..<HASH> 100644
--- a/pmagpy/contribution_builder.py
+++ b/pmagpy/contribution_builder.py
@@ -1427,6 +1427,7 @@ class MagicDataFrame(object):
result = prog.match(x)
if result:
decimals = r... | fix bug in rounding for upload, #<I> | py |
diff --git a/pymatgen/core/lattice.py b/pymatgen/core/lattice.py
index <HASH>..<HASH> 100644
--- a/pymatgen/core/lattice.py
+++ b/pymatgen/core/lattice.py
@@ -1123,6 +1123,7 @@ class Lattice(MSONable):
fc = np.array(np.round(fc), dtype=np.int)
return np.sqrt(d2[0, 0]), fc
+ jimage = n... | Fix for #<I>, accept tuple or list as jimage input | py |
diff --git a/python/setup.py b/python/setup.py
index <HASH>..<HASH> 100755
--- a/python/setup.py
+++ b/python/setup.py
@@ -107,7 +107,7 @@ if platform.system() == 'Darwin':
setup(
name='neuroglancer',
- version='1.1.0',
+ version='1.1.1',
description='Python data backend for neuroglancer, a WebGL-bas... | chore(python): bump package version to <I> | py |
diff --git a/tests/test_programs.py b/tests/test_programs.py
index <HASH>..<HASH> 100644
--- a/tests/test_programs.py
+++ b/tests/test_programs.py
@@ -19,6 +19,7 @@ class TestProgramsHelp(unittest.TestCase):
def setUp(self):
pass
+ @unittest.skipIf(sys.platform not in ['darwin', 'win32', 'win62'], "D... | prevent travis-ci tests from failing | py |
diff --git a/git_pull_request/__init__.py b/git_pull_request/__init__.py
index <HASH>..<HASH> 100644
--- a/git_pull_request/__init__.py
+++ b/git_pull_request/__init__.py
@@ -308,6 +308,7 @@ def find_pull_request_template():
def get_pr_template_message(template):
fd, bodyfilename = tempfile.mkstemp()
+ os.cl... | Close fd returned by mkstemp | py |
diff --git a/src/ossos/core/ossos/storage.py b/src/ossos/core/ossos/storage.py
index <HASH>..<HASH> 100644
--- a/src/ossos/core/ossos/storage.py
+++ b/src/ossos/core/ossos/storage.py
@@ -1043,7 +1043,7 @@ def get_hdu(uri, cutout=None):
fpt.seek(0, 2)
fpt.seek(0)
logger.debug("Read... | Adjust for astropy <I> rules | py |
diff --git a/src/foremast/app/create_app.py b/src/foremast/app/create_app.py
index <HASH>..<HASH> 100644
--- a/src/foremast/app/create_app.py
+++ b/src/foremast/app/create_app.py
@@ -21,10 +21,9 @@ import logging
from pprint import pformat
import requests
-
from gogoutils import Generator
-from ..consts import A... | fix: Need to pass configuration format strings | py |
diff --git a/apiritif/__init__.py b/apiritif/__init__.py
index <HASH>..<HASH> 100644
--- a/apiritif/__init__.py
+++ b/apiritif/__init__.py
@@ -18,7 +18,6 @@ limitations under the License.
import copy
import inspect
import logging
-import re
import time
from collections import OrderedDict
from functools import wra... | Include Apiritif's 'User-Agent' header if not present | py |
diff --git a/scripts/release.py b/scripts/release.py
index <HASH>..<HASH> 100644
--- a/scripts/release.py
+++ b/scripts/release.py
@@ -20,7 +20,7 @@ def announce(version):
stdout = check_output(["git", "log", f"{last_version}..HEAD", "--format=%aN"])
stdout = stdout.decode("utf-8")
- contributors = set(s... | Issue #<I> - remove bots from contributors list (#<I>) * fix-contributors-list * remove-bots * delete-extraneous-file * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see <URL> | py |
diff --git a/tests/test_v0_bse.py b/tests/test_v0_bse.py
index <HASH>..<HASH> 100644
--- a/tests/test_v0_bse.py
+++ b/tests/test_v0_bse.py
@@ -118,7 +118,7 @@ _format_map = { 'nwchem' : ('NWChem', _process_nwchem),
@pytest.mark.parametrize('basis_name', _bs_names_only_v0)
@pytest.mark.parametrize('fmt', _bs_formats... | Add non-optimized back to v0 test | py |
diff --git a/test/test_sh.py b/test/test_sh.py
index <HASH>..<HASH> 100644
--- a/test/test_sh.py
+++ b/test/test_sh.py
@@ -32,10 +32,7 @@ def test_sh_output():
list_file_cmd = 'dir/b'
else:
list_file_cmd = '/bin/ls'
- if is_py3:
- list_file_cmd2 = sh(list_file_cmd, trim=bytes.rstrip)
- ... | Fixed encoding and trim issues. | py |
diff --git a/raiden/transfer/views.py b/raiden/transfer/views.py
index <HASH>..<HASH> 100644
--- a/raiden/transfer/views.py
+++ b/raiden/transfer/views.py
@@ -452,7 +452,7 @@ def role_from_transfer_task(transfer_task: TransferTask) -> str:
def secret_from_transfer_task(
transfer_task: InitiatorTask,
- ... | If secret is unknown - prevent additional routes If the secret is not available to the Initiator, we currently can't attempt additional route after initial route failed with "RefundTransfer". In such a case we ignore all other possible routes. This will cases the payment call to finish with an Error (no route). | py |
diff --git a/yabt/buildcontext.py b/yabt/buildcontext.py
index <HASH>..<HASH> 100644
--- a/yabt/buildcontext.py
+++ b/yabt/buildcontext.py
@@ -497,9 +497,15 @@ class BuildContext:
return False
# if any dependency of the target is dirty, then the target is dirty
if any(self.targets[dep].is... | logs that will help debugging cache problems | py |
diff --git a/pymbar/tests/test_mbar_solvers.py b/pymbar/tests/test_mbar_solvers.py
index <HASH>..<HASH> 100644
--- a/pymbar/tests/test_mbar_solvers.py
+++ b/pymbar/tests/test_mbar_solvers.py
@@ -96,7 +96,7 @@ def test_protocols():
solver_protocols = ['hybr', 'lm'] #scipy.optimize.root methods. Omitting methods whi... | print statment now correctly works with Python 3.X | py |
diff --git a/celery_progress/backend.py b/celery_progress/backend.py
index <HASH>..<HASH> 100644
--- a/celery_progress/backend.py
+++ b/celery_progress/backend.py
@@ -2,7 +2,7 @@ import logging
from abc import ABCMeta, abstractmethod
from decimal import Decimal
-from celery.result import AsyncResult
+from celery.re... | Fix RuntimeError on task finish | py |
diff --git a/napalm_logs/listener/tcp.py b/napalm_logs/listener/tcp.py
index <HASH>..<HASH> 100644
--- a/napalm_logs/listener/tcp.py
+++ b/napalm_logs/listener/tcp.py
@@ -95,8 +95,7 @@ class TCPListener(ListenerBase):
except socket.timeout:
if not self.__up:
return
- lo... | TCP Listener: do not raise on socket timeout, logging is sufficient When serving multiple clients, it's entirely normal for them to timeout, and eventually try to connect later due to inactivity. There's no reason to raise hard error, and kill the entire application just because a peer is no longer active. | py |
diff --git a/muda/deformers/time.py b/muda/deformers/time.py
index <HASH>..<HASH> 100644
--- a/muda/deformers/time.py
+++ b/muda/deformers/time.py
@@ -135,7 +135,7 @@ class LogspaceTimeStretch(AbstractTimeStretch):
TimeStretch
RandomTimeStretch
'''
- def __init__(self, n_samples=3, lower=0.8, upper=1.... | changed default logspace timestretch bounds | py |
diff --git a/alot/__init__.py b/alot/__init__.py
index <HASH>..<HASH> 100644
--- a/alot/__init__.py
+++ b/alot/__init__.py
@@ -1,5 +1,5 @@
__productname__ = 'alot'
-__version__ = '0.3'
+__version__ = '0.3+'
__copyright__ = "Copyright (C) 2012 Patrick Totzke"
__author__ = "Patrick Totzke"
__author_email__ = "patrick... | bumped version string to <I>+ | py |
diff --git a/source/rafcon/mvc/models/state.py b/source/rafcon/mvc/models/state.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/mvc/models/state.py
+++ b/source/rafcon/mvc/models/state.py
@@ -55,9 +55,8 @@ class StateModel(AbstractStateModel):
self.update_models(model, prop_name, info)
# mark... | Minor refactoring of handling of ignored methods | py |
diff --git a/src/wormhole/test/test_scripts.py b/src/wormhole/test/test_scripts.py
index <HASH>..<HASH> 100644
--- a/src/wormhole/test/test_scripts.py
+++ b/src/wormhole/test/test_scripts.py
@@ -368,7 +368,7 @@ class PregeneratedCode(ServerBase, ScriptsBase, unittest.TestCase):
# check sender
if mod... | fix capitalization output to match humanize | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -47,9 +47,8 @@ setup(
python_requires=">=3.6",
install_requires=[
"ruamel.yaml>=0.15.44",
- "docker>=3.2.0",
- # workaround https://github.com/docker/docker-py/pull/2844
- "six",
+ ... | Remove six (no longer needed by docker) | py |
diff --git a/crossplane/__init__.py b/crossplane/__init__.py
index <HASH>..<HASH> 100644
--- a/crossplane/__init__.py
+++ b/crossplane/__init__.py
@@ -10,7 +10,7 @@ __title__ = 'crossplane'
__summary__ = 'Reliable and fast NGINX configuration file parser.'
__url__ = 'https://github.com/nginxinc/crossplane'
-__versi... | Increased version to <I> | py |
diff --git a/LiSE/rule.py b/LiSE/rule.py
index <HASH>..<HASH> 100644
--- a/LiSE/rule.py
+++ b/LiSE/rule.py
@@ -8,6 +8,7 @@ from collections import (
Callable,
defaultdict
)
+from functools import partial
from .funlist import FunList
from .util import (
dispatch,
@@ -452,15 +453,22 @@ class RuleMapping... | The ``@entity.rule`` decorator now accepts ``always=True`` Also fix an error when dispatching the deletion of a rule. | py |
diff --git a/did/plugins/jira.py b/did/plugins/jira.py
index <HASH>..<HASH> 100644
--- a/did/plugins/jira.py
+++ b/did/plugins/jira.py
@@ -252,8 +252,14 @@ class JiraStats(StatsGroup):
headers = {
"Content-type": "application/json",
"Accept": "application/json"... | Handle authentication errors in the Jira plugin This should also fix BZ#<I>. | py |
diff --git a/spyderlib/widgets/editor.py b/spyderlib/widgets/editor.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/editor.py
+++ b/spyderlib/widgets/editor.py
@@ -377,24 +377,8 @@ class FileInfo(QObject):
# case, we don't want to force the object inspector to be visible,
# to avoid polluting... | Defer re-trigger calltips for another PR | py |
diff --git a/pyemu/pst/pst_handler.py b/pyemu/pst/pst_handler.py
index <HASH>..<HASH> 100644
--- a/pyemu/pst/pst_handler.py
+++ b/pyemu/pst/pst_handler.py
@@ -1601,7 +1601,7 @@ class Pst(object):
"NaNs in {0} dataframe, csv written to {1}".format(name, csv_name)
)
f_out.write("* m... | fix in tpl data trap | py |
diff --git a/pyblish_qml/host.py b/pyblish_qml/host.py
index <HASH>..<HASH> 100644
--- a/pyblish_qml/host.py
+++ b/pyblish_qml/host.py
@@ -329,16 +329,16 @@ def _install_maya():
app = QtWidgets.QApplication.instance()
- # acquire Maya's main window
- _state["vesselParent"] = {
- widget.objectName(... | Maya main window only exists in GUI mode | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.