diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/ofp/v0x01/common/queue.py b/ofp/v0x01/common/queue.py
index <HASH>..<HASH> 100644
--- a/ofp/v0x01/common/queue.py
+++ b/ofp/v0x01/common/queue.py
@@ -12,7 +12,7 @@ from foundation import basic_types
# Enums
-class QueueProperties (enum.Enum):
+class QueueProperties(enum.Enum):
"""
Describes ... | This commit Fixes #<I> implementing all common messages | py |
diff --git a/tests/test_nearley/test_nearley.py b/tests/test_nearley/test_nearley.py
index <HASH>..<HASH> 100644
--- a/tests/test_nearley/test_nearley.py
+++ b/tests/test_nearley/test_nearley.py
@@ -19,7 +19,12 @@ if not os.path.exists(BUILTIN_PATH):
logger.warning("Nearley not included. Skipping Nearley tests! (u... | Skip test_nearley.py when js2py doesn't recognize the python version. | py |
diff --git a/nougat/config.py b/nougat/config.py
index <HASH>..<HASH> 100644
--- a/nougat/config.py
+++ b/nougat/config.py
@@ -20,4 +20,6 @@ class Config(dict):
:param object_name: the object you wanna load
:return:
"""
- # TODO: load from object
+ for key in dir(object_name):
+... | feature: complete load_from_object | py |
diff --git a/nashvegas/management/commands/upgradedb.py b/nashvegas/management/commands/upgradedb.py
index <HASH>..<HASH> 100644
--- a/nashvegas/management/commands/upgradedb.py
+++ b/nashvegas/management/commands/upgradedb.py
@@ -318,7 +318,8 @@ class Command(BaseCommand):
try:
for migr... | Correct --execute to handle path correctly | py |
diff --git a/src/python/ttfautohint/cli.py b/src/python/ttfautohint/cli.py
index <HASH>..<HASH> 100644
--- a/src/python/ttfautohint/cli.py
+++ b/src/python/ttfautohint/cli.py
@@ -37,13 +37,6 @@ if IN-FILE is missing also, standard input and output are used.
The new hints are based on FreeType's auto-hinter.
This pr... | cli: remove --help text paragraphs that don't apply here | py |
diff --git a/landsat/downloader.py b/landsat/downloader.py
index <HASH>..<HASH> 100644
--- a/landsat/downloader.py
+++ b/landsat/downloader.py
@@ -43,12 +43,14 @@ class Downloader(VerbosityMixin):
if isinstance(bands, list):
# Create a folder to download the specific bands ... | if image is not found on amazon download from Google | py |
diff --git a/kdcount/correlate.py b/kdcount/correlate.py
index <HASH>..<HASH> 100644
--- a/kdcount/correlate.py
+++ b/kdcount/correlate.py
@@ -701,7 +701,7 @@ class paircount_worker(object):
self.size = len(self.p)
self.pts_only = isinstance(self.data[0], points) and isinstance(self.data[1],... | use fast paircounting for all R binning schemes. | py |
diff --git a/tests/test_gitpuller.py b/tests/test_gitpuller.py
index <HASH>..<HASH> 100644
--- a/tests/test_gitpuller.py
+++ b/tests/test_gitpuller.py
@@ -286,6 +286,32 @@ def test_merging_simple():
assert puller.read_file('README.md') == '2'
+def test_merging_after_commit():
+ """
+ Test that me... | Test that merge works after making a manual commit I was worried that making a manual commit (i.e. outside of nbgitpuller) might cause a problem with subsequent syncs, so I added a test for it. | py |
diff --git a/setuptools/command/build_ext.py b/setuptools/command/build_ext.py
index <HASH>..<HASH> 100644
--- a/setuptools/command/build_ext.py
+++ b/setuptools/command/build_ext.py
@@ -197,14 +197,13 @@ class build_ext(_build_ext):
def get_outputs(self):
outputs = _build_ext.get_outputs(self)
- ... | Rewrite function to use extend and a generator expression. | py |
diff --git a/clkhash/bloomfilter.py b/clkhash/bloomfilter.py
index <HASH>..<HASH> 100644
--- a/clkhash/bloomfilter.py
+++ b/clkhash/bloomfilter.py
@@ -209,7 +209,7 @@ def blake_encode_ngrams(ngrams, # type: Iterable[str]
:return: bitarray of length l with the bits set which correspond to the
... | fix for issue #<I>. Unpacking fails if more than one element in tuple | py |
diff --git a/HARK/ConsumptionSaving/ConsIndShockModel.py b/HARK/ConsumptionSaving/ConsIndShockModel.py
index <HASH>..<HASH> 100644
--- a/HARK/ConsumptionSaving/ConsIndShockModel.py
+++ b/HARK/ConsumptionSaving/ConsIndShockModel.py
@@ -1783,9 +1783,7 @@ class IndShockConsumerType(PerfForesightConsumerType):
def u... | Remove incorrect statement in updateIncomeProcess @mnwhite this seems to be wrong, right? I don't see any `self.constructIncomeProcess`-ish statements, so it appears that the mean one log-normal equiprobably version is hard-coded. Correct? I think we should remove the statement unless I missed something in the code... | py |
diff --git a/timepiece/forms.py b/timepiece/forms.py
index <HASH>..<HASH> 100644
--- a/timepiece/forms.py
+++ b/timepiece/forms.py
@@ -81,17 +81,11 @@ class AddUpdateEntryForm(forms.ModelForm):
except:
raise forms.ValidationError('Please enter an end time.')
- if end > datetime.now():
- ... | allow users to clock out in the future | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -21,6 +21,7 @@ with open("../cihai/__about__.py") as fp:
extensions = [
'sphinx.ext.autodoc',
+ 'sphinxcontrib.napoleon',
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
'releases', | add sphinx-napoleon to sphinx conf, for numpy docstring support | py |
diff --git a/elasticsearch_dsl/document.py b/elasticsearch_dsl/document.py
index <HASH>..<HASH> 100644
--- a/elasticsearch_dsl/document.py
+++ b/elasticsearch_dsl/document.py
@@ -120,8 +120,6 @@ class DocType(ObjectBase):
def from_es(cls, hit):
# don't modify in place
meta = hit.copy()
- #... | 'highlight' was already on meta | py |
diff --git a/sox/version.py b/sox/version.py
index <HASH>..<HASH> 100644
--- a/sox/version.py
+++ b/sox/version.py
@@ -2,5 +2,5 @@
# -*- coding: utf-8 -*-
"""Version info"""
-short_version = '1.3'
-version = '1.3.7'
+short_version = '1.4'
+version = '1.4.0a0' | Update version.py bumping to <I> alpha 0 | py |
diff --git a/salt/transport/tcp.py b/salt/transport/tcp.py
index <HASH>..<HASH> 100644
--- a/salt/transport/tcp.py
+++ b/salt/transport/tcp.py
@@ -878,6 +878,9 @@ class SaltMessageClient(object):
if self._connecting_future.done():
self._connecting_future = self.connect()
... | if the transport is wrong we should throw a clienterrror | py |
diff --git a/max7219/led.py b/max7219/led.py
index <HASH>..<HASH> 100644
--- a/max7219/led.py
+++ b/max7219/led.py
@@ -159,6 +159,34 @@ class device(object):
if redraw:
self.flush()
+ def rotate_left(self, redraw=True):
+ """
+ Scrolls the buffer one column to the left. The data... | Update led.py Adding rotate_right/left member functions to the device base class. | py |
diff --git a/pysubs2/ssafile.py b/pysubs2/ssafile.py
index <HASH>..<HASH> 100644
--- a/pysubs2/ssafile.py
+++ b/pysubs2/ssafile.py
@@ -159,7 +159,8 @@ class SSAFile(MutableSequence):
# The file might be a pipe and we need to read it twice,
# so just buffer everything.
text = fp.re... | Autodetect format using only initial part of file | py |
diff --git a/build/build.py b/build/build.py
index <HASH>..<HASH> 100755
--- a/build/build.py
+++ b/build/build.py
@@ -873,6 +873,7 @@ class Release():
def createNightly(self, jarOrWar):
self.createExecutable(jarOrWar)
+ removeIfExists(os.path.join(distDir, "VERSION"))
self.writeHashes()
self.sig... | [build] Minot build-script change. | py |
diff --git a/pipes/configs/outputs.py b/pipes/configs/outputs.py
index <HASH>..<HASH> 100644
--- a/pipes/configs/outputs.py
+++ b/pipes/configs/outputs.py
@@ -50,10 +50,11 @@ def convert_ini(config_dict):
def write_variables(app_configs=None, out_file='', git_short=''):
- """Append _application.json_ configurat... | docs: Update docstring | py |
diff --git a/plugins/function_strings.py b/plugins/function_strings.py
index <HASH>..<HASH> 100644
--- a/plugins/function_strings.py
+++ b/plugins/function_strings.py
@@ -22,15 +22,24 @@ class FunctionStrings(idaapi.plugin_t):
idaapi.msg("String References in {}:0x{:08X}\n".format(function.name, function.start... | Updated the function strings plugin to new API. | py |
diff --git a/src/rituals/acts/documentation.py b/src/rituals/acts/documentation.py
index <HASH>..<HASH> 100644
--- a/src/rituals/acts/documentation.py
+++ b/src/rituals/acts/documentation.py
@@ -316,8 +316,9 @@ class DocsUploader(object):
except subprocess.CalledProcessError:
git_path = ''
... | docs.upload: fix for ssh:// git urls | py |
diff --git a/tests/ethpm/test_package_init_from_registry_uri.py b/tests/ethpm/test_package_init_from_registry_uri.py
index <HASH>..<HASH> 100644
--- a/tests/ethpm/test_package_init_from_registry_uri.py
+++ b/tests/ethpm/test_package_init_from_registry_uri.py
@@ -1,3 +1,4 @@
+import json
import os
import pytest | Write local ipfs node backend and remove http reqs from tests | py |
diff --git a/atlassian/jira.py b/atlassian/jira.py
index <HASH>..<HASH> 100644
--- a/atlassian/jira.py
+++ b/atlassian/jira.py
@@ -21,6 +21,9 @@ class Jira(Atlassian):
def project(self, key):
return self.get("/rest/api/2/project/{0}".format(key))
+ def issue(self, key):
+ return self.get("/res... | PYAPI-<I> Jira: Get issue details | py |
diff --git a/sample/sync-gerrit-review.py b/sample/sync-gerrit-review.py
index <HASH>..<HASH> 100755
--- a/sample/sync-gerrit-review.py
+++ b/sample/sync-gerrit-review.py
@@ -143,8 +143,9 @@ def review_patchset(dci_client, project, version):
"%s" % version['id'])
return
# TODO(Gonéri): also... | Review only if the status is different from 0. Change-Id: I8effde<I>fad<I>f<I>c<I>c6b6b<I>ec<I>ebcf<I> | py |
diff --git a/pyes/es.py b/pyes/es.py
index <HASH>..<HASH> 100644
--- a/pyes/es.py
+++ b/pyes/es.py
@@ -64,9 +64,6 @@ class ElasticSearchModel(DotDict):
else:
self.update(dict(*args, **kwargs))
- def __repr__(self):
- return DotDict.__repr__(self)
-
def save(self, bulk=False, id=No... | Removed __repr__ method which was initially broken and in retrospect unnecessary | py |
diff --git a/dataset/persistence/database.py b/dataset/persistence/database.py
index <HASH>..<HASH> 100644
--- a/dataset/persistence/database.py
+++ b/dataset/persistence/database.py
@@ -80,7 +80,7 @@ class Database(object):
self.local.must_release = True
def _release_internal(self):
- if not... | Update database.py Inverted logic means _release_internal will always fail on a rollback. Fixed and simplified. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -51,7 +51,7 @@ install_reqs = [
'pandas>=0.19.0',
'pytz>=2014.10',
'scipy>=0.14.0',
- 'statsmodels>=0.5.0'
+ 'statsmodels>=0.6.1'
'seaborn>=0.7.1',
'pandas-datareader>=0.2',
'empyrical>=0.3.... | BUG made statsmodels version >= <I> | py |
diff --git a/lazysignup/tests.py b/lazysignup/tests.py
index <HASH>..<HASH> 100644
--- a/lazysignup/tests.py
+++ b/lazysignup/tests.py
@@ -191,4 +191,14 @@ class LazyTestCase(TestCase):
def testGetConvert(self):
self.client.get('/lazy/')
response = self.client.get('/convert/')
- self.asser... | Extra test to check that the same user is maintained | py |
diff --git a/protos/compile.py b/protos/compile.py
index <HASH>..<HASH> 100755
--- a/protos/compile.py
+++ b/protos/compile.py
@@ -53,6 +53,7 @@ def main():
for fname in args.proto_file:
# Get the Java class name
(name, _) = os.path.splitext(fname)
+ name = os.path.basename(name)
if not name in SER... | Only use the basename for filename comparison | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -40,8 +40,7 @@ class Mock(MagicMock):
def __getattr__(cls, name):
return MagicMock()
-MOCK_MODULES = ['numpy', 'scipy', 'pandas', 'lxml', 'beautifulsoup4',
- 'sklearn', 'pyjq', 't... | Clean up mock imports Only use it for pyjq (the other dependencies are installed without problems on read the docs). | py |
diff --git a/mpd/base.py b/mpd/base.py
index <HASH>..<HASH> 100644
--- a/mpd/base.py
+++ b/mpd/base.py
@@ -592,6 +592,7 @@ class MPDClient(MPDClientBase):
sock = None
try:
sock = socket.socket(af, socktype, proto)
+ sock.setsockopt(socket.IPPROTO_TCP, socket.TCP... | Create TCP socket with `TCP_NODELAY`. Nagle's algorithm plays badly with delayed ACK algorithm. Fix it to make interactive clients more responsive. | py |
diff --git a/d1_common_python/src/d1common/xmlrunner.py b/d1_common_python/src/d1common/xmlrunner.py
index <HASH>..<HASH> 100644
--- a/d1_common_python/src/d1common/xmlrunner.py
+++ b/d1_common_python/src/d1common/xmlrunner.py
@@ -73,7 +73,7 @@ class _TestInfo(object):
text = escape(str(error[1]))
stream.writ... | Error in xmlrunner let through unescaped reserved chars | py |
diff --git a/pulsarpy/submit_to_dcc.py b/pulsarpy/submit_to_dcc.py
index <HASH>..<HASH> 100644
--- a/pulsarpy/submit_to_dcc.py
+++ b/pulsarpy/submit_to_dcc.py
@@ -387,6 +387,17 @@ class Submit():
payload["size_range"] = rec.size_range
payload["strand_specificity"] = rec.strand_specific
payloa... | Started method to post single_cell_sortings | py |
diff --git a/cocaine/logging/hanlders.py b/cocaine/logging/hanlders.py
index <HASH>..<HASH> 100644
--- a/cocaine/logging/hanlders.py
+++ b/cocaine/logging/hanlders.py
@@ -45,12 +45,11 @@ VERBOSITY_MAP = {
class CocaineHandler(logging.Handler):
def __init__(self):
- super(CocaineHandler, self).__init__()
... | Backward compatibility with Python <I> logging module. Sad, but true - `logging.Handler` module in Python <I> is not "new-style-object", so `super` keyword leads to the TypeError. | py |
diff --git a/salt/grains/core.py b/salt/grains/core.py
index <HASH>..<HASH> 100644
--- a/salt/grains/core.py
+++ b/salt/grains/core.py
@@ -124,8 +124,10 @@ def os_data():
grains['os'] = 'Solaris'
elif grains['kernel'] == 'VMkernel':
grains['os'] = 'ESXi'
+ elif grains['kernel'] == 'Darwin':
+ ... | Fixed error if we don't have known kernel, added MacOS | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@ setup(
platforms=['any'],
python_requires='>=3.6',
classifiers=[
- 'Development Status :: 4 - Beta',
+ 'Development Status :: 5 - Production/Stable',
'Intended Audience... | Switch to the "Stable" development status classifier | py |
diff --git a/voluptuous.py b/voluptuous.py
index <HASH>..<HASH> 100644
--- a/voluptuous.py
+++ b/voluptuous.py
@@ -309,7 +309,8 @@ class Schema(object):
errors.append(Invalid('extra keys not allowed',
key_path))
for key in required_keys:
- errors.app... | Fixes regression for dictionary schemas introduced in #<I>. | py |
diff --git a/helper.py b/helper.py
index <HASH>..<HASH> 100644
--- a/helper.py
+++ b/helper.py
@@ -71,6 +71,15 @@ class OpenMensaCanteen():
""" Stores that this cateen is closed on $date."""
self._days[self.convertDate(date)] = False
+ def clearDay(self, date):
+ try:
+ del self._days[self.convertDate(date)]... | helper: support counting and clearing days | py |
diff --git a/ceph_deploy/__init__.py b/ceph_deploy/__init__.py
index <HASH>..<HASH> 100644
--- a/ceph_deploy/__init__.py
+++ b/ceph_deploy/__init__.py
@@ -1,3 +1,3 @@
-__version__ = '1.5.37'
+__version__ = '1.5.38' | [RM-<I>] bump to <I> | py |
diff --git a/cassandra/__init__.py b/cassandra/__init__.py
index <HASH>..<HASH> 100644
--- a/cassandra/__init__.py
+++ b/cassandra/__init__.py
@@ -23,7 +23,7 @@ class NullHandler(logging.Handler):
logging.getLogger('cassandra').addHandler(NullHandler())
-__version_info__ = (3, 1, '0a1', 'post0')
+__version_info__ ... | <I>a2 release version | py |
diff --git a/t/napbase.py b/t/napbase.py
index <HASH>..<HASH> 100755
--- a/t/napbase.py
+++ b/t/napbase.py
@@ -266,6 +266,15 @@ class NapTest(unittest.TestCase):
def test_prefix_indent(self):
"""
"""
+ p1 = self.nap.list_prefix({ 'prefix': '1.3.3.1/32' })[0]
+ p2 = self.nap.list_pre... | Simple test for checking indent calc is working This test should be expanded once remove_prefix() is implemented | py |
diff --git a/ceam/framework/values.py b/ceam/framework/values.py
index <HASH>..<HASH> 100644
--- a/ceam/framework/values.py
+++ b/ceam/framework/values.py
@@ -84,7 +84,7 @@ def joint_value_post_processor(a):
if isinstance(a, NullValue):
return pd.Series(1, index=a.index)
else:
- return 1-a
+ ... | joint paf calculation needed one more tweak | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,13 +23,14 @@ def readme():
def version():
- return '0.1.5'
+ return '0.1.6'
setuptools.setup(
name='qj',
description='qj: logging designed for debugging.',
long_description=readme(),
+ long_de... | Update setup.py for new pypi requirements. Update version to <I>. All tests pass on <I> and <I>. | py |
diff --git a/language_check/__init__.py b/language_check/__init__.py
index <HASH>..<HASH> 100644
--- a/language_check/__init__.py
+++ b/language_check/__init__.py
@@ -42,7 +42,7 @@ from .backports import subprocess
from .which import which
-__version__ = '1.0'
+__version__ = '1.1'
__all__ = ['LanguageTool', '... | Increment minor version to <I> | py |
diff --git a/netdb/src/netdb.py b/netdb/src/netdb.py
index <HASH>..<HASH> 100644
--- a/netdb/src/netdb.py
+++ b/netdb/src/netdb.py
@@ -139,7 +139,7 @@ class Entry:
def _read_time(fd):
d = Entry._read(fd, 8)
if d:
- li = struct.unpack('!Q', d)
+ li = struct.unpack('!Q', d)[0]... | have netdb.Entry._read_time not return a tuple | py |
diff --git a/mot/lib/utils.py b/mot/lib/utils.py
index <HASH>..<HASH> 100644
--- a/mot/lib/utils.py
+++ b/mot/lib/utils.py
@@ -120,6 +120,9 @@ def convert_data_to_dtype(data, data_type, mot_float_type='float'):
dtype = ctype_to_dtype(data_type, mot_float_type)
ve = np.zeros(shape[:-1], dtype=dtype)
... | Bugfix in convert_data_to_dtype, in the case a vector type was already in the correct dtype | py |
diff --git a/Spyrk/spark_cloud.py b/Spyrk/spark_cloud.py
index <HASH>..<HASH> 100644
--- a/Spyrk/spark_cloud.py
+++ b/Spyrk/spark_cloud.py
@@ -13,6 +13,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Spyrk. If not, see <http://www.gnu.org/licenses/>.
+from pprint import... | Added `requires_deep_update` to Device declaration | py |
diff --git a/tests/test_pd2hts.py b/tests/test_pd2hts.py
index <HASH>..<HASH> 100644
--- a/tests/test_pd2hts.py
+++ b/tests/test_pd2hts.py
@@ -375,7 +375,8 @@ class Pd2htsTestCase(TestCase):
StringIO(tenmin_test_timeseries), parse_dates=[0],
usecols=['date', 'value', 'flags'], index_col=0, hea... | Make read_csv more robust in unit tests If the dtype argument is not specified in read_csv, the result is not always the same in all runs. This is probably a pandas bug (<URL>). | py |
diff --git a/pyamg/classical/cr.py b/pyamg/classical/cr.py
index <HASH>..<HASH> 100644
--- a/pyamg/classical/cr.py
+++ b/pyamg/classical/cr.py
@@ -67,7 +67,7 @@ def CR(S, method='habituated',maxiter=20):
S = binormalize(S)
- splitting = numpy.zeros( (S.shape[0],1), dtype=int )
+ splitting = numpy... | changed int to 'intc' | py |
diff --git a/bsdploy/tests/test_bsdploy.py b/bsdploy/tests/test_bsdploy.py
index <HASH>..<HASH> 100644
--- a/bsdploy/tests/test_bsdploy.py
+++ b/bsdploy/tests/test_bsdploy.py
@@ -87,6 +87,15 @@ def test_augment_ezjail_master_fabfile_implicit(ctrl, ployconf, tempdir):
assert get_fabfile(ctrl.instances['jailhost']).... | test for fabfile-by-convention for jails | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,14 @@ import sys, os.path
from setuptools import setup
# for f2py extension building
-from numpy.distutils.core import Extension, setup as npsetup
+try:
+ from numpy.distutils.core import Extension, setup as n... | setup.py: add friendly error if numpy is not installed | py |
diff --git a/salt/modules/solarispkg.py b/salt/modules/solarispkg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/solarispkg.py
+++ b/salt/modules/solarispkg.py
@@ -328,7 +328,7 @@ def remove(name, **kwargs):
basedir = kwargs.get('basedir', 'default')
# Make tempfile to hold the adminfile contents... | Add required `close_fd=False` to keep the `fd` open. | py |
diff --git a/client/deis.py b/client/deis.py
index <HASH>..<HASH> 100755
--- a/client/deis.py
+++ b/client/deis.py
@@ -784,7 +784,8 @@ class DeisClient(object):
def builds_create(self, args):
"""
- Creates a new build of an application.
+ Creates a new build of an application. Imports an <... | docs(client): elaborate upon builds:create | py |
diff --git a/sentinelhub/constants.py b/sentinelhub/constants.py
index <HASH>..<HASH> 100644
--- a/sentinelhub/constants.py
+++ b/sentinelhub/constants.py
@@ -323,7 +323,7 @@ class _BaseCRS(Enum):
# Look-up class with possible combinations of UTM zone and direction
CRS = _BaseCRS("CRS", dict(
- [_get_utm_name_va... | fixed CRS constants - only <I> utm zones | py |
diff --git a/pyes/query.py b/pyes/query.py
index <HASH>..<HASH> 100644
--- a/pyes/query.py
+++ b/pyes/query.py
@@ -131,7 +131,7 @@ class Search(EqualityComparableUsingAttributeDictionary):
raise InvalidQuery("Invalid query")
if self.filter:
res['filter'] = self.filter.serialize()
... | Checked fields is empty and not None. | py |
diff --git a/MAVProxy/modules/lib/wxsettings.py b/MAVProxy/modules/lib/wxsettings.py
index <HASH>..<HASH> 100644
--- a/MAVProxy/modules/lib/wxsettings.py
+++ b/MAVProxy/modules/lib/wxsettings.py
@@ -59,7 +59,7 @@ if __name__ == "__main__":
print("Changing %s to %s" % (setting.name, setting.value))
# tes... | lib: wxsettings conversion to py3 | py |
diff --git a/synphot/spectrum.py b/synphot/spectrum.py
index <HASH>..<HASH> 100644
--- a/synphot/spectrum.py
+++ b/synphot/spectrum.py
@@ -1737,7 +1737,7 @@ class SpectralElement(BaseUnitlessSpectrum):
header, wavelengths, throughput = specio.read_spec(filename, **kwargs)
return cls(Empirical1D, poi... | Do not discard neg throughput, to be consistent with ASTROLIB PYSYNPHOT. [skip ci] | py |
diff --git a/shinken/modules/graphite_broker.py b/shinken/modules/graphite_broker.py
index <HASH>..<HASH> 100644
--- a/shinken/modules/graphite_broker.py
+++ b/shinken/modules/graphite_broker.py
@@ -88,12 +88,13 @@ class Graphite_broker(BaseModule):
continue
# Try to get the int/float in... | Fix : extract int/float part of all metric in perfdata instead of only the first one | py |
diff --git a/requests_oauthlib/oauth1_session.py b/requests_oauthlib/oauth1_session.py
index <HASH>..<HASH> 100644
--- a/requests_oauthlib/oauth1_session.py
+++ b/requests_oauthlib/oauth1_session.py
@@ -21,6 +21,13 @@ if sys.version > "3":
log = logging.getLogger(__name__)
+class TokenRequestDenied(ValueError):
+
... | Introduce TokenRequestDenied exception for <I>x responses on token fetch. Fix #<I>. | py |
diff --git a/bika/lims/browser/worksheet.py b/bika/lims/browser/worksheet.py
index <HASH>..<HASH> 100644
--- a/bika/lims/browser/worksheet.py
+++ b/bika/lims/browser/worksheet.py
@@ -83,7 +83,7 @@ class WorksheetWorkflowAction(WorkflowAction):
Retested = form.has_key('retested') and \
... | Don't crash if analysis remarks are missing in worksheet views | py |
diff --git a/lib/python/voltdbclient.py b/lib/python/voltdbclient.py
index <HASH>..<HASH> 100644
--- a/lib/python/voltdbclient.py
+++ b/lib/python/voltdbclient.py
@@ -1020,13 +1020,14 @@ class VoltProcedure:
original_timeout = self.fser.socket.gettimeout()
self.fser.socket.settimeout(timeout)
... | ENG-<I>. Python <I> compatible try/except/finally construct. | py |
diff --git a/utwist/_utwist.py b/utwist/_utwist.py
index <HASH>..<HASH> 100644
--- a/utwist/_utwist.py
+++ b/utwist/_utwist.py
@@ -145,22 +145,8 @@ def _twisted_test_sync(callee, call_args, call_kwargs, timeout=120):
# the value with the string representation provided by `failure`.
failure = retval.fa... | Improved (or at least changed) failure handling. | py |
diff --git a/neurom/io/tests/test_h5_reader.py b/neurom/io/tests/test_h5_reader.py
index <HASH>..<HASH> 100644
--- a/neurom/io/tests/test_h5_reader.py
+++ b/neurom/io/tests/test_h5_reader.py
@@ -90,14 +90,14 @@ def test_read_h5v2_raw_basic():
def test_read_h5v2_raw_basic():
- data, offset, fmt = readers.H5.read... | Lazy loading: merge unraveled h5 reading. | py |
diff --git a/molo/core/models.py b/molo/core/models.py
index <HASH>..<HASH> 100644
--- a/molo/core/models.py
+++ b/molo/core/models.py
@@ -157,6 +157,8 @@ ArticlePage.content_panels = [
]
ArticlePage._meta.get_field('first_published_at').editable = True
+ArticlePage._meta.get_field('first_published_at').blank = Tru... | make first_published_at nullable | py |
diff --git a/build.py b/build.py
index <HASH>..<HASH> 100755
--- a/build.py
+++ b/build.py
@@ -832,7 +832,6 @@ def prepareLocalEntityJar():
shutil.copyfile(os.path.join(buildRoot, linkRelExtensions), os.path.join(filesDir, "link-rel-extensions"))
shutil.copyfile(os.path.join(buildRoot, aRelExtensions), os.path.jo... | Minor change to remove accidental duplication. | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -35,6 +35,15 @@ try:
except ImportError:
print("no ipython")
+# This is a horrible hack that I'm pretty sure is incorrect, but somehow it
+# works around (what I think is) a bug in IPython.sphinxext.ipython... | [rtd] Attempt to fix images in tutorial page | py |
diff --git a/src/bio2bel/sources/tfregulons.py b/src/bio2bel/sources/tfregulons.py
index <HASH>..<HASH> 100644
--- a/src/bio2bel/sources/tfregulons.py
+++ b/src/bio2bel/sources/tfregulons.py
@@ -118,13 +118,6 @@ def _add_rows(df: pd.DataFrame, graph: BELGraph) -> None:
evidence = 'From TFregulons'
f... | Update tfregulons output The fact that the proten binds the gene is already taken care of with the second statement | py |
diff --git a/passpie/utils.py b/passpie/utils.py
index <HASH>..<HASH> 100644
--- a/passpie/utils.py
+++ b/passpie/utils.py
@@ -1,6 +1,5 @@
from argparse import Namespace
from contextlib import contextmanager
-from functools import wraps
from pkg_resources import get_distribution, DistributionNotFound
from random im... | Refactor clean imports from passpie/utils | py |
diff --git a/hendrix/contrib/async/messaging.py b/hendrix/contrib/async/messaging.py
index <HASH>..<HASH> 100644
--- a/hendrix/contrib/async/messaging.py
+++ b/hendrix/contrib/async/messaging.py
@@ -26,12 +26,12 @@ class RecipientManager(object):
"""
self.transports[transport.uid] = transport
- d... | It's not a string. It's a message. | py |
diff --git a/visidata/main.py b/visidata/main.py
index <HASH>..<HASH> 100755
--- a/visidata/main.py
+++ b/visidata/main.py
@@ -204,7 +204,7 @@ def main_vd():
opts['filetype'] = current_args['filetype']
vs = vd.openSource(p, **opts)
- for k, v in current_args.items(): # apply final set of... | [dev nfc] improve comment clarity | py |
diff --git a/gtts/tests/test_tts.py b/gtts/tests/test_tts.py
index <HASH>..<HASH> 100644
--- a/gtts/tests/test_tts.py
+++ b/gtts/tests/test_tts.py
@@ -26,12 +26,10 @@ class TestLanguages(unittest.TestCase):
tts.save(path_slow)
# Check if files created is > 2k
- # Check if slow speed file is l... | Removed test assert slow > normal file, not guaranteed | py |
diff --git a/openquake/baselib/parallel.py b/openquake/baselib/parallel.py
index <HASH>..<HASH> 100644
--- a/openquake/baselib/parallel.py
+++ b/openquake/baselib/parallel.py
@@ -772,8 +772,7 @@ class Starmap(object):
self.sent = AccumDict(accum=AccumDict()) # fname -> argname -> nbytes
self.monitor.... | Fixed an IP issue in the receiver address | py |
diff --git a/falafel/core/archives.py b/falafel/core/archives.py
index <HASH>..<HASH> 100644
--- a/falafel/core/archives.py
+++ b/falafel/core/archives.py
@@ -130,7 +130,7 @@ class TarExtractor(Extractor):
self._assert_type(path, False)
tar_flag = self.TAR_FLAGS.get(self.content_type)
... | Fix failure when unprivileged user execution of archive containing /dev/null (#<I>) See discussion in <URL> | py |
diff --git a/salt/states/libcloud_dns.py b/salt/states/libcloud_dns.py
index <HASH>..<HASH> 100644
--- a/salt/states/libcloud_dns.py
+++ b/salt/states/libcloud_dns.py
@@ -48,10 +48,6 @@ Example:
from __future__ import absolute_import
# Import salt libs
-import salt.modules.libcloud_dns as libcloud_dns_module
-impor... | Remove unused/duplicate imports leftover from merge-conflict resolution | py |
diff --git a/tests/nosetests/test_misaligned/test_misaligned_area_volume.py b/tests/nosetests/test_misaligned/test_misaligned_area_volume.py
index <HASH>..<HASH> 100644
--- a/tests/nosetests/test_misaligned/test_misaligned_area_volume.py
+++ b/tests/nosetests/test_misaligned/test_misaligned_area_volume.py
@@ -14,11 +14... | Updating the misaligned area test. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@
from distutils.core import setup
from setuptools import find_packages
-setup(name='btcpy',
+setup(name='chainside-btcpy',
version='0.1',
packages=find_packages(),
install_requires=['ecds... | change package name for pypi | py |
diff --git a/src/pyrocore/error.py b/src/pyrocore/error.py
index <HASH>..<HASH> 100644
--- a/src/pyrocore/error.py
+++ b/src/pyrocore/error.py
@@ -48,6 +48,11 @@ class EngineError(LoggableError):
"""
+class NetworkError(LoggableError):
+ """ External connection errors.
+ """
+
+
class UserError(Loggable... | added error.NetworkError | py |
diff --git a/retrying.py b/retrying.py
index <HASH>..<HASH> 100644
--- a/retrying.py
+++ b/retrying.py
@@ -12,29 +12,6 @@
## See the License for the specific language governing permissions and
## limitations under the License.
-## --- The following is for portions of the "six" module ----------------------
-##
-## ... | remove six license boilerplate since we're not embedding it anymore | py |
diff --git a/source/test/common/test_run_to_selected_state.py b/source/test/common/test_run_to_selected_state.py
index <HASH>..<HASH> 100644
--- a/source/test/common/test_run_to_selected_state.py
+++ b/source/test/common/test_run_to_selected_state.py
@@ -16,9 +16,9 @@ def test_run_to_selected_state(caplog):
rafcon... | fixed path fixed the wrong path for the test state machine which is located in test_script/unit_test... | py |
diff --git a/openquake/engine/logs.py b/openquake/engine/logs.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/logs.py
+++ b/openquake/engine/logs.py
@@ -181,12 +181,12 @@ def handle(job, log_level='info', log_file=None):
try:
yield
finally:
+ # sanity check to make sure that the logging ... | Declassed an assert to a warning | py |
diff --git a/gnupg.py b/gnupg.py
index <HASH>..<HASH> 100644
--- a/gnupg.py
+++ b/gnupg.py
@@ -1215,7 +1215,9 @@ class GPG(object):
[cmd.append(opt) for opt in iter(_sanitise_list(self.options))]
if args:
[cmd.append(arg) for arg in iter(_sanitise_list(args))]
- logger.debug("m... | Remove duplicate log statement of the GnuPG command we're running. | py |
diff --git a/tests/integration_test.py b/tests/integration_test.py
index <HASH>..<HASH> 100644
--- a/tests/integration_test.py
+++ b/tests/integration_test.py
@@ -79,7 +79,7 @@ def setup_module():
c.inspect_image(BUSYBOX)
except NotFound:
os.write(2, "\npulling busybox\n".encode('utf-8'))
- ... | Pull correct version of busybox in integration tests | py |
diff --git a/pyang/statements.py b/pyang/statements.py
index <HASH>..<HASH> 100644
--- a/pyang/statements.py
+++ b/pyang/statements.py
@@ -340,7 +340,7 @@ _deviate_delete_singleton_keywords = {
_valid_deviations = {
'type':['leaf', 'leaf-list'],
'units':['leaf', 'leaf-list'],
- 'default':['leaf', 'choice'... | Bugfix #<I>: deviate add should be able to add default stmt to leaf-list node | py |
diff --git a/asv/commands/run.py b/asv/commands/run.py
index <HASH>..<HASH> 100644
--- a/asv/commands/run.py
+++ b/asv/commands/run.py
@@ -26,7 +26,6 @@ class Run(object):
"run", help="Run a benchmark suite",
description="Run a benchmark suite.")
- # TODO: Range of branches
p... | Improve "asv run"'s output | py |
diff --git a/test/unit/test_service_models.py b/test/unit/test_service_models.py
index <HASH>..<HASH> 100644
--- a/test/unit/test_service_models.py
+++ b/test/unit/test_service_models.py
@@ -87,13 +87,6 @@ class HostListTestMixin(UrlTesterTestMixin):
def _get_expected_items_for_urls(self, urls):
... | Remove an unnecessary function The function _test_function_does_not_handle_invalid_host_error ended up being called in just one place. Now it is being removed and its body is being moved to the function that uses it. | py |
diff --git a/holoviews/element/raster.py b/holoviews/element/raster.py
index <HASH>..<HASH> 100644
--- a/holoviews/element/raster.py
+++ b/holoviews/element/raster.py
@@ -481,6 +481,25 @@ class Image(Dataset, Element2D, SheetCoordinateSystem):
ydensity=self.ydensity, **kwargs)
+ de... | Reimplemented Image sample using interface methods | py |
diff --git a/raiden/utils/profiling/greenlets.py b/raiden/utils/profiling/greenlets.py
index <HASH>..<HASH> 100644
--- a/raiden/utils/profiling/greenlets.py
+++ b/raiden/utils/profiling/greenlets.py
@@ -1,6 +1,6 @@
import json
import sys
-import time
+from datetime import datetime
from typing import Any
import gr... | Use datetime in switch tracing This makes it easier to find the corresponding entries in other logs. | py |
diff --git a/pythonforandroid/build.py b/pythonforandroid/build.py
index <HASH>..<HASH> 100644
--- a/pythonforandroid/build.py
+++ b/pythonforandroid/build.py
@@ -381,7 +381,7 @@ class Context(object):
self.ndk_platform = join(
self.ndk_dir,
'platforms',
- 'android-{}'.form... | Corrected NDK platform finding to use ndk_api instead of android_api | py |
diff --git a/Lib/fontbakery/codetesting.py b/Lib/fontbakery/codetesting.py
index <HASH>..<HASH> 100644
--- a/Lib/fontbakery/codetesting.py
+++ b/Lib/fontbakery/codetesting.py
@@ -219,7 +219,7 @@ def assert_results_contain(check_results,
f"(Bare string: {msg!r})")
if status == expected_status... | Fix condition 1. `expected_msgcode` can never be None because of the exception upstream: "Test must provide the expected message code" 2. Adds support for PASS and DEBUG statuses, which are allowed to use bare strings for their messages | py |
diff --git a/spyder/widgets/calltip.py b/spyder/widgets/calltip.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/calltip.py
+++ b/spyder/widgets/calltip.py
@@ -157,6 +157,10 @@ class CallTipWidget(QLabel):
def show_tip(self, point, tip, wrapped_tiplines):
""" Attempts to show the specified tip at the c... | Calltip: Don't show it if it's already visible | py |
diff --git a/dosagelib/plugins/s.py b/dosagelib/plugins/s.py
index <HASH>..<HASH> 100644
--- a/dosagelib/plugins/s.py
+++ b/dosagelib/plugins/s.py
@@ -109,6 +109,14 @@ class SinFest(_BasicScraper):
help = 'Index format: n (unpadded)'
+class SkinDeep(_BasicScraper):
+ url = 'http://www.skindeepcomic.com/'
+ ... | Add SkinDeep. Filenames for this are all over the place :( | py |
diff --git a/kdcount/sphere.py b/kdcount/sphere.py
index <HASH>..<HASH> 100644
--- a/kdcount/sphere.py
+++ b/kdcount/sphere.py
@@ -101,7 +101,7 @@ def bootstrap(nside, rand, nbar, *data):
r0 = numpy.concatenate((r0, r), axis=-1)
else:
heapq.heappush(heap, (a, j, r, d))
- ... | break a degeneracy by using correct j/j0. | py |
diff --git a/ykman/cli/piv.py b/ykman/cli/piv.py
index <HASH>..<HASH> 100644
--- a/ykman/cli/piv.py
+++ b/ykman/cli/piv.py
@@ -793,7 +793,11 @@ def _verify_pin(ctx, controller, pin, no_prompt=False):
try:
controller.verify(pin, touch_callback=prompt_for_touch)
- except APDUError:
+ except WrongPin... | Catch WrongPin and AuthenticationBlocked in cli.piv._verify_pin | py |
diff --git a/grimoire_elk/enriched/stackexchange.py b/grimoire_elk/enriched/stackexchange.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/enriched/stackexchange.py
+++ b/grimoire_elk/enriched/stackexchange.py
@@ -234,7 +234,7 @@ class StackExchangeEnrich(Enrich):
rich_answer = self.get_rich_item(... | [stackexchange] Handle missing `answer_tags` This code handles enriched items not having `answer_tags` field. Thus, it prevents the error KeyError: 'answer_tags'. | py |
diff --git a/spatialist/vector.py b/spatialist/vector.py
index <HASH>..<HASH> 100644
--- a/spatialist/vector.py
+++ b/spatialist/vector.py
@@ -578,11 +578,6 @@ class Vector(object):
"""
return self.layer.GetSpatialRef()
- # todo Should return the wkt of the object, not of the projection
- @pro... | [Vector] removed property method wkt | py |
diff --git a/lightcli.py b/lightcli.py
index <HASH>..<HASH> 100644
--- a/lightcli.py
+++ b/lightcli.py
@@ -23,7 +23,7 @@
# lightcli
# A lightweight terminal interaction library for Python.
-__version__ = '0.2-alpha'
+__version__ = '0.3-alpha' | Update version: <I>-alpha | py |
diff --git a/modelx/core/space.py b/modelx/core/space.py
index <HASH>..<HASH> 100644
--- a/modelx/core/space.py
+++ b/modelx/core/space.py
@@ -612,7 +612,7 @@ class SpaceImpl(SpaceContainerImpl):
self._spaces._repr = '<' + self.name + '.spaces>'
self._builtin_names = LazyEvalDict(
- data=... | FIX: added __builtins__ in SpaceImpl._builtin_names | py |
diff --git a/polyaxon_client/workers/queue_worker.py b/polyaxon_client/workers/queue_worker.py
index <HASH>..<HASH> 100644
--- a/polyaxon_client/workers/queue_worker.py
+++ b/polyaxon_client/workers/queue_worker.py
@@ -12,7 +12,7 @@ from polyaxon_client.workers.base_worker import BaseWorker
class QueueWorker(BaseW... | Update min timeout to allow transport to execute tasks in the queue | py |
diff --git a/holoviews/core/util.py b/holoviews/core/util.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/util.py
+++ b/holoviews/core/util.py
@@ -649,7 +649,10 @@ def sort_topologically(graph):
def is_cyclic(graph):
- """Return True if the directed graph g has a cycle."""
+ """
+ Return True if the d... | Added docstrings for graph utility functions | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.