diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/src/scs_core/psu/psu.py b/src/scs_core/psu/psu.py index <HASH>..<HASH> 100644 --- a/src/scs_core/psu/psu.py +++ b/src/scs_core/psu/psu.py @@ -106,3 +106,11 @@ class PSU(ABC): @abstractmethod def charge_dead(self, on): pass + + + # ------------------------------------------------------...
Added fuel_gauge_calib.py top-level script
py
diff --git a/cifsdk/client/client.py b/cifsdk/client/client.py index <HASH>..<HASH> 100644 --- a/cifsdk/client/client.py +++ b/cifsdk/client/client.py @@ -155,7 +155,7 @@ def main(): if options.get("submit"): print("submitting {0}".format(options.get("submit"))) - i = Indicator(indicator=args.ind...
Fix a typo for an attribute (#<I>) * allow group to be set when submitting an indicator * Add TLP option to the cif client * Use provider arg when submitting new indicators * Fixing typo with group attribute
py
diff --git a/spotifyconnect/sink.py b/spotifyconnect/sink.py index <HASH>..<HASH> 100644 --- a/spotifyconnect/sink.py +++ b/spotifyconnect/sink.py @@ -2,6 +2,9 @@ from __future__ import unicode_literals import spotifyconnect +__all__ = [ + 'Sink' +] class Sink(object):
Add Sink class to initial spotify-connect import
py
diff --git a/src/pymoca/parser.py b/src/pymoca/parser.py index <HASH>..<HASH> 100644 --- a/src/pymoca/parser.py +++ b/src/pymoca/parser.py @@ -467,7 +467,7 @@ class ASTListener(ModelicaListener): ) def exitType_specifier(self, ctx: ModelicaParser.Type_specifierContext): - for element in reversed(...
Parser: Fix confusing list comprehensions
py
diff --git a/phoebe/backend/universe.py b/phoebe/backend/universe.py index <HASH>..<HASH> 100644 --- a/phoebe/backend/universe.py +++ b/phoebe/backend/universe.py @@ -562,9 +562,9 @@ def compute_pblum_or_l3(model, obs, sigma=None, pblum=False, l3=False, # scaling factor and offset elif pblum and l3: -...
commented-out debug statements in compute_pblum_or_l3
py
diff --git a/src/foremast/utils/templates.py b/src/foremast/utils/templates.py index <HASH>..<HASH> 100644 --- a/src/foremast/utils/templates.py +++ b/src/foremast/utils/templates.py @@ -16,6 +16,7 @@ """Render Jinja2 template.""" import logging import os +import pathlib import jinja2 @@ -25,7 +26,7 @@ from ..e...
fix: Use fully qualified path to file
py
diff --git a/jiphy/handlers.py b/jiphy/handlers.py index <HASH>..<HASH> 100644 --- a/jiphy/handlers.py +++ b/jiphy/handlers.py @@ -744,6 +744,12 @@ class Append(Handler): python = '.append(' +@routes.add('raise ', 'throw ') +class Append(Handler): + javascript = 'throw ' + python = 'raise ' + + no_neste...
Add support raise translation according to test specification
py
diff --git a/pyum/HTTPClient.py b/pyum/HTTPClient.py index <HASH>..<HASH> 100644 --- a/pyum/HTTPClient.py +++ b/pyum/HTTPClient.py @@ -7,6 +7,7 @@ from pyum import cache __author__ = 'drews' + # from urllib.parse import urlparse # import http.client @@ -32,15 +33,15 @@ class HTTPClient(object): respon...
Removed consecutive if's.
py
diff --git a/fades/cache.py b/fades/cache.py index <HASH>..<HASH> 100644 --- a/fades/cache.py +++ b/fades/cache.py @@ -141,7 +141,6 @@ class VEnvsCache: matching_venvs.append((matching, venv)) if not matching_venvs: - logger.debug("No matching venv found :(") return ...
remove a duplicated log. resolve #<I>
py
diff --git a/pysndfx/dsp.py b/pysndfx/dsp.py index <HASH>..<HASH> 100644 --- a/pysndfx/dsp.py +++ b/pysndfx/dsp.py @@ -112,6 +112,9 @@ class AudioEffectsChain: self.command.extend(list(sum(zip(delays, decays), ()))) return self + def echo(self, **kwargs): + self.delay(**kwargs) + def ...
Checked some of the formely added effects are indeed working. They seem to be
py
diff --git a/sos/report/plugins/memory.py b/sos/report/plugins/memory.py index <HASH>..<HASH> 100644 --- a/sos/report/plugins/memory.py +++ b/sos/report/plugins/memory.py @@ -27,7 +27,8 @@ class Memory(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin, CosPlugin): "/proc/pagetypeinfo", "/proc/v...
[memory]:Add support to collect memory logs This patch updates memory plugin to collect hugepage memory information Resolves: #<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ setup(name='django-plugins', packages=find_packages(exclude=['sample-project']), install_requires=[ 'django>=1.6', - 'django-dirtyfields', + 'django-dirtyfields<1.3', ...
Pin Django-dirtyfields to < <I> <I> is the last build to support Django < <I>
py
diff --git a/glue/ligolw/dbtables.py b/glue/ligolw/dbtables.py index <HASH>..<HASH> 100644 --- a/glue/ligolw/dbtables.py +++ b/glue/ligolw/dbtables.py @@ -865,16 +865,12 @@ class DBTable(table.Table): table and replaces them with auto-incrementing integers. This method is intended for internal use only. """ - ...
Small cleanup of the fix_event_id remapping function.
py
diff --git a/great_expectations/cli/datasource.py b/great_expectations/cli/datasource.py index <HASH>..<HASH> 100644 --- a/great_expectations/cli/datasource.py +++ b/great_expectations/cli/datasource.py @@ -1137,6 +1137,7 @@ Great Expectations is building Data Docs from the data you just profiled!""" # Call the da...
Fix: generator_name was passed to the data context method
py
diff --git a/tests/test_jira_ext.py b/tests/test_jira_ext.py index <HASH>..<HASH> 100644 --- a/tests/test_jira_ext.py +++ b/tests/test_jira_ext.py @@ -1,7 +1,8 @@ """ Tests around the jira extension module. """ import datetime import httpretty -import os +import jira +import mock import sys if sys.version_info < (...
Adding a test around the jira get issue which raises a JIRAError.
py
diff --git a/pandas/core/common.py b/pandas/core/common.py index <HASH>..<HASH> 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -659,8 +659,12 @@ def _asarray_tuplesafe(values, dtype=None): result = np.asarray(values, dtype=object) if result.ndim == 2: - result = np.empty(len(va...
TST: use list_to_object_array when we can
py
diff --git a/MAVProxy/modules/mavproxy_wp.py b/MAVProxy/modules/mavproxy_wp.py index <HASH>..<HASH> 100644 --- a/MAVProxy/modules/mavproxy_wp.py +++ b/MAVProxy/modules/mavproxy_wp.py @@ -23,7 +23,7 @@ class WPModule(mp_module.MPModule): self.undo_wp = None self.undo_type = None self.undo_wp_i...
wp: fixed expected_count error
py
diff --git a/tests/test_integration.py b/tests/test_integration.py index <HASH>..<HASH> 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -92,7 +92,9 @@ class TestSplitTD(BaseTestPycolator): decoy_contents = self.read_percolator_out(self.decoy) self.assertEqual(len(target_con...
Complete mess in merging and git stuff
py
diff --git a/example/manage.py b/example/manage.py index <HASH>..<HASH> 100755 --- a/example/manage.py +++ b/example/manage.py @@ -1,11 +1,9 @@ #!/usr/bin/env python -from django.core.management import execute_manager -try: - import settings # Assumed to be in the same directory. -except ImportError: - import sy...
[-] Updated the example manage.py
py
diff --git a/dispatch/api/serializers.py b/dispatch/api/serializers.py index <HASH>..<HASH> 100644 --- a/dispatch/api/serializers.py +++ b/dispatch/api/serializers.py @@ -29,6 +29,7 @@ class ImageSerializer(serializers.HyperlinkedModelSerializer): """ Serializes the Image model. """ + title = serializ...
Allow blank title and don't trim whitespace
py
diff --git a/src/clc/APIv2/network.py b/src/clc/APIv2/network.py index <HASH>..<HASH> 100644 --- a/src/clc/APIv2/network.py +++ b/src/clc/APIv2/network.py @@ -117,7 +117,6 @@ class Network(object): key = re.sub("_(.)",lambda pat: pat.group(1).upper(),var) if key in self.data: return(self.data[key]) - elif key...
no 'changeInfo' key in networks object
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -206,6 +206,7 @@ metadata = dict( install_requires=['numpy>=1.6.0', 'scipy>=0.11', 'pystallone>=1.0.0b3'], + zip_safe=False, ) # this is only metadata and not used by s...
[setup] set zip_safe to False, since we have binary extensions
py
diff --git a/src/pybel/manager/cache.py b/src/pybel/manager/cache.py index <HASH>..<HASH> 100644 --- a/src/pybel/manager/cache.py +++ b/src/pybel/manager/cache.py @@ -211,7 +211,8 @@ class CacheManager(BaseCacheManager): config = download_url(url) annotation_insert_values = { - 'type': co...
Add url to annotation caching I wonder why this wasn’t throwing errors before. I thought non-null was default for SQLA
py
diff --git a/pendulum/parsing/parser.py b/pendulum/parsing/parser.py index <HASH>..<HASH> 100644 --- a/pendulum/parsing/parser.py +++ b/pendulum/parsing/parser.py @@ -305,7 +305,7 @@ class Parser(object): :rtype: dict """ - if self.is_strict(): + if self.is_exact(): return...
Remove remaining usage of deprecated Parser.is_strict method. (#<I>)
py
diff --git a/pyamg/sa.py b/pyamg/sa.py index <HASH>..<HASH> 100644 --- a/pyamg/sa.py +++ b/pyamg/sa.py @@ -8,8 +8,8 @@ from numpy import array, arange, ones, zeros, sqrt, asarray, \ from scipy.sparse import csr_matrix, coo_matrix, \ isspmatrix_csr, bsr_matrix, isspmatrix_bsr -#from sa_ode_strong_connections...
Added check in sa.py for an all zero coarsest level operator
py
diff --git a/utils_iam.py b/utils_iam.py index <HASH>..<HASH> 100644 --- a/utils_iam.py +++ b/utils_iam.py @@ -29,7 +29,22 @@ def connect_iam(profile_name): # # Delete IAM user # -def delete_user(iam_connection, user, stage = 5, serial = None): +def delete_user(iam_connection, user, stage = 6, serial = None): + #...
Try to delete access keys when deleting an IAM user
py
diff --git a/salt/modules/debian_ip.py b/salt/modules/debian_ip.py index <HASH>..<HASH> 100644 --- a/salt/modules/debian_ip.py +++ b/salt/modules/debian_ip.py @@ -615,6 +615,11 @@ def _parse_interfaces(interface_files=None): # Return a sorted list of the keys for bond, bridge and ethtool options to # ensure a...
"fixes" bug when parsing interfaces On even only somewhat invalid /etc/network/interfaces files the function broke with an inconprehensible error message. This MR enhances the error message and removes the invalid interface from the result. See github issue #<I>
py
diff --git a/c7n/cli.py b/c7n/cli.py index <HASH>..<HASH> 100644 --- a/c7n/cli.py +++ b/c7n/cli.py @@ -116,6 +116,13 @@ def _default_region(options): def _default_account_id(options): + if options.assume_role: + try: + options.account_id = options.assume_role.split(':')[4] + return ...
cli init - don't query sts for account id when using --assume (#<I>) (#<I>) * Don't query STS for account id when using --assume (#<I>) * For validate/schema/version subcommands, no need to make a session to fetch region and account ID
py
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index <HASH>..<HASH> 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -9155,6 +9155,11 @@ NaN 12.3 33.0 * inner: form intersection of calling frame's index (or column if on is specified) with `other`'s index, preservin...
DOC: Add how=cross description to join (#<I>)
py
diff --git a/tests/sphinx_test.py b/tests/sphinx_test.py index <HASH>..<HASH> 100644 --- a/tests/sphinx_test.py +++ b/tests/sphinx_test.py @@ -19,7 +19,7 @@ class ResourceGeneratorTestCase(unittest.TestCase): content = fd.read() with open('tests/output/%s' % filename, 'w') as fd: - fd...
append \n to output.
py
diff --git a/holoviews/core/data.py b/holoviews/core/data.py index <HASH>..<HASH> 100644 --- a/holoviews/core/data.py +++ b/holoviews/core/data.py @@ -621,8 +621,6 @@ class DFColumns(DataColumns): element_kwargs = dict(util.get_param_values(columns), kdims=element_dims) ...
Removed unused variable definition in DFColumns.groupby
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ from setuptools import setup, find_packages setup( name='jax', - version='0.1.16', + version='0.1.17', description='Differentiate, compile, and transform Numpy code.', author='JAX team', ...
version bump for pypi
py
diff --git a/limpyd/collection.py b/limpyd/collection.py index <HASH>..<HASH> 100644 --- a/limpyd/collection.py +++ b/limpyd/collection.py @@ -56,11 +56,15 @@ class CollectionManager(object): # and return the collection (a scliced collection is no more # chainable, so we do not return `self`) ...
Use -1 as "num" for sort to get data until the end
py
diff --git a/pyghmi/ipmi/bmc.py b/pyghmi/ipmi/bmc.py index <HASH>..<HASH> 100644 --- a/pyghmi/ipmi/bmc.py +++ b/pyghmi/ipmi/bmc.py @@ -72,6 +72,9 @@ class Bmc(serversession.IpmiServer): rc = self.power_cycle() elif directive == 3: rc = self.power_reset() + elif ...
Supports cold reset in bmc The spec [1] is trying to support nmi, so that we should also enhance bmc to support it. [1] I3dc<I>ea7cecf8b8d<I>fefa9cf<I>d0f4c Change-Id: Ib<I>ace5b<I>b<I>dab<I>a<I>f<I>e1ff2b
py
diff --git a/src/graphql/language/ast.py b/src/graphql/language/ast.py index <HASH>..<HASH> 100644 --- a/src/graphql/language/ast.py +++ b/src/graphql/language/ast.py @@ -226,7 +226,7 @@ class Node: """AST nodes""" # allow custom attributes and weak references (not used internally) - __slots__ = "__dict_...
Optimization: cache the hashes of nodes (#<I>)
py
diff --git a/huffman/huffman.py b/huffman/huffman.py index <HASH>..<HASH> 100644 --- a/huffman/huffman.py +++ b/huffman/huffman.py @@ -60,7 +60,7 @@ def codebook(symbolweights): Huffman codebook, returned as a dictionary in {symbol: code} format. Examples: - >>> huffman.codebook([('A', 2), ('B', 4), ('C'...
Update huffman.py
py
diff --git a/pysparkling/utils.py b/pysparkling/utils.py index <HASH>..<HASH> 100644 --- a/pysparkling/utils.py +++ b/pysparkling/utils.py @@ -154,6 +154,8 @@ def get_keyfunc(cols): def row_from_keyed_values(keyed_values): + # keyed_values might be an iterable + keyed_values = list(keyed_values) # Prese...
Add a naïve implementation of SparkSession.read.csv
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -7,7 +7,9 @@ from setuptools import setup, find_packages from nazs import __version__ -path = os.path.abspath(os.path.dirname(__file__)) +def relpath(filename): + here = os.path.abspath(os.path.dirname(__file__)) + ...
setup.py requires relative paths for scripts
py
diff --git a/python_modules/dagster/dagster/core/storage/event_log/sql_event_log.py b/python_modules/dagster/dagster/core/storage/event_log/sql_event_log.py index <HASH>..<HASH> 100644 --- a/python_modules/dagster/dagster/core/storage/event_log/sql_event_log.py +++ b/python_modules/dagster/dagster/core/storage/event_lo...
order by (#<I>)
py
diff --git a/openquake/risklib/scientific.py b/openquake/risklib/scientific.py index <HASH>..<HASH> 100644 --- a/openquake/risklib/scientific.py +++ b/openquake/risklib/scientific.py @@ -1016,9 +1016,7 @@ def conditional_loss_ratio(loss_ratios, poes, probability): elif probability < poes[-1]: # min PoE r...
Fixed a bug in conditional_loss_ratio
py
diff --git a/scope/analyze.py b/scope/analyze.py index <HASH>..<HASH> 100644 --- a/scope/analyze.py +++ b/scope/analyze.py @@ -456,6 +456,9 @@ def analyze_star(observed_spectra, configuration, chi_squared_fn_callback=None): # Save the state? mean_acceptance_fractions.append(mean_acceptance_f...
Break out of loop when log likelihood is zero
py
diff --git a/forms.py b/forms.py index <HASH>..<HASH> 100644 --- a/forms.py +++ b/forms.py @@ -164,7 +164,7 @@ class TokenForm(InvenioBaseForm): """Token form.""" - name = fields.TextField( + name = fields.StringField( description="Name of personal access token.", validators=[validators...
global: removal of depreated WTForms extenstion * Replaces TextField with StringField. * Fixes PEP8/<I>.
py
diff --git a/claripy/frontend.py b/claripy/frontend.py index <HASH>..<HASH> 100644 --- a/claripy/frontend.py +++ b/claripy/frontend.py @@ -415,6 +415,24 @@ class Frontend(ana.Storable): return b + def is_true(self, e, extra_constraints=(), exact=None, cache=None): + if self._concrete_type_check(e...
added is_true and is_false to the frontend
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -15,7 +15,7 @@ from toradbapi import ConnectionPool class MysqlConnectorConnectionPoolTestCase(AsyncTestCase): DB_CONFIG = dict( - user='root', password='', host='127.0.0.1', port=3306, + user='root', pas...
rename password keyword to passwd
py
diff --git a/tests/journey/test_chamber_of_deputies_official_missions_dataset.py b/tests/journey/test_chamber_of_deputies_official_missions_dataset.py index <HASH>..<HASH> 100644 --- a/tests/journey/test_chamber_of_deputies_official_missions_dataset.py +++ b/tests/journey/test_chamber_of_deputies_official_missions_data...
Fixes the test because it now recievies one more item in dataframe
py
diff --git a/recommonmark/parser.py b/recommonmark/parser.py index <HASH>..<HASH> 100644 --- a/recommonmark/parser.py +++ b/recommonmark/parser.py @@ -124,6 +124,13 @@ class CommonMarkParser(parsers.Parser): def code(self, language, text): classes = ['code', 'highlight'] + + # embedded rst in cod...
Add the support for evaluating embedded reStructued Text
py
diff --git a/src/foremast/autoscaling_policy/create_policy.py b/src/foremast/autoscaling_policy/create_policy.py index <HASH>..<HASH> 100644 --- a/src/foremast/autoscaling_policy/create_policy.py +++ b/src/foremast/autoscaling_policy/create_policy.py @@ -1,5 +1,6 @@ import json import logging +import os import req...
all working, just need to figure out how to handle configs
py
diff --git a/test_elasticsearch_dsl/test_document.py b/test_elasticsearch_dsl/test_document.py index <HASH>..<HASH> 100644 --- a/test_elasticsearch_dsl/test_document.py +++ b/test_elasticsearch_dsl/test_document.py @@ -65,7 +65,7 @@ def test_you_can_supply_own_mapping_instance(): class Meta: map...
no need to save the result of .meta()
py
diff --git a/lib/python/dxpy/__init__.py b/lib/python/dxpy/__init__.py index <HASH>..<HASH> 100644 --- a/lib/python/dxpy/__init__.py +++ b/lib/python/dxpy/__init__.py @@ -56,9 +56,6 @@ def DXHTTPRequest(resource, data, method='POST', headers={}, auth=None, config=N ''' url = APISERVER + resource - if aut...
do not require auth on client side
py
diff --git a/feeders/osp.py b/feeders/osp.py index <HASH>..<HASH> 100755 --- a/feeders/osp.py +++ b/feeders/osp.py @@ -37,6 +37,7 @@ def get_puddle_component(repo_file, repo_name): puddle_component = { 'type': component.PUDDLE, + 'canonical_project_name': repo_name, 'name': '%s %s' % (re...
osp feeder: ensure all the components are attached We need to attach all the component to the newly created jobdefinition. If the component already exists, we need to retrieve its uuid from the DB. Change-Id: Ide8d2b4dc<I>f4c<I>a6f0aa<I>c3dc<I>e2c<I>b
py
diff --git a/amino/state.py b/amino/state.py index <HASH>..<HASH> 100644 --- a/amino/state.py +++ b/amino/state.py @@ -146,9 +146,11 @@ class EvalState(Generic[S, A], StateT[Eval, S, A], tpe=Eval): tcs(Eval, EvalState) # type: ignore -class IdState(Generic[S, A], StateT[Id, S, A], tpe=Id): +class State(Generic[S,...
alias `IdState` to `State`
py
diff --git a/salt/renderers/pydsl.py b/salt/renderers/pydsl.py index <HASH>..<HASH> 100644 --- a/salt/renderers/pydsl.py +++ b/salt/renderers/pydsl.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ A Python-based DSL @@ -334,14 +333,11 @@ For example: my_mod = sys.modules['salt.loaded.ext.module.my_mod'] ...
Drop Py2 and six on salt/renderers/pydsl.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ with (Path(__file__).parent / "aiodocker" / "__init__.py").open() as fp: raise RuntimeError("Unable to determine version.") -long_description = open("README.rst").read() + open("CHANGES.rst").read()...
Don't include CHANGES in long-description
py
diff --git a/sortinghat/db/model.py b/sortinghat/db/model.py index <HASH>..<HASH> 100644 --- a/sortinghat/db/model.py +++ b/sortinghat/db/model.py @@ -67,7 +67,7 @@ class UniqueIdentity(ModelBase): identifier = Column(String(128), nullable=False) # Many-to-many association proxy - keywords = association_...
[model] Fix typo in UniqueIdentity class
py
diff --git a/tests/common.py b/tests/common.py index <HASH>..<HASH> 100644 --- a/tests/common.py +++ b/tests/common.py @@ -54,9 +54,6 @@ class KeepKeyTest(unittest.TestCase): self.client.wipe_device() - self.client.apply_policy('U2F Transport', 1) - - print("Setup finished") print...
U2F Transport policy no longer needed for tests
py
diff --git a/charmhelpers/contrib/openstack/ip.py b/charmhelpers/contrib/openstack/ip.py index <HASH>..<HASH> 100644 --- a/charmhelpers/contrib/openstack/ip.py +++ b/charmhelpers/contrib/openstack/ip.py @@ -159,7 +159,7 @@ def resolve_address(endpoint_type=PUBLIC, override=True): if is_address_in_n...
Catch NoNetworkBinding for VIPs in resolve_address (#<I>) There was one network_get_primary_address call left which was not protected by NoNetworkBinding in resolve_address when clustering is in use and VIPs are set. This change catches that last case. Also, confirmed there are no other cases.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,14 +1,14 @@ #!/usr/bin/env python import os -from setuptools import setup, find_packages +from setuptools import setup # allow setup.py to be ran from anywhere os.chdir(os.path.dirname(os.path.abspath(__file__))) ...
have to use py_modules for single file modules
py
diff --git a/assembly/preprocess.py b/assembly/preprocess.py index <HASH>..<HASH> 100644 --- a/assembly/preprocess.py +++ b/assembly/preprocess.py @@ -598,7 +598,7 @@ def correct(args): sys.exit(not p.print_help()) fastq = args - tag, tagj = "frag_reads", "jump_reads" + tag, tagj, taglj = "frag_re...
add support for correcting long jumps in assembly.preprocess.correct()
py
diff --git a/sphinxarg/ext.py b/sphinxarg/ext.py index <HASH>..<HASH> 100644 --- a/sphinxarg/ext.py +++ b/sphinxarg/ext.py @@ -152,7 +152,7 @@ class ArgParseDirective(Directive): has_content = True option_spec = dict(module=unchanged, func=unchanged, ref=unchanged, prog=unchanged, path...
Added 'passparser' option for inplace argument additions.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,7 @@ setup( }, description='Decentralised, minimalist microblogging service for hackers.', - long_description=open('./README.rst', 'r').read(), + long_description=open('./README.rst', 'r', encoding=...
Fix loading of README.rst in setup.py README.rst contains some unicode characters which under certain environment conditions will cause Python 3 to fail to read the description and run setup.py. Looking at you RTD!
py
diff --git a/walrus/tests/streams.py b/walrus/tests/streams.py index <HASH>..<HASH> 100644 --- a/walrus/tests/streams.py +++ b/walrus/tests/streams.py @@ -180,7 +180,7 @@ class TestTimeSeries(WalrusTestCase): # Pending is now marked for ts2, ack'd, and removed. assertPending(ts1.sa.pending(), [ - ...
Add fix for test that is failing as of redis <I>.
py
diff --git a/jaconv/jaconv.py b/jaconv/jaconv.py index <HASH>..<HASH> 100644 --- a/jaconv/jaconv.py +++ b/jaconv/jaconv.py @@ -378,7 +378,8 @@ def alphabet2kana(text): text = text.replace('ve', 'ゔぇ').replace('vo', 'ゔぉ').replace('vya', 'ゔゃ') text = text.replace('vyi', 'ゔぃ').replace('vyu', 'ゔゅ').replace('vye', ...
add "du" -> "づ"
py
diff --git a/treeherder/config/settings.py b/treeherder/config/settings.py index <HASH>..<HASH> 100644 --- a/treeherder/config/settings.py +++ b/treeherder/config/settings.py @@ -106,6 +106,9 @@ INSTALLED_APPS = [ 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', + # Disabl...
Bug <I> - Disable Django's inbuilt static file handling Since otherwise WhiteNoise will only serve files when using gunicorn and not when using `./manage.py runserver`, creating inconsistencies between production and development environments: <URL>
py
diff --git a/jenkins/bootstrap.py b/jenkins/bootstrap.py index <HASH>..<HASH> 100755 --- a/jenkins/bootstrap.py +++ b/jenkins/bootstrap.py @@ -197,6 +197,8 @@ def repository(repo, ssh): """Return the url associated with the repo.""" if repo.startswith('k8s.io/'): repo = 'github.com/kubernetes/%s' % (...
hack to resolve istio.io properly
py
diff --git a/runcommands/command.py b/runcommands/command.py index <HASH>..<HASH> 100644 --- a/runcommands/command.py +++ b/runcommands/command.py @@ -145,15 +145,14 @@ class Command: return result - def console_script(self, argv=None, run_args=None, **kwargs): + def console_script(self, _argv=None, ...
Prefix Command.console_script() keyword args names with _ This is to avoid clashing with command arg names.
py
diff --git a/MySQLdb/MySQLdb/cursors.py b/MySQLdb/MySQLdb/cursors.py index <HASH>..<HASH> 100644 --- a/MySQLdb/MySQLdb/cursors.py +++ b/MySQLdb/MySQLdb/cursors.py @@ -200,9 +200,8 @@ class BaseCursor(object): p = m.start(1) e = m.end(1) qv = m.group(1) - qargs = db.literal(args) ...
Suggestion from #<I>.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ setup( install_requires=[ "machomachomangler; sys_platform == 'win32'", "bindepend; sys_platform == 'win32'", - "packaging", + "packaging>=20.9", "typing_extensions"...
Add minimum version for the packaging module.
py
diff --git a/plfit/plfit.py b/plfit/plfit.py index <HASH>..<HASH> 100644 --- a/plfit/plfit.py +++ b/plfit/plfit.py @@ -253,10 +253,10 @@ class plfit(object): # python (numpy) version f_alpha = alpha_gen(z) f_kstest = kstest_gen(z) - alpha_values = np.asa...
py3 doesn't list maps
py
diff --git a/plexapi/base.py b/plexapi/base.py index <HASH>..<HASH> 100644 --- a/plexapi/base.py +++ b/plexapi/base.py @@ -575,12 +575,12 @@ class Playable(object): duration (int): duration of the item """ durationStr = '&duration=' - if duration != None: + if duration i...
fix flake8 warnings on travis (#<I>)
py
diff --git a/fault/verilator_target.py b/fault/verilator_target.py index <HASH>..<HASH> 100644 --- a/fault/verilator_target.py +++ b/fault/verilator_target.py @@ -37,11 +37,12 @@ int main(int argc, char **argv) {{ class VerilatorTarget(Target): def __init__(self, circuit, actions, directory="build/", - ...
Add a mechanism for including verilog
py
diff --git a/lighthouse/haproxy/config.py b/lighthouse/haproxy/config.py index <HASH>..<HASH> 100644 --- a/lighthouse/haproxy/config.py +++ b/lighthouse/haproxy/config.py @@ -83,7 +83,7 @@ class HAProxyConfig(object): Section("Listener for stats web interface", self.stats_stanza) ) - ...
Add a newline at the end of generated HAProxy files.
py
diff --git a/empymod/model.py b/empymod/model.py index <HASH>..<HASH> 100644 --- a/empymod/model.py +++ b/empymod/model.py @@ -227,8 +227,8 @@ def bipole(src, rec, depth, res, freqtime, signal=None, aniso=None, - `atol`: absolute tolerance (default: 1e-20) - `limit`: An upper bound on the number o...
Correct docs re htarg for quad Docs mention `lmin` and `lmax`, which are more sensible than `a` and `b`; however, it was never changed in the code. Revert the docs to not break anything.
py
diff --git a/sdk/python/setup.py b/sdk/python/setup.py index <HASH>..<HASH> 100644 --- a/sdk/python/setup.py +++ b/sdk/python/setup.py @@ -75,4 +75,5 @@ setup(name='sawtooth-sdk', "sawtooth-signing", "protobuf", "pyzmq", + "toml", ])
Add toml dependency to python_sdk package
py
diff --git a/tickets/views.py b/tickets/views.py index <HASH>..<HASH> 100644 --- a/tickets/views.py +++ b/tickets/views.py @@ -1,6 +1,7 @@ from django.views.generic import ListView, DetailView, CreateView from django.core.urlresolvers import reverse from django.contrib import messages +from django.http import HttpRe...
improve ticket detail view to redirect after successful ticket comment creation
py
diff --git a/shinken/external_command.py b/shinken/external_command.py index <HASH>..<HASH> 100644 --- a/shinken/external_command.py +++ b/shinken/external_command.py @@ -1435,11 +1435,14 @@ class ExternalCommandManager: # SCHEDULE_HOSTGROUP_HOST_DOWNTIME;<hostgroup_name>;<start_time>;<end_time>;<fixed>;<trigger...
Implement scheduled downtime for hostsgroups Schedule downtime for hosts or services in a hostgroup
py
diff --git a/netjsonconfig/backends/openwrt/converters.py b/netjsonconfig/backends/openwrt/converters.py index <HASH>..<HASH> 100644 --- a/netjsonconfig/backends/openwrt/converters.py +++ b/netjsonconfig/backends/openwrt/converters.py @@ -215,8 +215,9 @@ class Interfaces(BaseConverter): # to these physical...
[openwrt] Fixed repeated bridge gateway case Bug inadvertently introduced in 4f8d<I>
py
diff --git a/ckanserviceprovider/web.py b/ckanserviceprovider/web.py index <HASH>..<HASH> 100644 --- a/ckanserviceprovider/web.py +++ b/ckanserviceprovider/web.py @@ -490,7 +490,15 @@ def job(job_id=None): except werkzeug.exceptions.BadRequest, e: return json.dumps({"error": "Malformed json"}), 409, heade...
Make sure we can load malformed headers
py
diff --git a/foxpuppet/windows/browser/navbar.py b/foxpuppet/windows/browser/navbar.py index <HASH>..<HASH> 100644 --- a/foxpuppet/windows/browser/navbar.py +++ b/foxpuppet/windows/browser/navbar.py @@ -32,10 +32,9 @@ class NavBar(Region): """ with self.selenium.context(self.selenium.CONTEXT_CHROME)...
Fix method of checking that tracking protection shield is displayed
py
diff --git a/picotui/widgets.py b/picotui/widgets.py index <HASH>..<HASH> 100644 --- a/picotui/widgets.py +++ b/picotui/widgets.py @@ -514,6 +514,7 @@ class WComboBox(WTextEntry): val = popup.get_selected_value() if val is not None: self.set_lines([val]) + self....
widgets: WComboBox: After selection from dropdown, reset textentry margin. Avoids artifacts when textentry contain a long string, scrolled out to the left.
py
diff --git a/caliendo/patch.py b/caliendo/patch.py index <HASH>..<HASH> 100644 --- a/caliendo/patch.py +++ b/caliendo/patch.py @@ -165,16 +165,17 @@ def patch(import_path, rvalue=UNDEFINED, side_effect=UNDEFINED): else: setattr(module, name, patch_with) - # Run the tes...
Fixes unpatching instance methods and allows exceptions to be raised
py
diff --git a/examples/tensorflow/text-classification/run_text_classification.py b/examples/tensorflow/text-classification/run_text_classification.py index <HASH>..<HASH> 100644 --- a/examples/tensorflow/text-classification/run_text_classification.py +++ b/examples/tensorflow/text-classification/run_text_classification....
Correctly cast num_train_epochs to int (#<I>)
py
diff --git a/tests/core/network/test_grids.py b/tests/core/network/test_grids.py index <HASH>..<HASH> 100644 --- a/tests/core/network/test_grids.py +++ b/tests/core/network/test_grids.py @@ -298,9 +298,10 @@ class TestMVGridDing0(object): """ ring, grid = ring_mvgridding0 station = grid.stati...
Fixed test raising unassigned node_ring UnboundLocalError, needs fix in core functionality
py
diff --git a/i3pystatus/iinet.py b/i3pystatus/iinet.py index <HASH>..<HASH> 100644 --- a/i3pystatus/iinet.py +++ b/i3pystatus/iinet.py @@ -2,6 +2,7 @@ import requests from i3pystatus import IntervalModule from i3pystatus.core.color import ColorRangeModule +from i3pystatus.core.util import internet, require __aut...
stop iinet from filling the bar with a connection error if internet is down (#<I>) * only run if we have internet * decorators are so clean
py
diff --git a/pymatgen/io/lammps/utils.py b/pymatgen/io/lammps/utils.py index <HASH>..<HASH> 100644 --- a/pymatgen/io/lammps/utils.py +++ b/pymatgen/io/lammps/utils.py @@ -271,7 +271,7 @@ class PackmolRunner: # all other filetypes else: a = BabelMolAdaptor(mol) - ...
adjusted pybel import statement to import from openbabel
py
diff --git a/salt/modules/file.py b/salt/modules/file.py index <HASH>..<HASH> 100644 --- a/salt/modules/file.py +++ b/salt/modules/file.py @@ -1558,6 +1558,27 @@ def prepend(path, *args): return 'Prepended {0} lines to "{1}"'.format(len(args), path) +def write(path, *args): + ''' + .. versionadded:: Heli...
Adding a very simple function to write provided contents to a file, overwriting existing contents.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -27,9 +27,23 @@ __scripts__ = ['bin/did'] __irequires__ = [ 'python_dateutil==2.4.2', 'urllib2_kerberos', - 'python-bugzilla', + 'python-bugzilla', # FIXME: make optional? see __xrequires__ 'pykerberos',...
Enable package 'extras' (dependencies) install In addition to the core requirements it's possible to define extra package dependencies that can be installed along with the core package + deps. `install` usage:: pip install did[tests,docs] `develop` usage:: python setup.py -e .[tests,docs]
py
diff --git a/htmresearch/frameworks/pytorch/duty_cycle_metrics.py b/htmresearch/frameworks/pytorch/duty_cycle_metrics.py index <HASH>..<HASH> 100644 --- a/htmresearch/frameworks/pytorch/duty_cycle_metrics.py +++ b/htmresearch/frameworks/pytorch/duty_cycle_metrics.py @@ -24,8 +24,6 @@ import math import numpy as np ...
fix 'non-GUI backend' when plotting from the terminal
py
diff --git a/cumulusci/core/github.py b/cumulusci/core/github.py index <HASH>..<HASH> 100644 --- a/cumulusci/core/github.py +++ b/cumulusci/core/github.py @@ -45,7 +45,7 @@ def get_github_api_for_repo(keychain, owner, repo): if APP_ID and APP_KEY: installation = INSTALLATIONS.get((owner, repo)) i...
Set a shorter expiration for the JWT used for getting an app installation token. The default gave us an occasional error "AuthenticationFailed: <I> 'Expiration time' claim ('exp') is too far in the future" possibly due to rounding errors.
py
diff --git a/fedmsg_meta_fedora_infrastructure/tests/__init__.py b/fedmsg_meta_fedora_infrastructure/tests/__init__.py index <HASH>..<HASH> 100644 --- a/fedmsg_meta_fedora_infrastructure/tests/__init__.py +++ b/fedmsg_meta_fedora_infrastructure/tests/__init__.py @@ -403,10 +403,10 @@ class TestBodhiUpdateComplete(Base)...
Fixed docstring for the bodhi multi-build update test
py
diff --git a/tests/test_vunit.py b/tests/test_vunit.py index <HASH>..<HASH> 100644 --- a/tests/test_vunit.py +++ b/tests/test_vunit.py @@ -74,11 +74,11 @@ def test_vunit_hooks(): backend.build() - hooks_constructor.assert_called_once() - hooks.create.assert_called_once() + ...
Use assert_called_once method supported in Python <I>+
py
diff --git a/bika/lims/browser/analysisrequest.py b/bika/lims/browser/analysisrequest.py index <HASH>..<HASH> 100644 --- a/bika/lims/browser/analysisrequest.py +++ b/bika/lims/browser/analysisrequest.py @@ -879,6 +879,12 @@ class AnalysisRequestViewView(BrowserView): t.review_states[0]['columns'].r...
Add message when using field analyses without sampling workflow.
py
diff --git a/benchexec/tablegenerator/htmltable.py b/benchexec/tablegenerator/htmltable.py index <HASH>..<HASH> 100644 --- a/benchexec/tablegenerator/htmltable.py +++ b/benchexec/tablegenerator/htmltable.py @@ -425,7 +425,11 @@ def _prepare_rows_for_js(rows, base_dir, href_base, relevant_id_columns): colum...
Small fix to Python code (comparison with None)
py
diff --git a/examples/sanic_peewee.py b/examples/sanic_peewee.py index <HASH>..<HASH> 100644 --- a/examples/sanic_peewee.py +++ b/examples/sanic_peewee.py @@ -1,3 +1,4 @@ + ## You need the following additional packages for this example # aiopg # peewee_async @@ -90,7 +91,7 @@ async def post(request, key, value): ...
Changed method name from create to new
py
diff --git a/holoviews/plotting/bokeh/plot.py b/holoviews/plotting/bokeh/plot.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/bokeh/plot.py +++ b/holoviews/plotting/bokeh/plot.py @@ -280,7 +280,7 @@ class GridPlot(CompositePlot, GenericCompositePlot): if 'height' not in kwargs or not self.shared_xa...
Added small border for gridplot
py
diff --git a/filesystems/tests/common.py b/filesystems/tests/common.py index <HASH>..<HASH> 100644 --- a/filesystems/tests/common.py +++ b/filesystems/tests/common.py @@ -1143,12 +1143,10 @@ class TestFS(object): tempdir = fs.temporary_directory() self.addCleanup(fs.remove, tempdir) - def fai...
Switch invalid mode testing to use context manager assertRaises form
py
diff --git a/satpy/tests/test_composites.py b/satpy/tests/test_composites.py index <HASH>..<HASH> 100644 --- a/satpy/tests/test_composites.py +++ b/satpy/tests/test_composites.py @@ -27,6 +27,7 @@ import dask.array as da import numpy as np import pytest import xarray as xr +from pyresample import AreaDefinition ...
Remove unnecessary mocking in DayNightCompositor tests
py
diff --git a/test/test_Exceptions.py b/test/test_Exceptions.py index <HASH>..<HASH> 100644 --- a/test/test_Exceptions.py +++ b/test/test_Exceptions.py @@ -57,6 +57,14 @@ class TestUtil(unittest.TestCase): text = str(exc) self.assertEqual(text, "") + def test_hresult(self): + hresult, hcont...
test_SCardGetErrorMessage: check the value of SCARD_E_UNKNOWN_READER macOS and Linux does not define the return type of PC/SC function the same way. So we check the returned value correspond to what PySCard has defined.
py
diff --git a/audiolazy/lazy_synth.py b/audiolazy/lazy_synth.py index <HASH>..<HASH> 100644 --- a/audiolazy/lazy_synth.py +++ b/audiolazy/lazy_synth.py @@ -112,7 +112,7 @@ def attack(a, d, s): @tostream -def ones(self, dur): +def ones(dur): """ Creates a finite Stream that repeats "1.0" for the given time dur...
synth functions don't need "self"
py
diff --git a/wechatpy/client/async/asyncio.py b/wechatpy/client/async/asyncio.py index <HASH>..<HASH> 100644 --- a/wechatpy/client/async/asyncio.py +++ b/wechatpy/client/async/asyncio.py @@ -59,6 +59,8 @@ class AsyncClientMixin(object): **kwargs ) res = yield from asyncio.wait...
Reset timeout for later retrying
py
diff --git a/ImageCanvasItem.py b/ImageCanvasItem.py index <HASH>..<HASH> 100644 --- a/ImageCanvasItem.py +++ b/ImageCanvasItem.py @@ -685,6 +685,7 @@ class ImageCanvasItem(CanvasItem.CanvasItemComposition): drawing_context.fill_text("display:" + str(int(fps*100)/100.0), text_pos.x + 8, text_pos.y + 10...
Add statistics logger for drawing in Qt. svn r<I>
py