diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/tests/test_case.py b/tests/test_case.py index <HASH>..<HASH> 100644 --- a/tests/test_case.py +++ b/tests/test_case.py @@ -294,3 +294,18 @@ class TestIslands(unittest.TestCase): self.assertEqual(ss.exit_code, 0, "Exit code is not 0.") self.assertEqual(len(ss.Bus.islands), 2) + + +class T...
Added test case for PVD1.
py
diff --git a/devtools/bin/create-test-list.py b/devtools/bin/create-test-list.py index <HASH>..<HASH> 100755 --- a/devtools/bin/create-test-list.py +++ b/devtools/bin/create-test-list.py @@ -57,6 +57,9 @@ def examine_non_python_rules(line): def determine_files_to_test(product, commit): results = [] + build_a...
Adds more global test files (#<I>) Problem: Some files that require testing of the entire source tree were missing Analysis: This patch adds those missing files Tests:
py
diff --git a/pyontutils/htmlfun.py b/pyontutils/htmlfun.py index <HASH>..<HASH> 100644 --- a/pyontutils/htmlfun.py +++ b/pyontutils/htmlfun.py @@ -5,10 +5,13 @@ and working with the rest of the unholy trinity. """ def tag(_tag, n=False): nl = '\n' if n else '' - s = f'<{_tag}>{nl}' + s = f'<{_tag}{{extra}...
htmlfun tag tagwrap kwargs go in as <tag k="v">
py
diff --git a/sphinx-jsonschema/wide_format.py b/sphinx-jsonschema/wide_format.py index <HASH>..<HASH> 100644 --- a/sphinx-jsonschema/wide_format.py +++ b/sphinx-jsonschema/wide_format.py @@ -16,6 +16,15 @@ from docutils import statemachine from docutils import nodes from docutils.nodes import fully_normalize_name as ...
Fix for unicode present in schema
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -534,5 +534,16 @@ setup ( include_dirs = [ "pycbc/ligolw" ] ) ], + classifiers=[ + 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming La...
add some basic metadata in setup.py (#<I>)
py
diff --git a/protector/tests/rules_test/test_too_many_datapoints.py b/protector/tests/rules_test/test_too_many_datapoints.py index <HASH>..<HASH> 100644 --- a/protector/tests/rules_test/test_too_many_datapoints.py +++ b/protector/tests/rules_test/test_too_many_datapoints.py @@ -34,7 +34,7 @@ class TestTooManyDatapoints...
Make unit test for limit statement a bit more extreme
py
diff --git a/tests/test_exercises.py b/tests/test_exercises.py index <HASH>..<HASH> 100644 --- a/tests/test_exercises.py +++ b/tests/test_exercises.py @@ -2,6 +2,7 @@ import json import os import re +import sys import uuid import pytest @@ -767,6 +768,10 @@ def test_exercise_base64_image_file( ), "wrong fil...
Mark test that fails only on github actions windows-latest as expected to fail.
py
diff --git a/tools/harness-thci/OpenThread_BR.py b/tools/harness-thci/OpenThread_BR.py index <HASH>..<HASH> 100644 --- a/tools/harness-thci/OpenThread_BR.py +++ b/tools/harness-thci/OpenThread_BR.py @@ -60,6 +60,8 @@ logging.getLogger('paramiko').setLevel(logging.WARNING) class SSHHandle(object): + # Unit: seco...
[thci] add SSH keepalive (#<I>) Add SSH keepalive to avoid disconnection after idle for a long time.
py
diff --git a/interfaces/python/infomap.py b/interfaces/python/infomap.py index <HASH>..<HASH> 100644 --- a/interfaces/python/infomap.py +++ b/interfaces/python/infomap.py @@ -118,7 +118,7 @@ def _construct_args( DeprecationWarning, ) - if not include_self_links: + if include_self_links is ...
fix(python): no_self_links was always set unless include_self_links=True
py
diff --git a/onnxmltools/convert/lightgbm/operator_converters/LightGbm.py b/onnxmltools/convert/lightgbm/operator_converters/LightGbm.py index <HASH>..<HASH> 100644 --- a/onnxmltools/convert/lightgbm/operator_converters/LightGbm.py +++ b/onnxmltools/convert/lightgbm/operator_converters/LightGbm.py @@ -25,6 +25,10 @@ de...
Fixes #<I>, branch == for lightgbm converter (#<I>)
py
diff --git a/thinc/neural/tests/unit/Affine/test_init.py b/thinc/neural/tests/unit/Affine/test_init.py index <HASH>..<HASH> 100644 --- a/thinc/neural/tests/unit/Affine/test_init.py +++ b/thinc/neural/tests/unit/Affine/test_init.py @@ -11,7 +11,6 @@ from ....ops import NumpyOps @pytest.fixture def model_with_no_args...
Update init tests for affine
py
diff --git a/uiautomatorlibrary/__init__.py b/uiautomatorlibrary/__init__.py index <HASH>..<HASH> 100644 --- a/uiautomatorlibrary/__init__.py +++ b/uiautomatorlibrary/__init__.py @@ -1,4 +1,4 @@ -from Mobile import Mobile +from uiautomatorlibrary.Mobile import Mobile class uiautomatorlibrary(Mobile): """ @@ -65...
Adding "uiautomatorlibrary." to the Mobile import
py
diff --git a/tornado/httpclient.py b/tornado/httpclient.py index <HASH>..<HASH> 100644 --- a/tornado/httpclient.py +++ b/tornado/httpclient.py @@ -226,7 +226,7 @@ class AsyncHTTPClient(object): for fd in exceptable: fds[fd] = fds.get(fd, 0) | 0x8 | 0x10 - if max(fds.iterkeys()) > 900: + ...
Don't try to compute max() of an empty sequence (which throws an exception)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -16,9 +16,7 @@ setup( license='LPGL, see LICENSE file.', install_requires=[ 'Django', - ], - dependency_links=[ - "git+https://github.com/lino-framework/appypod.git@dbf123584cd9c5ef4a35e8efb9f48...
Remove deprecated dependency_links from setup.py
py
diff --git a/fabric_bolt/utils/runner.py b/fabric_bolt/utils/runner.py index <HASH>..<HASH> 100644 --- a/fabric_bolt/utils/runner.py +++ b/fabric_bolt/utils/runner.py @@ -13,6 +13,9 @@ from fabric_bolt.core.settings.base import * CONF_ROOT = os.path.dirname(__file__) +# See https://docs.djangoproject.com/en/1.8/re...
Generate ALLOWED_HOSTS in settings file. Otherwise novice users are forced to investigate issue.
py
diff --git a/aws_google_auth/tests/test_amazon.py b/aws_google_auth/tests/test_amazon.py index <HASH>..<HASH> 100644 --- a/aws_google_auth/tests/test_amazon.py +++ b/aws_google_auth/tests/test_amazon.py @@ -79,4 +79,4 @@ class TestAmazon(unittest.TestCase): with self.assertRaises(ExpectedGoogleException) as ex...
Added missing whitespace to keep flake happy.
py
diff --git a/hypermap/aggregator/tasks.py b/hypermap/aggregator/tasks.py index <HASH>..<HASH> 100644 --- a/hypermap/aggregator/tasks.py +++ b/hypermap/aggregator/tasks.py @@ -236,6 +236,10 @@ def index_layer(self, layer, use_cache=False): cache needs memcached to be available. """ + if layer.was_deleted:...
Not indexing a layer if was_deleted is true
py
diff --git a/keyring/backends/fail.py b/keyring/backends/fail.py index <HASH>..<HASH> 100644 --- a/keyring/backends/fail.py +++ b/keyring/backends/fail.py @@ -9,12 +9,12 @@ class Keyring(KeyringBackend): >>> kr.get_password('svc', 'user') Traceback (most recent call last): ... - RuntimeError: ... + ...
Correct error message to better communicate what is missing. Ref #<I>.
py
diff --git a/keanu-python/tests/test_vertex.py b/keanu-python/tests/test_vertex.py index <HASH>..<HASH> 100644 --- a/keanu-python/tests/test_vertex.py +++ b/keanu-python/tests/test_vertex.py @@ -105,7 +105,7 @@ def test_construct_vertex_with_java_vertex(jvm_view): def test_java_list_to_python_list(jvm_view): gaus...
pass a larger list to to_python_list test
py
diff --git a/GPy/inference/latent_function_inference/expectation_propagation.py b/GPy/inference/latent_function_inference/expectation_propagation.py index <HASH>..<HASH> 100644 --- a/GPy/inference/latent_function_inference/expectation_propagation.py +++ b/GPy/inference/latent_function_inference/expectation_propagation....
Fixed an assertion, it was checking the dimensionality of the input data matrix, rather than that of the labels.
py
diff --git a/zounds/__init__.py b/zounds/__init__.py index <HASH>..<HASH> 100644 --- a/zounds/__init__.py +++ b/zounds/__init__.py @@ -15,7 +15,7 @@ from node.learn import KMeans, BinaryRbm, LinearRbm, Learned from node.onset import \ MeasureOfTransience, MovingAveragePeakPicker, SparseTimestampDecoder, \ - ...
Add onset detection processing node to top-level exports
py
diff --git a/discord/state.py b/discord/state.py index <HASH>..<HASH> 100644 --- a/discord/state.py +++ b/discord/state.py @@ -709,14 +709,16 @@ class ConnectionState: def parse_thread_create(self, data): guild_id = int(data['guild_id']) - guild = self._get_guild(guild_id) + guild: Optiona...
Don't dispatch thread_join on extraneous THREAD_CREATE dispatches
py
diff --git a/dashboard/dashboard/__init__.py b/dashboard/dashboard/__init__.py index <HASH>..<HASH> 100644 --- a/dashboard/dashboard/__init__.py +++ b/dashboard/dashboard/__init__.py @@ -57,13 +57,9 @@ THIRD_PARTY_LIBRARIES = [ 'werkzeug', ] -THIRD_PARTY_LIBRARIES_PY2 = THIRD_PARTY_LIBRARIES + [ - 'httplib2/...
[pinpoint] fix import issue on httplib2 The import paths have been wrong. The httplib2 in google-cloud-sdk is loaded when running python2, but it does not support python 3. Fixes those paths to make it work. Bug: chromium:<I> Change-Id: I<I>b<I>aa<I>e2ee<I>cb2a2e<I>e<I>cb7 Reviewed-on: <URL>
py
diff --git a/src/html5lib/html5parser.py b/src/html5lib/html5parser.py index <HASH>..<HASH> 100644 --- a/src/html5lib/html5parser.py +++ b/src/html5lib/html5parser.py @@ -409,6 +409,7 @@ class InitialPhase(Phase): "-//netscape comm. corp.//dtd strict html//en", "-//o'reilly and associates//d...
Add quirks handling, update Python doctype list, move some tests to <I>.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -19,6 +19,7 @@ setup(name='ramp', install_requires=[ 'numpy', 'pandas', + 'scikit-learn', ] )
Added explicit scikit-learn dependency
py
diff --git a/twosheds/twosheds.py b/twosheds/twosheds.py index <HASH>..<HASH> 100644 --- a/twosheds/twosheds.py +++ b/twosheds/twosheds.py @@ -61,11 +61,6 @@ class Shell(object): def eval(self, line): if line: exit_code = call(line, shell=True) - if exit_code != 0: - ...
Separate Python from Shell `Shell` should just be a regular shell so as to not commit users to any particular customizations.
py
diff --git a/s3backup/main.py b/s3backup/main.py index <HASH>..<HASH> 100644 --- a/s3backup/main.py +++ b/s3backup/main.py @@ -71,7 +71,7 @@ def perform_sync(s3_client, local_client): local_client.put_object(key, fp, s3_timestamp) fp.close() else: - logger.info('No need to ...
Log with debug mode if an item does *not* need updating
py
diff --git a/optoanalysis/optoanalysis/optoanalysis.py b/optoanalysis/optoanalysis/optoanalysis.py index <HASH>..<HASH> 100644 --- a/optoanalysis/optoanalysis/optoanalysis.py +++ b/optoanalysis/optoanalysis/optoanalysis.py @@ -966,7 +966,7 @@ class DataObject(): VelArray : ndarray Array of velocit...
fixed bug introduced in recent change to order of return parameters from filter_data
py
diff --git a/scriptworker/utils.py b/scriptworker/utils.py index <HASH>..<HASH> 100644 --- a/scriptworker/utils.py +++ b/scriptworker/utils.py @@ -30,8 +30,6 @@ async def request(context, url, timeout=60, method='get', good=(200, ), raise ScriptWorkerException(message) if return_type == 't...
content() doesn't work for resp
py
diff --git a/peppy/utils.py b/peppy/utils.py index <HASH>..<HASH> 100644 --- a/peppy/utils.py +++ b/peppy/utils.py @@ -18,7 +18,7 @@ else: from collections.abc import Sized import warnings import yaml -from .const import GENERIC_PROTOCOL_KEY, SAMPLE_INDEPENDENT_PROJECT_SECTIONS +from .const import SAMPLE_INDEPEN...
route the project data fetch through the deprecated properties; fix #<I>
py
diff --git a/bibliopixel/drivers/driver_base.py b/bibliopixel/drivers/driver_base.py index <HASH>..<HASH> 100644 --- a/bibliopixel/drivers/driver_base.py +++ b/bibliopixel/drivers/driver_base.py @@ -57,7 +57,17 @@ class DriverBase(object): raise ValueError('Needed %d colors but found %d' % ( ...
Add a start() method to DriverBase (fix #<I>)
py
diff --git a/tests/test_mirror.py b/tests/test_mirror.py index <HASH>..<HASH> 100644 --- a/tests/test_mirror.py +++ b/tests/test_mirror.py @@ -138,7 +138,7 @@ def test_percent_to_ipynb(nb_file): assert_conversion_same_as_mirror(nb_file, '.ipynb', 'script_to_ipynb', format_name='percent') -@pytest.mark.parametr...
Frozen cells are not supported in sphinx format #<I>
py
diff --git a/salt/crypt.py b/salt/crypt.py index <HASH>..<HASH> 100644 --- a/salt/crypt.py +++ b/salt/crypt.py @@ -439,19 +439,21 @@ class Auth(object): payload['pub_sig']): log.info('Received signed and verified master pubkey ' ...
fix spacing, do not auth on failed verification
py
diff --git a/openstack_dashboard/dashboards/project/dashboard.py b/openstack_dashboard/dashboards/project/dashboard.py index <HASH>..<HASH> 100644 --- a/openstack_dashboard/dashboards/project/dashboard.py +++ b/openstack_dashboard/dashboards/project/dashboard.py @@ -45,22 +45,22 @@ class ObjectStorePanels(horizon.Panel...
Sort the panel's variable in the dashboards.py In the dashboards.py some PanelGroup's variable use(slug,name.panels), and some use(name, slug, panels), we can unit it, used as(slug,name.panels). Change-Id: If<I>fcb<I>c<I>c<I>db8bceb4ed<I>c<I> Closes-bug:#<I>
py
diff --git a/salt/master.py b/salt/master.py index <HASH>..<HASH> 100644 --- a/salt/master.py +++ b/salt/master.py @@ -746,7 +746,8 @@ class AESFuncs(object): self.opts, load['grains'], load['id'], - load['env']) + load['env'], + ...
Add ext explicit hook into AESFunc on master
py
diff --git a/dpath/path.py b/dpath/path.py index <HASH>..<HASH> 100644 --- a/dpath/path.py +++ b/dpath/path.py @@ -77,6 +77,8 @@ def paths(obj, dirs=True, leaves=True, path=[], skip=False, separator="/"): """ if isinstance(obj, dict): for (k, v) in obj.iteritems(): + if not k: + ...
handling case where key is empty in search
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -6,6 +6,8 @@ Setup script for rinohtype import sys +import pkg_resources + from setuptools import setup, find_packages from setuptools.command.build_py import build_py @@ -49,7 +51,7 @@ def get_version(): ...
This might fix the build on Read the Docs
py
diff --git a/holoviews/plotting/element.py b/holoviews/plotting/element.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/element.py +++ b/holoviews/plotting/element.py @@ -475,7 +475,10 @@ class OverlayPlot(ElementPlot): indexes = ((0, 2), (1, 3)) layer = overlay.data.get(key, False...
Fixes to NdOverlay plot normalization
py
diff --git a/cassandra/cqlengine/columns.py b/cassandra/cqlengine/columns.py index <HASH>..<HASH> 100644 --- a/cassandra/cqlengine/columns.py +++ b/cassandra/cqlengine/columns.py @@ -309,13 +309,6 @@ class Blob(Column): Bytes = Blob -class Ascii(Column): - """ - Stores a US-ASCII character string - """ - ...
Subclass Ascii column from Text to add min_length and max_length parameters.
py
diff --git a/datahandling/datahandling/datahandling.py b/datahandling/datahandling/datahandling.py index <HASH>..<HASH> 100644 --- a/datahandling/datahandling/datahandling.py +++ b/datahandling/datahandling/datahandling.py @@ -261,7 +261,7 @@ class DataObject(): _plt.show() return fig, ax - d...
changed name of calc_area_under_PSD
py
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index <HASH>..<HASH> 100755 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -1596,6 +1596,10 @@ class Cmd(cmd.Cmd): tokens, _ = self.tokens_for_completion(line, begidx, endidx) return completer.complete_command(tokens, text, line, begidx, endidx) + def get_names(...
Modified get_names() method to allow dynamically adding do_* commands to instances at runtime
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: setup( name='pyvesync', - version='1.3.1', + version='1.4.0', description='pyvesync is a library to manage Etekcity\ ...
version bump -> <I>
py
diff --git a/performanceplatform/collector/main.py b/performanceplatform/collector/main.py index <HASH>..<HASH> 100644 --- a/performanceplatform/collector/main.py +++ b/performanceplatform/collector/main.py @@ -8,7 +8,7 @@ from performanceplatform.collector.logging_setup import set_up_logging def logging_for_entrypo...
Fix logging output directory When main.py was moved into performanceplatform.collector the logging path was not changed. This should expect and output to a directory in the root of the project called log.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ from os.path import join, isfile setup_args = dict( name='biofrills', - version='0.3.1', + version='0.3.1+', description=__doc__, author='Eric Talevich', author_email='eric.talevich@gm...
enabled installation of scripts; bumped version to <I>+ (dev)
py
diff --git a/pysat/_instrument.py b/pysat/_instrument.py index <HASH>..<HASH> 100644 --- a/pysat/_instrument.py +++ b/pysat/_instrument.py @@ -2226,7 +2226,7 @@ class Instrument(object): # number of items, yeah num = len(self.index) # write out the datetime index - out_...
ENH: Switched to unlimited time dimension for pysat files
py
diff --git a/bokeh/__init__.py b/bokeh/__init__.py index <HASH>..<HASH> 100644 --- a/bokeh/__init__.py +++ b/bokeh/__init__.py @@ -24,4 +24,8 @@ del logconfig # module as transitive imports from . import sampledata; sampledata -from .util.testing import runtests as test; test + + +def test(args=None): + from .ut...
Wrap testing import so testing libraries aren't required. Without this, the move of a bunch of utils into util.testing combined with with the reference to util.testing in bokeh.__init__ meant that users would need a bunch of testing dependencies installed just to run bokeh!
py
diff --git a/oidc_provider/models.py b/oidc_provider/models.py index <HASH>..<HASH> 100644 --- a/oidc_provider/models.py +++ b/oidc_provider/models.py @@ -116,6 +116,7 @@ class Client(models.Model): return (response_type.value for response_type in self.response_types.all()) def response_type_description...
document response_type_descriptions needs to be a list
py
diff --git a/src/transformers/modeling_tf_utils.py b/src/transformers/modeling_tf_utils.py index <HASH>..<HASH> 100644 --- a/src/transformers/modeling_tf_utils.py +++ b/src/transformers/modeling_tf_utils.py @@ -220,9 +220,15 @@ class TFSequenceClassificationLoss: return loss_fn(labels, logits) -class TFMul...
TF multiple choice loss fix (#<I>) Fix issues with `TFMultipleChoiceLoss` if the choices dimension is None when `build()` is called.
py
diff --git a/cartoview/settings.py b/cartoview/settings.py index <HASH>..<HASH> 100644 --- a/cartoview/settings.py +++ b/cartoview/settings.py @@ -3,7 +3,7 @@ import os from distutils.util import strtobool from geonode.settings import * - +import ast import cartoview INSTALLED_APPS += ("cartoview", @@ -86,9 +86...
add allowed_hosts to settiings
py
diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py index <HASH>..<HASH> 100755 --- a/tools/run_tests/run_tests.py +++ b/tools/run_tests/run_tests.py @@ -340,7 +340,8 @@ class CLanguage(object): if self.platform == 'windows': # don't build tools on windows just yet return ['build...
Fix run_tests for C++
py
diff --git a/ca/django_ca/management/commands/sign_cert.py b/ca/django_ca/management/commands/sign_cert.py index <HASH>..<HASH> 100644 --- a/ca/django_ca/management/commands/sign_cert.py +++ b/ca/django_ca/management/commands/sign_cert.py @@ -125,9 +125,9 @@ the default values, options like --key-usage still override t...
fix iteration, check for CN
py
diff --git a/kafka/coordinator/assignors/roundrobin.py b/kafka/coordinator/assignors/roundrobin.py index <HASH>..<HASH> 100644 --- a/kafka/coordinator/assignors/roundrobin.py +++ b/kafka/coordinator/assignors/roundrobin.py @@ -29,6 +29,21 @@ class RoundRobinPartitionAssignor(AbstractPartitionAssignor): The assignm...
Add comment for round robin partitioner with different subscriptions
py
diff --git a/phonopy/structure/atoms.py b/phonopy/structure/atoms.py index <HASH>..<HASH> 100644 --- a/phonopy/structure/atoms.py +++ b/phonopy/structure/atoms.py @@ -95,6 +95,9 @@ class _Atoms(object): self._check() + def __len__(self): + return len(self.numbers) + def set_cell(self, cell):...
Made cell.get_number_of_atoms() be written as len(cell).
py
diff --git a/pyimzml/ImzMLParser.py b/pyimzml/ImzMLParser.py index <HASH>..<HASH> 100755 --- a/pyimzml/ImzMLParser.py +++ b/pyimzml/ImzMLParser.py @@ -164,7 +164,7 @@ class ImzMLParser: z = scan_elem.find('%scvParam[@accession="IMS:1000052"]' % self.sl).attrib["value"] self.coordinates.append(...
always return (x,y,z) coordinates, and set z to 0 if not specific in the file
py
diff --git a/get-poetry.py b/get-poetry.py index <HASH>..<HASH> 100644 --- a/get-poetry.py +++ b/get-poetry.py @@ -128,7 +128,7 @@ class Installer: metadata['releases'].keys(), key=lambda r: ( '.'.join(self.VERSION_REGEX.match(r).groups()[:3]), - 0 if self.VERSI...
Fix installation script for Python <=<I>
py
diff --git a/amaascore/market_data/curve.py b/amaascore/market_data/curve.py index <HASH>..<HASH> 100644 --- a/amaascore/market_data/curve.py +++ b/amaascore/market_data/curve.py @@ -80,10 +80,13 @@ class Curve(AMaaSModel): @additional.setter def additional(self, additional): if additional is not Non...
Fixed a missing data type check in curve
py
diff --git a/tcex/tcex_session.py b/tcex/tcex_session.py index <HASH>..<HASH> 100644 --- a/tcex/tcex_session.py +++ b/tcex/tcex_session.py @@ -24,8 +24,8 @@ class TcExSession(Session): elif self.args.api_access_id is not None and self.args.api_secret_key is not None: self.auth = self._hmac_auth() ...
uncommenting something i commented out for testing purposes
py
diff --git a/models/fallahi_eval/assemble_models.py b/models/fallahi_eval/assemble_models.py index <HASH>..<HASH> 100644 --- a/models/fallahi_eval/assemble_models.py +++ b/models/fallahi_eval/assemble_models.py @@ -22,6 +22,16 @@ def run_reading(pmid_fname): # Download the file and save +def get_stmt_sif(stmts...
Add a function to get Statement SIFs
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -26,9 +26,7 @@ class BinaryDistribution(Distribution): def is_pure(self): return False -if "bdist_wheel" in sys.argv: - if not glob.glob(path.join('pymmd', 'files', 'libMultiMarkdown*')): - build_mmd(...
Modify packaging to not force MMD inclusion.
py
diff --git a/openquake/server/tests/views_test.py b/openquake/server/tests/views_test.py index <HASH>..<HASH> 100644 --- a/openquake/server/tests/views_test.py +++ b/openquake/server/tests/views_test.py @@ -259,9 +259,6 @@ class EngineServerTestCase(unittest.TestCase): # check the filename of the hmaps ...
From Django <I> have changed attributes from lowercase to capitalize and _headers become only headers
py
diff --git a/pyt/github_search.py b/pyt/github_search.py index <HASH>..<HASH> 100644 --- a/pyt/github_search.py +++ b/pyt/github_search.py @@ -197,7 +197,7 @@ def get_dates(start_date, end_date=date.today(), interval=7): def scan_github(search_string, analysis_type, analyse_repo_func, csv_path): analyse_repo = ...
search needs to start around when flask was introduced
py
diff --git a/testing/python/setup_only.py b/testing/python/setup_only.py index <HASH>..<HASH> 100644 --- a/testing/python/setup_only.py +++ b/testing/python/setup_only.py @@ -284,7 +284,13 @@ def test_setup_show_with_KeyboardInterrupt_in_test(testdir): result = testdir.runpytest("--setup-show", p, no_reraise_ctrlc...
add more indications to the result of the tests
py
diff --git a/src/pymoca/backends/casadi/generator.py b/src/pymoca/backends/casadi/generator.py index <HASH>..<HASH> 100644 --- a/src/pymoca/backends/casadi/generator.py +++ b/src/pymoca/backends/casadi/generator.py @@ -120,7 +120,7 @@ class Generator(TreeListener): for a in ast.Symbol.ATTRIBUTES: ...
Fix check on scalar via modelica shape The _modelica_shape field now contains a different value if the MX represents a scalar.
py
diff --git a/pandas/tests/test_groupby.py b/pandas/tests/test_groupby.py index <HASH>..<HASH> 100644 --- a/pandas/tests/test_groupby.py +++ b/pandas/tests/test_groupby.py @@ -1770,6 +1770,32 @@ class TestGroupBy(unittest.TestCase): 'D' : [foo, bar]}) assert_frame_equal(re...
TST: verify consistently set group name, close #<I>
py
diff --git a/src/ploneintranet/workspace/browser/portlets.py b/src/ploneintranet/workspace/browser/portlets.py index <HASH>..<HASH> 100644 --- a/src/ploneintranet/workspace/browser/portlets.py +++ b/src/ploneintranet/workspace/browser/portlets.py @@ -1,8 +1,10 @@ +from Acquisition import aq_inner from Products.Five.br...
Roster port let requires the view roster permission
py
diff --git a/django_summernote/widgets.py b/django_summernote/widgets.py index <HASH>..<HASH> 100644 --- a/django_summernote/widgets.py +++ b/django_summernote/widgets.py @@ -11,13 +11,7 @@ from django.contrib.staticfiles.templatetags.staticfiles import static from django.template.loader import render_to_string from ...
Dropping support under Django <I>
py
diff --git a/fedmsg_meta_fedora_infrastructure/tests/anitya.py b/fedmsg_meta_fedora_infrastructure/tests/anitya.py index <HASH>..<HASH> 100644 --- a/fedmsg_meta_fedora_infrastructure/tests/anitya.py +++ b/fedmsg_meta_fedora_infrastructure/tests/anitya.py @@ -1579,7 +1579,7 @@ class TestFlagSet(Base): "b8e2f821...
We need a valid FP address to return the right user
py
diff --git a/tests/integration/modules/disk.py b/tests/integration/modules/disk.py index <HASH>..<HASH> 100644 --- a/tests/integration/modules/disk.py +++ b/tests/integration/modules/disk.py @@ -81,4 +81,4 @@ class DiskModuleTest(integration.ModuleCase): if __name__ == '__main__': from integration import run_te...
modules.disk: run both integration test cases manually
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -43,6 +43,17 @@ if LooseVersion(setuptools.__version__) < MinimalSetuptoolsVersion: print() raise ImportError("setuptools") +if sys.version_info.major < 3: + print() + print("*********************************...
Warn users about future deprecation of python2
py
diff --git a/salt/master.py b/salt/master.py index <HASH>..<HASH> 100644 --- a/salt/master.py +++ b/salt/master.py @@ -587,12 +587,16 @@ class MWorker(multiprocessing.Process): Take care of a cleartext command ''' log.info('Clear payload received with command {cmd}'.format(**load)) + i...
reject private functions in the master minion conn
py
diff --git a/awkward/array/union.py b/awkward/array/union.py index <HASH>..<HASH> 100644 --- a/awkward/array/union.py +++ b/awkward/array/union.py @@ -360,7 +360,7 @@ class UnionArray(awkward.array.base.AwkwardArray): outtags[mask] = outtag outindex[mask] = awkward.util.numpy.arange(awkward.ut...
found and fixed an obvious bug in UnionArray.__array_ufunc__; as far as I can tell, this is #<I>
py
diff --git a/pyrogram/types/messages_and_media/message.py b/pyrogram/types/messages_and_media/message.py index <HASH>..<HASH> 100644 --- a/pyrogram/types/messages_and_media/message.py +++ b/pyrogram/types/messages_and_media/message.py @@ -2903,8 +2903,7 @@ class Message(Object, Update): log.warning(f"Users...
Fix empty messages don't have a chat id
py
diff --git a/logzio/handler.py b/logzio/handler.py index <HASH>..<HASH> 100644 --- a/logzio/handler.py +++ b/logzio/handler.py @@ -18,7 +18,7 @@ class LogzioHandler(logging.Handler): url="https://listener.logz.io:8071", debug=False): - if token is "": + if not token: ...
Verify the token is not anything empty, not just "not an empty string" If you pass an empty list, tuple, False, 0, whatever.. it will assume th token is valid, which it isn't.
py
diff --git a/digitalocean/Droplet.py b/digitalocean/Droplet.py index <HASH>..<HASH> 100644 --- a/digitalocean/Droplet.py +++ b/digitalocean/Droplet.py @@ -294,6 +294,8 @@ class Droplet(BaseAPI): """ snapshots = list() for id in droplet.snapshot_ids: - snapshot = Image(token=self.to...
Loading the Image/snapshot in a different style
py
diff --git a/_version_helper.py b/_version_helper.py index <HASH>..<HASH> 100644 --- a/_version_helper.py +++ b/_version_helper.py @@ -1,4 +1,6 @@ +import inspect import io +import os __all__ = ['__version__'] @@ -16,7 +18,9 @@ __all__ = ['__version__'] # 3) installing django-autoslug before Django itself (highl...
...still trying to fix RTFD...
py
diff --git a/scripts/does_matter/brownian-motion.py b/scripts/does_matter/brownian-motion.py index <HASH>..<HASH> 100644 --- a/scripts/does_matter/brownian-motion.py +++ b/scripts/does_matter/brownian-motion.py @@ -32,7 +32,6 @@ def diffusion(diffusion_constant, exposure_time, samples=200): """ radius = 5 ...
psf was way too small for BD motion
py
diff --git a/wafer/talks/admin.py b/wafer/talks/admin.py index <HASH>..<HASH> 100644 --- a/wafer/talks/admin.py +++ b/wafer/talks/admin.py @@ -60,7 +60,7 @@ class TalkAdmin(CompareVersionAdmin, admin.ModelAdmin): class TalkTypeAdmin(VersionAdmin, admin.ModelAdmin): - list_display = ('name', 'css_class') + li...
Add extra TalkType fields to admin list view
py
diff --git a/organizations/base.py b/organizations/base.py index <HASH>..<HASH> 100644 --- a/organizations/base.py +++ b/organizations/base.py @@ -38,7 +38,7 @@ class OrgMeta(ModelBase): """ module_registry = {} - def __new__(cls, name, bases, attrs): + def __new__(cls, name, bases, attrs): # noqa ...
Ignore complexity of __new__ method
py
diff --git a/pyuntl/quality.py b/pyuntl/quality.py index <HASH>..<HASH> 100644 --- a/pyuntl/quality.py +++ b/pyuntl/quality.py @@ -71,7 +71,7 @@ def determine_completeness(py_untl): if v['present']: py_untl_object_score += completeness_dict[k]['weight'] # Calculate the float score completenes...
Get rid of flake8 error by giving whitespace around operators.
py
diff --git a/tests/test_ec2/test_spot_instances.py b/tests/test_ec2/test_spot_instances.py index <HASH>..<HASH> 100644 --- a/tests/test_ec2/test_spot_instances.py +++ b/tests/test_ec2/test_spot_instances.py @@ -4,6 +4,7 @@ import boto import sure # noqa from moto import mock_ec2 +from moto.backends import get_mode...
add a test for model accessor
py
diff --git a/lib/svtplay_dl/subtitle/__init__.py b/lib/svtplay_dl/subtitle/__init__.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/subtitle/__init__.py +++ b/lib/svtplay_dl/subtitle/__init__.py @@ -255,7 +255,7 @@ class subtitle: "c.green": "#00ff00", "c.yellow": "...
subtitle: fix spelling mistake Co-authored-by: bartdedecker fixes: #<I>
py
diff --git a/tests/integration/long/test_large_data.py b/tests/integration/long/test_large_data.py index <HASH>..<HASH> 100644 --- a/tests/integration/long/test_large_data.py +++ b/tests/integration/long/test_large_data.py @@ -31,6 +31,7 @@ class LargeDataTests(unittest.TestCase): def make_session_and_keyspace(sel...
Increase default timeout for large data integration tests
py
diff --git a/salt/modules/virtualenv_mod.py b/salt/modules/virtualenv_mod.py index <HASH>..<HASH> 100644 --- a/salt/modules/virtualenv_mod.py +++ b/salt/modules/virtualenv_mod.py @@ -127,7 +127,7 @@ def create(path, # Unable to import?? Let's parse the version from the console version_cmd = '{...
Empty `stdout` when trying to get the virtualenv version is also an error.
py
diff --git a/tile_generator/opsmgr.py b/tile_generator/opsmgr.py index <HASH>..<HASH> 100644 --- a/tile_generator/opsmgr.py +++ b/tile_generator/opsmgr.py @@ -96,7 +96,7 @@ def get_credentials(target=None, non_interactive=False): creds['opsmgr']['url'] creds['opsmgr']['username'] creds['opsmgr']['password']...
Fix `pcf ssh` with ssh key from pie-credentials.
py
diff --git a/xmantissa/signup.py b/xmantissa/signup.py index <HASH>..<HASH> 100644 --- a/xmantissa/signup.py +++ b/xmantissa/signup.py @@ -81,13 +81,16 @@ class TicketBooth(Item, PrefixURLMixin): self.claimedTicketCount += 1 def ticketLink(self, domainName, httpPort, nonce): - if httpPort == 80: ...
Slightly less broken link generation in signup emails This does not entirely resolve this issue, since it will break when the server uses non-standard ports. It should resolve any production issues though. Refs #<I>
py
diff --git a/exchangelib/util.py b/exchangelib/util.py index <HASH>..<HASH> 100644 --- a/exchangelib/util.py +++ b/exchangelib/util.py @@ -297,7 +297,7 @@ class StreamingBase64Parser(xml.sax.expatreader.ExpatParser): source.close() self.close() if not self.element_found: - raise El...
Assemble the collected data in a bytes instead of a list of chr() ints
py
diff --git a/salt/modules/publish.py b/salt/modules/publish.py index <HASH>..<HASH> 100644 --- a/salt/modules/publish.py +++ b/salt/modules/publish.py @@ -40,12 +40,16 @@ def publish(tgt, fun, arg=None, expr_form='glob', returner=''): if fun == 'publish.publish': # Need to log something here retu...
Fixed another input bug, changed return value of getvals to list
py
diff --git a/livestreamer-curses.py b/livestreamer-curses.py index <HASH>..<HASH> 100755 --- a/livestreamer-curses.py +++ b/livestreamer-curses.py @@ -405,6 +405,7 @@ class StreamList(object): def show_streams(self): self.s.move(1,0) self.s.clrtobot() + self.current_pad = 'streams' ...
fix switching back to streams, should fix #1
py
diff --git a/spyder/app/mainwindow.py b/spyder/app/mainwindow.py index <HASH>..<HASH> 100644 --- a/spyder/app/mainwindow.py +++ b/spyder/app/mainwindow.py @@ -109,9 +109,9 @@ from spyder.config.base import running_under_pytest # Ignore args if running tests or Spyder will try and fail to parse pytests's. if running_...
Main Window: Don't pass sys.argv to get_options if not running tests
py
diff --git a/usb/core.py b/usb/core.py index <HASH>..<HASH> 100644 --- a/usb/core.py +++ b/usb/core.py @@ -355,9 +355,7 @@ class Interface(object): 'bInterfaceClass', 'bInterfaceSubClass', 'bInterfaceProtocol', - 'iInterface' - ...
Fixed: put address and bus attributes in the DeviceDescriptor, not in the InterfaceDescriptor
py
diff --git a/tests/test.py b/tests/test.py index <HASH>..<HASH> 100644 --- a/tests/test.py +++ b/tests/test.py @@ -27,7 +27,7 @@ import unittest import anyjson as json -from jsonklog import formatter +from jsonklog.formatters import JSONFormatter class JSONFormatterTestCase(unittest.TestCase): @@ -36,7 +36,7 ...
Updated tests to include the new formatters.py
py
diff --git a/textblob/en/sentiments.py b/textblob/en/sentiments.py index <HASH>..<HASH> 100644 --- a/textblob/en/sentiments.py +++ b/textblob/en/sentiments.py @@ -8,7 +8,7 @@ from collections import namedtuple from textblob.packages import nltk from textblob.en import sentiment as pattern_sentiment -from textblob.t...
Fix word tokenization in NaiveBayesAnalyzer
py
diff --git a/salt/modules/yumpkg.py b/salt/modules/yumpkg.py index <HASH>..<HASH> 100644 --- a/salt/modules/yumpkg.py +++ b/salt/modules/yumpkg.py @@ -2357,18 +2357,6 @@ def file_dict(*packages): return __salt__['lowpkg.file_dict'](*packages) -def expand_repo_def(repokwargs): - ''' - Take a repository de...
Remove useless function This function is not called if not present, so it serves no purpose
py
diff --git a/tests/test_Apex.py b/tests/test_Apex.py index <HASH>..<HASH> 100644 --- a/tests/test_Apex.py +++ b/tests/test_Apex.py @@ -309,10 +309,9 @@ def test_convert_qd2apex(): assert_allclose(apex_out.convert(60, 15, 'qd', 'apex', height=100), apex_out.qd2apex(60, 15, height=100)) - ...
STY: removed trailing whitespace Removed trailing whitespace for PEP8 compliance.
py
diff --git a/rarfile.py b/rarfile.py index <HASH>..<HASH> 100644 --- a/rarfile.py +++ b/rarfile.py @@ -97,7 +97,7 @@ try: try: from cryptography.hazmat.primitives.ciphers import algorithms, modes, Cipher from cryptography.hazmat.backends import default_backend - class AES_CBC_Decrypt: + ...
Minor style improvement: use only new-style classes.
py
diff --git a/bcbio/pipeline/run_info.py b/bcbio/pipeline/run_info.py index <HASH>..<HASH> 100644 --- a/bcbio/pipeline/run_info.py +++ b/bcbio/pipeline/run_info.py @@ -356,7 +356,7 @@ def _check_quality_format(items): "illumina_1.8+": "standard", "solexa": "solexa", ...
Add missing delimiter in fastq extensions.
py
diff --git a/eulfedora/indexdata/views.py b/eulfedora/indexdata/views.py index <HASH>..<HASH> 100644 --- a/eulfedora/indexdata/views.py +++ b/eulfedora/indexdata/views.py @@ -77,7 +77,7 @@ def index_config(request): content_list = [] for cls in DigitalObject.defined_types.itervalues(): content_group ...
Removed the index property check for testing.
py
diff --git a/kuyruk/task.py b/kuyruk/task.py index <HASH>..<HASH> 100644 --- a/kuyruk/task.py +++ b/kuyruk/task.py @@ -203,6 +203,10 @@ SubTask = namedtuple("SubTask", ("task", "args", "kwargs", "host")) @contextmanager def time_limit(seconds): + if seconds == 0: + yield + return + def signal_...
do not set alarm for 0 seconds
py
diff --git a/imagen/ndmapping.py b/imagen/ndmapping.py index <HASH>..<HASH> 100644 --- a/imagen/ndmapping.py +++ b/imagen/ndmapping.py @@ -70,6 +70,7 @@ class NdIndexableMapping(param.Parameterized): super(NdIndexableMapping, self).__init__(metadata=metadata, **kwargs) self.ndim = len(self.dimension...
Added iterable interface to NdMapping objects
py
diff --git a/aiogram/bot/bot.py b/aiogram/bot/bot.py index <HASH>..<HASH> 100644 --- a/aiogram/bot/bot.py +++ b/aiogram/bot/bot.py @@ -1005,9 +1005,9 @@ class Bot(BaseBot, DataMixin, ContextInstanceMixin): if isinstance(media, list): media = types.MediaGroup(media) - # check MediaGroup qu...
enh: remove unnecessarily strict condition in send_media_group (#<I>) * enh: remove unneccesarily strict condition in send_media_group * enh: return check but less strict * fix: remove trailing whitespace
py