diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/advanced_filters/admin.py b/advanced_filters/admin.py index <HASH>..<HASH> 100644 --- a/advanced_filters/admin.py +++ b/advanced_filters/admin.py @@ -22,16 +22,20 @@ class AdvancedListFilters(admin.SimpleListFilter): def lookups(self, request, model_admin): if not model_admin: - ...
feat: f-string for model_name string interpolation
py
diff --git a/spyderlib/widgets/mixins.py b/spyderlib/widgets/mixins.py index <HASH>..<HASH> 100644 --- a/spyderlib/widgets/mixins.py +++ b/spyderlib/widgets/mixins.py @@ -281,7 +281,8 @@ class BaseEditMixin(object): """ cursor = self.__select_text(position_from, position_to) text = to_text_...
Editor: Don't remove last eol when using the get_text method if we get the whole file contents - This avoids making Spyder erase the last eol in PY3
py
diff --git a/liu/django/models.py b/liu/django/models.py index <HASH>..<HASH> 100644 --- a/liu/django/models.py +++ b/liu/django/models.py @@ -15,6 +15,12 @@ class StudentUnion(models.Model): return self.name +class LiUIDQuerySet(models.QuerySet): + def fetch(self): + for i in self: + ...
Added custom manager/queryset
py
diff --git a/docker/client.py b/docker/client.py index <HASH>..<HASH> 100644 --- a/docker/client.py +++ b/docker/client.py @@ -449,7 +449,8 @@ class Client(requests.Session): if authcfg: headers['X-Registry-Auth'] = auth.encode_header(authcfg) u = self._url("/images/create") - ...
Disable timeout on image pulls
py
diff --git a/salt/utils/gitfs.py b/salt/utils/gitfs.py index <HASH>..<HASH> 100644 --- a/salt/utils/gitfs.py +++ b/salt/utils/gitfs.py @@ -2258,19 +2258,10 @@ class WinRepo(GitBase): ''' Functionality specific to the winrepo runner ''' - def __init__(self, opts): + def __init__(self, opts, winrepo_...
Fore winrepo_dir to be passed to WinRepo constructor
py
diff --git a/tests/ro_functional.py b/tests/ro_functional.py index <HASH>..<HASH> 100644 --- a/tests/ro_functional.py +++ b/tests/ro_functional.py @@ -180,8 +180,8 @@ class RHTest(BaseTest): 6, "621030") test6 = lambda s: BaseTest._testQueryFull(s, "621601", 60, ...
Another test fix to not rely on locally changed values
py
diff --git a/pwkit/environments/ciao/data.py b/pwkit/environments/ciao/data.py index <HASH>..<HASH> 100644 --- a/pwkit/environments/ciao/data.py +++ b/pwkit/environments/ciao/data.py @@ -149,7 +149,7 @@ class Events (GTIData): detx, dety Detector position. energy - Best-fit energy in keV. + B...
pwkit/environments/ciao/data.py: docstring fix
py
diff --git a/holoviews/plotting/mpl/seaborn.py b/holoviews/plotting/mpl/seaborn.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/mpl/seaborn.py +++ b/holoviews/plotting/mpl/seaborn.py @@ -147,7 +147,7 @@ class DistributionPlot(SeabornPlot): style.pop('zorder', None) if self.invert_axes: ...
Fixed seaborn plot axis labels
py
diff --git a/tests/integration/test_gitlab.py b/tests/integration/test_gitlab.py index <HASH>..<HASH> 100644 --- a/tests/integration/test_gitlab.py +++ b/tests/integration/test_gitlab.py @@ -10,10 +10,12 @@ log = logging.getLogger('test.gitlab') #########################################################################...
Updated gitlab test suite with extra test (existing repo error on create)
py
diff --git a/paramiko/transport.py b/paramiko/transport.py index <HASH>..<HASH> 100644 --- a/paramiko/transport.py +++ b/paramiko/transport.py @@ -1256,7 +1256,7 @@ class Transport (threading.Thread): def stop_thread(self): self.active = False self.packetizer.close() - while self.isAlive()...
Don't try to join() if we are the current thread. This fixes #<I>.
py
diff --git a/trustar/models/numbered_page.py b/trustar/models/numbered_page.py index <HASH>..<HASH> 100644 --- a/trustar/models/numbered_page.py +++ b/trustar/models/numbered_page.py @@ -55,7 +55,7 @@ class NumberedPage(Page): # otherwise, try to compute whether or not more pages exist total_pages = s...
made style more pythonic
py
diff --git a/bdbag/fetch/transports/fetch_boto3.py b/bdbag/fetch/transports/fetch_boto3.py index <HASH>..<HASH> 100644 --- a/bdbag/fetch/transports/fetch_boto3.py +++ b/bdbag/fetch/transports/fetch_boto3.py @@ -107,7 +107,8 @@ def get_file(url, output_path, auth_config, **kwargs): logger.debug("Transferring fi...
Increase default read timeout on boto3 get to <I> seconds. Will expose as config parameter later.
py
diff --git a/tests/base/utils.py b/tests/base/utils.py index <HASH>..<HASH> 100644 --- a/tests/base/utils.py +++ b/tests/base/utils.py @@ -42,7 +42,7 @@ def maybe_data_path(datadir: pathlib.Path, name: str, """ pattern = f'{name}.{file_ext}' if datadir.exists() and datadir.is_dir(): - paths = list...
fix: make the result of tests.base.utils.maybe_data_path stable by sorting files gotten
py
diff --git a/geneparse/extract/__main__.py b/geneparse/extract/__main__.py index <HASH>..<HASH> 100644 --- a/geneparse/extract/__main__.py +++ b/geneparse/extract/__main__.py @@ -252,7 +252,11 @@ def parse_args(): parser = argparse.ArgumentParser( prog="geneparse-extractor", description="Genotype...
Added an epilog to the manual
py
diff --git a/h2o-py/h2o/h2o_model_builder.py b/h2o-py/h2o/h2o_model_builder.py index <HASH>..<HASH> 100644 --- a/h2o-py/h2o/h2o_model_builder.py +++ b/h2o-py/h2o/h2o_model_builder.py @@ -61,10 +61,7 @@ def _ow(name,kwargs): # for checking offsets and weights, c is column, fr is fr def _check_frame(x,y,response): #...
remove _eager calls from deprecated model interface too
py
diff --git a/simple_history/admin.py b/simple_history/admin.py index <HASH>..<HASH> 100644 --- a/simple_history/admin.py +++ b/simple_history/admin.py @@ -48,7 +48,9 @@ class SimpleHistoryAdmin(admin.ModelAdmin): pk_name = opts.pk.attname history = getattr(model, model._meta.simple_history_manager_att...
Select related users when displaying history in admin (#<I>) * Select related users This is to avoid n<I> queries * make format
py
diff --git a/gwpy/tests/test_cli.py b/gwpy/tests/test_cli.py index <HASH>..<HASH> 100644 --- a/gwpy/tests/test_cli.py +++ b/gwpy/tests/test_cli.py @@ -24,6 +24,8 @@ import tempfile import importlib import argparse +from numpy import random + from matplotlib import use use('agg') @@ -80,12 +82,14 @@ class CliTes...
tests: use better random data for cli test
py
diff --git a/src/means/simulation/simulate.py b/src/means/simulation/simulate.py index <HASH>..<HASH> 100644 --- a/src/means/simulation/simulate.py +++ b/src/means/simulation/simulate.py @@ -319,7 +319,8 @@ def _postprocess_lna_simulation(problem, trajectories): means = [trajectory.values[t] for trajectory in ...
deleted random sampling from multivariate normal
py
diff --git a/tests/test_integration.py b/tests/test_integration.py index <HASH>..<HASH> 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -8,6 +8,7 @@ from conllu.models import Token, TokenList from conllu.parser import parse_dict_value, parse_int_value from tests.helpers import capture_print,...
Add newline to make isort happy.
py
diff --git a/xcs/__init__.py b/xcs/__init__.py index <HASH>..<HASH> 100644 --- a/xcs/__init__.py +++ b/xcs/__init__.py @@ -306,6 +306,18 @@ class Population: """The parameter settings used by this population.""" return self._parameters + def __iter__(self): + for condition, by_action in se...
Added iterable overloads to Population Added __iter__, __len__, and __contains__ to Population, to allow access to rules, i.e. for logging/saving purposes
py
diff --git a/gui/component.py b/gui/component.py index <HASH>..<HASH> 100644 --- a/gui/component.py +++ b/gui/component.py @@ -917,7 +917,7 @@ class ImageBackgroundMixin(object): while x < sz.width: y = -dy while y < sz.height: - dc.DrawBitmapPoint(bmp, (x, y)) + ...
replaced dc.DrawBitmapPoint with dc.DrawBitmap for wx<I> (preparation for phoenix)
py
diff --git a/tests/test_parser.py b/tests/test_parser.py index <HASH>..<HASH> 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -300,14 +300,14 @@ def test_string(): str,strExample "Empty","" "Basic","Simple string" -"Escaped","This\\tIs\\nA\\r\\"Test\\"\\\\" +"Escaped","This\\tIs\\nA\\r\\"Test\\"\\\\\...
Issue 7: tests: Add parser tests to detect \$ sequence handling.
py
diff --git a/grove/pyvqe/tests/test_algorithms.py b/grove/pyvqe/tests/test_algorithms.py index <HASH>..<HASH> 100644 --- a/grove/pyvqe/tests/test_algorithms.py +++ b/grove/pyvqe/tests/test_algorithms.py @@ -73,7 +73,7 @@ def test_expectation(): minimizer.return_value = fake_result fake_qvm = Mock(spec=['wav...
Wavefunction API updated now in fake_QVM for test fake_qvm constructed for testing now returns a tuple when wavefunction is called.
py
diff --git a/aiorun.py b/aiorun.py index <HASH>..<HASH> 100644 --- a/aiorun.py +++ b/aiorun.py @@ -160,12 +160,18 @@ def run( "exclusive. (Just make your own uvloop and pass it in)." ) - if use_uvloop: - import uvloop + loop_was_supplied = bool(loop) - asyncio.set_event_loo...
Do not change polices in the case of custom loop provided. (#<I>)
py
diff --git a/ella/core/models/main.py b/ella/core/models/main.py index <HASH>..<HASH> 100644 --- a/ella/core/models/main.py +++ b/ella/core/models/main.py @@ -55,7 +55,7 @@ class Author(models.Model): def recently_published(self, **kwargs): if core_settings.USE_REDIS_FOR_LISTINGS: - return re...
Author.recently_published() should respond to kwargs if they come.
py
diff --git a/autosub/__init__.py b/autosub/__init__.py index <HASH>..<HASH> 100644 --- a/autosub/__init__.py +++ b/autosub/__init__.py @@ -82,7 +82,7 @@ class SpeechRecognizer(object): except requests.exceptions.ConnectionError: continue - for line in resp.content....
Change decode default 'ascii' codec to 'utf-8' Change decode default 'ascii' codec to 'utf-8' for the benefit of other languages
py
diff --git a/centinel/backend.py b/centinel/backend.py index <HASH>..<HASH> 100644 --- a/centinel/backend.py +++ b/centinel/backend.py @@ -77,7 +77,7 @@ class User: url = "%s/%s" % (self.config['server']['server_url'], "register") payload = {'username': username, 'password': password, ...
change backend to support archived results, remove archive after finished sending
py
diff --git a/datadog_checks_dev/datadog_checks/dev/tooling/templates/integration/check/{check_name}/datadog_checks/{check_name}/check.py b/datadog_checks_dev/datadog_checks/dev/tooling/templates/integration/check/{check_name}/datadog_checks/{check_name}/check.py index <HASH>..<HASH> 100644 --- a/datadog_checks_dev/data...
Remove instance argument from check (#<I>)
py
diff --git a/mcash/mapi_client/backends/urlfetch.py b/mcash/mapi_client/backends/urlfetch.py index <HASH>..<HASH> 100644 --- a/mcash/mapi_client/backends/urlfetch.py +++ b/mcash/mapi_client/backends/urlfetch.py @@ -20,6 +20,6 @@ class UrlFetchFramework(object): res = urlfetch.fetch(url=url, ...
<I> sec deadline on urlfetch calls
py
diff --git a/jsonrpc/authproxy.py b/jsonrpc/authproxy.py index <HASH>..<HASH> 100644 --- a/jsonrpc/authproxy.py +++ b/jsonrpc/authproxy.py @@ -111,8 +111,6 @@ class AuthServiceProxy(object): return resp['result'] def _batch(self, rpc_call_list): - self.__idcnt += 1 - postdata = js...
AuthServiceProxy._batch() should not increase __idcnt __idcnt is incremented on a per-RPC-request basis, not per-HTTP call basis.
py
diff --git a/old_english/appserver/controllers/svc.py b/old_english/appserver/controllers/svc.py index <HASH>..<HASH> 100644 --- a/old_english/appserver/controllers/svc.py +++ b/old_english/appserver/controllers/svc.py @@ -58,7 +58,7 @@ class ODataController(controllers.BaseController): timings = [] m...
Woops, checked in some broken code
py
diff --git a/instant/apps.py b/instant/apps.py index <HASH>..<HASH> 100644 --- a/instant/apps.py +++ b/instant/apps.py @@ -39,10 +39,16 @@ class InstantConfig(AppConfig): handlers = os.listdir(handlers_dir) for handler in handlers: HANDLERS.append(handler.replace("...
Finish to fix initialization when no debug setting is set
py
diff --git a/slacker_log_handler/__init__.py b/slacker_log_handler/__init__.py index <HASH>..<HASH> 100644 --- a/slacker_log_handler/__init__.py +++ b/slacker_log_handler/__init__.py @@ -47,7 +47,7 @@ class SlackerLogHandler(Handler): self.icon_url = icon_url self.icon_emoji = icon_emoji if (icon_emoj...
Add support for logging to a user
py
diff --git a/qr2scad.py b/qr2scad.py index <HASH>..<HASH> 100755 --- a/qr2scad.py +++ b/qr2scad.py @@ -20,9 +20,11 @@ DESCRIPTION result file, try to scale it down and verify that it is still readable using <http://zxing.org/w/decode.jspx>. -EXAMPLE +EXAMPLES ./qr2scad.py < example.png > example.scad ...
Added practical example on Thingiverse
py
diff --git a/treeherder/model/derived/jobs.py b/treeherder/model/derived/jobs.py index <HASH>..<HASH> 100644 --- a/treeherder/model/derived/jobs.py +++ b/treeherder/model/derived/jobs.py @@ -1483,7 +1483,7 @@ into chunks of chunk_size size. Returns the number of result sets deleted""" 'last_times...
Bug <I> - Optimize updating machine and job_group reference data We were updating every field for these unnecessarily in certain cases (every time in the case of machine) which could be problematic if we had a flood of updates, as we did today.
py
diff --git a/thoth/python/source.py b/thoth/python/source.py index <HASH>..<HASH> 100644 --- a/thoth/python/source.py +++ b/thoth/python/source.py @@ -185,6 +185,7 @@ class Source: def provides_package(self, package_name: str) -> bool: """Check if the given package is provided by this package source index...
Normalize package name before checking its availability
py
diff --git a/openquake/commonlib/parallel.py b/openquake/commonlib/parallel.py index <HASH>..<HASH> 100644 --- a/openquake/commonlib/parallel.py +++ b/openquake/commonlib/parallel.py @@ -58,7 +58,7 @@ def check_mem_usage(soft_percent=80, hard_percent=100): if used_mem_percent > soft_percent: logging.warn(...
Change RuntimeError in MemoryError
py
diff --git a/tests/test_missingmigrations.py b/tests/test_missingmigrations.py index <HASH>..<HASH> 100644 --- a/tests/test_missingmigrations.py +++ b/tests/test_missingmigrations.py @@ -1,4 +1,7 @@ -import cStringIO +try: + from cStringIO import StringIO +except ImportError: + from io import StringIO from dja...
only test for our own missing migrations
py
diff --git a/datadog_checks_base/datadog_checks/base/__init__.py b/datadog_checks_base/datadog_checks/base/__init__.py index <HASH>..<HASH> 100644 --- a/datadog_checks_base/datadog_checks/base/__init__.py +++ b/datadog_checks_base/datadog_checks/base/__init__.py @@ -2,8 +2,22 @@ # All rights reserved # Licensed under...
Expose core functionality at the root (#<I>) * Expose core functionality at the root
py
diff --git a/baron/grammator.py b/baron/grammator.py index <HASH>..<HASH> 100644 --- a/baron/grammator.py +++ b/baron/grammator.py @@ -237,6 +237,14 @@ def decorators((decorator,)): return decorator +# TODO tests +@pg.production("decorator : endl") +def decorator_endl((endl,)): + # thanks ipythons dev, you ...
[fix] handle hyper rare case where there is an empty line between decorators
py
diff --git a/scikits/audiolab/soundio/play.py b/scikits/audiolab/soundio/play.py index <HASH>..<HASH> 100644 --- a/scikits/audiolab/soundio/play.py +++ b/scikits/audiolab/soundio/play.py @@ -60,8 +60,9 @@ if BACKEND == 'ALSA': dev.play(input) else: def _play(input, fs): - raise NotImplementedError...
Improve message when play does not have any backend.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -30,6 +30,7 @@ check_setuptools_features() dev_require = [ 'ipdb', 'ipython', + 'watchdog', ] docs_require = [
Add watchdog lib to dev requirements
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,6 @@ #!/usr/bin/env python # Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop) +import sys import setuptools with open('README.txt') as readme: @@ -7,6 +8,9 @@ with open('README.txt') as r...
Optionally require pytest_runner.
py
diff --git a/generated/python/nox.py b/generated/python/nox.py index <HASH>..<HASH> 100644 --- a/generated/python/nox.py +++ b/generated/python/nox.py @@ -37,7 +37,7 @@ def unit_tests(session, python_version): packages += sorted(['%s/' % i for i in os.listdir('.') if i.startswith('gapic-go...
Do not use -e on pip install here. (#<I>) This will fix the datastore install.
py
diff --git a/starlette/applications.py b/starlette/applications.py index <HASH>..<HASH> 100644 --- a/starlette/applications.py +++ b/starlette/applications.py @@ -95,7 +95,9 @@ class Starlette: name: str = None, include_in_schema: bool = True, ) -> None: - self.router.add_route(path, route...
Pass on include_in_schema param (#<I>)
py
diff --git a/scanpy/utils.py b/scanpy/utils.py index <HASH>..<HASH> 100644 --- a/scanpy/utils.py +++ b/scanpy/utils.py @@ -43,6 +43,8 @@ def get_igraph_from_adjacency(adjacency, directed=None): import igraph as ig sources, targets = adjacency.nonzero() weights = adjacency[sources, targets] + if isinst...
Fix weight assignment in igraph constructor
py
diff --git a/atomic_reactor/utils/koji.py b/atomic_reactor/utils/koji.py index <HASH>..<HASH> 100644 --- a/atomic_reactor/utils/koji.py +++ b/atomic_reactor/utils/koji.py @@ -408,9 +408,8 @@ def get_output(workflow: DockerBuildWorkflow, imageutil = workflow.imageutil image_id = imageutil.get_inspect_f...
Do not set parent_id within koji metadata for custom base image Related to CLOUDBLD-<I>
py
diff --git a/nodeconductor/cloud/views.py b/nodeconductor/cloud/views.py index <HASH>..<HASH> 100644 --- a/nodeconductor/cloud/views.py +++ b/nodeconductor/cloud/views.py @@ -1,6 +1,6 @@ from django.shortcuts import get_object_or_404 -from rest_framework import exceptions, status +from rest_framework import exceptio...
created attribute added to post_save method(NC-<I>)
py
diff --git a/angr/analyses/sse.py b/angr/analyses/sse.py index <HASH>..<HASH> 100644 --- a/angr/analyses/sse.py +++ b/angr/analyses/sse.py @@ -641,6 +641,9 @@ class SSE(Analysis): if all_guards: merged_state.add_constraints(merged_state.se.Or(*all_guards)) + # Fixing the callstack of the ...
Property restoring callstack to the merged path.
py
diff --git a/modeltranslation/widgets.py b/modeltranslation/widgets.py index <HASH>..<HASH> 100644 --- a/modeltranslation/widgets.py +++ b/modeltranslation/widgets.py @@ -3,7 +3,7 @@ from __future__ import unicode_literals from django.forms.widgets import Media, Widget, CheckboxInput from django.utils.html import con...
Update to use `gettext_lazy` The use of `ugettext` and variants is deprecated in Django <I> and to be removed in Django <I>. See more here: <URL>
py
diff --git a/alerta/webhooks/stackdriver.py b/alerta/webhooks/stackdriver.py index <HASH>..<HASH> 100644 --- a/alerta/webhooks/stackdriver.py +++ b/alerta/webhooks/stackdriver.py @@ -39,7 +39,7 @@ def parse_stackdriver(notification: JSON) -> Alert: if state == 'open': severity = 'critical' status...
Fix creation timestamp setting it in UTC (#<I>)
py
diff --git a/qiskit/transpiler/preset_passmanagers/level3.py b/qiskit/transpiler/preset_passmanagers/level3.py index <HASH>..<HASH> 100644 --- a/qiskit/transpiler/preset_passmanagers/level3.py +++ b/qiskit/transpiler/preset_passmanagers/level3.py @@ -120,7 +120,7 @@ def level_3_pass_manager(transpile_config): ...
remove cx_direction from O3 if symmetric (#<I>)
py
diff --git a/salt/modules/zfs.py b/salt/modules/zfs.py index <HASH>..<HASH> 100644 --- a/salt/modules/zfs.py +++ b/salt/modules/zfs.py @@ -78,11 +78,19 @@ def __virtual__(): ''' Makes sure that ZFS kernel module is loaded. ''' - kernel_module_chk = { - 'FreeBSD': 'kldstat -q -m zfs', - '...
try to search for zfs if modinfo is unavailable Fixes #<I>.
py
diff --git a/tilequeue/config.py b/tilequeue/config.py index <HASH>..<HASH> 100644 --- a/tilequeue/config.py +++ b/tilequeue/config.py @@ -72,9 +72,11 @@ class Configuration(object): self.redis_db = self._cfg('redis db') self.redis_cache_set_key = self._cfg('redis cache-set-key') - self.stats...
Handle the statsd key not being in config
py
diff --git a/hszinc/parser.py b/hszinc/parser.py index <HASH>..<HASH> 100644 --- a/hszinc/parser.py +++ b/hszinc/parser.py @@ -17,6 +17,7 @@ import iso8601 import re import six import functools +import json URI_META = re.compile(r'\\([:/\?#\[\]@\\&=;"$`])') GRID_SEP = re.compile(r'\n\n+') @@ -115,7 +116,7 @@ def...
parser: Fix missed import, column parsing.
py
diff --git a/python/tensorflow/ner/create_models.py b/python/tensorflow/ner/create_models.py index <HASH>..<HASH> 100644 --- a/python/tensorflow/ner/create_models.py +++ b/python/tensorflow/ner/create_models.py @@ -22,6 +22,7 @@ def create_graph(output_path, use_contrib, number_of_tags, embeddings_dimension, n...
fixed missing Saver in tf script
py
diff --git a/setuptools/tests/fixtures.py b/setuptools/tests/fixtures.py index <HASH>..<HASH> 100644 --- a/setuptools/tests/fixtures.py +++ b/setuptools/tests/fixtures.py @@ -1,4 +1,3 @@ -import pathlib import shutil import pytest @@ -27,13 +26,7 @@ def tmpdir_cwd(tmpdir): @pytest.fixture -def src_dir(): - ...
Rely on rootdir to determine the source. Avoids coupling with position in the test suite.
py
diff --git a/sievelib/managesieve.py b/sievelib/managesieve.py index <HASH>..<HASH> 100644 --- a/sievelib/managesieve.py +++ b/sievelib/managesieve.py @@ -329,7 +329,7 @@ class Client(object): """ if isinstance(login, six.text_type): login = login.encode("utf-8") - if isinstance(lo...
fix typo should be testing password not login
py
diff --git a/command/build_ext.py b/command/build_ext.py index <HASH>..<HASH> 100644 --- a/command/build_ext.py +++ b/command/build_ext.py @@ -179,7 +179,7 @@ class BuildExt (Command): filenames = [] # Wouldn't it be neat if we knew the names of header files too... - for (extension_name, buil...
Changed 'build_extensions()' so 'sources' can be a list or tuple; and call CCompiler method 'compile()' with 'include_dirs' not 'includes'. Fixed stupid typo in 'get_source_files()'.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ install_reqs = parse_requirements('requirements.txt', session=False) setup( name='envs', - description='Easy access of environment variables from Python with support for booleans.', + description='Ea...
Updated version to <I>
py
diff --git a/tests/test_commands/test_refresh_ip.py b/tests/test_commands/test_refresh_ip.py index <HASH>..<HASH> 100644 --- a/tests/test_commands/test_refresh_ip.py +++ b/tests/test_commands/test_refresh_ip.py @@ -1,6 +1,6 @@ from unittest import TestCase from mock import Mock, MagicMock, create_autospec -from quali...
test_refresh_ip was fixed connect #<I>
py
diff --git a/dallinger/utils.py b/dallinger/utils.py index <HASH>..<HASH> 100644 --- a/dallinger/utils.py +++ b/dallinger/utils.py @@ -273,7 +273,7 @@ def _make_chrome(path): # the default firstrun.flush() new_chrome.remote_args = webbrowser.Chrome.remote_args + [ - '--user-data-dir="{}"'....
Fix quoting of chrome profile directory
py
diff --git a/src/toil/resource.py b/src/toil/resource.py index <HASH>..<HASH> 100644 --- a/src/toil/resource.py +++ b/src/toil/resource.py @@ -372,7 +372,6 @@ class ModuleDescriptor(namedtuple('ModuleDescriptor', ('dirPath', 'name', 'fromV filePath[-1], extension = os.path.splitext(filePath[-1]) requi...
Support toil resources for sub-packages This fixes an issue with toil.resource and handling imports from sub-packages in the following format: from module.subpackage import some_func where the python structure looks like: module/subpackage/__init.py <-- with logic in __init__.py
py
diff --git a/tests/auth.py b/tests/auth.py index <HASH>..<HASH> 100644 --- a/tests/auth.py +++ b/tests/auth.py @@ -176,8 +176,14 @@ class SqlaModelAuthTests(unittest.TestCase): self.assertEqual(response.headers['Location'], '/') self.assert_(response.headers['Set-Cookie'].startswith('auth=; Max-Age=0;...
<I> failing test in auth
py
diff --git a/src/cloudant/document.py b/src/cloudant/document.py index <HASH>..<HASH> 100644 --- a/src/cloudant/document.py +++ b/src/cloudant/document.py @@ -98,11 +98,20 @@ class CloudantDocument(dict): put_resp.raise_for_status() return - update_actions = { - "append_elem": lambda doc, ...
Moved update_actions into a series of static methods. Thx to @evansde<I> for the idea. This requires a few more lines of code in the class, but makes for much cleaner calls, which is a win, I think.
py
diff --git a/glue/pipeline.py b/glue/pipeline.py index <HASH>..<HASH> 100644 --- a/glue/pipeline.py +++ b/glue/pipeline.py @@ -1022,7 +1022,7 @@ class ScienceData: x = ScienceSegment(tuple([id,st,en,du])) self.__sci_segs.append(x) - def make_chunks(self,length,overlap,play=0,sl=0,excl_play=0): + d...
default overlap=0 in make_chunks
py
diff --git a/pandas/util/testing.py b/pandas/util/testing.py index <HASH>..<HASH> 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -1119,6 +1119,7 @@ _network_error_messages = ( 'HTTP Error 502: internal error', 'HTTP Error 502', 'HTTP Error 503', + 'HTTP Error 403', ) # or ...
BLD: catch additional network error messages
py
diff --git a/ratcave/shader.py b/ratcave/shader.py index <HASH>..<HASH> 100644 --- a/ratcave/shader.py +++ b/ratcave/shader.py @@ -50,9 +50,14 @@ class UniformCollection(UserDict, object): array.loc = gl.glGetUniformLocation(shader_id.value, name) loc = array.loc - if arra...
4x4 Matrix Uniforms no longer get copied when sending their uniform data--the pointer to the array is saved with the unifom and passed to the glUniform call directly.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -24,7 +24,10 @@ setup( "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Natural Language :: English", - "Programming Lan...
Add Python 3 to the classifiers. Also specifically indicate Python <I>, since Python <I> is not supported.
py
diff --git a/ignite/contrib/engines/common.py b/ignite/contrib/engines/common.py index <HASH>..<HASH> 100644 --- a/ignite/contrib/engines/common.py +++ b/ignite/contrib/engines/common.py @@ -77,7 +77,7 @@ def setup_common_training_handlers( device=device, ) if dist.is_available() and dist.is_initiali...
Update common.py (#<I>) * Update common.py I think `_setup_common_training_handlers(...)` is missing its `return trainer` statement at the end of it. I've added it here. If this is in error, please just reject and close this. * Update common.py Removed `return trainer` or equivalent statements from the pub...
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -10,14 +10,13 @@ setup( author = 'Tom Hauser', author_email = 'thauser@redhat.com', url = 'https://github.com/thauser/pnc_cli', - download_url='https://github.com/thauser/pnc_cli/tarball/pypi-0.0.2', + dow...
update setup.py, pnc does not require mock for execution
py
diff --git a/pywd/pywd.py b/pywd/pywd.py index <HASH>..<HASH> 100644 --- a/pywd/pywd.py +++ b/pywd/pywd.py @@ -20,6 +20,7 @@ from pywd import __version__ from string import ascii_lowercase, ascii_uppercase, digits, punctuation from random import choice, getrandbits + def generate(): version = ".".join(str(x) ...
Removal of a few very minor pep8 violations Removal of a few very minor pep8 violations
py
diff --git a/pysat/tests/test_utils_io.py b/pysat/tests/test_utils_io.py index <HASH>..<HASH> 100644 --- a/pysat/tests/test_utils_io.py +++ b/pysat/tests/test_utils_io.py @@ -929,7 +929,7 @@ class TestXarrayIO(object): list(self.testInst.data.dims)[0]) # Test that the me...
BUG/TST: Corrected test after removing function functionality
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -551,7 +551,9 @@ winrm = [ 'pywinrm>=0.4', ] yandex = [ - 'yandexcloud>=0.122.0', + # Yandexcloud 0.145 broke logging of the yandexcloud provider. The limitation can be removed once + # https://github.com/yande...
Limits Yandexcloud to <I> to unblock main failing tests. (#<I>) The yandexcloud <I> broke logging feature of the client library and it fails yandex provider tests. <URL>
py
diff --git a/test/discr/discr_ops_test.py b/test/discr/discr_ops_test.py index <HASH>..<HASH> 100644 --- a/test/discr/discr_ops_test.py +++ b/test/discr/discr_ops_test.py @@ -107,7 +107,8 @@ def test_resizing_op_properties(): # Implicit range via ran_shp and offset res_op = odl.ResizingOperator(space, ran_s...
TST: relax overly strict check in resize op test
py
diff --git a/tabular_predDB/settings.py b/tabular_predDB/settings.py index <HASH>..<HASH> 100644 --- a/tabular_predDB/settings.py +++ b/tabular_predDB/settings.py @@ -21,7 +21,7 @@ class path(): user_home_dir = os.environ['HOME'] if 'WORKSPACE' in os.environ: user_home_dir = os.environ['WORKSPACE'] -...
fix remote_code_dir to install to /home/sgeadmin/ rather than /home/<USER>/ where <USER> depends on who spins up the cluster
py
diff --git a/synphot/planck.py b/synphot/planck.py index <HASH>..<HASH> 100644 --- a/synphot/planck.py +++ b/synphot/planck.py @@ -46,7 +46,7 @@ def bbfunc(wavelengths, temperature): temperature = units.validate_quantity(temperature, u.K) # Calculate blackbody radiation in FNU, then convert to PHOTLAM - ...
Inspired by one of the comments in astropy/astropy#<I>
py
diff --git a/justext/core.py b/justext/core.py index <HASH>..<HASH> 100644 --- a/justext/core.py +++ b/justext/core.py @@ -142,6 +142,7 @@ class ParagraphMaker(ContentHandler): return handler.paragraphs def __init__(self): + super(ParagraphMaker, self).__init__() self.path = PathInfo() ...
Features that work in Python <I>
py
diff --git a/file_config/__init__.py b/file_config/__init__.py index <HASH>..<HASH> 100644 --- a/file_config/__init__.py +++ b/file_config/__init__.py @@ -2,4 +2,4 @@ # MIT License <https://opensource.org/licenses/MIT> from . import handlers -from ._file_config import config, var, validate, build_schema +from ._fil...
Adding more imports for file-config
py
diff --git a/microcosm_flask/profiling.py b/microcosm_flask/profiling.py index <HASH>..<HASH> 100644 --- a/microcosm_flask/profiling.py +++ b/microcosm_flask/profiling.py @@ -1,5 +1,5 @@ import sys -from datetime import datetime +from datetime import datetime, timezone from os import makedirs from os.path import exi...
Fix profiling timestamp (#<I>)
py
diff --git a/salesforce/tests/test_integration.py b/salesforce/tests/test_integration.py index <HASH>..<HASH> 100644 --- a/salesforce/tests/test_integration.py +++ b/salesforce/tests/test_integration.py @@ -95,7 +95,7 @@ class BasicSOQLTest(TestCase): def test_exclude_query_construction(self): """ - Test that e...
Fix typ in docstring.
py
diff --git a/angr/analyses/cfg/cfg_fast.py b/angr/analyses/cfg/cfg_fast.py index <HASH>..<HASH> 100644 --- a/angr/analyses/cfg/cfg_fast.py +++ b/angr/analyses/cfg/cfg_fast.py @@ -2542,8 +2542,8 @@ class CFGFast(ForwardAnalysis, CFGBase): # pylint: disable=abstract-method job = CFGJob(addr, target_func_a...
CFGFast: Fix an issue of missing src insaddrs. (#<I>)
py
diff --git a/pycoin/message/InvItem.py b/pycoin/message/InvItem.py index <HASH>..<HASH> 100644 --- a/pycoin/message/InvItem.py +++ b/pycoin/message/InvItem.py @@ -3,7 +3,13 @@ import functools from pycoin.serialize import b2h_rev from pycoin.serialize.bitcoin_streamer import parse_struct, stream_struct -ITEM_TYPE_T...
Add some new InvItem types.
py
diff --git a/librosa/stft.py b/librosa/stft.py index <HASH>..<HASH> 100644 --- a/librosa/stft.py +++ b/librosa/stft.py @@ -71,7 +71,6 @@ def istft(d, n_fft=None, hann_window=None, hop=None): hann_window = n_fft pass - if hann_window == 0: window = numpy.ones((n_fft,)) else: @@ -88...
fixed istft, now matches dpwe's code
py
diff --git a/ndio/remote/neurodata.py b/ndio/remote/neurodata.py index <HASH>..<HASH> 100644 --- a/ndio/remote/neurodata.py +++ b/ndio/remote/neurodata.py @@ -754,6 +754,8 @@ class neurodata(Remote): tmpfile.write(req.content) tmpfile.seek(0) h5file = h5py.File(tmpfile...
Use urllib2 to handle ramon upload
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ with open(os.path.join(HERE, NAME, '__version__.py')) as f: exec(f.read(), {}, version_ns) setup( - name="weightedcalcs", + name=NAME, version=version_ns['__version__'], description="Pandas...
Make minor edits to setup.py
py
diff --git a/great_expectations/data_context/data_context.py b/great_expectations/data_context/data_context.py index <HASH>..<HASH> 100644 --- a/great_expectations/data_context/data_context.py +++ b/great_expectations/data_context/data_context.py @@ -497,6 +497,7 @@ class BaseDataContext(object): self, ...
just holding this addition until validation store part is resolved
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -8,8 +8,11 @@ version = '0.1.1' ext_kwargs = dict( name = "pycosat", sources = ["pycosat.c"], - define_macros = [('PYCOSAT_VERSION', '"%s"' % version)], + define_macros = [] ) +if sys.platform != 'win32': + ...
don't use version macro on Windows
py
diff --git a/ipyrad/assemble/cluster_within.py b/ipyrad/assemble/cluster_within.py index <HASH>..<HASH> 100644 --- a/ipyrad/assemble/cluster_within.py +++ b/ipyrad/assemble/cluster_within.py @@ -738,7 +738,6 @@ def align_and_parse(handle, max_internal_indels=8): ## check for too many internal indels f...
raise default cov/minsl for gbs data to <I> from <I>
py
diff --git a/sos/sosreport.py b/sos/sosreport.py index <HASH>..<HASH> 100644 --- a/sos/sosreport.py +++ b/sos/sosreport.py @@ -897,7 +897,7 @@ class SoSReport(object): self.ui_log.info(_("The following plugins are currently enabled:")) self.ui_log.info("") for (plugname, plug) in ...
Increase plugin name padding in list_plugins output openstack-* is longer than the allotted <I> spaces, increased to <I> to make things line up again.
py
diff --git a/slither/detectors/variables/uninitialized_state_variables.py b/slither/detectors/variables/uninitialized_state_variables.py index <HASH>..<HASH> 100644 --- a/slither/detectors/variables/uninitialized_state_variables.py +++ b/slither/detectors/variables/uninitialized_state_variables.py @@ -11,6 +11,7 @@ ...
Improve uninitialized-state: remove FPs due to storage variables
py
diff --git a/reana_commons/version.py b/reana_commons/version.py index <HASH>..<HASH> 100755 --- a/reana_commons/version.py +++ b/reana_commons/version.py @@ -14,4 +14,4 @@ and parsed by ``setup.py``. from __future__ import absolute_import, print_function -__version__ = "0.7.0.dev20200407" +__version__ = "0.7.0.de...
release: <I>.de<I>
py
diff --git a/spyder/plugins/application/container.py b/spyder/plugins/application/container.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/application/container.py +++ b/spyder/plugins/application/container.py @@ -166,7 +166,10 @@ class ApplicationContainer(PluginMainContainer): error_msg = self.worker_up...
Add link to download new update in dialog
py
diff --git a/pyemma/coordinates/clustering/assign.py b/pyemma/coordinates/clustering/assign.py index <HASH>..<HASH> 100644 --- a/pyemma/coordinates/clustering/assign.py +++ b/pyemma/coordinates/clustering/assign.py @@ -4,7 +4,6 @@ Created on 18.02.2015 @author: marscher ''' from pyemma.coordinates.clustering.interfa...
removed dependency to msm in coordinates.clustering.assign
py
diff --git a/test/functional/conftest.py b/test/functional/conftest.py index <HASH>..<HASH> 100644 --- a/test/functional/conftest.py +++ b/test/functional/conftest.py @@ -35,6 +35,9 @@ def scenario_setup(request): sh.molecule('destroy') def cleanup(): - sh.molecule('destroy') + try: + ...
Correct functional tests (#<I>) Some tests call destroy prior to cleanup running. Wrap cleanup to ignore errors.
py
diff --git a/jaraco/util/dictlib.py b/jaraco/util/dictlib.py index <HASH>..<HASH> 100644 --- a/jaraco/util/dictlib.py +++ b/jaraco/util/dictlib.py @@ -125,7 +125,7 @@ class RangeMap(dict): >>> r = RangeMap({0: RangeMap.undefined_value, 3: 'a', 6: 'b'}) >>> r[0] Traceback (most recent call last): - ... + ... K...
Added support for RangeMap.get, so it behaves as one would expect
py
diff --git a/core/sawtooth/cli/cluster.py b/core/sawtooth/cli/cluster.py index <HASH>..<HASH> 100644 --- a/core/sawtooth/cli/cluster.py +++ b/core/sawtooth/cli/cluster.py @@ -348,6 +348,7 @@ def do_cluster_stop(args): # Force kill any targeted nodes that are still up for node_name in find_still_up(node_name...
Fixed stats command of 'sawtooth cluster' Fixed the way in which the sawtooth cluster stats command determines the stype of node controller to use. It was looking at the state file directly instead of using the get_node_controller function.
py
diff --git a/lettuce/languages.py b/lettuce/languages.py index <HASH>..<HASH> 100644 --- a/lettuce/languages.py +++ b/lettuce/languages.py @@ -175,5 +175,15 @@ LANGUAGES = { 'scenario_outline': u'Situasjon Oversikt', 'scenario_separator': u'(Situasjon Oversikt|Situasjon)', 'background': u'(?:...
Swedish language strings They were partially based on the Norwegian translation. Norwegian (Bokmål) is very similar to Swedish.
py
diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py index <HASH>..<HASH> 100644 --- a/searx/engines/__init__.py +++ b/searx/engines/__init__.py @@ -218,4 +218,5 @@ def get_engines_stats(): def initialize_engines(engine_list): for engine_data in engine_list: engine = load_engine(engine_data...
[mod] searx doesn't crash at startup when an engine can't be loaded (see #<I>)
py
diff --git a/airflow/models/taskinstance.py b/airflow/models/taskinstance.py index <HASH>..<HASH> 100644 --- a/airflow/models/taskinstance.py +++ b/airflow/models/taskinstance.py @@ -1379,7 +1379,6 @@ class TaskInstance(Base, LoggingMixin): session=session, ) if not res: - self...
Remove not needed log line (#<I>) This got added by mistake in <URL>
py