diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/core/harvester.py b/core/harvester.py
index <HASH>..<HASH> 100755
--- a/core/harvester.py
+++ b/core/harvester.py
@@ -727,14 +727,22 @@ class Harvester:
#
for file_path in self._cti_files_list:
producer = GenTLProducer.create_producer()
- producer.open(file_path)
-... | Implement code for a case where the target module has been closed | py |
diff --git a/src/python_pachyderm/client.py b/src/python_pachyderm/client.py
index <HASH>..<HASH> 100644
--- a/src/python_pachyderm/client.py
+++ b/src/python_pachyderm/client.py
@@ -165,8 +165,14 @@ class Client(
"""
if config_file is None:
- with open(str(Path.home() / ".pachyderm/confi... | added check of /pachctl/config.json for configuration (#<I>) | py |
diff --git a/django_oidc_user/models.py b/django_oidc_user/models.py
index <HASH>..<HASH> 100644
--- a/django_oidc_user/models.py
+++ b/django_oidc_user/models.py
@@ -1,7 +1,7 @@
from django.db import models
from django.utils import timezone
from django.core import validators
-from django.utils.translation import ug... | Fix issue with latest Django version | py |
diff --git a/ca/django_ca/tests/base.py b/ca/django_ca/tests/base.py
index <HASH>..<HASH> 100644
--- a/ca/django_ca/tests/base.py
+++ b/ca/django_ca/tests/base.py
@@ -69,6 +69,22 @@ class DjangoCATestCase(TestCase):
if cls._overridden_settings:
reload_module(ca_settings)
+ @classmethod
+ d... | add tearDown class so that everything is disabled/removed again | py |
diff --git a/tests/test_features.py b/tests/test_features.py
index <HASH>..<HASH> 100644
--- a/tests/test_features.py
+++ b/tests/test_features.py
@@ -301,7 +301,7 @@ def test_spectral_contrast_errors():
@raises(ValueError)
def __test(S, freq, fmin, n_bands, quantile):
- librosa.feature.spectral_cont... | fixed broken test code for spectral_contrast | py |
diff --git a/addok/helpers/text.py b/addok/helpers/text.py
index <HASH>..<HASH> 100644
--- a/addok/helpers/text.py
+++ b/addok/helpers/text.py
@@ -128,10 +128,12 @@ class ascii(str):
cache = value._cache
except AttributeError:
cache = alphanumerize(unidecode(value.lower()))
- o... | Prevent creating a new string instance when calling ascii with an instance | py |
diff --git a/openquake/engine/calculators/hazard/classical/post_processing.py b/openquake/engine/calculators/hazard/classical/post_processing.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/calculators/hazard/classical/post_processing.py
+++ b/openquake/engine/calculators/hazard/classical/post_processing.py
@@ -1... | do not compute maps for multi curves | py |
diff --git a/dawg_python/wrapper.py b/dawg_python/wrapper.py
index <HASH>..<HASH> 100644
--- a/dawg_python/wrapper.py
+++ b/dawg_python/wrapper.py
@@ -89,7 +89,8 @@ class Guide(object):
def read(self, fp):
base_size = struct.unpack(str("=I"), fp.read(4))[0]
- self._units = bytearray(fp.read(base_... | array.array is more memory efficient than bytearray under pypy | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,12 +12,13 @@ with open('HISTORY.md') as history_file:
history = history_file.read()
install_requires = [
- 'numpy>=1.13.1',
- 'pandas>=0.22.0',
- 'scipy>=0.19.1, <1.3',
- 'exrex>=0.10.5',
- 'matplotl... | Restrict dependency versions to safe ranges with upper bounds | py |
diff --git a/sdk/monitor/azure-monitor-opentelemetry-exporter/tests/test_base_exporter.py b/sdk/monitor/azure-monitor-opentelemetry-exporter/tests/test_base_exporter.py
index <HASH>..<HASH> 100644
--- a/sdk/monitor/azure-monitor-opentelemetry-exporter/tests/test_base_exporter.py
+++ b/sdk/monitor/azure-monitor-opentele... | fix test by adding raw property in mock response (#<I>) | py |
diff --git a/gromacs/qsub.py b/gromacs/qsub.py
index <HASH>..<HASH> 100644
--- a/gromacs/qsub.py
+++ b/gromacs/qsub.py
@@ -34,6 +34,7 @@ import warnings
import gromacs.config
import gromacs.cbook
from gromacs.utilities import asiterable, Timedelta
+from gromacs import AutoCorrectionWarning
import logging
logger ... | fixed: missed AutoCorrectionWarning in qsub | py |
diff --git a/scripts/maf_extract_ranges_indexed.py b/scripts/maf_extract_ranges_indexed.py
index <HASH>..<HASH> 100755
--- a/scripts/maf_extract_ranges_indexed.py
+++ b/scripts/maf_extract_ranges_indexed.py
@@ -10,6 +10,9 @@ file.
NOTE: If two intervals overlap the same block it will be written twice. With
non-... | Added comment in header to clarify that intervals are origin-zero, half-open. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -8,11 +8,10 @@ Python bindings to zopfli
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext
-import sys
class custom_build_ext(build_ext):
- """Disable language extensions no... | [setup.py] pass extra flag to link C math library required by zopfli and not linked by default on some Unix systems | py |
diff --git a/master/buildbot/__init__.py b/master/buildbot/__init__.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/__init__.py
+++ b/master/buildbot/__init__.py
@@ -37,7 +37,8 @@ except IOError:
try:
dir = os.path.dirname(os.path.abspath(__file__))
- p = Popen(['git', 'describe', '--tags', ... | made indention PEP8 compliant | py |
diff --git a/src/shellingham/__init__.py b/src/shellingham/__init__.py
index <HASH>..<HASH> 100644
--- a/src/shellingham/__init__.py
+++ b/src/shellingham/__init__.py
@@ -4,7 +4,7 @@ import os
from ._core import ShellDetectionFailure
-__version__ = '1.2.6'
+__version__ = '1.2.7.dev0'
def detect_shell(pid=None... | Prebump to <I>.dev0 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -25,11 +25,11 @@ class TestCommand(Command):
suite = unittest.TestSuite()
if self.test == '*':
print('Running all tests')
- import test
- for tst in test.__all__:
- ... | fix for running unit tests in py versions < 3 | py |
diff --git a/ros_buildfarm/wrapper/apt.py b/ros_buildfarm/wrapper/apt.py
index <HASH>..<HASH> 100755
--- a/ros_buildfarm/wrapper/apt.py
+++ b/ros_buildfarm/wrapper/apt.py
@@ -63,6 +63,7 @@ def call_apt_update_install_clean(
'maybe run apt update',
'The following packages cannot be auth... | catch another apt hiccup | py |
diff --git a/cassandra/cluster.py b/cassandra/cluster.py
index <HASH>..<HASH> 100644
--- a/cassandra/cluster.py
+++ b/cassandra/cluster.py
@@ -123,10 +123,14 @@ class ResponseFuture(object):
self.query, retry_num=self._query_retries, **response.info)
elif isinstance(response, Overloade... | Correct retry handling on Overloaded, Bootstrapping errors | py |
diff --git a/src/parsy/__init__.py b/src/parsy/__init__.py
index <HASH>..<HASH> 100644
--- a/src/parsy/__init__.py
+++ b/src/parsy/__init__.py
@@ -114,7 +114,9 @@ def combine(fn):
return send(None)
- return success(None).bind(lambda _: genparser())
+ # this makes sure there is a separate instance of ... | make the combined parser lazy in a better way | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ setup(
packages=find_packages(),
install_requires=[
'jmbo>=1.1.1',
- 'django-dfp>=0.3.1',
+ 'django-dfp>=0.3.3',
],
tests_require=[
'django-setuptest>=0.1.4', | Up django-dfp version because old version pointed to wrong Django | py |
diff --git a/dhtmlparser.py b/dhtmlparser.py
index <HASH>..<HASH> 100755
--- a/dhtmlparser.py
+++ b/dhtmlparser.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
-pyDHTMLParser v1.6.0 (06.12.2012) by Bystroushaak (bystrousak@kitakitsune.org)
+pyDHTMLParser v1.6.1 (28.01.2013) by Bystroushaak (byst... | Fixed one minor bug in toString(), which caused bad DOM printing. | py |
diff --git a/galpy/potential_src/ForceSoftening.py b/galpy/potential_src/ForceSoftening.py
index <HASH>..<HASH> 100644
--- a/galpy/potential_src/ForceSoftening.py
+++ b/galpy/potential_src/ForceSoftening.py
@@ -1,6 +1,7 @@
###############################################################################
# ForceSoften... | Fix density in Plummer softening; fixes #<I> | py |
diff --git a/dingo/core/network/__init__.py b/dingo/core/network/__init__.py
index <HASH>..<HASH> 100644
--- a/dingo/core/network/__init__.py
+++ b/dingo/core/network/__init__.py
@@ -132,7 +132,15 @@ class GridDingo:
nodes_pos[node] = (x_pos_start + node.branch_no - 1 + 0.5, -node.load_no - 2 - 0.2... | fix drawing of LV grids set correct location of genos | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,10 @@
from setuptools import setup, find_packages
+
+from os.path import join, dirname
+import sys
+sys.path.insert(0, join(dirname(__file__), 'src'))
from cache.version import __version__
+sys.path.pop(0)
setup(
... | add some hackery to fix the install file | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ setup(
description='A small, modular, transport and protocol neutral RPC '
'library that, among other things, supports JSON-RPC and zmq.',
long_description=read('README.rst'),
- pac... | Exclude examples from find_packages. | py |
diff --git a/chartpress.py b/chartpress.py
index <HASH>..<HASH> 100755
--- a/chartpress.py
+++ b/chartpress.py
@@ -307,7 +307,12 @@ def main():
)
build_values(chart['name'], value_mods)
chart_paths = ['.'] + list(chart.get('paths', []))
- build_chart(chart['name'], paths=chart_... | avoid adding ‘v’ to chart version when using `--tag vX.Y` chart versions should be version strings, but tags may have a leading ‘v’. Strip the v from the chart version if it’s there. | py |
diff --git a/cherry_picker/cherry_picker/__init__.py b/cherry_picker/cherry_picker/__init__.py
index <HASH>..<HASH> 100644
--- a/cherry_picker/cherry_picker/__init__.py
+++ b/cherry_picker/cherry_picker/__init__.py
@@ -1,2 +1,2 @@
"""Backport CPython changes from master to maintenance branches."""
-__version__ = '0.2.... | Update cherry-picker version (GH-<I>) | py |
diff --git a/pqhelper/base.py b/pqhelper/base.py
index <HASH>..<HASH> 100644
--- a/pqhelper/base.py
+++ b/pqhelper/base.py
@@ -50,10 +50,10 @@ class StateInvestigator(object):
# fill, empty, ignore BGR for the various parts detected with TankLevel
_TANK_COLORS = {'health': ((5, 5, 200), (40, 40, 50), (20, 2... | update to TankLevel colors for health and mana to make them more accurate. | py |
diff --git a/salt/master.py b/salt/master.py
index <HASH>..<HASH> 100644
--- a/salt/master.py
+++ b/salt/master.py
@@ -1788,7 +1788,8 @@ class ClearFuncs(object):
try:
fun = clear_load.pop('fun')
- return self.wheel_.call_func(fun, **clear_load)
+ runner_cli... | Call runner async exec and return runner jid | py |
diff --git a/cleverhans/serial.py b/cleverhans/serial.py
index <HASH>..<HASH> 100644
--- a/cleverhans/serial.py
+++ b/cleverhans/serial.py
@@ -73,6 +73,13 @@ class NoRefModel(Model):
def __getstate__(self):
# Serialize everything except the Variables
out = self.__dict__.copy()
+
+ # The ba... | fix bug where attempted to pickle a placeholder | py |
diff --git a/bitgo/bitgo.py b/bitgo/bitgo.py
index <HASH>..<HASH> 100644
--- a/bitgo/bitgo.py
+++ b/bitgo/bitgo.py
@@ -43,7 +43,7 @@ from pycoin.tx import Spendable
from pycoin.tx.pay_to.ScriptMultisig import ScriptMultisig
from pycoin.tx.pay_to import SolvingError
from pycoin.tx.script import tools
-from pycoin.tx.... | Fixed import issue for parse_signature_blob pycoin changed the location of parse_signature_blob from vm.py to check_signature.py within the same folder. | py |
diff --git a/telethon/client/uploads.py b/telethon/client/uploads.py
index <HASH>..<HASH> 100644
--- a/telethon/client/uploads.py
+++ b/telethon/client/uploads.py
@@ -39,7 +39,7 @@ def _resize_photo_if_needed(
or (isinstance(file, io.IOBase) and not file.seekable())):
return file
- before = f... | Fix resize if needed not seeking back for image = bytes | py |
diff --git a/keyring/backends/fail.py b/keyring/backends/fail.py
index <HASH>..<HASH> 100644
--- a/keyring/backends/fail.py
+++ b/keyring/backends/fail.py
@@ -15,6 +15,8 @@ class Keyring(KeyringBackend):
priority = 0
def get_password(self, service, username, password=None):
- raise RuntimeError("No r... | Mention keyrings.alt in the fail message | py |
diff --git a/tensorflow_probability/python/experimental/mcmc/diagonal_mass_matrix_adaptation.py b/tensorflow_probability/python/experimental/mcmc/diagonal_mass_matrix_adaptation.py
index <HASH>..<HASH> 100644
--- a/tensorflow_probability/python/experimental/mcmc/diagonal_mass_matrix_adaptation.py
+++ b/tensorflow_proba... | Add missing dtype in `diagonal_mass_matrix_adaptation` | py |
diff --git a/satpy/resample.py b/satpy/resample.py
index <HASH>..<HASH> 100644
--- a/satpy/resample.py
+++ b/satpy/resample.py
@@ -577,8 +577,8 @@ class NativeResampler(BaseResampler):
out_shape = target_geo_def.shape
in_shape = data.shape
- y_repeats = out_shape[y_axis] / float(in_shape[y_ax... | Fix native resampler for arrays with more than 2 dimensions | py |
diff --git a/_pytest/config.py b/_pytest/config.py
index <HASH>..<HASH> 100644
--- a/_pytest/config.py
+++ b/_pytest/config.py
@@ -552,11 +552,18 @@ class ArgumentError(Exception):
class Argument:
- """class that mimics the necessary behaviour of optparse.Option """
+ """class that mimics the necessary behav... | optparse compatibility - add float and complex also documents the implementation quality fixes #<I> | py |
diff --git a/readers.py b/readers.py
index <HASH>..<HASH> 100644
--- a/readers.py
+++ b/readers.py
@@ -33,7 +33,7 @@ def get_percolator_static_xml(fn, ns):
def generate_psms_multiple_fractions(fns, ns):
for fn in fns:
for ac,el in etree.iterparse(fn, tag='{%s}psm' % ns['xmlns']):
- yield filte... | Pass entire namespace dict to strip declaration thing from psm generator | py |
diff --git a/tests/tests/command_line.py b/tests/tests/command_line.py
index <HASH>..<HASH> 100644
--- a/tests/tests/command_line.py
+++ b/tests/tests/command_line.py
@@ -29,7 +29,7 @@ class TestCommandLine(unittest.TestCase):
print >> tmp, 'localhost # Comment'
print >> tmp, '127.0.0.1'
prin... | Ubuntu does not know localdomain, so we use another name. | py |
diff --git a/elifetools/parseJATS.py b/elifetools/parseJATS.py
index <HASH>..<HASH> 100644
--- a/elifetools/parseJATS.py
+++ b/elifetools/parseJATS.py
@@ -2159,7 +2159,10 @@ def body_block_content(tag, html_flag=True, base_url=None):
for p_tag in raw_parser.paragraph(fn_tag):
if "t... | Allow more than just paragraphs in table footnotes. | py |
diff --git a/niworkflows/interfaces/utils.py b/niworkflows/interfaces/utils.py
index <HASH>..<HASH> 100644
--- a/niworkflows/interfaces/utils.py
+++ b/niworkflows/interfaces/utils.py
@@ -160,9 +160,9 @@ def _copyxform(ref_image, out_image, message=None):
orig = nb.load(ref_image)
if not np.allclose(orig.aff... | [ENH] Lower priority of "Affines do not match" warning See poldracklab/fmriprep#<I> | py |
diff --git a/dedupe/api.py b/dedupe/api.py
index <HASH>..<HASH> 100644
--- a/dedupe/api.py
+++ b/dedupe/api.py
@@ -532,7 +532,10 @@ class StaticMatching(Matching):
if hasattr(predicate, "canopy"):
predicate.canopy = canopies[predicate]
else:
- ... | except key error (#<I>) e.g. levenshtein indices will not written to file according to line <I> | py |
diff --git a/satpy/readers/msu_gsa_l1b.py b/satpy/readers/msu_gsa_l1b.py
index <HASH>..<HASH> 100644
--- a/satpy/readers/msu_gsa_l1b.py
+++ b/satpy/readers/msu_gsa_l1b.py
@@ -25,10 +25,7 @@ This reader was tested on sample data provided by EUMETSAT.
"""
from datetime import datetime
-
-import dask.array as da
impo... | Update MSU-GS/A reader to remove unused imports. | py |
diff --git a/deployment/freebsd/setup/jails_host.py b/deployment/freebsd/setup/jails_host.py
index <HASH>..<HASH> 100644
--- a/deployment/freebsd/setup/jails_host.py
+++ b/deployment/freebsd/setup/jails_host.py
@@ -1,14 +1,15 @@
# coding: utf-8
from fabric import api as fab
-from fabric.contrib.project import rsync_p... | run bootstrap in its expected provisioning directory | py |
diff --git a/src/peltak/extra/changelog/logic.py b/src/peltak/extra/changelog/logic.py
index <HASH>..<HASH> 100644
--- a/src/peltak/extra/changelog/logic.py
+++ b/src/peltak/extra/changelog/logic.py
@@ -22,7 +22,6 @@ from typing import Dict, List, Optional, Pattern
from peltak.core import conf
from peltak.core import... | change: changelog command is no longer experimental _more: It’s been used in CI on so many projects now that it can be considered stable under manual user testing. | py |
diff --git a/nolearn/nntools.py b/nolearn/nntools.py
index <HASH>..<HASH> 100644
--- a/nolearn/nntools.py
+++ b/nolearn/nntools.py
@@ -47,7 +47,10 @@ class BatchIterator(object):
yb = self.y[i * bs:(i + 1) * bs]
else:
yb = None
- yield Xb, yb
+ yield ... | A dedicated transform method makes it easier for subclasses to do only that. | py |
diff --git a/runipy/notebook_runner.py b/runipy/notebook_runner.py
index <HASH>..<HASH> 100644
--- a/runipy/notebook_runner.py
+++ b/runipy/notebook_runner.py
@@ -35,7 +35,6 @@ class NotebookRunner(object):
'image/svg+xml': 'svg',
}
-
def __init__(
self,
nb,
@@ -88,7 +87,6... | runipy/notebook_runner.py: Delete extra newlines. | py |
diff --git a/couchbase/tests/cases/cluster_t.py b/couchbase/tests/cases/cluster_t.py
index <HASH>..<HASH> 100644
--- a/couchbase/tests/cases/cluster_t.py
+++ b/couchbase/tests/cases/cluster_t.py
@@ -19,6 +19,7 @@ from couchbase.tests.base import CouchbaseTestCase
from couchbase.connstr import ConnectionString
from co... | Fix sporadic cluster_t test failure The test was failing because a GC sweep wasn't happening. This fix ensures that the GC does a pass before running the assertion Change-Id: Ibc<I>d<I>f8f6f<I>d<I>c<I>c<I>d5a8c<I> Reviewed-on: <URL> | py |
diff --git a/canvasapi/assignment.py b/canvasapi/assignment.py
index <HASH>..<HASH> 100644
--- a/canvasapi/assignment.py
+++ b/canvasapi/assignment.py
@@ -358,6 +358,7 @@ class AssignmentOverride(CanvasObject):
"courses/{}/assignments/{}/overrides/{}".format(
self.course_id, self.assignmen... | Add _kwargs to AssignmentOverride edit and delete | py |
diff --git a/OpenSSL/SSL.py b/OpenSSL/SSL.py
index <HASH>..<HASH> 100644
--- a/OpenSSL/SSL.py
+++ b/OpenSSL/SSL.py
@@ -235,6 +235,7 @@ class Context(object):
new SSL connections.
"""
_methods = {
+ SSLv2_METHOD: "SSLv2_method",
SSLv3_METHOD: "SSLv3_method",
SSLv23_METHOD: "SSLv23... | Allow creating a Context with SSLv2_METHOD | py |
diff --git a/salt/states/locale.py b/salt/states/locale.py
index <HASH>..<HASH> 100644
--- a/salt/states/locale.py
+++ b/salt/states/locale.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
'''
Management of languages/locales
-==============================+
+==============================
The locale can be managed for ... | Improving docs for salt.states.locale | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -29,6 +29,13 @@ except ImportError as e:
def convert_file(f, _):
return open(f, 'r').read()
+except ModuleNotFoundError as e:
+ # NOTE: error is thrown only for package build steps
+ if 'sdist' in sys.arg... | Catch pypandoc ModuleNotFoundError (#<I>) Python >= <I> doesn't receive ImportError, but instead ModuleNotFoundError. | py |
diff --git a/dallinger/command_line.py b/dallinger/command_line.py
index <HASH>..<HASH> 100755
--- a/dallinger/command_line.py
+++ b/dallinger/command_line.py
@@ -772,7 +772,7 @@ class LocalSessionRunner(object):
exp_id = None
tmp_dir = None
- dispatch = {} # Subclass my provide handlers for Heroku proc... | Fix typo and accidental use of module-scope functions | py |
diff --git a/atest/protocol_templates/my_handler.py b/atest/protocol_templates/my_handler.py
index <HASH>..<HASH> 100644
--- a/atest/protocol_templates/my_handler.py
+++ b/atest/protocol_templates/my_handler.py
@@ -7,7 +7,12 @@ def handle_sample(rammbock, msg):
def respond_to_sample(rammbock, msg):
- pass
+ ... | Extended to include the current template, to be reused later | py |
diff --git a/lib/bx/pwm/pwm_tests.py b/lib/bx/pwm/pwm_tests.py
index <HASH>..<HASH> 100644
--- a/lib/bx/pwm/pwm_tests.py
+++ b/lib/bx/pwm/pwm_tests.py
@@ -4,8 +4,7 @@ import bx.pwm.position_weight_matrix as pwm
from StringIO import StringIO
basicPwm = \
-"""
->MA0101 c-REL REL
+""">MA0101 c-REL REL
0 5 8 4
... | changed test matrices to sidestep problem with blank lines in matrix files | py |
diff --git a/pyocd/core/memory_map.py b/pyocd/core/memory_map.py
index <HASH>..<HASH> 100644
--- a/pyocd/core/memory_map.py
+++ b/pyocd/core/memory_map.py
@@ -329,11 +329,11 @@ class FlashRegion(MemoryRegion):
# Import locally to prevent import loops.
from ..flash.flash import Flash
- assert ... | Support flm parameter to FlashRegion ctor. - Setting FlashRegion flm from initial attribute passed to ctor. - FlashRegion ctor allows flm to be set in place of blocksize/sector_size. | py |
diff --git a/bika/lims/content/analysis.py b/bika/lims/content/analysis.py
index <HASH>..<HASH> 100644
--- a/bika/lims/content/analysis.py
+++ b/bika/lims/content/analysis.py
@@ -416,10 +416,9 @@ class Analysis(BaseContent):
def getPriority(self):
""" get priority from AR
"""
- ar = self.a... | Priority adapter works on analyses who's parent is not an AR | py |
diff --git a/lib/svtplay_dl/service/picsearch.py b/lib/svtplay_dl/service/picsearch.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/service/picsearch.py
+++ b/lib/svtplay_dl/service/picsearch.py
@@ -12,7 +12,7 @@ from svtplay_dl.fetcher.rtmp import RTMP
from svtplay_dl.log import log
class Picsearch(Service, Op... | picsearch: supports mobil.dn.se as well | py |
diff --git a/tests/http/external.py b/tests/http/external.py
index <HASH>..<HASH> 100644
--- a/tests/http/external.py
+++ b/tests/http/external.py
@@ -23,6 +23,9 @@ class ExternalBase(TestHttpClientBase):
client = self.client()
baseurl = 'https://api.github.com/gists/public'
response = yield ... | travis does not like external test on github | py |
diff --git a/galpy/orbit_src/integratePlanarOrbit.py b/galpy/orbit_src/integratePlanarOrbit.py
index <HASH>..<HASH> 100644
--- a/galpy/orbit_src/integratePlanarOrbit.py
+++ b/galpy/orbit_src/integratePlanarOrbit.py
@@ -69,8 +69,13 @@ def integratePlanarOrbit_leapfrog(pot,yo,t,rtol=None,atol=None):
... | correct handling of parameters when going to C for SteadyLogSpiral | py |
diff --git a/cerium/exceptions.py b/cerium/exceptions.py
index <HASH>..<HASH> 100644
--- a/cerium/exceptions.py
+++ b/cerium/exceptions.py
@@ -33,4 +33,22 @@ class CharactersException(AndroidDriverException):
"""
Thrown when no devices are connected.
"""
+ pass
+
+class ParametersException(AndroidDriv... | Exceptions that may happen in all the androiddriver code. | py |
diff --git a/i3pystatus/core/modules.py b/i3pystatus/core/modules.py
index <HASH>..<HASH> 100644
--- a/i3pystatus/core/modules.py
+++ b/i3pystatus/core/modules.py
@@ -88,7 +88,7 @@ class Module(SettingsBase):
self.__log_button_event(button, cb, args, "Member callback")
getattr(self, cb... | Fix handler not executing external cmd (#<I>) Wrong name on function call was raising AttributeError exception disrutping the code execution. | py |
diff --git a/tcex/app_config_object/install_json.py b/tcex/app_config_object/install_json.py
index <HASH>..<HASH> 100644
--- a/tcex/app_config_object/install_json.py
+++ b/tcex/app_config_object/install_json.py
@@ -667,11 +667,10 @@ class InstallJson:
return json_data
for param in json_data.get(... | APP-<I> - changed install.json update logic to only add PB data type of String when list is empty. | py |
diff --git a/src/python/pants/backend/jvm/register.py b/src/python/pants/backend/jvm/register.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/backend/jvm/register.py
+++ b/src/python/pants/backend/jvm/register.py
@@ -174,7 +174,7 @@ def register_goals():
task(name='binary', action=BinaryCreate,
depen... | in help text for 'binary' goal, don't say "jar". Nowadays, could be a pex. So be vague. Testing Done: Just in case: <URL> | py |
diff --git a/src/saml2/authnresponse.py b/src/saml2/authnresponse.py
index <HASH>..<HASH> 100644
--- a/src/saml2/authnresponse.py
+++ b/src/saml2/authnresponse.py
@@ -37,7 +37,7 @@ def _use_on_or_after(condition, slack):
if now > high:
# To old ignore
#print "(%d > %d)" % (now,high)
- rais... | More info always a good thing (?) | py |
diff --git a/art/art.py b/art/art.py
index <HASH>..<HASH> 100644
--- a/art/art.py
+++ b/art/art.py
@@ -234,7 +234,17 @@ font_map = {"block": [block_dic, True], "banner": [banner_dic, False],
"xsansbi": [xsansbi_dic, False],
"xsansi": [xsansi_dic, False],
"xtimes": [xtimes_dic, Fal... | fix : new fonts added to font_map | py |
diff --git a/logentry_admin/admin.py b/logentry_admin/admin.py
index <HASH>..<HASH> 100644
--- a/logentry_admin/admin.py
+++ b/logentry_admin/admin.py
@@ -1,5 +1,4 @@
from django.contrib import admin
-from django.contrib.auth import get_user_model
from django.contrib.admin.models import LogEntry, ADDITION, CHANGE, DE... | Fix Django <I> (and lower) compatibility | py |
diff --git a/pyipmi/msgs/bmc.py b/pyipmi/msgs/bmc.py
index <HASH>..<HASH> 100644
--- a/pyipmi/msgs/bmc.py
+++ b/pyipmi/msgs/bmc.py
@@ -112,6 +112,7 @@ class ManufacturingTestOnRsp(Message):
__default_lun__ = 0
__fields__ = (
CompletionCode(),
+ RemainingBytes('data'),
) | msgs: return bytes for ManufacturingTestOn cmd | py |
diff --git a/spinoff/util/lockfile.py b/spinoff/util/lockfile.py
index <HASH>..<HASH> 100644
--- a/spinoff/util/lockfile.py
+++ b/spinoff/util/lockfile.py
@@ -1,20 +1,24 @@
from __future__ import absolute_import
+import time
from contextlib import contextmanager
from gevent import sleep
-from lockfile import Loc... | Added timeout to s.u.lockfile with a default value of <I> seconds | py |
diff --git a/tests/contrib/test_cache.py b/tests/contrib/test_cache.py
index <HASH>..<HASH> 100644
--- a/tests/contrib/test_cache.py
+++ b/tests/contrib/test_cache.py
@@ -181,14 +181,16 @@ class TestFileSystemCache(CacheTests):
assert len(cache_files) <= THRESHOLD
def test_filesystemcache_clear(self, c)... | Fixed the file system test that was broken | py |
diff --git a/arthur/server.py b/arthur/server.py
index <HASH>..<HASH> 100644
--- a/arthur/server.py
+++ b/arthur/server.py
@@ -48,6 +48,8 @@ class ArthurServer(Arthur):
if writer:
self.writer_th = threading.Thread(target=self.write_items,
args=(writer... | [server] Fix crash error when a writer was not set | py |
diff --git a/threshold.py b/threshold.py
index <HASH>..<HASH> 100644
--- a/threshold.py
+++ b/threshold.py
@@ -70,9 +70,7 @@ TM_PER_OBJECT = "PerObject"
TM_METHODS = [TM_OTSU, TM_MOG, TM_BACKGROUND, TM_ROBUST_BACKGROUND,
TM_RIDLER_CALVARD, TM_KAPUR, TM_MCT]
-TM_GLOBAL_METHODS = [T... | Update to dd<I>de9ff changes | py |
diff --git a/hpOneView/servers.py b/hpOneView/servers.py
index <HASH>..<HASH> 100644
--- a/hpOneView/servers.py
+++ b/hpOneView/servers.py
@@ -341,7 +341,10 @@ class servers(object):
# missing required field: enclousure group
# E.g.: profile['enclosureGroupUri'] = "/rest/enclosure-groups/a0f1c07b-f... | Changes made by Chakravarthy Racharla to provide support for Ansible ServerProfile module. Added support to retrieve ServerProfile compliance preview. | py |
diff --git a/django_tenants/tests/__init__.py b/django_tenants/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/django_tenants/tests/__init__.py
+++ b/django_tenants/tests/__init__.py
@@ -1,3 +1,6 @@
+from .files import *
+from .staticfiles import *
+from .template import *
from .test_routes import *
from .test_te... | fix(tests): Include static file-related tests in 'test' package. | py |
diff --git a/icalevents/icalparser.py b/icalevents/icalparser.py
index <HASH>..<HASH> 100644
--- a/icalevents/icalparser.py
+++ b/icalevents/icalparser.py
@@ -122,7 +122,8 @@ def next_year_at(dt, count=1):
:param count: number of years
:return: date datetime
"""
- return normalize(datetime(year=dt.yea... | use relativedelta to calculate next month/year relativedelta handles correctly leap years | py |
diff --git a/openquake/commands/compare.py b/openquake/commands/compare.py
index <HASH>..<HASH> 100644
--- a/openquake/commands/compare.py
+++ b/openquake/commands/compare.py
@@ -217,10 +217,10 @@ def compare_uhs(calc_ids: int, files=False, *, poe_id: int = 0,
arrays = c.compare('uhs', poe_id, files, samplesites, ... | Improved compare_uhs [ci skip] | py |
diff --git a/salt/modules/boto_iam.py b/salt/modules/boto_iam.py
index <HASH>..<HASH> 100644
--- a/salt/modules/boto_iam.py
+++ b/salt/modules/boto_iam.py
@@ -932,9 +932,11 @@ def build_policy(region=None, key=None, keyid=None, profile=None):
# into strings, so let's do the same here.
for key, policy_val in p... | Ensure values are lists before checking their length | py |
diff --git a/guacamole/ingredients/argparse.py b/guacamole/ingredients/argparse.py
index <HASH>..<HASH> 100644
--- a/guacamole/ingredients/argparse.py
+++ b/guacamole/ingredients/argparse.py
@@ -187,7 +187,7 @@ class ParserIngredient(Ingredient):
max_level = level
for subcmd_name, subcmd_obj, subcmd_c... | Fix subcommands being listed with u'...' on Python <I> | py |
diff --git a/satpy/composites/__init__.py b/satpy/composites/__init__.py
index <HASH>..<HASH> 100644
--- a/satpy/composites/__init__.py
+++ b/satpy/composites/__init__.py
@@ -461,7 +461,6 @@ class PSPRayleighReflectance(CompositeBase):
class NIRReflectance(CompositeBase):
- # TODO: Daskify
def __call__(s... | Remove unnecessary TODO from NIR composite | py |
diff --git a/tests/test_mturk.py b/tests/test_mturk.py
index <HASH>..<HASH> 100644
--- a/tests/test_mturk.py
+++ b/tests/test_mturk.py
@@ -172,6 +172,14 @@ class TestMTurkServiceWithFakeConnection(object):
service = MTurkService(**creds)
return service
+ def test_is_sandbox_by_default(self):
+ ... | Tests to make sure MTurkService defaults to sandbox mode | py |
diff --git a/openquake/risklib/asset.py b/openquake/risklib/asset.py
index <HASH>..<HASH> 100644
--- a/openquake/risklib/asset.py
+++ b/openquake/risklib/asset.py
@@ -612,10 +612,8 @@ def build_asset_array(assets_by_site, tagnames=(), time_event=None):
if deductible_d or limit_d:
logging.warning('Exposure... | Removed insurance fields from the assetcol [skip CI] | py |
diff --git a/manticore/platforms/decree.py b/manticore/platforms/decree.py
index <HASH>..<HASH> 100644
--- a/manticore/platforms/decree.py
+++ b/manticore/platforms/decree.py
@@ -589,7 +589,7 @@ class Decree(object):
self.running.remove(procid)
#self.procs[procid] = None #let it there so we can report... | Fix solver call in decree (#<I>) | py |
diff --git a/pipedatabase.py b/pipedatabase.py
index <HASH>..<HASH> 100644
--- a/pipedatabase.py
+++ b/pipedatabase.py
@@ -15,7 +15,7 @@ import pandas as pd
import os.path
dir_path = os.path.dirname(__file__)
-csv_path = os.path.join(dir_path, 'pipe_database.csv')
+csv_path = os.path.join(dir_path, 'pipedat... | changed name of csv file | py |
diff --git a/patchboard/action.py b/patchboard/action.py
index <HASH>..<HASH> 100644
--- a/patchboard/action.py
+++ b/patchboard/action.py
@@ -77,7 +77,7 @@ class Action(object):
# context would ever aquire an 'authorizer' method in the ruby
# code, and in any case we need to be certain of the pythoni... | Cleanup: check for attr before accessing | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -111,5 +111,5 @@ setup(name = 'turbodbc',
'Programming Language :: Python :: 2.7',
'Topic :: Database'],
ext_modules = get_extension_modules(),
- install_requires=['pybin... | Replace pybind<I> release candidate with properly released version | py |
diff --git a/flask_appconfig/cli.py b/flask_appconfig/cli.py
index <HASH>..<HASH> 100644
--- a/flask_appconfig/cli.py
+++ b/flask_appconfig/cli.py
@@ -6,6 +6,13 @@ import click
from . import server_backends
from .util import honcho_parse_env
+try:
+ import importlib
+except ImportError:
+ click.echo('You do n... | Moved importlib import out of cli function. | py |
diff --git a/cleverhans/future/torch/attacks/spsa.py b/cleverhans/future/torch/attacks/spsa.py
index <HASH>..<HASH> 100644
--- a/cleverhans/future/torch/attacks/spsa.py
+++ b/cleverhans/future/torch/attacks/spsa.py
@@ -110,7 +110,7 @@ def spsa(model_fn, x, eps, nb_iter, clip_min=-np.inf, clip_max=np.inf, y=None,
i... | Add additional clamp call in SPSA attack to prevent failure of sanity checks | py |
diff --git a/pyswip/easy.py b/pyswip/easy.py
index <HASH>..<HASH> 100644
--- a/pyswip/easy.py
+++ b/pyswip/easy.py
@@ -154,8 +154,11 @@ class Variable(object):
fun = PL_unify_list
else:
raise
-
- t = PL_new_term_ref()
+
+ if self.handle is None:
+ t = PL_new_term_ref(self.han... | Fixing Variables in foreign functions not unifiable | py |
diff --git a/socketio/handler.py b/socketio/handler.py
index <HASH>..<HASH> 100644
--- a/socketio/handler.py
+++ b/socketio/handler.py
@@ -73,6 +73,10 @@ class SocketIOHandler(WSGIHandler):
request_method = self.environ.get("REQUEST_METHOD")
request_tokens = self.RE_REQUEST_URL.match(path)
+ ... | Only handle requests to paths starting with our server's namespace | py |
diff --git a/py/testdir_multi_jvm/test_GLM_big1_nopoll.py b/py/testdir_multi_jvm/test_GLM_big1_nopoll.py
index <HASH>..<HASH> 100644
--- a/py/testdir_multi_jvm/test_GLM_big1_nopoll.py
+++ b/py/testdir_multi_jvm/test_GLM_big1_nopoll.py
@@ -47,7 +47,8 @@ class Basic(unittest.TestCase):
# if we do another poll th... | print some extra info for debug of ec2 fail | py |
diff --git a/m.py b/m.py
index <HASH>..<HASH> 100755
--- a/m.py
+++ b/m.py
@@ -304,7 +304,7 @@ def kodi_query(sql): # {{{1
def kodi_path_query(sql):
for row in kodi_query(sql):
f = Path(row[0]); p, name = f.parent, f.name
- yield(p, name, *row[1:])
+ yield [p, n... | really support <I> <= python | py |
diff --git a/eztemplate/engines/empy_engine.py b/eztemplate/engines/empy_engine.py
index <HASH>..<HASH> 100644
--- a/eztemplate/engines/empy_engine.py
+++ b/eztemplate/engines/empy_engine.py
@@ -58,6 +58,7 @@ class EmpyEngine(Engine):
def apply(self, mapping):
"""Apply a mapping of name-value-pairs to a... | Need to seek first in empy engine because of io.StringIO in Python 3. | py |
diff --git a/anndata/core/alignedmapping.py b/anndata/core/alignedmapping.py
index <HASH>..<HASH> 100644
--- a/anndata/core/alignedmapping.py
+++ b/anndata/core/alignedmapping.py
@@ -2,8 +2,11 @@ from abc import ABC, abstractmethod
from collections.abc import MutableMapping
from functools import singledispatch
from ... | Added warning if alignedarray set with unsupported value | py |
diff --git a/nion/swift/Inspector.py b/nion/swift/Inspector.py
index <HASH>..<HASH> 100644
--- a/nion/swift/Inspector.py
+++ b/nion/swift/Inspector.py
@@ -248,7 +248,7 @@ class InfoInspectorSection(InspectorSection):
def begin_caption_edit():
self.caption_editable_text.text = data_item.caption
... | Use current_index property rather than deprecated set_current_index for stack widget. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@ if sys.argv[-1] == "publish":
if sys.argv[-1] == "tag":
print("Tagging the version on github:")
- os.system(f"git tag -a {version} -m 'version {version}'")
+ os.system("git tag -a %s -m 'version %s... | Make friendly for old python | py |
diff --git a/source/awesome_tool/mvc/models/state_machine.py b/source/awesome_tool/mvc/models/state_machine.py
index <HASH>..<HASH> 100755
--- a/source/awesome_tool/mvc/models/state_machine.py
+++ b/source/awesome_tool/mvc/models/state_machine.py
@@ -1,6 +1,7 @@
from gtkmvc import ModelMT, Observable
from statemach... | Fix bug is previous commit Mixed ContainerState and ContainerStateModel | py |
diff --git a/tests/test_client.py b/tests/test_client.py
index <HASH>..<HASH> 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -1,6 +1,7 @@
import datetime
from measurement.measures import Energy, Weight
+import ordereddict
import mimic
from myfitnesspal import Client
@@ -73,16 +74,18 @@ class Te... | #<I> Updated test case to enforce date order The get_measurements test case now enforces the returned results to be in order. | py |
diff --git a/elifetools/__init__.py b/elifetools/__init__.py
index <HASH>..<HASH> 100644
--- a/elifetools/__init__.py
+++ b/elifetools/__init__.py
@@ -1 +1 @@
-__version__ = "0.7.0"
+__version__ = "0.8.0" | Bump to version <I> | py |
diff --git a/vc_vidyo/indico_vc_vidyo/cli.py b/vc_vidyo/indico_vc_vidyo/cli.py
index <HASH>..<HASH> 100644
--- a/vc_vidyo/indico_vc_vidyo/cli.py
+++ b/vc_vidyo/indico_vc_vidyo/cli.py
@@ -27,7 +27,6 @@ from indico.core.db import db, DBMgr
from indico.core.db.sqlalchemy.util.session import update_session_options
from i... | VC/Vidyo: Added better validation to CLI | py |
diff --git a/angr/state_plugins/sim_action.py b/angr/state_plugins/sim_action.py
index <HASH>..<HASH> 100644
--- a/angr/state_plugins/sim_action.py
+++ b/angr/state_plugins/sim_action.py
@@ -17,6 +17,7 @@ class SimAction(SimEvent):
TMP = 'tmp'
REG = 'reg'
MEM = 'mem'
+ _MAX_ACTION_ID = -1
def _... | Adding incrementing ID to SimAction (#<I>) * Adding incrementing ID to SimAction * Starting count at 0 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from os import path
from distutils.version import LooseVersion
from setuptools import find_packages, setup
-VERSION = '1.20.0'
+VERSION = '1.20.1'
# Import README.md into long_description
pwd = path.abspat... | Bump package version to <I> | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.