diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/dystic/builder.py b/dystic/builder.py index <HASH>..<HASH> 100644 --- a/dystic/builder.py +++ b/dystic/builder.py @@ -58,7 +58,6 @@ class Builder: def build_index(self, folder): folder_path = os.path.abspath(os.path.join(self.ROOT_DIR_PATH, folder)) nested_dir = self.indx.index_dir(f...
fixed index generation without date. Fixes #3
py
diff --git a/tests/func/test_get_url.py b/tests/func/test_get_url.py index <HASH>..<HASH> 100644 --- a/tests/func/test_get_url.py +++ b/tests/func/test_get_url.py @@ -12,8 +12,6 @@ from dvc.remote import RemoteS3 from dvc.repo import Repo from dvc.utils import makedirs -from tests.func.test_data_cloud import get_aw...
test: get-url: don't use get_aws_url
py
diff --git a/intranet/apps/eighth/tests.py b/intranet/apps/eighth/tests.py index <HASH>..<HASH> 100644 --- a/intranet/apps/eighth/tests.py +++ b/intranet/apps/eighth/tests.py @@ -22,14 +22,6 @@ class EighthTest(IonTestCase): def setUp(self): self.user = get_user_model().objects.get_or_create(username="awi...
refactor(tests): eliminate unnecessary function
py
diff --git a/tensorflow_probability/python/distributions/distribution_properties_test.py b/tensorflow_probability/python/distributions/distribution_properties_test.py index <HASH>..<HASH> 100644 --- a/tensorflow_probability/python/distributions/distribution_properties_test.py +++ b/tensorflow_probability/python/distrib...
Permit inf samples in ParameterBijectorsTest. During Hypothesis testing in ParameterBijectorsTest, some distributions (such as `GammaGamma`) can generate samples too large to be represented in float<I>. This change updates the test to just check that samples are non-non, instead of checking that all samples are finit...
py
diff --git a/molo/core/content_import/tests/test_views.py b/molo/core/content_import/tests/test_views.py index <HASH>..<HASH> 100644 --- a/molo/core/content_import/tests/test_views.py +++ b/molo/core/content_import/tests/test_views.py @@ -59,7 +59,9 @@ class ContentImportAPITestCase( ws1, ws2 = workspaces.valu...
Test that we don't import on validation errors
py
diff --git a/fireplace/card.py b/fireplace/card.py index <HASH>..<HASH> 100644 --- a/fireplace/card.py +++ b/fireplace/card.py @@ -74,9 +74,14 @@ class BaseCard(BaseEntity): def _set_zone(self, value): old = self.zone + + if old == value: + self.logger.warning("%r attempted a same-zone move in %r", self, old)...
Replace same-zone move assertion with a noop + warning Such moves are valid, but unusual so worth noting Fixes #<I>
py
diff --git a/tests/conftest.py b/tests/conftest.py index <HASH>..<HASH> 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -7,6 +7,7 @@ import pytest import time from smbclient import ( + delete_session, mkdir, ) @@ -180,6 +181,7 @@ def smb_real(): def smb_share(request, smb_real): # Use som...
Ensure tests start with fresh connection (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ setup( 'selene.support.conditions', ], include_package_data=True, - install_requires=['selenium==3.141.0', 'webdriver_manager', 'future', 'backports.functools_lru_cache'], +...
removed backports functools lru cach from dependencies
py
diff --git a/openstack_dashboard/test/integration_tests/pages/projectpage.py b/openstack_dashboard/test/integration_tests/pages/projectpage.py index <HASH>..<HASH> 100644 --- a/openstack_dashboard/test/integration_tests/pages/projectpage.py +++ b/openstack_dashboard/test/integration_tests/pages/projectpage.py @@ -27,7 ...
Fix locator typo in go_to_accesssecurity_page Method is_element_visible expects locator that should consist of two items -> missing '*'. Partially implements blueprint: selenium-integration-testing Change-Id: I1ec<I>cf<I>fe0e1dc4b3d<I>d<I>f<I>a2c<I>adb<I>
py
diff --git a/phy/apps/template/gui.py b/phy/apps/template/gui.py index <HASH>..<HASH> 100644 --- a/phy/apps/template/gui.py +++ b/phy/apps/template/gui.py @@ -709,6 +709,9 @@ class TemplateController(object): view_count=view_count, **kwargs) gui.set_default_actions() + ...
Initialize the cluster view with the sort options saved in the GUI state
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# Copyright (c) 2012-2017 Adam Dybbroe, Martin Raspaud +# Copyright (c) 2012-2018 PyTroll community # Author(s): @@ -37,7 +37,8 @@ version = imp.load_source(...
Add unittest2 as a test-requirement setuptools installs h5py<I>rc from PyPI, which in turn requires unittest2, however, which is not in the h5py requirements!
py
diff --git a/trading_calendars/trading_calendar.py b/trading_calendars/trading_calendar.py index <HASH>..<HASH> 100644 --- a/trading_calendars/trading_calendar.py +++ b/trading_calendars/trading_calendar.py @@ -187,10 +187,18 @@ class TradingCalendar(with_metaclass(ABCMeta)): @abstractproperty def open_time...
DOC: Added some docstrings.
py
diff --git a/openquake/risklib/riskinput.py b/openquake/risklib/riskinput.py index <HASH>..<HASH> 100644 --- a/openquake/risklib/riskinput.py +++ b/openquake/risklib/riskinput.py @@ -31,6 +31,8 @@ from openquake.risklib import scientific, riskmodels U32 = numpy.uint32 F32 = numpy.float32 +gmv_eid_dt = numpy.dtype([...
Updated calc_gmfs
py
diff --git a/bibliopixel/main/main.py b/bibliopixel/main/main.py index <HASH>..<HASH> 100644 --- a/bibliopixel/main/main.py +++ b/bibliopixel/main/main.py @@ -75,7 +75,7 @@ def main(): common_flags.execute_args(args) try: - return run(args) or 0 + result = run(args) or 0 except Exception ...
Always exit from main using sys.exit()
py
diff --git a/pyinfra/facts/server.py b/pyinfra/facts/server.py index <HASH>..<HASH> 100644 --- a/pyinfra/facts/server.py +++ b/pyinfra/facts/server.py @@ -505,6 +505,7 @@ class LinuxDistribution(FactBase): 'opensuse': 'openSUSE', 'rhel': 'RedHat', 'ubuntu': 'Ubuntu', + 'debian': 'Debia...
Adding Debian to the list of prettified names in LinuxDistribution (#<I>) The LinuxDistribution fact didn't have an entry for Debian in the mapping of `name_to_pretty_name` meaning that the `name` attribute of the returned map requires additional parsing by the end user if running on Debian. This adds that mapping.
py
diff --git a/api/python/quilt3/api.py b/api/python/quilt3/api.py index <HASH>..<HASH> 100644 --- a/api/python/quilt3/api.py +++ b/api/python/quilt3/api.py @@ -25,7 +25,7 @@ def copy(src, dest): -ApiTelemetry("api.delete_package") +@ApiTelemetry("api.delete_package") def delete_package(name, registry=None, top_ha...
Fixed missing @ for decorator (#<I>)
py
diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_models.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_models.py index <HASH>..<HASH> 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_models.py +++ b/sdk/formrecognizer/azure-ai-for...
update FormField docstring (#<I>)
py
diff --git a/src/pyws/protocols/rest.py b/src/pyws/protocols/rest.py index <HASH>..<HASH> 100644 --- a/src/pyws/protocols/rest.py +++ b/src/pyws/protocols/rest.py @@ -5,6 +5,13 @@ from pyws.functions.args.types.complex import List from pyws.response import Response from pyws.utils import json +class encoder( json.J...
Add custom JSON serialize for Python datetime This adds a custom JSON serializer class which stringifies Python datetime objects in to ISO <I>. JSON does not specify a date/time format, and many parsers break trying to parse a Date() javascript object. <I> seems a resonable compromise.
py
diff --git a/conform/conform_test.py b/conform/conform_test.py index <HASH>..<HASH> 100644 --- a/conform/conform_test.py +++ b/conform/conform_test.py @@ -73,7 +73,7 @@ class ConformTest(unittest.TestCase): cmd = ["python", "flask_server.py", "conform.json"] self._test_server(1, "python-flask", cmd) ...
Add Java server back to conformance test. Passes batch test.
py
diff --git a/tests/test_modeling_tf_transfo_xl.py b/tests/test_modeling_tf_transfo_xl.py index <HASH>..<HASH> 100644 --- a/tests/test_modeling_tf_transfo_xl.py +++ b/tests/test_modeling_tf_transfo_xl.py @@ -573,4 +573,5 @@ class TFTransfoXLModelLanguageGenerationTest(unittest.TestCase): # TODO: add this test w...
add print statement to avoid code quality problem
py
diff --git a/dop/client.py b/dop/client.py index <HASH>..<HASH> 100644 --- a/dop/client.py +++ b/dop/client.py @@ -171,7 +171,7 @@ class Client(object): sizes = [Size.from_json(s) for s in sizes_json] return sizes - def all_ssh_keys(self): + def ssh_keys(self): params = {} js...
Rename all_ssh_keys() to ssh_keys() for consistency.
py
diff --git a/spatialist/tests/test_ancillary.py b/spatialist/tests/test_ancillary.py index <HASH>..<HASH> 100644 --- a/spatialist/tests/test_ancillary.py +++ b/spatialist/tests/test_ancillary.py @@ -103,4 +103,5 @@ def test_Stack(): def test_urlQueryParser(): - assert anc.urlQueryParser('www.somepage.foo', {'fo...
[test_ancillary] adjusted test of urlQueryParser arguments are in some versions ordered but not always; both options have to be considered
py
diff --git a/holoviews/plotting/plot.py b/holoviews/plotting/plot.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/plot.py +++ b/holoviews/plotting/plot.py @@ -1186,7 +1186,7 @@ class GenericElementPlot(DimensionedPlot): if self.overlaid: padding = 0 elif padding_opt is None: - ...
Remove remaining old param API usage (#<I>)
py
diff --git a/app/preparation/mzidtsv/confidencefilters.py b/app/preparation/mzidtsv/confidencefilters.py index <HASH>..<HASH> 100644 --- a/app/preparation/mzidtsv/confidencefilters.py +++ b/app/preparation/mzidtsv/confidencefilters.py @@ -1,3 +1,5 @@ def passes_filter(psm, threshold, confkey, lower_is_better): + if...
Avoid parsing NA confidence PSMs
py
diff --git a/host/scan_threshold_fast.py b/host/scan_threshold_fast.py index <HASH>..<HASH> 100644 --- a/host/scan_threshold_fast.py +++ b/host/scan_threshold_fast.py @@ -49,7 +49,7 @@ class ThresholdScanFast(ScanBase): self.record_data = False # set to true to activate data storage, so far not everything is ...
BUG: take bit length from correct register
py
diff --git a/hypercorn/protocol/h3.py b/hypercorn/protocol/h3.py index <HASH>..<HASH> 100644 --- a/hypercorn/protocol/h3.py +++ b/hypercorn/protocol/h3.py @@ -42,6 +42,8 @@ class H3Protocol: for event in self.connection.handle_event(quic_event): if isinstance(event, RequestReceived): ...
Correctly handle HTTP/3 request with no body This change ensures that hypercorn responds correctly if it receives only a HEADERS frame with the FIN bit set and no subsequent DATA frames.
py
diff --git a/sanic_jwt/endpoints.py b/sanic_jwt/endpoints.py index <HASH>..<HASH> 100644 --- a/sanic_jwt/endpoints.py +++ b/sanic_jwt/endpoints.py @@ -80,7 +80,10 @@ class RetrieveUserEndpoint(BaseEndpoint): elif hasattr(user, "to_dict"): me = await utils.call(user.to_dict) el...
added a noqa flag into endpoints after changing some part of the code following #<I> advices from @ahopkins
py
diff --git a/imagen/plots.py b/imagen/plots.py index <HASH>..<HASH> 100644 --- a/imagen/plots.py +++ b/imagen/plots.py @@ -436,7 +436,10 @@ class ProjectionGridPlot(Plot): for row in grid_shape: for view in row: w, h = self._get_dims(view) - data = view.top.data if ...
ProjectionGridPlot shows the top of the SheetStacks if supplied overlays
py
diff --git a/pyes/connection_http.py b/pyes/connection_http.py index <HASH>..<HASH> 100644 --- a/pyes/connection_http.py +++ b/pyes/connection_http.py @@ -35,7 +35,7 @@ class TimeoutHttpConnectionPool(urllib3.HTTPConnectionPool): log.info("Starting new HTTP connection (%d): %s" % (self.num_connections, self.ho...
Ensure port is coerced to an integer (fixes issues w/ eventlet)
py
diff --git a/indra/statements.py b/indra/statements.py index <HASH>..<HASH> 100644 --- a/indra/statements.py +++ b/indra/statements.py @@ -1318,11 +1318,11 @@ class Demyristoylation(RemoveModification): """Demyristoylation modification.""" pass -class Methylation(Modification): +class Methylation(AddModific...
Fix superclass of Methylation/Demethylation
py
diff --git a/absolute/templatetags/absolute.py b/absolute/templatetags/absolute.py index <HASH>..<HASH> 100644 --- a/absolute/templatetags/absolute.py +++ b/absolute/templatetags/absolute.py @@ -10,6 +10,7 @@ class AbsoluteUrlNode(URLNode): def render(self, context): asvar, self.asvar = self.asvar, None ...
Handle `as` template tag syntax also inside of a loop
py
diff --git a/cliff/formatters/tablibformatters.py b/cliff/formatters/tablibformatters.py index <HASH>..<HASH> 100644 --- a/cliff/formatters/tablibformatters.py +++ b/cliff/formatters/tablibformatters.py @@ -16,6 +16,7 @@ class TablibFormatterBase(ListFormatter, SingleFormatter): for row in data: d...
Adding new line to tablib formatters
py
diff --git a/drf_haystack/serializers.py b/drf_haystack/serializers.py index <HASH>..<HASH> 100644 --- a/drf_haystack/serializers.py +++ b/drf_haystack/serializers.py @@ -279,7 +279,7 @@ class HaystackFacetSerializer(serializers.Serializer): selected_facets = set(query_params.pop("selected_facets", [...
sort the selected_facets list in order to add testability
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ setup(name='mamba', author_email='nestor.salceda@gmail.com', url='http://nestorsalceda.github.io/mamba', license='MIT/X11', - packages=find_packages(exclude=['ez_setup', 'examples', 'te...
Exclude 'spec' package from installation. This prevents some weird behavior when running specs for another package because mamba will load its own spec package since is first in the PYTHONPATH.
py
diff --git a/setuptools/tests/test_pep517.py b/setuptools/tests/test_pep517.py index <HASH>..<HASH> 100644 --- a/setuptools/tests/test_pep517.py +++ b/setuptools/tests/test_pep517.py @@ -34,17 +34,16 @@ class BuildBackend(BuildBackendBase): return self.pool.submit( BuildBackendCaller(os.pa...
tests: pep<I>: minor cleanup
py
diff --git a/openquake/server/views.py b/openquake/server/views.py index <HASH>..<HASH> 100644 --- a/openquake/server/views.py +++ b/openquake/server/views.py @@ -563,6 +563,8 @@ def submit_job(job_ini, username, hc_id): """ jobs = engine.create_jobs( [job_ini], config.distribution.log_level, None, u...
Added comment [ci skip]
py
diff --git a/persephone/corpus.py b/persephone/corpus.py index <HASH>..<HASH> 100644 --- a/persephone/corpus.py +++ b/persephone/corpus.py @@ -198,6 +198,11 @@ class AbstractCorpus(metaclass=abc.ABCMeta): phonemes = phonemes.union(line_phonemes) return phonemes +def check_data(path): + ""...
Added empty ReadyCorpus warning.
py
diff --git a/riak/bucket.py b/riak/bucket.py index <HASH>..<HASH> 100644 --- a/riak/bucket.py +++ b/riak/bucket.py @@ -522,7 +522,13 @@ class RiakBucket(object): increment_counter = update_counter def __str__(self): - return '<RiakBucket {0!r}>'.format(self.name) + if self.bucket_type.is_defau...
Change the repr format of bucket[-type]s
py
diff --git a/emote/emote.py b/emote/emote.py index <HASH>..<HASH> 100644 --- a/emote/emote.py +++ b/emote/emote.py @@ -15,5 +15,9 @@ def main(): parser.add_argument('-p','--web_port') args = parser.parse_args() + # Print help if no cli args are specified. + if len(sys.argv) < 2: + parser.print_...
Add logic for displaying help if no args are specified.
py
diff --git a/pyocd/coresight/coresight_target.py b/pyocd/coresight/coresight_target.py index <HASH>..<HASH> 100644 --- a/pyocd/coresight/coresight_target.py +++ b/pyocd/coresight/coresight_target.py @@ -214,10 +214,19 @@ class CoreSightTarget(SoCTarget): raise exceptions.DebugError("No cores were disco...
CoreSightTarget: armour plate irq_table(). Add a few checks for None to prevent a once-seen exception.
py
diff --git a/tests/testsqlbuilder.py b/tests/testsqlbuilder.py index <HASH>..<HASH> 100644 --- a/tests/testsqlbuilder.py +++ b/tests/testsqlbuilder.py @@ -16,10 +16,16 @@ # along with Animanager. If not, see <http://www.gnu.org/licenses/>. import unittest +import doctest from animanager import sqlbuilder +d...
Include doctests in testsqlbuilder
py
diff --git a/salt/cli/salt.py b/salt/cli/salt.py index <HASH>..<HASH> 100644 --- a/salt/cli/salt.py +++ b/salt/cli/salt.py @@ -210,7 +210,7 @@ class SaltCMD(salt.utils.parsers.SaltCMDOptionParser): # returned 'ok' with a retcode of 0. # This is the final point before the 'salt' cmd returns, ...
Don't iterate through retcodes twice This use a generator comprehension to stop iteration as soon as a nonzero retcode is found.
py
diff --git a/pipeline/compressors/__init__.py b/pipeline/compressors/__init__.py index <HASH>..<HASH> 100644 --- a/pipeline/compressors/__init__.py +++ b/pipeline/compressors/__init__.py @@ -79,9 +79,9 @@ class Compressor(object): raise CompressorError("\"%s\" is not a valid variant" % variant) def ...
Redoing concatenation of compiled JSTs Minor performance improvement, avoid memory relocation every time we iterate and do a string concatenation. Instead add results to a list and join them at the end.
py
diff --git a/programs/demag_gui.py b/programs/demag_gui.py index <HASH>..<HASH> 100755 --- a/programs/demag_gui.py +++ b/programs/demag_gui.py @@ -3982,6 +3982,9 @@ class Demag_GUI(wx.Frame): # fish out all the relavent data meas_data3_0 = meas_data3_0[meas_data3_0['method_codes'].str.contains( ...
warn users who have no usable method codes in their measurements for Demag GUI
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -21,7 +21,6 @@ import six import subprocess as spr from itertools import product import warnings -import sphinx_rtd_theme # make sure, psyplot from parent directory is used sys.path.insert(0, os.path.abspa...
Removed html_theme in conf.py Try to fix issue [<I>](<URL>)
py
diff --git a/anyconfig/__init__.py b/anyconfig/__init__.py index <HASH>..<HASH> 100644 --- a/anyconfig/__init__.py +++ b/anyconfig/__init__.py @@ -35,7 +35,7 @@ the followings: a.yml:: a: 1 - b: + b: - c: 0 - c: 2 d: @@ -44,17 +44,17 @@ the followings: b.yml:: - b: + ...
removed extra white spaces warned by PEP8
py
diff --git a/tests/test_acceptance.py b/tests/test_acceptance.py index <HASH>..<HASH> 100644 --- a/tests/test_acceptance.py +++ b/tests/test_acceptance.py @@ -1744,6 +1744,14 @@ class TestAcceptance(TestCase): self.assertRender(template, context, result, helpers) def test_each_of_None(self): + te...
Add tests for `each` negated with non empty lists
py
diff --git a/plenum/server/i3pc_watchers.py b/plenum/server/i3pc_watchers.py index <HASH>..<HASH> 100644 --- a/plenum/server/i3pc_watchers.py +++ b/plenum/server/i3pc_watchers.py @@ -4,7 +4,7 @@ from plenum.server.quorums import Quorums class NetworkI3PCWatcher: def __init__(self, cb: Callable): - self.n...
INDY-<I>: Make interface of NetworkI3PCWatcher more clear
py
diff --git a/IndexedRedis/__init__.py b/IndexedRedis/__init__.py index <HASH>..<HASH> 100644 --- a/IndexedRedis/__init__.py +++ b/IndexedRedis/__init__.py @@ -549,13 +549,17 @@ class IndexedRedisModel(object): key = None for key, value in myDict.items(): - if key not in self.BINARY_FIELDS: + if key not in s...
Fix repr and bytes fields on python2 and 3
py
diff --git a/allegedb/allegedb/__init__.py b/allegedb/allegedb/__init__.py index <HASH>..<HASH> 100644 --- a/allegedb/allegedb/__init__.py +++ b/allegedb/allegedb/__init__.py @@ -195,7 +195,7 @@ class ORM(object): @tick.setter def tick(self, v): - time = self._obranch, self._otick + time = sel...
Fix caching end tick in a turn
py
diff --git a/testutils.py b/testutils.py index <HASH>..<HASH> 100644 --- a/testutils.py +++ b/testutils.py @@ -171,7 +171,7 @@ def test_web_page_content(url, PASSWORD. E.g. interesting values for USERNAME are "guest" or "admin". - Return empty list in case of problems, otherwise list of error +...
WebSearch: protect new records * New records, i.e. records just inserted and not yet assigned to a collection by webcoll, are now automatically protected, and only the superadmin or the corresponding author(s) (as indicated in the MARC) are allowed to access them. * Streaming of attached files is also authorize...
py
diff --git a/docs/source/conf.py b/docs/source/conf.py index <HASH>..<HASH> 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -129,7 +129,7 @@ if on_rtd: def __getattr__(cls, name): return Mock() - MOCK_MODULES = ['numpy'] + MOCK_MODULES = ['numpy', 'gnureadline'] sys....
Added 'gnureadline' to mocked imports.
py
diff --git a/pylatex/base_classes/section.py b/pylatex/base_classes/section.py index <HASH>..<HASH> 100644 --- a/pylatex/base_classes/section.py +++ b/pylatex/base_classes/section.py @@ -15,26 +15,28 @@ class SectionBase(Container): """A class that is the base for all section type classes. - :param title: -...
Make Numpy docstring for the section base class
py
diff --git a/tests/test_geocoding.py b/tests/test_geocoding.py index <HASH>..<HASH> 100644 --- a/tests/test_geocoding.py +++ b/tests/test_geocoding.py @@ -51,7 +51,7 @@ def test_geocode_components_without_address(): @retry def test_geocode_no_results_exception(): - components = {"administrative_area": "TX", "cou...
mark one test as xfail because it apparently won't happen again, make one api call failing
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,9 +7,9 @@ Flask-Log-Request-Id **Flask-Log-Request-Id** is an extension for `Flask`_ that can parse and handle the request-id sent by request processors like `Amazon ELB`_, `Heroku Request-ID`_ or any multi-tier infrastr...
Fix a flake8 complain in docstrings
py
diff --git a/wandb/__init__.py b/wandb/__init__.py index <HASH>..<HASH> 100644 --- a/wandb/__init__.py +++ b/wandb/__init__.py @@ -305,7 +305,7 @@ def _init_headless(run, cloud=True): try: stdout_redirector = io_wrap.FileRedirector(sys.stdout, stdout_slave) stderr_redirector = io_wrap...
Add attribute error to io mirroring (#<I>)
py
diff --git a/proton-c/bindings/python/proton/utils.py b/proton-c/bindings/python/proton/utils.py index <HASH>..<HASH> 100644 --- a/proton-c/bindings/python/proton/utils.py +++ b/proton-c/bindings/python/proton/utils.py @@ -109,12 +109,12 @@ class BlockingReceiver(BlockingLink): if credit: receiver.flow(credit)...
Changed name of method from fetch to receive
py
diff --git a/qiskit/simulators/_qasm_cpp_simulator.py b/qiskit/simulators/_qasm_cpp_simulator.py index <HASH>..<HASH> 100644 --- a/qiskit/simulators/_qasm_cpp_simulator.py +++ b/qiskit/simulators/_qasm_cpp_simulator.py @@ -72,7 +72,7 @@ class QasmCppSimulator: cmd = '"{0}" or "{1}" '.format(self._exe, ...
fixed error in calling cpp_simulator
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,7 @@ -from distutils.core import setup +try: + from setuptools import setup +except ImportError: + from distutils.core import setup import os CURRENT_DIR = os.path.dirname(__file__) @@ -16,6 +19,9 @@ setup( ...
added setuptools usage with fallback to distutils
py
diff --git a/src/super_archives/forms.py b/src/super_archives/forms.py index <HASH>..<HASH> 100644 --- a/src/super_archives/forms.py +++ b/src/super_archives/forms.py @@ -14,7 +14,6 @@ from .validators import UniqueValidator # the hack below. Feel free to improve it! :) # User fields -username_field = UserCreatio...
Removing username from forms.py
py
diff --git a/delphi.py b/delphi.py index <HASH>..<HASH> 100755 --- a/delphi.py +++ b/delphi.py @@ -8,7 +8,7 @@ from pandas import read_csv from functools import partial from argparse import ArgumentParser, ArgumentTypeError -def assemble_and_export_model(): +def create_model(args): from delphi.core import (isS...
added cli options for creating and executing models
py
diff --git a/git/repo/base.py b/git/repo/base.py index <HASH>..<HASH> 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -54,7 +54,9 @@ from .fun import ( ) from git.compat import ( text_type, - defenc + force_text, + defenc, + PY3 ) import os @@ -625,7 +627,12 @@ class Repo(object): ...
fix(encoding): in `untracked_files()` I have no idea why PY3 requires such a mess of encoding/decoding statements, but let's just be happy it works. Also let's be sure I never ever write python code again ... EVER.
py
diff --git a/web3/utils/signing.py b/web3/utils/signing.py index <HASH>..<HASH> 100644 --- a/web3/utils/signing.py +++ b/web3/utils/signing.py @@ -4,6 +4,7 @@ from web3.utils.encoding import ( ) CHAIN_ID_OFFSET = 35 +V_OFFSET = 27 # watch here for updates to signature format: https://github.com/ethereum/EIPs/i...
Return a signature v in {<I>, <I>}, not in {0, 1}
py
diff --git a/webmap/utils.py b/webmap/utils.py index <HASH>..<HASH> 100644 --- a/webmap/utils.py +++ b/webmap/utils.py @@ -2,11 +2,11 @@ import os -from django.core.files.storage import FileSystemStorage +from django.core.files.storage import DefaultStorage from django.template.defaultfilters import slugify -...
utils: use lazy 'DefaultStorage' storage class instead of fixed 'FileSystemStorage' class Enable upload media files in the different storage (e.g. AWS S3 Bucket) than in the fixed 'FileSystemStorage'.
py
diff --git a/python/ray/autoscaler/aws/config.py b/python/ray/autoscaler/aws/config.py index <HASH>..<HASH> 100644 --- a/python/ray/autoscaler/aws/config.py +++ b/python/ray/autoscaler/aws/config.py @@ -134,7 +134,7 @@ def _configure_key_pair(config): ec2 = _resource("ec2", config) # Try a few times to get ...
Increase limit for autoscaler keys (#<I>)
py
diff --git a/tests/test_grid.py b/tests/test_grid.py index <HASH>..<HASH> 100644 --- a/tests/test_grid.py +++ b/tests/test_grid.py @@ -76,6 +76,7 @@ def test_grid_append_notdict(): assert False except TypeError as e: assert str(e) == 'value must be a dict' + assert len(g) == 1 def test_...
WC-<I>: grid tests: Tweak data type assertion tests.
py
diff --git a/py3status/modules/group.py b/py3status/modules/group.py index <HASH>..<HASH> 100644 --- a/py3status/modules/group.py +++ b/py3status/modules/group.py @@ -178,15 +178,13 @@ class Py3status: """ # hide if no contents - # FIXME the module shouldn't even run if no content if...
group module no longer waits for other modules as they will have been initialised
py
diff --git a/test/integration/tests/runner.py b/test/integration/tests/runner.py index <HASH>..<HASH> 100644 --- a/test/integration/tests/runner.py +++ b/test/integration/tests/runner.py @@ -4,14 +4,27 @@ import os import autofit as af from test.integration import integration_util from test.simulation import simulat...
mock NLO actually explores a bit
py
diff --git a/openquake/calculators/base.py b/openquake/calculators/base.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/base.py +++ b/openquake/calculators/base.py @@ -78,7 +78,7 @@ PRECALC_MAP = dict( 'event_based_risk', 'ucerf_rupture'], event_based_risk=['event_based', 'event_based_...
Added ucerf_hazard to the PRECALC_MAP [skip CI] Former-commit-id: <I>bf<I>a5abc5ee2fc<I>df<I>ecff<I>afe<I>
py
diff --git a/vcs/nodes.py b/vcs/nodes.py index <HASH>..<HASH> 100644 --- a/vcs/nodes.py +++ b/vcs/nodes.py @@ -377,7 +377,10 @@ class FileNode(Node): """ Returns True if file has binary content. """ - bin = '\0' in self.changeset.get_file_content(self.path) + if self.changeset: ...
fix case for `is_binary` when changeset is empty.
py
diff --git a/tests/__init__.py b/tests/__init__.py index <HASH>..<HASH> 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -3,8 +3,10 @@ from fake_webapp import start_server, stop_server TESTS_ROOT = os.path.abspath(os.path.dirname(__file__)) + def setup(): start_server() + def teardown(): sto...
fixed pep8 issues in test/__init__.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -86,7 +86,7 @@ setup(name='montblanc', ], author='Simon Perkins', author_email='simon.perkins@gmail.com', - license='MIT', + license='GPL2', packages=[ 'montblanc', 'montblanc.api',
Correct the license in the setup.py.
py
diff --git a/cli-install.py b/cli-install.py index <HASH>..<HASH> 100755 --- a/cli-install.py +++ b/cli-install.py @@ -16,6 +16,7 @@ # import os, os.path, sys, stat, shutil, string, urllib, xml.etree.ElementTree, subprocess +from termios import tcflush, TCIOFLUSH cadmium_version = '0.0.1-SNAPSHOT' @@ -194,4 +1...
CADMIUM-<I>: Added code to consume the stdin read buffer prior to calling the cli command validate.
py
diff --git a/cocaine/tools/actions/app.py b/cocaine/tools/actions/app.py index <HASH>..<HASH> 100644 --- a/cocaine/tools/actions/app.py +++ b/cocaine/tools/actions/app.py @@ -99,7 +99,11 @@ class Remove(actions.Storage): if self.name not in apps: raise ToolsError('application "{0}" does no...
Don't throw exception if app Remove action can't remove an application source from Cocaine storage, as the application could be Docker image.
py
diff --git a/host/analysis/plotting/plotting.py b/host/analysis/plotting/plotting.py index <HASH>..<HASH> 100644 --- a/host/analysis/plotting/plotting.py +++ b/host/analysis/plotting/plotting.py @@ -258,7 +258,7 @@ def create_2d_pixel_hist(hist2d, title=None, x_axis_title=None, y_axis_title=Non z_max = 2 *...
ENH: make masked pixels white
py
diff --git a/pyghmi/ipmi/sdr.py b/pyghmi/ipmi/sdr.py index <HASH>..<HASH> 100644 --- a/pyghmi/ipmi/sdr.py +++ b/pyghmi/ipmi/sdr.py @@ -34,6 +34,7 @@ import pyghmi.constants as const import pyghmi.exceptions as exc import pyghmi.ipmi.private.constants as ipmiconst import struct +import weakref TYPE_UNKNOWN = 0 TY...
Fix cyclic references in SDR SDR and SDR entries had a cyclic reference to ipmicmd. Weaken it so that it won't cause issues (whether real or just complicating output of guppy) Change-Id: Iad9c<I>f<I>c9a<I>c4a<I>fad9b<I>d<I>ea
py
diff --git a/anyconfig/api.py b/anyconfig/api.py index <HASH>..<HASH> 100644 --- a/anyconfig/api.py +++ b/anyconfig/api.py @@ -8,6 +8,7 @@ import logging import anyconfig.backend.backends import anyconfig.backend.json_ +import anyconfig.compat import anyconfig.mergeabledict import anyconfig.parser import anyconf...
suppress logging messages out by default, may close issue #<I>
py
diff --git a/src/epubcheck/cli.py b/src/epubcheck/cli.py index <HASH>..<HASH> 100644 --- a/src/epubcheck/cli.py +++ b/src/epubcheck/cli.py @@ -97,11 +97,13 @@ def main(argv=None): print(message.short) if args.csv: - args.csv.write(messages.export('csv', delimiter=b';')) + args.csv....
Fix CSV report * Tablib CSV writer expects delimiter as string, not bytes. * File handle needs manual closing for test to pass. See <URL>
py
diff --git a/gtkmvco/gtkmvc/adapters/basic.py b/gtkmvco/gtkmvc/adapters/basic.py index <HASH>..<HASH> 100644 --- a/gtkmvco/gtkmvc/adapters/basic.py +++ b/gtkmvco/gtkmvc/adapters/basic.py @@ -200,7 +200,8 @@ class Adapter (Observer): self._prop_name = prop # registration of model: - se...
BUG FIX Fixed a regression that had been introduced by removing model from Observer. [RC]
py
diff --git a/tests/test_open_archive.py b/tests/test_open_archive.py index <HASH>..<HASH> 100644 --- a/tests/test_open_archive.py +++ b/tests/test_open_archive.py @@ -11,12 +11,12 @@ import unittest import pkg_resources import fs.archive +import fs.errors from fs.wrap import WrapReadOnly from fs.opener import e...
Fix error not being imported in tests in Python 2
py
diff --git a/dbt/config.py b/dbt/config.py index <HASH>..<HASH> 100644 --- a/dbt/config.py +++ b/dbt/config.py @@ -83,9 +83,10 @@ def get_project_resource_config_paths(project): def is_config_used(config_path, fqns): - for fqn in fqns: - if len(config_path) <= len(fqn) and fqn[:len(config_path)] == confi...
Handle case when configs supplied but no resource of that type in project
py
diff --git a/pymap/state.py b/pymap/state.py index <HASH>..<HASH> 100644 --- a/pymap/state.py +++ b/pymap/state.py @@ -101,8 +101,9 @@ class ConnectionState(object): perm_flags = mbx.permanent_flags data.append(ResponseOk(b'*', b'Flags permitted.', Permanent...
proper addition of UNSEEN reponse
py
diff --git a/AWSScout2/finding_ec2.py b/AWSScout2/finding_ec2.py index <HASH>..<HASH> 100644 --- a/AWSScout2/finding_ec2.py +++ b/AWSScout2/finding_ec2.py @@ -19,7 +19,7 @@ class Ec2Finding(Finding): protocol = self.callback_args[1][1].lower() port = self.callback_args[1][2] else: - ...
bugfix - blacklisted ports were not correctly reported
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup(name='slacker', - version='0.5.5', + version='0.5.6', packages=['slacker'], description='Slack API client', author='Oktay Sancak',
Set version number to <I>.
py
diff --git a/saltcloud/clouds/botocore_aws.py b/saltcloud/clouds/botocore_aws.py index <HASH>..<HASH> 100644 --- a/saltcloud/clouds/botocore_aws.py +++ b/saltcloud/clouds/botocore_aws.py @@ -53,7 +53,8 @@ from saltcloud.utils import namespaced_function from saltcloud.libcloudfuncs import * from saltcloud.exceptions i...
Also patch `libcloudfuncs` in the AWS botocore driver to bring `__opts__` to it's scope.
py
diff --git a/yarl/__init__.py b/yarl/__init__.py index <HASH>..<HASH> 100644 --- a/yarl/__init__.py +++ b/yarl/__init__.py @@ -13,7 +13,7 @@ from .quoting import _Quoter, _Unquoter __version__ = "1.5.0a0" -__all__ = ("URL",) +__all__ = ("URL", "cache_clear", "cache_configure", "cache_info") DEFAULT_PORTS = {"...
Add cache_clear, cache_configure, cache_info to public names
py
diff --git a/airflow/sensors/smart_sensor.py b/airflow/sensors/smart_sensor.py index <HASH>..<HASH> 100644 --- a/airflow/sensors/smart_sensor.py +++ b/airflow/sensors/smart_sensor.py @@ -446,6 +446,7 @@ class SmartSensorOperator(BaseOperator, SkipMixin): TI = TaskInstance count_marked = 0 + q...
fix(smart_sensor): Unbound variable errors (#<I>)
py
diff --git a/graphite_api/functions.py b/graphite_api/functions.py index <HASH>..<HASH> 100644 --- a/graphite_api/functions.py +++ b/graphite_api/functions.py @@ -2742,7 +2742,8 @@ def smartSummarize(requestContext, seriesList, intervalString, func='sum'): # Populate buckets for timestamp, value in ...
Fixed <I> column word-wrap for statements
py
diff --git a/lavalink/nodemanager.py b/lavalink/nodemanager.py index <HASH>..<HASH> 100644 --- a/lavalink/nodemanager.py +++ b/lavalink/nodemanager.py @@ -26,7 +26,7 @@ class NodeManager: def remove_node(self, node: Node): """ - Removes a node. This assumes the node has already been shutdown. + ...
fix bad docstring (shutdown already removes)
py
diff --git a/safe_qgis/test_dock.py b/safe_qgis/test_dock.py index <HASH>..<HASH> 100644 --- a/safe_qgis/test_dock.py +++ b/safe_qgis/test_dock.py @@ -64,6 +64,10 @@ from safe_qgis.utilities import (setRasterStyle, from safe.engine.impact_functions_for_testing import allen_fatality_model from safe.engine.impact_funct...
Updated tests to reflect categorised impact functions moved to test-only area
py
diff --git a/formats/fql.py b/formats/fql.py index <HASH>..<HASH> 100644 --- a/formats/fql.py +++ b/formats/fql.py @@ -1288,9 +1288,9 @@ class Correction(object): #AS CORRECTION/SUGGESTION expression... if debug: print("[FQL EVALUATION DEBUG] Correction.assemblesuggestions - Suggestionchildren: ", len(sugg...
[fql] attempted fix for SPLIT/MERGE SUGGESTION
py
diff --git a/salt/daemons/masterapi.py b/salt/daemons/masterapi.py index <HASH>..<HASH> 100644 --- a/salt/daemons/masterapi.py +++ b/salt/daemons/masterapi.py @@ -171,7 +171,8 @@ class RemoteFuncs(object): self.event = salt.utils.event.get_event( 'master', self.opts['sock_dir'...
Don't register for events in the masterapi
py
diff --git a/bypy/const.py b/bypy/const.py index <HASH>..<HASH> 100755 --- a/bypy/const.py +++ b/bypy/const.py @@ -12,7 +12,7 @@ import os # https://packaging.python.org/single_source_version/ __title__ = 'bypy' -__version__ = '1.5.10', +__version__ = '1.5.11' __author__ = 'Hou Tianze' __license__ = 'MIT' __desc...
Fix stupid version typo. Close #<I>
py
diff --git a/tornado/ioloop.py b/tornado/ioloop.py index <HASH>..<HASH> 100644 --- a/tornado/ioloop.py +++ b/tornado/ioloop.py @@ -722,14 +722,14 @@ class PollIOLoop(IOLoop): list_empty = not self._callbacks self._callbacks.append(functools.partial( stack_context.wrap(callback...
In add_callback, hold the lock while writing to the waker pipe. This protects against a shutdown race condition seen occasionally in the ThreadedResolver unittests. This slightly increases contention on the callback lock in multi-threaded scenarios, but the cost is limited by the fact that we only write to the pipe o...
py
diff --git a/src/rstcheck/_cli.py b/src/rstcheck/_cli.py index <HASH>..<HASH> 100644 --- a/src/rstcheck/_cli.py +++ b/src/rstcheck/_cli.py @@ -142,7 +142,7 @@ def cli( # pylint: disable=too-many-arguments,too-many-locals exit_code = _runner.print_result() except FileNotFoundError as exc: - if no...
skip coverage for check on non internal FileNotFoundError
py
diff --git a/pyfolio/perf_attrib.py b/pyfolio/perf_attrib.py index <HASH>..<HASH> 100644 --- a/pyfolio/perf_attrib.py +++ b/pyfolio/perf_attrib.py @@ -482,7 +482,7 @@ def plot_risk_exposures(exposures, ax=None): for col in exposures: ax.plot(exposures[col]) - configure_legend(ax) + configure_legen...
BUG: set change_colors=True in plot
py
diff --git a/deprecation.py b/deprecation.py index <HASH>..<HASH> 100644 --- a/deprecation.py +++ b/deprecation.py @@ -73,11 +73,11 @@ once Invenio v2.1 has been released. """ -class RemovedInInvenio22Warning(PendingDeprecationWarning): +class RemovedInInvenio23Warning(PendingDeprecationWarning): - """Mark fe...
global: post-release deprecation bump
py
diff --git a/celery_progress/backend.py b/celery_progress/backend.py index <HASH>..<HASH> 100644 --- a/celery_progress/backend.py +++ b/celery_progress/backend.py @@ -48,11 +48,12 @@ class Progress(object): def get_info(self): if self.result.ready(): + success = self.result.successful() ...
don't fail hard if task fails
py
diff --git a/grimoire_elk/raw/confluence.py b/grimoire_elk/raw/confluence.py index <HASH>..<HASH> 100644 --- a/grimoire_elk/raw/confluence.py +++ b/grimoire_elk/raw/confluence.py @@ -47,6 +47,14 @@ class Mapping(BaseMapping): "dynamic":false, "properties...
[raw] Prevent mapping of data.ancestors.extensions for confluence raw items This code prevents to index the data included in data.ancestors.extensions in order to avoid parsing_mapping_errors.
py
diff --git a/zenpy/tools/gen_classes.py b/zenpy/tools/gen_classes.py index <HASH>..<HASH> 100755 --- a/zenpy/tools/gen_classes.py +++ b/zenpy/tools/gen_classes.py @@ -36,7 +36,7 @@ class {{object.name}}(BaseObject): if attr_docs['type'] not in ('string', 'boolean', 'date', 'integer', 'array', 'object')...
Write comments in sorted order to prevent diff thrashing.
py