diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/looper/models.py b/looper/models.py index <HASH>..<HASH> 100644 --- a/looper/models.py +++ b/looper/models.py @@ -414,9 +414,26 @@ class SampleSheet(object): :return: An object or class `Sample` or a child of that class. :rtype: pipelines.Sample """ - # Return generic Sample. - # pipelines can e...
if pipelines is installed, samples will have sample-specific classes
py
diff --git a/tests/integration/test_metadata.py b/tests/integration/test_metadata.py index <HASH>..<HASH> 100644 --- a/tests/integration/test_metadata.py +++ b/tests/integration/test_metadata.py @@ -5,6 +5,7 @@ from cassandra.metadata import TableMetadata, Token, MD5Token, TokenMap from cassandra.policies import Simpl...
Fix token metadata test integration with CCM
py
diff --git a/yangson/datatype.py b/yangson/datatype.py index <HASH>..<HASH> 100644 --- a/yangson/datatype.py +++ b/yangson/datatype.py @@ -700,6 +700,10 @@ class Decimal64Type(NumericType): super()._handle_properties(stmt, sctx) def from_raw(self, raw: RawScalar) -> Optional[decimal.Decimal]: + "...
Fix #<I> The docstrings for the from_raw method in Int<I>Type, Uint<I>Type and Decimal<I>Type were out of sync.
py
diff --git a/test/test_async.py b/test/test_async.py index <HASH>..<HASH> 100644 --- a/test/test_async.py +++ b/test/test_async.py @@ -172,6 +172,7 @@ async def test_tickers_async(exchange): tickers = await asyncio.gather(*input_coroutines) dump(green(exchange.id), 'fetched', green(len(list(tickers))), 'ticke...
PEP8 E<I> expected 2 blank lines, found 1 #<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -74,8 +74,8 @@ setup( 'Development Status :: 4 - Beta', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.4', '...
Update declared python versions This is for consistency with Travis testing: we support Python <I>, <I>, and <I>. We no longer test with Python <I>.
py
diff --git a/lib/imageObject.py b/lib/imageObject.py index <HASH>..<HASH> 100644 --- a/lib/imageObject.py +++ b/lib/imageObject.py @@ -578,7 +578,7 @@ class imageObject(baseImageObject): self._exptime=self._image["PRIMARY"].header["EXPTIME"] if(self._exptime == 0): self._exptime =1. #to ...
changed error statement for exposure time = 0 to correct saying (was 0) git-svn-id: <URL>
py
diff --git a/workbench/server/data_store.py b/workbench/server/data_store.py index <HASH>..<HASH> 100644 --- a/workbench/server/data_store.py +++ b/workbench/server/data_store.py @@ -416,8 +416,8 @@ class DataStore(object): Operations like making sure collections are capped and indexes are set up. """...
first just setting the timer to <I> seconds so it gets called more often
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 @@ -14,7 +14,7 @@ import numpy as np from pandas._libs import lib, tslibs from pandas._typing import AnyArrayLike, Scalar, T -from pandas.compat.numpy import _np_version_und...
Numpy compat (#<I>)
py
diff --git a/src/keycloak/openid_connect.py b/src/keycloak/openid_connect.py index <HASH>..<HASH> 100644 --- a/src/keycloak/openid_connect.py +++ b/src/keycloak/openid_connect.py @@ -186,6 +186,20 @@ class KeycloakOpenidConnect(WellKnownMixin): return self._token_request(grant_type='authorization_code', code=c...
Add support for password grant (#6)
py
diff --git a/loginas/utils.py b/loginas/utils.py index <HASH>..<HASH> 100644 --- a/loginas/utils.py +++ b/loginas/utils.py @@ -40,15 +40,16 @@ def login_as(user, request, store_original_user=True): raise ImproperlyConfigured("Could not found an appropriate authentication backend") # Add admin audit ...
Fix "null value in column `user_id`" when switching back to original user (#<I>)
py
diff --git a/oz/aws_cdn/__init__.py b/oz/aws_cdn/__init__.py index <HASH>..<HASH> 100644 --- a/oz/aws_cdn/__init__.py +++ b/oz/aws_cdn/__init__.py @@ -53,7 +53,10 @@ def get_file(path): """Gets a file""" if oz.settings["s3_bucket"]: bucket = get_bucket(oz.settings["s3_bucket"]) - return S3File...
Fixes a bug where S3File objects could get an incorrect key.
py
diff --git a/aetros/starter.py b/aetros/starter.py index <HASH>..<HASH> 100644 --- a/aetros/starter.py +++ b/aetros/starter.py @@ -277,9 +277,13 @@ def start_command(logger, job_backend, env_overwrite=None, volumes=None, gpu_dev if docker_image: # docker run does not proxy INT signals to the docke...
check if docker is alive before stopping it
py
diff --git a/mark.py b/mark.py index <HASH>..<HASH> 100644 --- a/mark.py +++ b/mark.py @@ -29,7 +29,7 @@ class Mark: BREVE = 2 BAR = 1 NONE = 0 - + FAMILY_A = "aăâ" FAMILY_E = "eê" @@ -150,13 +150,12 @@ def is_valid_mark(comps, mark_trans): if mark_trans == "*_": return True co...
Introduce a strip() function in bogo.mark Strip a string of all marks and accents.
py
diff --git a/api/opentrons/drivers/smoothie_drivers/driver_3_0.py b/api/opentrons/drivers/smoothie_drivers/driver_3_0.py index <HASH>..<HASH> 100755 --- a/api/opentrons/drivers/smoothie_drivers/driver_3_0.py +++ b/api/opentrons/drivers/smoothie_drivers/driver_3_0.py @@ -54,7 +54,9 @@ def _parse_axis_values(raw_axis_val...
rounds coordinates from smoothie to 3 decimals
py
diff --git a/etc/reset.py b/etc/reset.py index <HASH>..<HASH> 100755 --- a/etc/reset.py +++ b/etc/reset.py @@ -181,9 +181,6 @@ def main(): if not args.no_deploy and "PACH_CA_CERTS" in os.environ: log.critical("Must unset PACH_CA_CERTS\nRun:\nunset PACH_CA_CERTS", file=sys.stderr) sys.exit(1) - ...
Fix reset script to work with go modules
py
diff --git a/pyamg/__init__.py b/pyamg/__init__.py index <HASH>..<HASH> 100644 --- a/pyamg/__init__.py +++ b/pyamg/__init__.py @@ -14,13 +14,12 @@ from version import version as __version__ from multilevel import * -from gallery import * from classical import ruge_stuben_solver from aggregation import smoothed_a...
cleaned up pyamg namespace resolves issue #<I>
py
diff --git a/angr/analyses/cfg/cfg_fast.py b/angr/analyses/cfg/cfg_fast.py index <HASH>..<HASH> 100644 --- a/angr/analyses/cfg/cfg_fast.py +++ b/angr/analyses/cfg/cfg_fast.py @@ -679,7 +679,8 @@ class CFGFast(ForwardAnalysis, CFGBase): # pylint: disable=abstract-method base_state=base_state) ...
Shut up the cfgfast warning if you actually DID provide regions
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -299,6 +299,6 @@ setup( 'update': UpdateCommand}, ext_modules=[Extension( name='yara', - extra_compile_args = ['-std=c99'], + language='c++11', include_dirs=['yara/libyara/include'...
Try compiling yara-python with C++ compiler.
py
diff --git a/yowsup/structs/protocoltreenode.py b/yowsup/structs/protocoltreenode.py index <HASH>..<HASH> 100644 --- a/yowsup/structs/protocoltreenode.py +++ b/yowsup/structs/protocoltreenode.py @@ -49,6 +49,9 @@ class ProtocolTreeNode(object): def getData(self): return self.data + + def setData(self...
Added setData to protocolTreeNode
py
diff --git a/paramiko/hostkeys.py b/paramiko/hostkeys.py index <HASH>..<HASH> 100644 --- a/paramiko/hostkeys.py +++ b/paramiko/hostkeys.py @@ -89,7 +89,7 @@ class HostKeys (MutableMapping): :raises IOError: if there was an error reading the file """ with open(filename, 'r') as f: - ...
Fix line number for known_hosts error messages.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,8 @@ class bdist_rpm(setuptools.command.bdist_rpm.bdist_rpm): in open(self.spec_tmpl).readlines()] -setuptools.setup(version=VERSION, +setuptools.setup(name="anyconfig", # Avoid 'Unknown' packa...
fix: workaround for 'unknown' package build issues in older linux dists like CentOS 7.x
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ def read(*filenames, **kwargs): NAME = 'tiingo' AUTHOR = "Cameron Yick" -EMAIL = 'cameron.yick@enigma.com' +EMAIL = 'cameron.yick@gmail.com' URL = 'https://github.com/hydrosquall/tiingo-python' DESCRIPTION...
[maintenance] update current email address for project maintenance
py
diff --git a/jtime/jtime.py b/jtime/jtime.py index <HASH>..<HASH> 100644 --- a/jtime/jtime.py +++ b/jtime/jtime.py @@ -9,6 +9,7 @@ import logging import getpass import os import sys +import types import configuration import connection @@ -132,7 +133,6 @@ def log(duration, message=None, use_last_commit_message=Fa...
Auto-discovering modules in jtime.py, so we don't have to keep putting the method names into the executable list.
py
diff --git a/cms_bootstrap3/templatetags/bootstrap_tags.py b/cms_bootstrap3/templatetags/bootstrap_tags.py index <HASH>..<HASH> 100644 --- a/cms_bootstrap3/templatetags/bootstrap_tags.py +++ b/cms_bootstrap3/templatetags/bootstrap_tags.py @@ -69,7 +69,12 @@ class MainMenu(InclusionTag): return {'template':...
Add compatibility for cms <I>
py
diff --git a/nrml/parsers.py b/nrml/parsers.py index <HASH>..<HASH> 100644 --- a/nrml/parsers.py +++ b/nrml/parsers.py @@ -83,6 +83,7 @@ class SourceModelParser(object): parse_fn = self._parse_fn_map.get(element.tag, None) if parse_fn is not None: yield parse_fn(el...
Clear source elements after they have been parsed.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -10,6 +10,9 @@ setup( license='MIT', packages=find_packages(), install_requires=['nose>=1.3', 'six'], + dependency_links=[ + 'https://github.com/nose-devs/nose/tarball/c0f777e488337dc7dde933453799986c4...
Hit github for Nose for now, boo
py
diff --git a/pymatgen/command_line/mcsqs_caller.py b/pymatgen/command_line/mcsqs_caller.py index <HASH>..<HASH> 100644 --- a/pymatgen/command_line/mcsqs_caller.py +++ b/pymatgen/command_line/mcsqs_caller.py @@ -15,6 +15,9 @@ from pymatgen import Structure class Sqs(NamedTuple): + """ + Return type for run_mc...
Add docstring to NamedTuple
py
diff --git a/watson_developer_cloud/speech_to_text_v1.py b/watson_developer_cloud/speech_to_text_v1.py index <HASH>..<HASH> 100644 --- a/watson_developer_cloud/speech_to_text_v1.py +++ b/watson_developer_cloud/speech_to_text_v1.py @@ -27,7 +27,7 @@ class SpeechToTextV1(WatsonDeveloperCloudService): WatsonDevel...
Prevent continuous from getting passed by default
py
diff --git a/fireplace/targeting.py b/fireplace/targeting.py index <HASH>..<HASH> 100644 --- a/fireplace/targeting.py +++ b/fireplace/targeting.py @@ -19,5 +19,6 @@ TARGET_ENEMY_CHARACTERS = TARGET_ENEMY_HERO | TARGET_ENEMY_MINIONS TARGET_ANY_MINION = TARGET_FRIENDLY_MINION | TARGET_ENEMY_MINION TARGET_ANY_HERO = T...
Add missing TARGET_ANY_CHARACTER constant
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ def readme(): setup( name='btlewrap', - version='0.0.3' + version='0.0.3', description='wrapper around different bluetooth low energy backends', url='https://github.com/ChristianKuehnel/b...
Another typo I should stop fixing things on the github webpage before testing them properly...
py
diff --git a/tests/integration/test_charmhub.py b/tests/integration/test_charmhub.py index <HASH>..<HASH> 100644 --- a/tests/integration/test_charmhub.py +++ b/tests/integration/test_charmhub.py @@ -2,6 +2,7 @@ import pytest from .. import base from juju.errors import JujuAPIError, JujuError +from juju import jasyn...
Add some wait stops in test case to avoid races
py
diff --git a/aioice/ice.py b/aioice/ice.py index <HASH>..<HASH> 100644 --- a/aioice/ice.py +++ b/aioice/ice.py @@ -306,7 +306,7 @@ class Connection: """ Gather local candidates. - You **must** call this coroutine calling :meth:`connect`. + You **must** call this coroutine before callin...
Fixes typo in gather_candidates docs
py
diff --git a/matlab_wrapper/matlab_session.py b/matlab_wrapper/matlab_session.py index <HASH>..<HASH> 100644 --- a/matlab_wrapper/matlab_session.py +++ b/matlab_wrapper/matlab_session.py @@ -428,7 +428,7 @@ class Workspace(object): out = session.get(attr) elif kind in (2, 3, 5, 6): # Function - ...
MatlabFunction works with weakrefs now (possible memory leak)
py
diff --git a/discord/channel.py b/discord/channel.py index <HASH>..<HASH> 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -460,6 +460,19 @@ class VoiceChannel(discord.abc.Connectable, discord.abc.GuildChannel, Hashable): if member is not None: ret.append(member) ...
Handle implicit perms in discord.VoiceChannel.permissions_for This adds some implicit permission handling for `discord.VoiceChannel.permissions_for` This is not documented behavior in discord's developer documentation, but it can easily be verified as correct.
py
diff --git a/dateutils.py b/dateutils.py index <HASH>..<HASH> 100644 --- a/dateutils.py +++ b/dateutils.py @@ -438,13 +438,12 @@ def pretty_date(time=False, ln=CFG_SITE_LANG): 'just now', etc. """ - #FIXME move to dateutils.py _ = gettext_set_language(ln) - now = datetime.datetime.now() + no...
dateutils: fix for wrong datetime import * Fixes wrong import and usage of datetime. (closes #<I>)
py
diff --git a/gcloud/connection.py b/gcloud/connection.py index <HASH>..<HASH> 100644 --- a/gcloud/connection.py +++ b/gcloud/connection.py @@ -57,9 +57,6 @@ class Connection(object): API_BASE_URL = 'https://www.googleapis.com' """The base of the API call URL.""" - _EMPTY = object() - """A pointer to r...
Removing unused _EMPTY sentinel from base Connection. I noticed this during the discussion in #<I>.
py
diff --git a/src/transformers/trainer.py b/src/transformers/trainer.py index <HASH>..<HASH> 100755 --- a/src/transformers/trainer.py +++ b/src/transformers/trainer.py @@ -1110,7 +1110,8 @@ class Trainer: else: # see __init__. max_steps is set when the dataset has no __len__ max_steps ...
Don't stop at num_epochs when using IterableDataset (#<I>)
py
diff --git a/teslajsonpy/__version__.py b/teslajsonpy/__version__.py index <HASH>..<HASH> 100644 --- a/teslajsonpy/__version__.py +++ b/teslajsonpy/__version__.py @@ -6,4 +6,4 @@ For more details about this api, please refer to the documentation at https://github.com/zabuldon/teslajsonpy """ -__version__ = "0.5.0" ...
<I> Automatically generated by python-semantic-release
py
diff --git a/treeherder/model/derived/jobs.py b/treeherder/model/derived/jobs.py index <HASH>..<HASH> 100644 --- a/treeherder/model/derived/jobs.py +++ b/treeherder/model/derived/jobs.py @@ -1980,7 +1980,7 @@ class JobsModel(TreeherderModelBase): props_where_repl = [ ' OR '.join(['(`property`=%s...
fixed SUM to test for null, rather than 0 rows
py
diff --git a/fonduer/parser/parser.py b/fonduer/parser/parser.py index <HASH>..<HASH> 100644 --- a/fonduer/parser/parser.py +++ b/fonduer/parser/parser.py @@ -458,7 +458,10 @@ class OmniParserUDF(UDF): # Process yield from self._parse_node(node, state) - for child in n...
Fix the parsing order of the nodes
py
diff --git a/src/transformers/models/bart/modeling_bart.py b/src/transformers/models/bart/modeling_bart.py index <HASH>..<HASH> 100755 --- a/src/transformers/models/bart/modeling_bart.py +++ b/src/transformers/models/bart/modeling_bart.py @@ -563,7 +563,7 @@ BART_GENERATION_EXAMPLE = r""" >>> inputs = tokenizer([A...
[Bart] correct doc test (#<I>)
py
diff --git a/spyderlib/widgets/sourcecode/base.py b/spyderlib/widgets/sourcecode/base.py index <HASH>..<HASH> 100644 --- a/spyderlib/widgets/sourcecode/base.py +++ b/spyderlib/widgets/sourcecode/base.py @@ -79,9 +79,12 @@ class CompletionWidget(QListWidget): 'class': 'class.png', ...
Do not show any icons in completion widget if there are no types
py
diff --git a/patchelf_wrapper/__init__.py b/patchelf_wrapper/__init__.py index <HASH>..<HASH> 100644 --- a/patchelf_wrapper/__init__.py +++ b/patchelf_wrapper/__init__.py @@ -1 +1 @@ -version = '1.1.0' +version = '1.2.0.dev0'
Update version to <I>.dev0
py
diff --git a/packet/OperatingSystem.py b/packet/OperatingSystem.py index <HASH>..<HASH> 100644 --- a/packet/OperatingSystem.py +++ b/packet/OperatingSystem.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -class OperatingSystem(): +class OperatingSystem(object): def __init__(self, data): self.slug = data['sl...
Let OperatingSystem inherit from object This makes type() return the correct result
py
diff --git a/pyaardvark/cli_tool.py b/pyaardvark/cli_tool.py index <HASH>..<HASH> 100644 --- a/pyaardvark/cli_tool.py +++ b/pyaardvark/cli_tool.py @@ -160,6 +160,11 @@ def main(args=None): args = parser.parse_args(args) + # python 3 compatibilty workaround (https://bugs.python.org/issue9253) + if not has...
cli_tool: add argparse workaround for py3 There seems to be an issue with subparsers in python 3. The default behaviour has changed to not require them. Add a workaround.
py
diff --git a/drf_auto_endpoint/adapters.py b/drf_auto_endpoint/adapters.py index <HASH>..<HASH> 100644 --- a/drf_auto_endpoint/adapters.py +++ b/drf_auto_endpoint/adapters.py @@ -170,7 +170,7 @@ class EmberAdapter(BaseAdapter): new_field = { 'label': field.get('ui', {}).get('label', ''), ...
:bug: don't overwrite extra when adapting a field dict that already has an extra section
py
diff --git a/superset/views/core.py b/superset/views/core.py index <HASH>..<HASH> 100755 --- a/superset/views/core.py +++ b/superset/views/core.py @@ -1111,7 +1111,7 @@ class Superset(BaseSupersetView): if not slc: abort(404) endpoint = '/superset/explore/?form_data={}'.format( - ...
[fix] /superset/slice/id url is too long (#<I>)
py
diff --git a/openquake/risklib/calculators.py b/openquake/risklib/calculators.py index <HASH>..<HASH> 100644 --- a/openquake/risklib/calculators.py +++ b/openquake/risklib/calculators.py @@ -218,7 +218,7 @@ def asset_statistics( quantile_curves = numpy.array( [[losses, quantile_curve(post_processing, weig...
enforce correct dimension of quantile curves also when there are no quantiles
py
diff --git a/arviz/data/io_pymc3.py b/arviz/data/io_pymc3.py index <HASH>..<HASH> 100644 --- a/arviz/data/io_pymc3.py +++ b/arviz/data/io_pymc3.py @@ -52,7 +52,7 @@ class PyMC3Converter: chain_likelihoods = [] for chain in self.trace.chains: - log_like = (log_likelihood_vals_point(point) ...
Fix warning from io_pymc3 (#<I>)
py
diff --git a/cheroot/server.py b/cheroot/server.py index <HASH>..<HASH> 100644 --- a/cheroot/server.py +++ b/cheroot/server.py @@ -486,6 +486,7 @@ class ChunkedRFile(object): self.buffer = self.buffer[remaining:] else: data += self.buffer + self.buffer = EMP...
Reset chunked rfile buffer if the size is unknown Fix cherrypy/cherrypy#<I>
py
diff --git a/openquake/engine/calculators/risk/event_based_bcr/core.py b/openquake/engine/calculators/risk/event_based_bcr/core.py index <HASH>..<HASH> 100644 --- a/openquake/engine/calculators/risk/event_based_bcr/core.py +++ b/openquake/engine/calculators/risk/event_based_bcr/core.py @@ -170,11 +170,6 @@ class EventB...
fix event based bcr
py
diff --git a/django_extensions/management/modelviz.py b/django_extensions/management/modelviz.py index <HASH>..<HASH> 100644 --- a/django_extensions/management/modelviz.py +++ b/django_extensions/management/modelviz.py @@ -278,8 +278,7 @@ def generate_graph_data(app_labels, **kwargs): if skip_field(fie...
Remove a workaround in modelviz.py for Django <I>
py
diff --git a/django_databrowse/tests.py b/django_databrowse/tests.py index <HASH>..<HASH> 100644 --- a/django_databrowse/tests.py +++ b/django_databrowse/tests.py @@ -122,7 +122,6 @@ class EasyFieldTest(TestCase): def test_choices(self): em = EasyModel(django_databrowse.site, SomeModel) - em.site...
added related urls tests to datastructure EasyField
py
diff --git a/analyzers/MISP/misp.py b/analyzers/MISP/misp.py index <HASH>..<HASH> 100755 --- a/analyzers/MISP/misp.py +++ b/analyzers/MISP/misp.py @@ -10,7 +10,9 @@ class MISPAnalyzer(Analyzer): Analyzer.__init__(self) # Fixes #94. Instead of None, the string Unnamed should be passed to MISPClient c...
Fixes #<I>: Cortex passes an empty list as name instead of `None`.
py
diff --git a/numina/core/recipes.py b/numina/core/recipes.py index <HASH>..<HASH> 100644 --- a/numina/core/recipes.py +++ b/numina/core/recipes.py @@ -72,6 +72,13 @@ class BaseRecipe(object): if 'runinfo' in kwds: self.runinfo = kwds['runinfo'] + @classmethod + def create_result(cls, *args...
Add helper method to call the Recipe result constructor
py
diff --git a/tests/utils.py b/tests/utils.py index <HASH>..<HASH> 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -11,6 +11,7 @@ from websocket_server import WebsocketServer class TestClient(): def __init__(self, port, threaded=True): + self.received_messages = [] websocket.enableTrace(True)...
Make TestClient to accumulate messages received
py
diff --git a/tests/integration/standard/test_policies.py b/tests/integration/standard/test_policies.py index <HASH>..<HASH> 100644 --- a/tests/integration/standard/test_policies.py +++ b/tests/integration/standard/test_policies.py @@ -113,7 +113,7 @@ class SpecExecTest(BasicSharedKeyspaceUnitTestCase): res...
Fix small C* version issue in test_speculative_execution
py
diff --git a/tests/integrations/test_numbers.py b/tests/integrations/test_numbers.py index <HASH>..<HASH> 100644 --- a/tests/integrations/test_numbers.py +++ b/tests/integrations/test_numbers.py @@ -1,5 +1,7 @@ from unittest import TestCase +from robber.bad_expectation import BadExpectation + from robber import exp...
[r] Manually try/except TestChangeIntegrations
py
diff --git a/fedmsg_meta_fedora_infrastructure/trac.py b/fedmsg_meta_fedora_infrastructure/trac.py index <HASH>..<HASH> 100644 --- a/fedmsg_meta_fedora_infrastructure/trac.py +++ b/fedmsg_meta_fedora_infrastructure/trac.py @@ -103,7 +103,9 @@ class TracProcessor(BaseProcessor): description = msg['msg']['ti...
Be careful with the trac ticket summary. Sometimes its not there. For example: <URL>
py
diff --git a/src/memote/suite/collect.py b/src/memote/suite/collect.py index <HASH>..<HASH> 100644 --- a/src/memote/suite/collect.py +++ b/src/memote/suite/collect.py @@ -92,8 +92,9 @@ class ResultCollectionPlugin(object): if exp is None: metafunc.parametrize("experiment", []) ...
fix: consistently name parametrized experiments
py
diff --git a/featurex/graph.py b/featurex/graph.py index <HASH>..<HASH> 100644 --- a/featurex/graph.py +++ b/featurex/graph.py @@ -25,6 +25,9 @@ class Node(object): def add_child(self, node): self.children.append(node) + def is_leaf(self): + return len(self.children) > 0 + class Graph(Node)...
add check for terminal node in graph
py
diff --git a/bugwarrior/services/bz.py b/bugwarrior/services/bz.py index <HASH>..<HASH> 100644 --- a/bugwarrior/services/bz.py +++ b/bugwarrior/services/bz.py @@ -254,7 +254,7 @@ class BugzillaService(IssueService): needinfos = filter(lambda f: ( f['name'] == 'needinfo' ...
bz: handle open-ended needinfo requests If anyone can provide it, also match it.
py
diff --git a/testing/test_recwarn.py b/testing/test_recwarn.py index <HASH>..<HASH> 100644 --- a/testing/test_recwarn.py +++ b/testing/test_recwarn.py @@ -64,12 +64,12 @@ def test_deprecated_call_ret(): assert ret == 42 def test_deprecated_call_preserves(): - r = py.std.warnings.onceregistry.copy() - f = ...
Correct test_deprecated_call_preserves test. Test if we preserve the correct functions.
py
diff --git a/ca/certificate/management/commands/list.py b/ca/certificate/management/commands/list.py index <HASH>..<HASH> 100644 --- a/ca/certificate/management/commands/list.py +++ b/ca/certificate/management/commands/list.py @@ -24,7 +24,7 @@ from certificate.models import Certificate class Command(BaseCommand):...
list prints serials and if cert is revoked
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ class DevelopCmd(develop): # we need to make symbolic links from vaex-core/vaex/<name> to vaex-<name>/vaex/<name # otherwise development install do not work if package != '...
install: setup.py now in root
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -37,6 +37,7 @@ setup( 'djangocms-text-ckeditor', 'cmsplugin-filer', 'django-meta>=1.2', + 'django-meta-mixin>=0.3', 'aldryn-apphooks-config>=0.2.6', 'djangocms-apphook-setup'...
Add versioned dependency on django-meta-mixin to help transition
py
diff --git a/indra/sources/indra_db_rest/client_api.py b/indra/sources/indra_db_rest/client_api.py index <HASH>..<HASH> 100644 --- a/indra/sources/indra_db_rest/client_api.py +++ b/indra/sources/indra_db_rest/client_api.py @@ -8,10 +8,10 @@ __all__ = ['get_statements', 'get_statements_for_paper', import json import l...
Replace join with urljoin.
py
diff --git a/vasppy/procar.py b/vasppy/procar.py index <HASH>..<HASH> 100644 --- a/vasppy/procar.py +++ b/vasppy/procar.py @@ -326,10 +326,14 @@ class Procar: """ pcar = cls( negative_occupancies=negative_occupancies ) - pcar.read_from_file( filename=filename ) + pcar._read_fro...
Deprecated public read_from_file() method
py
diff --git a/dev_menu.py b/dev_menu.py index <HASH>..<HASH> 100755 --- a/dev_menu.py +++ b/dev_menu.py @@ -67,7 +67,7 @@ class CMake(object): def read_config(self): assert os.path.isfile(self.cmake_options_yaml) with open(self.cmake_options_yaml, 'r') as f: - self.cmake_options = yaml....
safe load for yaml (#<I>) * safe load for yaml * Trigger notification
py
diff --git a/insanities/forms/convs.py b/insanities/forms/convs.py index <HASH>..<HASH> 100644 --- a/insanities/forms/convs.py +++ b/insanities/forms/convs.py @@ -319,16 +319,6 @@ class EnumChoice(Converter): return dict(self.choices).get(self.conv.to_python(value)) -class DatetimeDisplay(DisplayOnly): - -...
removed DatetimeDisplay converter: it's exactly Datetime without write permissions
py
diff --git a/pysos/kernel.py b/pysos/kernel.py index <HASH>..<HASH> 100644 --- a/pysos/kernel.py +++ b/pysos/kernel.py @@ -626,8 +626,7 @@ class SoS_Kernel(Kernel): else: raise UsageError('Can only pass variables to python kernel') - - def handle_magic_shell(self, cmd): + def handle_shell_...
Replace %shell with !shell, issue <I>
py
diff --git a/src/scs_core/client/http_response.py b/src/scs_core/client/http_response.py index <HASH>..<HASH> 100644 --- a/src/scs_core/client/http_response.py +++ b/src/scs_core/client/http_response.py @@ -40,7 +40,7 @@ class HTTPResponse(JSONable, ABC): def as_http_response(self, cors=False): jdict = ...
Added ConfigurationSample class
py
diff --git a/build/build.py b/build/build.py index <HASH>..<HASH> 100755 --- a/build/build.py +++ b/build/build.py @@ -59,6 +59,7 @@ except ImportError: javaTargetVersion = '1.8' javaEnvironmentVersion = subprocess.check_output(['java', '-version'], + text=True, ...
Make Java-environment check work for Python3 too
py
diff --git a/ucoinpy/grammars/output.py b/ucoinpy/grammars/output.py index <HASH>..<HASH> 100644 --- a/ucoinpy/grammars/output.py +++ b/ucoinpy/grammars/output.py @@ -3,11 +3,11 @@ from ..documents.constants import block_hash_regex as hash_regex from pypeg2 import * -class Pubkey(Symbol): +class Pubkey(str): ...
Pubkey and Hash are better as str classes
py
diff --git a/pandas/tests/extension/base/setitem.py b/pandas/tests/extension/base/setitem.py index <HASH>..<HASH> 100644 --- a/pandas/tests/extension/base/setitem.py +++ b/pandas/tests/extension/base/setitem.py @@ -280,12 +280,11 @@ class BaseSetitemTests(BaseExtensionTests): with pytest.raises(ValueError, mat...
TST: fix incorrect extension test (#<I>)
py
diff --git a/test/test_utils.py b/test/test_utils.py index <HASH>..<HASH> 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -60,7 +60,7 @@ integration_test = timed(INTEGRATION_MAXIMUM_TEST_TIME) TEST_DIR = dirname(__file__) ROOT_DIR = join(TEST_DIR, pardir) -TEST_TEMPDIR_PREFIX='tmp_pulsar_' +TEST_TEMPDIR...
Been writing too much shell lately...
py
diff --git a/dedupe/api.py b/dedupe/api.py index <HASH>..<HASH> 100644 --- a/dedupe/api.py +++ b/dedupe/api.py @@ -44,7 +44,6 @@ class Matching(object): Public methods: - `__init__` - - `blockedPairs` - `thresholdBlocks` - `matchBlocks` """ @@ -71,7 +70,7 @@ class Matching(object): ...
remove _blockedPairs from public methods
py
diff --git a/neurom/analysis/morphtree.py b/neurom/analysis/morphtree.py index <HASH>..<HASH> 100644 --- a/neurom/analysis/morphtree.py +++ b/neurom/analysis/morphtree.py @@ -45,12 +45,12 @@ import numpy as np def path_length(tree): '''Get the path length from a sub-tree to the root node''' t = tree - l =...
Optimize neurom.analysis.morphtree.path_length. * Store squares of segment distances, then calculate their square roots in one single call to numpy.sqrt. Sum the distances with numpy.sum.
py
diff --git a/py3status/modules/imap.py b/py3status/modules/imap.py index <HASH>..<HASH> 100644 --- a/py3status/modules/imap.py +++ b/py3status/modules/imap.py @@ -183,13 +183,16 @@ class Py3status: while True: try: response = socket.read(4096).decode('ascii') - ...
put 'if error: return' on two lines for travis
py
diff --git a/src/python/dxpy/utils/exec_utils.py b/src/python/dxpy/utils/exec_utils.py index <HASH>..<HASH> 100644 --- a/src/python/dxpy/utils/exec_utils.py +++ b/src/python/dxpy/utils/exec_utils.py @@ -363,7 +363,7 @@ class DXExecDependencyInstaller(object): elif dep_type == "cpan": return "cpanm...
Update cran repository (#<I>) Execdepends cran packages failing to access the current repository
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,7 @@ setup( include_package_data=True, python_requires=">=3.4", install_requires=[ - 'pyyaml>=4.2b1' + 'pyyaml>=5.4' ], zip_safe=False, classifiers=[
deps: require pyyaml >= <I> for CVE patch
py
diff --git a/cumulusci/tasks/bulkdata/snowfakery_utils/subtask_configurator.py b/cumulusci/tasks/bulkdata/snowfakery_utils/subtask_configurator.py index <HASH>..<HASH> 100644 --- a/cumulusci/tasks/bulkdata/snowfakery_utils/subtask_configurator.py +++ b/cumulusci/tasks/bulkdata/snowfakery_utils/subtask_configurator.py @...
Fix Snowfakery's Unique ID feature
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 @@ -1470,6 +1470,7 @@ class MainWindow(QMainWindow): def setup_default_layouts(self, index, settings): """Setup default layouts when run for...
Main Window: Unmaximize current plugin before changing layouts and starting our tour
py
diff --git a/ciscosparkapi/api/teammemberships.py b/ciscosparkapi/api/teammemberships.py index <HASH>..<HASH> 100644 --- a/ciscosparkapi/api/teammemberships.py +++ b/ciscosparkapi/api/teammemberships.py @@ -236,7 +236,7 @@ class TeamMembershipsAPI(object): "argument must be specified." ...
#<I> Correct REST verb in team_membership.update() Verb should be PUT instead of POST
py
diff --git a/graphene/__init__.py b/graphene/__init__.py index <HASH>..<HASH> 100644 --- a/graphene/__init__.py +++ b/graphene/__init__.py @@ -10,7 +10,7 @@ except NameError: __SETUP__ = False -VERSION = (1, 0, 1, 'final', 0) +VERSION = (1, 0, 2, 'final', 0) __version__ = get_version(VERSION)
Updated version to <I>
py
diff --git a/bedup/filesystem.py b/bedup/filesystem.py index <HASH>..<HASH> 100644 --- a/bedup/filesystem.py +++ b/bedup/filesystem.py @@ -589,8 +589,8 @@ class WholeFS(object): BLKID_RE = re.compile( - br'^(?P<dev>/dev/[^:]*): ' - br'(?:LABEL="(?P<label>[^"]*)" )?UUID="(?P<uuid>[^"]*)"\s*$') + br'^(?P<de...
Relax the blkid regex, for some reason UML is slightly different.
py
diff --git a/clients/python/girder_client/__init__.py b/clients/python/girder_client/__init__.py index <HASH>..<HASH> 100644 --- a/clients/python/girder_client/__init__.py +++ b/clients/python/girder_client/__init__.py @@ -218,7 +218,7 @@ class GirderClient(object): }) # If success, return the json ...
Allow <I> as successful request status code
py
diff --git a/pywbem/_listener.py b/pywbem/_listener.py index <HASH>..<HASH> 100644 --- a/pywbem/_listener.py +++ b/pywbem/_listener.py @@ -538,14 +538,15 @@ class ListenerRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): """ self.server.listener.logger.log(level, format_, *args) - def log_me...
Pylint: Fixed name of parm in overriding log_message()
py
diff --git a/docker/client.py b/docker/client.py index <HASH>..<HASH> 100644 --- a/docker/client.py +++ b/docker/client.py @@ -239,7 +239,7 @@ class Client(requests.Session): self._raise_for_status(res) return res.raw - def create_container(self, image, command, hostname=None, user=None, + def...
command param in create_container is optional (for images that come with a predefined default command)
py
diff --git a/spyder/utils/encoding.py b/spyder/utils/encoding.py index <HASH>..<HASH> 100644 --- a/spyder/utils/encoding.py +++ b/spyder/utils/encoding.py @@ -235,10 +235,12 @@ def write(text, filename, encoding='utf-8', mode='wb'): with open(filename, mode) as textfile: textfile.write(text) ...
Editor: Preserve file permissions when saving
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -19,6 +19,8 @@ setup( 'Programming Language :: Python', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3.2', + ...
Update setup.py to note Python 3 support
py
diff --git a/stagpy/misc.py b/stagpy/misc.py index <HASH>..<HASH> 100644 --- a/stagpy/misc.py +++ b/stagpy/misc.py @@ -98,6 +98,14 @@ def parse_timesteps(args): args.timestep = list(map(int, tstp)) +def steps_gen(sdat, args): + """Return generator over relevant snapshots or timesteps""" + if args.snapsho...
Add misc.steps_gen function Return a generator through relevant steps of a StagyyData instance.
py
diff --git a/intranet/apps/eighth/models.py b/intranet/apps/eighth/models.py index <HASH>..<HASH> 100644 --- a/intranet/apps/eighth/models.py +++ b/intranet/apps/eighth/models.py @@ -1080,7 +1080,7 @@ class EighthScheduledActivity(AbstractBaseEighthModel): capacity = self.get_true_capacity() return ca...
refactor(eighth): fix type annotation
py
diff --git a/splunklib/searchcommands/internals.py b/splunklib/searchcommands/internals.py index <HASH>..<HASH> 100644 --- a/splunklib/searchcommands/internals.py +++ b/splunklib/searchcommands/internals.py @@ -232,7 +232,7 @@ class CommandLineParser(object): _escaped_character_re = re.compile(r'(\\.|""|[\\"])')...
Fix #<I>, avoid catastrophic backtracking in searchcommands.internals
py
diff --git a/webview/winforms.py b/webview/winforms.py index <HASH>..<HASH> 100644 --- a/webview/winforms.py +++ b/webview/winforms.py @@ -57,8 +57,8 @@ class BrowserView: self.web_browser = WinForms.WebBrowser() self.web_browser.Dock = WinForms.DockStyle.Fill self.web_browser.Scr...
[WinForms] Revert debugging stuff
py
diff --git a/src/benchsuite/cli/__init__.py b/src/benchsuite/cli/__init__.py index <HASH>..<HASH> 100644 --- a/src/benchsuite/cli/__init__.py +++ b/src/benchsuite/cli/__init__.py @@ -17,4 +17,4 @@ # Developed in the ARTIST EU project (www.artist-project.eu) and in the # CloudPerfect EU project (https://cloudperfect.e...
pdemoved some workloads that fail on all
py
diff --git a/rollbar/__init__.py b/rollbar/__init__.py index <HASH>..<HASH> 100644 --- a/rollbar/__init__.py +++ b/rollbar/__init__.py @@ -966,11 +966,6 @@ def _build_django_request_data(request): 'user_ip': _wsgi_extract_user_ip(request.environ), } - try: - request_data['body'] = request.body...
Remove Django request body from payload. It can contain sensitive data.
py
diff --git a/src/pdbpp.py b/src/pdbpp.py index <HASH>..<HASH> 100644 --- a/src/pdbpp.py +++ b/src/pdbpp.py @@ -162,7 +162,7 @@ def setbgcolor(line, color): # I tried, but not in emacs. To set the background color, it needs to # have also an explicit foreground color, e.g. 'ESC[37;44m'. These ...
minor: fix typo: wich -> which (#<I>) Closes #<I>
py
diff --git a/py4chan/util.py b/py4chan/util.py index <HASH>..<HASH> 100644 --- a/py4chan/util.py +++ b/py4chan/util.py @@ -3,7 +3,12 @@ """ import re -from HTMLParser import HTMLParser + +# HTML parser was renamed in python 3.x +try: + from html.parser import HTMLParser +except ImportError: + from HTMLParser ...
try/except func for both 2.x/3.x support: HTML parser was renamed in python 3.x
py
diff --git a/allegedb/allegedb/graph.py b/allegedb/allegedb/graph.py index <HASH>..<HASH> 100644 --- a/allegedb/allegedb/graph.py +++ b/allegedb/allegedb/graph.py @@ -1499,7 +1499,7 @@ class GraphsMapping(MutableMapping): return len(self.orm._graph_objs) def __getitem__(self, item): - return self...
Let GraphsMapping handle if the graph hasn't been loaded yet This is unlikely but it's good to be sure.
py