diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/sdk/keyvault/azure-keyvault-keys/setup.py b/sdk/keyvault/azure-keyvault-keys/setup.py index <HASH>..<HASH> 100644 --- a/sdk/keyvault/azure-keyvault-keys/setup.py +++ b/sdk/keyvault/azure-keyvault-keys/setup.py @@ -78,7 +78,7 @@ setup( "azure.keyvault", ] ), - install_requires=...
add cryptography dependency (#<I>)
py
diff --git a/fudge/__init__.py b/fudge/__init__.py index <HASH>..<HASH> 100644 --- a/fudge/__init__.py +++ b/fudge/__init__.py @@ -192,11 +192,17 @@ class Fake(object): def _guess_asn_from_file(self, frame): if frame.f_code.co_filename: if os.path.exists(frame.f_code.co_filename): - ...
slightly more efficient hunt/peck for assignment in code file
py
diff --git a/perceval/backends/bugzilla.py b/perceval/backends/bugzilla.py index <HASH>..<HASH> 100755 --- a/perceval/backends/bugzilla.py +++ b/perceval/backends/bugzilla.py @@ -415,6 +415,7 @@ class Bugzilla(Backend): def __iter__(self): self.ids = self._get_items_ids(self.url, self.start) + se...
bugzilla fixed case where there are no new items.
py
diff --git a/tests/test_api.py b/tests/test_api.py index <HASH>..<HASH> 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -7,13 +7,15 @@ from mygeotab import api class TestAttributes(unittest.TestCase): - def test_is_local(self): + def test_should_verify_ssl(self): my_api = api.API('test@exa...
Fix unit test with reversal of SSL verification logic
py
diff --git a/pendulum/duration.py b/pendulum/duration.py index <HASH>..<HASH> 100644 --- a/pendulum/duration.py +++ b/pendulum/duration.py @@ -24,8 +24,9 @@ def _divide_and_round(a, b): # in Objects/longobject.c. q, r = divmod(a, b) - if isinstance(q, float): - q = int(q) + # The output of divm...
Removed unnecessary "if isinstance" check for speed.
py
diff --git a/shinken/objects/config.py b/shinken/objects/config.py index <HASH>..<HASH> 100644 --- a/shinken/objects/config.py +++ b/shinken/objects/config.py @@ -591,15 +591,8 @@ class Config(Item): if elts != []: prop = elts[0] value = ' '.join(e...
Fix: revert <I>b<I>: configuration properties value is string only
py
diff --git a/pykwalify/compat.py b/pykwalify/compat.py index <HASH>..<HASH> 100644 --- a/pykwalify/compat.py +++ b/pykwalify/compat.py @@ -2,22 +2,9 @@ # python stdlib import sys -import logging - -log = logging.getLogger(__name__) - - -try: - from ruamel import yaml -except ImportError: - try: - imp...
Update compat.py to now only work with ruamel.yaml
py
diff --git a/tests/dublincore.py b/tests/dublincore.py index <HASH>..<HASH> 100644 --- a/tests/dublincore.py +++ b/tests/dublincore.py @@ -1,3 +1,4 @@ +import json import unittest from rdflib import ConjunctiveGraph @@ -9,16 +10,6 @@ from pyuntl.untldoc import (untldict2py, untlpy2dcpy, ...
Remove long json import block from dublincore tests
py
diff --git a/tests/support/helpers.py b/tests/support/helpers.py index <HASH>..<HASH> 100644 --- a/tests/support/helpers.py +++ b/tests/support/helpers.py @@ -33,6 +33,7 @@ import time import tornado.ioloop import tornado.web import types +import unittest # Import 3rd-party libs import psutil # pylint: disable=...
Do not run setup/teardown for tests that need to be skipped
py
diff --git a/auth.py b/auth.py index <HASH>..<HASH> 100644 --- a/auth.py +++ b/auth.py @@ -1,9 +1,8 @@ from urlparse import urlparse from HTMLParser import HTMLParser -from config import * import requests -def authenticate(url): +def authenticate(url, username, password): ''' queries an asset behind CMU's Web...
Modified API to not use arbitrary config
py
diff --git a/ceph_deploy/connection.py b/ceph_deploy/connection.py index <HASH>..<HASH> 100644 --- a/ceph_deploy/connection.py +++ b/ceph_deploy/connection.py @@ -2,11 +2,13 @@ import getpass from ceph_deploy.lib.remoto import Connection -def get_connection(hostname, logger, threads=5): +def get_connection(hostnam...
get_connection now will construct the username and host for you
py
diff --git a/saltcloud/cloud.py b/saltcloud/cloud.py index <HASH>..<HASH> 100644 --- a/saltcloud/cloud.py +++ b/saltcloud/cloud.py @@ -1169,7 +1169,14 @@ def run_paralel_map_providers_query(data): cloud.clouds[data['fun']]() ) } - except Exception: + except Exception as err:...
Let us know what's going on when an exception happens on parallel querying nodes.
py
diff --git a/bin/rez-egg-install_.py b/bin/rez-egg-install_.py index <HASH>..<HASH> 100644 --- a/bin/rez-egg-install_.py +++ b/bin/rez-egg-install_.py @@ -425,6 +425,7 @@ for egg_name, v in eggs.iteritems(): distr, d = v egg_path = distr.location egg_dir = os.path.basename(egg_path) + egg_path = os.pa...
Fixed an issue where egg files were not copied to the variant directory. The code copying the extracted package contents was using an incorrect path.
py
diff --git a/synapse/lib/lmdbslab.py b/synapse/lib/lmdbslab.py index <HASH>..<HASH> 100644 --- a/synapse/lib/lmdbslab.py +++ b/synapse/lib/lmdbslab.py @@ -101,6 +101,10 @@ class Slab(s_base.Base): [scan.bump() for scan in self.scans] + # Readonly or self.xact has already been closed + if self...
in lmdbslab - only comimit the xact if it exits.
py
diff --git a/describe/mock/new_mock.py b/describe/mock/new_mock.py index <HASH>..<HASH> 100644 --- a/describe/mock/new_mock.py +++ b/describe/mock/new_mock.py @@ -265,10 +265,10 @@ class OrderingGroup(object): return True class Mock(mixins.InplaceOperatorsMixin, mixins.OperatorsMixin, mixins.ReverseOper...
Switched back to Mock() class, MagicMock is significantly slower than Mock, but added optional arg of the class to use.
py
diff --git a/tests/conftest.py b/tests/conftest.py index <HASH>..<HASH> 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -241,7 +241,7 @@ def skip_if_not_marked_with_system(selected_systems, item): def skip_system_test(item): for marker in item.iter_markers(name="system"): pytest.skip("The test ...
Fix typo in error message - systems -> system (#<I>)
py
diff --git a/indra/db/client.py b/indra/db/client.py index <HASH>..<HASH> 100644 --- a/indra/db/client.py +++ b/indra/db/client.py @@ -803,7 +803,11 @@ def get_statement_jsons_from_papers(paper_refs, db=None, **kwargs): for paper in paper_refs: q = db.session.query(db.ReadingRefLink.rid.label('rid')) ...
Fix issue with trid lookup in paper queries.
py
diff --git a/eth/db/account.py b/eth/db/account.py index <HASH>..<HASH> 100644 --- a/eth/db/account.py +++ b/eth/db/account.py @@ -531,6 +531,7 @@ class AccountDB(BaseAccountDB): self._apply_account_diff_without_proof(diff, memory_trie) self._journalbatch.clear() + self._trie_cache.reset_...
Reset trie cache to pass state tests OOGStateCopyContainingDeletedContract fails without this change
py
diff --git a/test/smoketest.py b/test/smoketest.py index <HASH>..<HASH> 100644 --- a/test/smoketest.py +++ b/test/smoketest.py @@ -39,7 +39,16 @@ class RunTC(TestCase): try: Run(args, reporter=reporter) except SystemExit, ex: - self.assertEqual(ex.code, code) + ...
[test] display output when some test fail to ease debugging on CI platform
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -33,8 +33,4 @@ setup( include_package_data = True, zip_safe = False, install_requires = open(os.path.join(CURRENT_DIR, 'requirements.txt')).read().strip(), - entry_points = """ - [console_scripts] - fat...
remove the entry point (was only useful for testing, no longer needed)
py
diff --git a/airflow/configuration.py b/airflow/configuration.py index <HASH>..<HASH> 100644 --- a/airflow/configuration.py +++ b/airflow/configuration.py @@ -41,10 +41,11 @@ from airflow.utils.module_loading import import_string log = logging.getLogger(__name__) # show Airflow's deprecation warnings -warnings.filt...
Make it possible to silence warnings from Airflow (#<I>) If we blindly set the warnings filter, it is _impossible_ to silence these warnings. This is the approach suggested in <URL>
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -27,7 +27,8 @@ locale.setlocale(locale.LC_ALL, 'en_US') # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -ext...
Enable doctest and intersphinx extensions
py
diff --git a/src/plotypus/lightcurve.py b/src/plotypus/lightcurve.py index <HASH>..<HASH> 100644 --- a/src/plotypus/lightcurve.py +++ b/src/plotypus/lightcurve.py @@ -63,7 +63,7 @@ def get_lightcurve(data, period=None, coarse_precision=0.001, fine_precision=0.0000001, sigma=10, s...
Turned phase coverage off by default
py
diff --git a/mbuild/compound.py b/mbuild/compound.py index <HASH>..<HASH> 100755 --- a/mbuild/compound.py +++ b/mbuild/compound.py @@ -307,8 +307,9 @@ class Compound(object): objs_to_remove -= intersection for removed_part in intersection: - if self.root.bond_graph.has_node(removed_part):...
Added check for bond graph existance before trying to remove atom
py
diff --git a/seleniumbase/console_scripts/sb_install.py b/seleniumbase/console_scripts/sb_install.py index <HASH>..<HASH> 100755 --- a/seleniumbase/console_scripts/sb_install.py +++ b/seleniumbase/console_scripts/sb_install.py @@ -45,7 +45,7 @@ DRIVER_DIR = os.path.dirname(os.path.realpath(drivers.__file__)) LOCAL_PAT...
Update default EdgeDriver version if can't detect latest
py
diff --git a/lib/svtplay_dl/__init__.py b/lib/svtplay_dl/__init__.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/__init__.py +++ b/lib/svtplay_dl/__init__.py @@ -220,7 +220,7 @@ def get_one_media(stream, options): except UIException as e: if options.verbose: raise e - ...
get_one_media: .message does not work with python3
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ def get_version(): .format(VERSION_FILE)) install_requires = [ - 'enum34==1.1.6', "numpy==1.13.1", "annotypes==0.17", "cothread==2.14"] + "enum34==1.1.6", "numpy==1.16.4", "a...
Update dependencies to newer released versions
py
diff --git a/stanza/utils/datasets/constituency/convert_it_turin.py b/stanza/utils/datasets/constituency/convert_it_turin.py index <HASH>..<HASH> 100644 --- a/stanza/utils/datasets/constituency/convert_it_turin.py +++ b/stanza/utils/datasets/constituency/convert_it_turin.py @@ -226,6 +226,13 @@ def load_trees(filename,...
Also, eliminate some single word trees from it_turin
py
diff --git a/tests/test_api.py b/tests/test_api.py index <HASH>..<HASH> 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -292,14 +292,14 @@ def test_predict_ranks(): # check error is raised when train and test have interactions in common with pytest.raises(ValueError): - _ = model.predict_ra...
Removing temp variable because of flake8 compaints.
py
diff --git a/src/scrapy_redis/spiders.py b/src/scrapy_redis/spiders.py index <HASH>..<HASH> 100644 --- a/src/scrapy_redis/spiders.py +++ b/src/scrapy_redis/spiders.py @@ -1,8 +1,8 @@ import json +from collections.abc import Iterable from scrapy import signals, FormRequest from scrapy.exceptions import DontCloseSpide...
Update collections library before deprecated (#<I>) * Update collections library before deprecated * Modify code with smallest change
py
diff --git a/jptsmeta.py b/jptsmeta.py index <HASH>..<HASH> 100644 --- a/jptsmeta.py +++ b/jptsmeta.py @@ -247,7 +247,7 @@ class JPTSMeta(object): pub_dates = {} for k in self.article_meta.getElementsByTagName('pub-date'): try: - s = k.getElementsByTagName('season')[0] + ...
Added getGrantNum() functionality in the version <I> derived class
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -14,6 +14,14 @@ import recommonmark setup( name='recommonmark', version=recommonmark.__version__, + description=('A docutils-compatibility bridge to CommonMark, ' + 'enabling you to write CommonMa...
Add more metadata to setup.py for PyPI Add a description, URL and license to `setup.py` so [the recommonmark package page on PyPI](<URL>) will include that information.
py
diff --git a/insights/client/config.py b/insights/client/config.py index <HASH>..<HASH> 100644 --- a/insights/client/config.py +++ b/insights/client/config.py @@ -438,6 +438,10 @@ class InsightsConfig(object): else: return v + # put this warning here so the error msg only prints o...
warn if HTTP_PROXY is set (#<I>)
py
diff --git a/yahoo_oauth/oauth.py b/yahoo_oauth/oauth.py index <HASH>..<HASH> 100644 --- a/yahoo_oauth/oauth.py +++ b/yahoo_oauth/oauth.py @@ -105,7 +105,7 @@ class BaseOAuth(object): logger.debug("REQUEST_TOKEN = {0}\n REQUEST_TOKEN_SECRET = {1}\n".format(request_token, request_token_secret)) ...
oauth2: do not pass client secrect when requesting code
py
diff --git a/dispatch/modules/content/embeds.py b/dispatch/modules/content/embeds.py index <HASH>..<HASH> 100644 --- a/dispatch/modules/content/embeds.py +++ b/dispatch/modules/content/embeds.py @@ -78,7 +78,7 @@ class CodeController(AbstractController): try: return tag(tags[data['mode']], data['c...
Fixed video embeds YouTube iframe is still not centred in wrapper.
py
diff --git a/dominoes/players.py b/dominoes/players.py index <HASH>..<HASH> 100644 --- a/dominoes/players.py +++ b/dominoes/players.py @@ -118,7 +118,8 @@ class omniscient: :param callable player: player used to sort moves to be explored in the underlying call to alphabeta search. ...
indicating default sorting player for the omniscient player
py
diff --git a/setuptools/tests/test_wheel.py b/setuptools/tests/test_wheel.py index <HASH>..<HASH> 100644 --- a/setuptools/tests/test_wheel.py +++ b/setuptools/tests/test_wheel.py @@ -618,7 +618,6 @@ def test_wheel_is_compatible(monkeypatch): 'onnxruntime-0.1.2-cp36-cp36m-manylinux1_x86_64.whl').is_compatible()...
Run the test on Windows, but don't check the file mode
py
diff --git a/test/common_hdfs_tests.py b/test/common_hdfs_tests.py index <HASH>..<HASH> 100644 --- a/test/common_hdfs_tests.py +++ b/test/common_hdfs_tests.py @@ -222,9 +222,10 @@ class TestCommon(unittest.TestCase): return path def append(self): + replication = 1 # see https://issues.apache.org/jira/brow...
fixed append test for small clusters
py
diff --git a/pysoa/common/errors.py b/pysoa/common/errors.py index <HASH>..<HASH> 100644 --- a/pysoa/common/errors.py +++ b/pysoa/common/errors.py @@ -46,7 +46,7 @@ class Error(object): message = attr.ib() # type: six.text_type field = attr.ib(default=None) # type: Optional[six.text_type] traceback = a...
[PATCH] Fix incorrect type annotation on Error.variables
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( version='0.0.1', author='Antagonist B.V.', author_email='info@antagonist.nl', - packages=['openprovider'], + packages=['openprovider', 'openprovider.modules', 'openprovider.tests'], ...
Add all packages to setup.py
py
diff --git a/machines/forms.py b/machines/forms.py index <HASH>..<HASH> 100644 --- a/machines/forms.py +++ b/machines/forms.py @@ -20,9 +20,10 @@ class UserAccountForm(forms.Form): def clean(self): data = self.cleaned_data - if not data['machine_category'] in data['default_project'].machine_categ...
Make sure default_project is specified before checking if person is in it
py
diff --git a/pyFMG/fortimgr.py b/pyFMG/fortimgr.py index <HASH>..<HASH> 100644 --- a/pyFMG/fortimgr.py +++ b/pyFMG/fortimgr.py @@ -373,6 +373,23 @@ class FortiManager(object): else: return result["status"]["code"], result + def _freeform_response(self, resp): + try: + respon...
Added function to process freefrom data and updated post to call it when freefrom was true
py
diff --git a/conanfile.py b/conanfile.py index <HASH>..<HASH> 100644 --- a/conanfile.py +++ b/conanfile.py @@ -11,7 +11,7 @@ class JoyStreamNode(ConanFile): "ProtocolStateMachine/0.3.0@joystream/stable", "ProtocolSession/0.3.0@joystream/stable", "Extension/0.3.0@joystr...
Boost - joystream recipe to download source from download.joystream.co
py
diff --git a/src/umbra/components/factory/scriptEditor/scriptEditor.py b/src/umbra/components/factory/scriptEditor/scriptEditor.py index <HASH>..<HASH> 100644 --- a/src/umbra/components/factory/scriptEditor/scriptEditor.py +++ b/src/umbra/components/factory/scriptEditor/scriptEditor.py @@ -3092,6 +3092,14 @@ class Scri...
Fix encoding related exception whenever sourcing a file with encoding declaration in "scriptEditor" component. Closes #<I>.
py
diff --git a/src/_pytest/pytester.py b/src/_pytest/pytester.py index <HASH>..<HASH> 100644 --- a/src/_pytest/pytester.py +++ b/src/_pytest/pytester.py @@ -608,14 +608,14 @@ class Testdir: """ self.tmpdir.chdir() - def _makefile(self, ext, args, kwargs, encoding="utf-8"): - items = list(kwa...
pytester: clarify _makefile signature (#<I>)
py
diff --git a/aaf2/cfb.py b/aaf2/cfb.py index <HASH>..<HASH> 100644 --- a/aaf2/cfb.py +++ b/aaf2/cfb.py @@ -1155,10 +1155,6 @@ class CompoundFileBinary(object): if not isinstance(sector_type, int): continue - # some files write zero difat instead of FREESECT - if sid...
revert workaround, sector 1 can be fat table.
py
diff --git a/scapy/config.py b/scapy/config.py index <HASH>..<HASH> 100644 --- a/scapy/config.py +++ b/scapy/config.py @@ -380,7 +380,7 @@ extensions_paths: path or list of paths where extensions are to be looked for load_layers = [ "l2", "inet", "dhcp", "dns", "dot11", "gprs", "hsrp", "inet6", "ir", "isakmp", "l2...
Load `can` layer by default with other layers
py
diff --git a/pynYNAB/Client.py b/pynYNAB/Client.py index <HASH>..<HASH> 100644 --- a/pynYNAB/Client.py +++ b/pynYNAB/Client.py @@ -3,6 +3,7 @@ from functools import wraps from budget import Payee, Transaction from catalog import BudgetVersion from connection import NYnabConnectionError +from pynYNAB.utils import chu...
by default, chunk when adding multiple transactions
py
diff --git a/twython/api.py b/twython/api.py index <HASH>..<HASH> 100644 --- a/twython/api.py +++ b/twython/api.py @@ -597,7 +597,7 @@ class Twython(EndpointsMixin, object): text = text.replace(tweet['text'][start:end], url_html % (entity['url'], shown_url))...
Fix issue where is_quote_status is true but there is no quoted_status
py
diff --git a/pyknow/engine.py b/pyknow/engine.py index <HASH>..<HASH> 100644 --- a/pyknow/engine.py +++ b/pyknow/engine.py @@ -97,7 +97,8 @@ class KnowledgeEngine: This updates the agenda """ - self._facts.retract(idx) + idx = self._facts.retract(idx) + self.agenda.remov...
In retract and retract_matching methods, we now remove the matching fact's activations from agenda
py
diff --git a/tests/unit/models/physics/HydraulicConductanceTest.py b/tests/unit/models/physics/HydraulicConductanceTest.py index <HASH>..<HASH> 100644 --- a/tests/unit/models/physics/HydraulicConductanceTest.py +++ b/tests/unit/models/physics/HydraulicConductanceTest.py @@ -46,7 +46,12 @@ class HydraulicConductanceTest...
removing bug from test valvatne model.
py
diff --git a/librosa/util/utils.py b/librosa/util/utils.py index <HASH>..<HASH> 100644 --- a/librosa/util/utils.py +++ b/librosa/util/utils.py @@ -12,6 +12,8 @@ from numpy.lib.stride_tricks import as_strided from .. import cache from .exceptions import ParameterError +from numba import jit + # Constrain STFT block...
added @jit to match_events
py
diff --git a/imgaug/augmenters/meta.py b/imgaug/augmenters/meta.py index <HASH>..<HASH> 100644 --- a/imgaug/augmenters/meta.py +++ b/imgaug/augmenters/meta.py @@ -1594,7 +1594,7 @@ class Augmenter(object): # pylint: disable=locally-disabled, unused-variable, l "returned UnnormalizedBatch instance, e.g...
Fix bad check whether image/images was provided in augment()
py
diff --git a/nhlib/site.py b/nhlib/site.py index <HASH>..<HASH> 100644 --- a/nhlib/site.py +++ b/nhlib/site.py @@ -278,8 +278,8 @@ class SiteCollection(object): num_values = data.shape[1] result = numpy.empty((total_sites, num_values)) result.fill(placeholder) - for i in xrange(num_val...
site: Replaced numpy.put statement with an equivalent array assignment. numpy.put was showing up a profiling report and was found to be a major bottleneck, consuming 1-2ms per call. For a test computation on 1 source with a SiteCollection containing <I>k sites, <I>% of the time was spent on `put` calls. The first pr...
py
diff --git a/pyrogram/__init__.py b/pyrogram/__init__.py index <HASH>..<HASH> 100644 --- a/pyrogram/__init__.py +++ b/pyrogram/__init__.py @@ -16,7 +16,7 @@ # You should have received a copy of the GNU Lesser General Public License # along with Pyrogram. If not, see <http://www.gnu.org/licenses/>. -__version__ =...
Update Pyrogram to <I>
py
diff --git a/salt/crypt.py b/salt/crypt.py index <HASH>..<HASH> 100644 --- a/salt/crypt.py +++ b/salt/crypt.py @@ -717,7 +717,9 @@ class SAuth(object): else: log.error( 'The Salt Master has cached the public key for this ' - 'node, th...
Provide a hint for new users on minions with pending keys.
py
diff --git a/compliance_checker/suite.py b/compliance_checker/suite.py index <HASH>..<HASH> 100644 --- a/compliance_checker/suite.py +++ b/compliance_checker/suite.py @@ -24,7 +24,6 @@ from datetime import datetime import requests import textwrap import codecs -from tempfile import gettempdir # Ensure output is e...
Fix `process_doc` method Py3 incompatibilities Fixed an issue with `process_doc` function which would attempt to read a unicode encoded string with a unicode declaration inside an XML document, causing `lxml.etree.fromstring` to fail in Python 3.
py
diff --git a/tests/test_users.py b/tests/test_users.py index <HASH>..<HASH> 100644 --- a/tests/test_users.py +++ b/tests/test_users.py @@ -47,7 +47,7 @@ class UsersTest(unittest.TestCase): def test_delete_user(self): user = self.resource.create('test@example.com', '3107810860', 1) - status = self...
Renaming test variable to make it more clear
py
diff --git a/viewtestcase/testcase.py b/viewtestcase/testcase.py index <HASH>..<HASH> 100644 --- a/viewtestcase/testcase.py +++ b/viewtestcase/testcase.py @@ -16,10 +16,9 @@ class RequestFactory(django_test.RequestFactory): super(RequestFactory, self).__init__(**defaults) self.middleware_classes = mid...
Changed arg "name" to "method".
py
diff --git a/parsl/executors/high_throughput/executor.py b/parsl/executors/high_throughput/executor.py index <HASH>..<HASH> 100644 --- a/parsl/executors/high_throughput/executor.py +++ b/parsl/executors/high_throughput/executor.py @@ -1,6 +1,3 @@ -"""HighThroughputExecutor builds on the Swift/T EMEWS architecture to us...
Remove outdated HTEX module docstring (#<I>) There is more description in the docstring for HighThroughputExecutor, which is also available via parsl.HighThroughputExecutor.
py
diff --git a/doc/cp2k_plugin/try_cp2k.py b/doc/cp2k_plugin/try_cp2k.py index <HASH>..<HASH> 100644 --- a/doc/cp2k_plugin/try_cp2k.py +++ b/doc/cp2k_plugin/try_cp2k.py @@ -8,10 +8,10 @@ from aiida.orm import DataFactory # Put the name of the computer you want to run -computer = Computer.get('theos') +computer = Com...
adapted try_cp2k
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -429,8 +429,11 @@ ext_data = dict( 'sources': ['pandas/src/datetime/np_datetime.c', 'pandas/src/datetime/np_datetime_strings.c']}, algos={'pyxfile': 'algos', + 'pxdfiles': ['s...
BLD: update setup.py for skiplist dep
py
diff --git a/ggplot/facets/locate.py b/ggplot/facets/locate.py index <HASH>..<HASH> 100644 --- a/ggplot/facets/locate.py +++ b/ggplot/facets/locate.py @@ -93,9 +93,14 @@ def locate_grid(data, panels, rows=None, cols=None, margins=False): keys_y = list(panels.loc[:, vars].itertuples(index=False)) data[...
Fix panel order in for facet_grid Make sure the panel order in the data to be plotted is consistent with the order in panels dataframe.
py
diff --git a/maildir-deduplicate.py b/maildir-deduplicate.py index <HASH>..<HASH> 100755 --- a/maildir-deduplicate.py +++ b/maildir-deduplicate.py @@ -227,10 +227,14 @@ def get_canonical_header_value(header, value): # it will receive a different prefix for each, but this shouldn't be # treated as a real diffe...
deal with cross-posting Trim "Re: [foo]", "Re: Re: [foo] [bar]" and similar from the Subject: header, since cross-posting to multiple lists can result in different Subject: header prefixes.
py
diff --git a/push_notifications/admin.py b/push_notifications/admin.py index <HASH>..<HASH> 100644 --- a/push_notifications/admin.py +++ b/push_notifications/admin.py @@ -13,6 +13,7 @@ class DeviceAdmin(admin.ModelAdmin): list_display = ("__str__", "device_id", "user", "active", "date_created") list_filter = ("acti...
Use raw_id_field for user in DeviceAdmin object.
py
diff --git a/mongo_connector/doc_managers/solr_doc_manager.py b/mongo_connector/doc_managers/solr_doc_manager.py index <HASH>..<HASH> 100755 --- a/mongo_connector/doc_managers/solr_doc_manager.py +++ b/mongo_connector/doc_managers/solr_doc_manager.py @@ -131,7 +131,7 @@ class DocManager(DocManagerBase): # _id ...
Use u function to make _id unicode in Solr DocManager.
py
diff --git a/impala/udf.py b/impala/udf.py index <HASH>..<HASH> 100644 --- a/impala/udf.py +++ b/impala/udf.py @@ -47,11 +47,11 @@ try: hdfs_client.create_file(hdfs_path.lstrip('/'), ir, overwrite=overwrite) # register the function in Impala - impala_name = '%s(%s)' % (udf_name, ','.join(arg_types)) + impala_name...
Fixed overwrite impl in ship_udf
py
diff --git a/Legobot/Connectors/Slack.py b/Legobot/Connectors/Slack.py index <HASH>..<HASH> 100644 --- a/Legobot/Connectors/Slack.py +++ b/Legobot/Connectors/Slack.py @@ -241,7 +241,6 @@ class Slack(Lego): @staticmethod def get_name(): '''Called by built-in !help lego - Returns name of Lego....
Convert lots of things to static methods
py
diff --git a/tests/test_misc_phrasal_adjectives.py b/tests/test_misc_phrasal_adjectives.py index <HASH>..<HASH> 100644 --- a/tests/test_misc_phrasal_adjectives.py +++ b/tests/test_misc_phrasal_adjectives.py @@ -25,3 +25,5 @@ class TestCheck(Check): """Basic smoke test for misc.phrasal_adjectives.check_ly.""" ...
Coverage of issue <I> (#<I>)
py
diff --git a/openfisca_web_api/controllers/reforms.py b/openfisca_web_api/controllers/reforms.py index <HASH>..<HASH> 100644 --- a/openfisca_web_api/controllers/reforms.py +++ b/openfisca_web_api/controllers/reforms.py @@ -72,10 +72,10 @@ def api1_reforms(req): context = data['context'], metho...
Fix case no reforms are declared in INI file
py
diff --git a/mpop/scene.py b/mpop/scene.py index <HASH>..<HASH> 100644 --- a/mpop/scene.py +++ b/mpop/scene.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# Copyright (c) 2010, 2011, 2012, 2013. +# Copyright (c) 2010, 2011, 2012, 2013, 2014. # Author(s): @@ -563,9 +563,9 @@ class SatelliteIns...
Solve the multiple channel resolution with automatic resampling radius.
py
diff --git a/datajoint/base_relation.py b/datajoint/base_relation.py index <HASH>..<HASH> 100644 --- a/datajoint/base_relation.py +++ b/datajoint/base_relation.py @@ -495,19 +495,11 @@ class Log(BaseRelation): Instances are callable. Calls log the time and identifying information along with the event. """ ...
removed copy constructor from dj.Log -- it's unnecessary.
py
diff --git a/sos/sosreport.py b/sos/sosreport.py index <HASH>..<HASH> 100644 --- a/sos/sosreport.py +++ b/sos/sosreport.py @@ -1560,17 +1560,14 @@ class SoSReport(object): self.global_plugin_options[key] = value def _cleanup(self): - try: - # archive and tempfile cleanup may fail due t...
[sosreport] remove exception handling from SoSReport.cleanup() It's pointless catching exceptions only to re-raise them.
py
diff --git a/chainlet/dataflow.py b/chainlet/dataflow.py index <HASH>..<HASH> 100644 --- a/chainlet/dataflow.py +++ b/chainlet/dataflow.py @@ -195,6 +195,10 @@ class Either(chainlink.ChainLink): def __init__(self, *choices, **kwargs): self.choices = tuple(choices) self.default = kwargs.pop('defau...
either mimics fork/chain of its choices
py
diff --git a/src/jukeboxcore/filesys.py b/src/jukeboxcore/filesys.py index <HASH>..<HASH> 100644 --- a/src/jukeboxcore/filesys.py +++ b/src/jukeboxcore/filesys.py @@ -169,6 +169,16 @@ class TaskFileInfo(FileInfo): ver = 1 return TaskFileInfo(task=task, version=ver, releasetype=releasetype, typ=typ...
added is latest check to taskfile info
py
diff --git a/anyconfig/tests/mergeabledict.py b/anyconfig/tests/mergeabledict.py index <HASH>..<HASH> 100644 --- a/anyconfig/tests/mergeabledict.py +++ b/anyconfig/tests/mergeabledict.py @@ -10,6 +10,12 @@ import unittest class Test_MergeableDict(unittest.TestCase): + def test_create(self): + a = dict(na...
added a test case for anyconfig.mergeabledict.MergeableDict.create
py
diff --git a/aioimaplib/tests/imapserver.py b/aioimaplib/tests/imapserver.py index <HASH>..<HASH> 100644 --- a/aioimaplib/tests/imapserver.py +++ b/aioimaplib/tests/imapserver.py @@ -549,7 +549,7 @@ class MockImapServer(object): other_users = list(map(lambda c: c.user_login, self._connections)) ...
[refactor] add a list's length in the context of an imapserver's error message
py
diff --git a/securitycenter/v2/modules/repository.py b/securitycenter/v2/modules/repository.py index <HASH>..<HASH> 100644 --- a/securitycenter/v2/modules/repository.py +++ b/securitycenter/v2/modules/repository.py @@ -64,15 +64,8 @@ class Repository(Module): :return: return repositories available in database ...
deleted incorrect implementation for getRemoteRepos
py
diff --git a/python/chronos/test/bigdl/chronos/data/test_tsdataset.py b/python/chronos/test/bigdl/chronos/data/test_tsdataset.py index <HASH>..<HASH> 100644 --- a/python/chronos/test/bigdl/chronos/data/test_tsdataset.py +++ b/python/chronos/test/bigdl/chronos/data/test_tsdataset.py @@ -274,11 +274,9 @@ class TestTSData...
rm rolling feature in test_tsdataset_unscale_numpy to shrink the test (#<I>)
py
diff --git a/aadbook/contacts.py b/aadbook/contacts.py index <HASH>..<HASH> 100644 --- a/aadbook/contacts.py +++ b/aadbook/contacts.py @@ -96,6 +96,9 @@ class Contacts(object): def parse_contact(account): return Contact(account['displayName'], account['mail']) + if 'value' not in response...
Throw a custom exception when unable to parse contacts response
py
diff --git a/salt/minion.py b/salt/minion.py index <HASH>..<HASH> 100644 --- a/salt/minion.py +++ b/salt/minion.py @@ -557,24 +557,16 @@ class MultiMinion(MinionBase): # run scheduled jobs if you have them loop_interval = self.process_schedule(minion['minion'], loop_interval) - ...
Fix multi-master event handling bug We had a situation wherein minion generators would race to the sub socket and only a single minion would actually act on the package. The result was that events such as refresh_pillar would cause one (or sometimes both) minions to stop responding. This changes the behaviour so that ...
py
diff --git a/src/plone/app/mosaic/widget.py b/src/plone/app/mosaic/widget.py index <HASH>..<HASH> 100644 --- a/src/plone/app/mosaic/widget.py +++ b/src/plone/app/mosaic/widget.py @@ -37,6 +37,8 @@ LAYOUT_BEHAVIORS = { 'plone.layoutaware', } +FORMS_BLACKLIST = ['babel_edit'] + class ILayoutWidget(ITextAreaWid...
Fix issue where Mosaic Editor was activated on babel edit view
py
diff --git a/salt/modules/zypper.py b/salt/modules/zypper.py index <HASH>..<HASH> 100644 --- a/salt/modules/zypper.py +++ b/salt/modules/zypper.py @@ -1322,7 +1322,10 @@ def list_products(all=False, refresh=False): ret = list() OEM_PATH = "/var/lib/suseRegister/OEM" - cmd = _zypper('-x', 'products') + ...
Prevent metadata download when listing installed products
py
diff --git a/fs/test.py b/fs/test.py index <HASH>..<HASH> 100644 --- a/fs/test.py +++ b/fs/test.py @@ -543,14 +543,13 @@ class FSTestCases(object): self.assertEqual(self.fs.listdir("."), []) self.assertEqual(self.fs.listdir("./"), []) - # Make a few files + # Make a few objects ...
minor improvements and cleanup at fs.test.test_listdir (#<I>)
py
diff --git a/riabclipper.py b/riabclipper.py index <HASH>..<HASH> 100644 --- a/riabclipper.py +++ b/riabclipper.py @@ -22,7 +22,7 @@ from qgis.core import (QgsCoordinateTransform, QgsCoordinateReferenceSystem, QgsVectorFileWriter) from PyQt4 import QtCore from riabexceptions import InvalidPara...
Use temp filename for clip layers and test if the input layer is raster or vector
py
diff --git a/tests/test_mturk.py b/tests/test_mturk.py index <HASH>..<HASH> 100644 --- a/tests/test_mturk.py +++ b/tests/test_mturk.py @@ -849,16 +849,6 @@ class TestMTurkServiceWithFakeConnection(object): with pytest.raises(MTurkServiceException): with_mock.check_credentials() - def test_che...
Remove nonsensical test that is failing
py
diff --git a/style50/style50.py b/style50/style50.py index <HASH>..<HASH> 100644 --- a/style50/style50.py +++ b/style50/style50.py @@ -178,13 +178,6 @@ class Style50(object): raise except KeyError: raise Error("unknown file type \"{}\", skipping...".format(file)) - - # Ensu...
No longer need to add newline to code
py
diff --git a/pysat/_instrument.py b/pysat/_instrument.py index <HASH>..<HASH> 100644 --- a/pysat/_instrument.py +++ b/pysat/_instrument.py @@ -1907,8 +1907,8 @@ class Instrument(object): # use info in coltype to get real datatype of object # isinstance isn't working here becaus...
reverted isinstance() to coltype == type()
py
diff --git a/inflect/__init__.py b/inflect/__init__.py index <HASH>..<HASH> 100644 --- a/inflect/__init__.py +++ b/inflect/__init__.py @@ -2466,7 +2466,9 @@ class engine: >>> compare('egg', '') # #157: # doctest: +SKIP Traceback (most recent call last): ... - ValueError: empty words n...
Expected error is a pydantic ValidationError
py
diff --git a/perceval/_version.py b/perceval/_version.py index <HASH>..<HASH> 100644 --- a/perceval/_version.py +++ b/perceval/_version.py @@ -1,2 +1,2 @@ # Versions compliant with PEP 440 https://www.python.org/dev/peps/pep-0440 -__version__ = "0.9.2" +__version__ = "0.9.3"
Update version number to <I>
py
diff --git a/O365/connection.py b/O365/connection.py index <HASH>..<HASH> 100644 --- a/O365/connection.py +++ b/O365/connection.py @@ -16,6 +16,7 @@ from requests.packages.urllib3.util.retry import Retry from requests_oauthlib import OAuth2Session from stringcase import pascalcase, camelcase, snakecase from tzlocal ...
To fix errors such as #<I>, we now default to UTC when no timezone can be found.
py
diff --git a/build_docs.py b/build_docs.py index <HASH>..<HASH> 100644 --- a/build_docs.py +++ b/build_docs.py @@ -22,6 +22,11 @@ def build_docs(location="doc-source", target=None, library="icetea_lib"): except CalledProcessError as error: print("Documentation build failed. Return code: {}".format(error.r...
Added a clearer error print in case when build_docs.py is run but sphinx is missing. (#<I>) (#<I>)
py
diff --git a/harpoon/imager.py b/harpoon/imager.py index <HASH>..<HASH> 100644 --- a/harpoon/imager.py +++ b/harpoon/imager.py @@ -11,6 +11,7 @@ from contextlib import contextmanager import dockerpty import humanize import fnmatch +import hashlib import tarfile import logging import socket @@ -793,7 +794,7 @@ cla...
Consistent naming for inline ADD files I thought the cache kept getting invalidated because of the mtime or ctime or something of these inlined files being added to the context. Turns out it's just because I kept giving them a unique name everytime! So now I use an md5 hash so they change when the content changes, a...
py
diff --git a/ceph_deploy/hosts/common.py b/ceph_deploy/hosts/common.py index <HASH>..<HASH> 100644 --- a/ceph_deploy/hosts/common.py +++ b/ceph_deploy/hosts/common.py @@ -146,18 +146,6 @@ def mon_add(distro, args, monitor_keyring): ] + user_args ) - # add it - remoto.process.run( -...
[RM-<I>] No need to call "ceph mon add" ceph mon add is not needed - merely starting the ceph-mon daemon will cause it to join the cluster when all the other steps have been done properly. Calling "ceph mon add" as we were doing leads to hangs when moving from 1 to 2 monitors. Fixes: #<I>
py
diff --git a/ocrmypdf/ghostscript.py b/ocrmypdf/ghostscript.py index <HASH>..<HASH> 100644 --- a/ocrmypdf/ghostscript.py +++ b/ocrmypdf/ghostscript.py @@ -45,6 +45,7 @@ def generate_pdfa(pdf_pages, output_file, threads=1): "-sDEVICE=pdfwrite", "-sColorConversionStrategy=/RGB", "-s...
Set JPEG output quality to <I> for better transcoding
py
diff --git a/lettuce/django/management/commands/harvest.py b/lettuce/django/management/commands/harvest.py index <HASH>..<HASH> 100644 --- a/lettuce/django/management/commands/harvest.py +++ b/lettuce/django/management/commands/harvest.py @@ -104,8 +104,6 @@ class Command(BaseCommand): def handle(self, *args, **op...
fix for settings.DEBUG being reset when test flag is used
py
diff --git a/py3status/modules/i3pystatus.py b/py3status/modules/i3pystatus.py index <HASH>..<HASH> 100644 --- a/py3status/modules/i3pystatus.py +++ b/py3status/modules/i3pystatus.py @@ -194,6 +194,9 @@ class ClickTimer: self.timer.start() +STRING_NOT_SUPPORTED = "python2 not supported" +STRING_NOT_INS...
i3pystatus: check python first before telling python2 users to install (#<I>)
py
diff --git a/juju/bundle.py b/juju/bundle.py index <HASH>..<HASH> 100644 --- a/juju/bundle.py +++ b/juju/bundle.py @@ -257,6 +257,7 @@ class BundleHandler: self.overlay_removed_charms.add(charm_name) self.bundle = await self._validate_bundle(self.bundle) + if is_local: ...
Avoid setting series to kubernetes for sidecar charms in k8s bundles Fixes #<I>
py
diff --git a/clearly/command_line.py b/clearly/command_line.py index <HASH>..<HASH> 100644 --- a/clearly/command_line.py +++ b/clearly/command_line.py @@ -28,5 +28,5 @@ def server(**kwargs): BROKER: The broker being used by celery, like "amqp://localhost". """ - start_server(**{k: v for k, v in kwarg...
fix(server) CLI kwargs compatibility with Python 2 Python2 doesn't support other keyword arguments after **kwargs
py
diff --git a/coaster/utils/misc.py b/coaster/utils/misc.py index <HASH>..<HASH> 100644 --- a/coaster/utils/misc.py +++ b/coaster/utils/misc.py @@ -669,7 +669,6 @@ def get_email_domain(emailaddr): 'example.com' >>> get_email_domain('foobar') >>> get_email_domain('foo@bar@baz') - 'bar' >>> get_emai...
parseaddr is no longer fooled by an invalid address
py