diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/saltapi/netapi/rest_cherrypy/app.py b/saltapi/netapi/rest_cherrypy/app.py index <HASH>..<HASH> 100644 --- a/saltapi/netapi/rest_cherrypy/app.py +++ b/saltapi/netapi/rest_cherrypy/app.py @@ -35,6 +35,13 @@ A REST API for Salt static_path : ``/static`` The URL prefix to use when serving static ...
Added a dedicated URL for serving an HTML app
py
diff --git a/nosexcover/nosexcover.py b/nosexcover/nosexcover.py index <HASH>..<HASH> 100644 --- a/nosexcover/nosexcover.py +++ b/nosexcover/nosexcover.py @@ -18,6 +18,17 @@ class XCoverage(cover.Coverage): Add options to command line. """ Plugin.options(self, parser, env) + parser.add...
Set xml file path to store the coverage report in with --xcoverage-file option
py
diff --git a/hyp/adapters/base.py b/hyp/adapters/base.py index <HASH>..<HASH> 100644 --- a/hyp/adapters/base.py +++ b/hyp/adapters/base.py @@ -1,16 +1,16 @@ from __future__ import absolute_import from schematics.models import Model as SchematicsSerializer -from marshmallow import Serializer as MarshmallowSerializer...
Import Schema instead of Serializer from marshmallow Also get rid of unnecessary serializer instantiatiions in adapter_for
py
diff --git a/tools/debugging/replay_wal.py b/tools/debugging/replay_wal.py index <HASH>..<HASH> 100644 --- a/tools/debugging/replay_wal.py +++ b/tools/debugging/replay_wal.py @@ -169,13 +169,11 @@ def replay_wal(storage, token_network_identifier, partner_address, translator=No 'db-file', type=click.Path(exist...
replay_wal.py: changed command line arguments If either the `token_network_identifier` or `partner_address` parameters weren't given the utility would fail at lines <I> or <I>. This change the values from optional to required.
py
diff --git a/pycbc/types/array.py b/pycbc/types/array.py index <HASH>..<HASH> 100644 --- a/pycbc/types/array.py +++ b/pycbc/types/array.py @@ -545,8 +545,9 @@ class Array(object): def abs_max_loc(self): """Return the maximum elementwise norm in the array along with the index location""" if type(s...
bugfix for wrong endpoint for absmaxloc
py
diff --git a/bika/lims/content/instrument.py b/bika/lims/content/instrument.py index <HASH>..<HASH> 100644 --- a/bika/lims/content/instrument.py +++ b/bika/lims/content/instrument.py @@ -202,6 +202,27 @@ schema = BikaFolderSchema.copy() + BikaSchema.copy() + Schema(( ), RecordsField( + 'R...
ResultFilesFolder is back too.
py
diff --git a/cartoframes/data/services/isolines.py b/cartoframes/data/services/isolines.py index <HASH>..<HASH> 100644 --- a/cartoframes/data/services/isolines.py +++ b/cartoframes/data/services/isolines.py @@ -202,8 +202,7 @@ class Isolines(Service): # Execute and download the query to generate the isolines ...
Removing sort by data_range when retrieving isolines
py
diff --git a/tests/calculators/hazard/classical/post_processing_test.py b/tests/calculators/hazard/classical/post_processing_test.py index <HASH>..<HASH> 100644 --- a/tests/calculators/hazard/classical/post_processing_test.py +++ b/tests/calculators/hazard/classical/post_processing_test.py @@ -31,8 +31,10 @@ import num...
tests/calcs/hazard/classical/post_processing_test: Stubbed the basic test run for exercising hazard map creation. The hazard maps are created, but we still test the output values.
py
diff --git a/tests/test_command__requirements.py b/tests/test_command__requirements.py index <HASH>..<HASH> 100644 --- a/tests/test_command__requirements.py +++ b/tests/test_command__requirements.py @@ -54,9 +54,9 @@ class RequirementsTestCase(TestCase): from os import path with self.temporary_directo...
TRIVIAL fixing tests another attempt
py
diff --git a/discord/abc.py b/discord/abc.py index <HASH>..<HASH> 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -1223,6 +1223,7 @@ class Connectable(Protocol): The following implement this ABC: - :class:`~discord.VoiceChannel` + - :class:`~discord.StageChannel` Note ----
Added discord.StageChannel in documentation
py
diff --git a/authcode/models.py b/authcode/models.py index <HASH>..<HASH> 100644 --- a/authcode/models.py +++ b/authcode/models.py @@ -45,7 +45,7 @@ def get_auth_user_mixin(auth, roles=False): class AuthUserMixin(object): id = Column(Integer, primary_key=True) - login = Column(Unicode, nullable=F...
Add a length to the login column to be usable in lesser db dialects
py
diff --git a/header_data.py b/header_data.py index <HASH>..<HASH> 100644 --- a/header_data.py +++ b/header_data.py @@ -241,7 +241,10 @@ class CHeader: @return: the document creation time defined in fileDesc of header """ fileDescObj = self.node.find('fileDesc') - return fileDescObj.get...
made sure get_dct does not break if no fileDesc object
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ from distutils.core import setup #python setup.py sdist upload setup(name='pygeotools', - version='0.3.0', + version='0.4.0', description='Libraries and command-line utilities for geospatial data pr...
setup: update to version <I>
py
diff --git a/pytest_asyncio/plugin.py b/pytest_asyncio/plugin.py index <HASH>..<HASH> 100644 --- a/pytest_asyncio/plugin.py +++ b/pytest_asyncio/plugin.py @@ -81,8 +81,6 @@ def pytest_fixture_setup(fixturedef, request): else: policy.set_event_loop(loop) - return outcome - @pytest.m...
Remove return from pytest_fixture_setup.
py
diff --git a/gitlab/mixins.py b/gitlab/mixins.py index <HASH>..<HASH> 100644 --- a/gitlab/mixins.py +++ b/gitlab/mixins.py @@ -463,7 +463,7 @@ class DeleteMixin(_RestManagerBase): gitlab: gitlab.Gitlab @exc.on_http_error(exc.GitlabDeleteError) - def delete(self, id: Union[str, int], **kwargs: Any) -> Non...
feat(mixins): allow deleting resources without IDs
py
diff --git a/tests/test_environment.py b/tests/test_environment.py index <HASH>..<HASH> 100644 --- a/tests/test_environment.py +++ b/tests/test_environment.py @@ -17,3 +17,8 @@ def test_env_should_raise_for_unknown_extension(): StrictEnvironment(context=context, keep_trailing_newline=True) assert 'Unabl...
Add a simple test to make sure cookiecutter comes with jinja2_time
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ setup( maintainer = 'pixel', maintainer_email = 'ivan.n.sergeev@gmail.com', license = 'GPL3', - description = 'Cuts the tags and attributes from HTML that are not in the whitelist. Their conten...
Update setup.py Missed out on one change.
py
diff --git a/docs/source/conf.py b/docs/source/conf.py index <HASH>..<HASH> 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -287,7 +287,10 @@ intersphinx_mapping = { autoclass_content = 'init' autodoc_default_flags = ['members', 'undoc-members', 'private-members', 'special-members', 'show-inheritance'] ...
PR #<I> - ignore :py:obj:function from sphinx warnings, it's not correctly documented upstream
py
diff --git a/cli-install.py b/cli-install.py index <HASH>..<HASH> 100755 --- a/cli-install.py +++ b/cli-install.py @@ -18,14 +18,14 @@ import os, os.path, sys, stat, shutil, string, urllib, xml.etree.ElementTree, subprocess from termios import tcflush, TCIOFLUSH -cadmium_sh = """#! /bin/sh +cadmium_sh = """#! /bin/...
Update cli-install.py
py
diff --git a/playback/prepare_host.py b/playback/prepare_host.py index <HASH>..<HASH> 100644 --- a/playback/prepare_host.py +++ b/playback/prepare_host.py @@ -42,6 +42,6 @@ class PrepareHost(object): sudo('DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--...
Waitting rebbot for <I>s
py
diff --git a/reporter.py b/reporter.py index <HASH>..<HASH> 100644 --- a/reporter.py +++ b/reporter.py @@ -2,10 +2,10 @@ import crayons import moban.constants as constants -MESSAGE_TEMPLATING = "Templating {} to {}" +MESSAGE_TEMPLATING = "Templating {0} to {1}" MESSAGE_NO_ACTION = "Everything is up to date!" -MES...
:sparkles: try to support python <I>. fix #<I>
py
diff --git a/dbaas_zabbix/database_providers.py b/dbaas_zabbix/database_providers.py index <HASH>..<HASH> 100644 --- a/dbaas_zabbix/database_providers.py +++ b/dbaas_zabbix/database_providers.py @@ -149,6 +149,18 @@ class MySQLHighAvailabilityZabbixProvider(MySQLZabbixProvider): alarm='yes', **extra_parame...
Adding Support to MySQL Percona - New classes implemented from existent classes - provider_name equals mysql_percona
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ test_requires = [ setup( name="ereuse-utils", - version='0.4.0b13', + version='0.4.0b14', packages=find_packages(), url='https://github.com/eReuse/utils', license='AGPLv3 License',
Bump to <I>b<I>
py
diff --git a/safe/gui/tools/test/test_keywords_dialog.py b/safe/gui/tools/test/test_keywords_dialog.py index <HASH>..<HASH> 100644 --- a/safe/gui/tools/test/test_keywords_dialog.py +++ b/safe/gui/tools/test/test_keywords_dialog.py @@ -213,7 +213,7 @@ class KeywordsDialogTest(unittest.TestCase): self.assertIsNo...
Better docstring for unit test.
py
diff --git a/netuitive/client.py b/netuitive/client.py index <HASH>..<HASH> 100644 --- a/netuitive/client.py +++ b/netuitive/client.py @@ -15,7 +15,7 @@ class Client(object): """ - def __init__(self, url='https://api.app.netuitive.com', api_key='apikey'): + def __init__(self, url='https://api.app.netuiti...
don't assume part of api url
py
diff --git a/pytds/dbapi.py b/pytds/dbapi.py index <HASH>..<HASH> 100644 --- a/pytds/dbapi.py +++ b/pytds/dbapi.py @@ -15,7 +15,7 @@ import errno import uuid from .tds import ( Error, LoginError, DatabaseError, - InterfaceError, TimeoutError, + InterfaceError, TimeoutError, OperationalError, TDS_PENDI...
ignore error 'The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION.' in rollback method
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -23,7 +23,8 @@ MARISA_FILES[:] = itertools.chain( for path in MARISA_FILES)) DESCRIPTION = __doc__ -LONG_DESCRIPTION = open("README.rst").read() + open("CHANGES.rst").read() +with open("README.rst", encoding="utf-8")...
Fix ResourceWarning: unclosed file in setup.py (#<I>)
py
diff --git a/openfisca_core/holders.py b/openfisca_core/holders.py index <HASH>..<HASH> 100644 --- a/openfisca_core/holders.py +++ b/openfisca_core/holders.py @@ -295,6 +295,8 @@ class Holder(object): return self.get_from_cache(period, extra_params) def get_from_cache(self, period, extra_params = None):...
Don't bother with cache if a column is neutralised
py
diff --git a/tests/test_tokenization_wav2vec2.py b/tests/test_tokenization_wav2vec2.py index <HASH>..<HASH> 100644 --- a/tests/test_tokenization_wav2vec2.py +++ b/tests/test_tokenization_wav2vec2.py @@ -554,3 +554,11 @@ class Wav2Vec2CTCTokenizerTest(TokenizerTesterMixin, unittest.TestCase): self.asser...
**encode_plus() shouldn't run for W2V2CTC (#<I>) * **encode_plus() shouldn't run for W2V2CTC * Typo
py
diff --git a/hamper/plugins/karma.py b/hamper/plugins/karma.py index <HASH>..<HASH> 100644 --- a/hamper/plugins/karma.py +++ b/hamper/plugins/karma.py @@ -30,7 +30,7 @@ class Karma(ChatCommandPlugin): priority = -2 - short_desc = 'karma/score - Give or take karma from someone' + short_desc = 'karma - Giv...
karma: no more !score, just !karma
py
diff --git a/rpc_differ/rpc_differ.py b/rpc_differ/rpc_differ.py index <HASH>..<HASH> 100644 --- a/rpc_differ/rpc_differ.py +++ b/rpc_differ/rpc_differ.py @@ -267,16 +267,9 @@ def run_rpc_differ(): role_yaml_latest, args.update) - ...
Removed yaml_files from get_project method In osa_differ version <I>, yaml_files was removed from the get_project method in favor of automatically discovering yaml files in the OSA project. This commit removes mention of yaml_files to comply with the new method signature is osa_differ
py
diff --git a/patroni/postgresql.py b/patroni/postgresql.py index <HASH>..<HASH> 100644 --- a/patroni/postgresql.py +++ b/patroni/postgresql.py @@ -51,7 +51,6 @@ class Postgresql(object): CMDLINE_OPTIONS = { 'listen_addresses': None, 'port': None, - 'config_file': None, 'wal_level'...
Rollback changes regarding config_file It could be set only on the postgres command line anyway.
py
diff --git a/harpoon/container_manager.py b/harpoon/container_manager.py index <HASH>..<HASH> 100644 --- a/harpoon/container_manager.py +++ b/harpoon/container_manager.py @@ -215,11 +215,20 @@ def make_server(manager, address): def handle(self): try: super().handle() - ...
Give back <I>s for errors other than DelfickError as well
py
diff --git a/src/sagemaker/estimator.py b/src/sagemaker/estimator.py index <HASH>..<HASH> 100644 --- a/src/sagemaker/estimator.py +++ b/src/sagemaker/estimator.py @@ -796,7 +796,7 @@ class EstimatorBase(with_metaclass(ABCMeta, object)): """Delete an Amazon SageMaker ``Endpoint``. Raises: - ...
doc: Update error type in delete_endpoint docstring (#<I>)
py
diff --git a/prepare_hydpy_installer.py b/prepare_hydpy_installer.py index <HASH>..<HASH> 100644 --- a/prepare_hydpy_installer.py +++ b/prepare_hydpy_installer.py @@ -31,8 +31,7 @@ for idx, line in enumerate(lines): elif name == 'Pillow': version = importlib.import_module('PIL').__version__ ...
Fix `prepare_hydpy_installer.py` for non-bugfix releases of tornado. When pynsist searches for the proper tornado <I> wheel on PyPi, it accepts the version identifier "<I>" but not "<I>" in `make_hydpy_installer.cfg`
py
diff --git a/sigal/image.py b/sigal/image.py index <HASH>..<HASH> 100644 --- a/sigal/image.py +++ b/sigal/image.py @@ -120,9 +120,9 @@ def process_image(filepath, outpath, settings): filename = os.path.split(filepath)[1] outname = os.path.join(outpath, filename) - ext = os.path.splitext(filename) + ex...
Fix the check for file extensions (fix #<I>).
py
diff --git a/keyboard/_darwinkeyboard.py b/keyboard/_darwinkeyboard.py index <HASH>..<HASH> 100644 --- a/keyboard/_darwinkeyboard.py +++ b/keyboard/_darwinkeyboard.py @@ -15,7 +15,7 @@ except NameError: Carbon = ctypes.cdll.LoadLibrary(ctypes.util.find_library('Carbon')) class KeyMap(object): - non_layout_keys =...
Normalize darwin hardcoded keys #<I>
py
diff --git a/kafka/protocol/message.py b/kafka/protocol/message.py index <HASH>..<HASH> 100644 --- a/kafka/protocol/message.py +++ b/kafka/protocol/message.py @@ -60,8 +60,10 @@ class MessageSet(AbstractType): @classmethod def decode(cls, data): size = Int32.decode(data) - end = data.tell() + ...
Use simply counting instead of buffer.tell() -- socket.makefile does not support tell()
py
diff --git a/utils/youtube_dl.py b/utils/youtube_dl.py index <HASH>..<HASH> 100755 --- a/utils/youtube_dl.py +++ b/utils/youtube_dl.py @@ -27,7 +27,8 @@ ydl_opts = { "writeinfojson": True, "writesubtitles": True, "writeautomaticsub": True, - "outtmpl": "youtubedl/%(extractor)s/%(title)s.%(ext)s" + ...
prevent re-download on subsequent runs
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages import re version = None for line in open("./fudge/__init__.py"): - m = re.search("__version__\s+=\s+(.*)", line) + m = re.search("__version__\s*=\s*(.*)", line...
updated version regex in setup.py
py
diff --git a/openpnm/network/DelaunayVoronoiDual.py b/openpnm/network/DelaunayVoronoiDual.py index <HASH>..<HASH> 100644 --- a/openpnm/network/DelaunayVoronoiDual.py +++ b/openpnm/network/DelaunayVoronoiDual.py @@ -216,7 +216,6 @@ class DelaunayVoronoiDual(GenericNetwork): surf_pores = sp.unique(surf_pores[~se...
Don't take the surface pores out of the internal label
py
diff --git a/zendesk/endpoints_v2.py b/zendesk/endpoints_v2.py index <HASH>..<HASH> 100644 --- a/zendesk/endpoints_v2.py +++ b/zendesk/endpoints_v2.py @@ -335,11 +335,11 @@ mapping_table = { 'method': 'POST', }, 'update_organzation': { - 'path': '/organizations.json', + 'path': '/organi...
Fixed update and delete organization endpoint for v2 API.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ required_packages = ['graphql-core>=0.4.15', 'django>=1.8.0'] setup( name='graphql-django-view', - version='1.1.0', + version='1.1.1', description='A django view that will execute a GraphQL Sche...
Updated version to <I>
py
diff --git a/wafer/sponsors/tests/test_models.py b/wafer/sponsors/tests/test_models.py index <HASH>..<HASH> 100644 --- a/wafer/sponsors/tests/test_models.py +++ b/wafer/sponsors/tests/test_models.py @@ -2,8 +2,10 @@ """Tests for wafer.sponsors models.""" +from django.core.urlresolvers import reverse from django.t...
Add test for cached sponsorship menu.
py
diff --git a/test_engine.py b/test_engine.py index <HASH>..<HASH> 100644 --- a/test_engine.py +++ b/test_engine.py @@ -3,6 +3,24 @@ from nose.tools import raises, eq_ from moban.engine import ENGINES, Engine, Context import moban.exceptions as exceptions from moban.extensions import jinja_global +from moban.engine i...
:sparkles: initial working moban requires
py
diff --git a/soccer/leagueids.py b/soccer/leagueids.py index <HASH>..<HASH> 100644 --- a/soccer/leagueids.py +++ b/soccer/leagueids.py @@ -1,15 +1,15 @@ LEAGUE_IDS = { - "BL": 394, - "BL2": 395, - "BL3": 403, - "FL": 396, - "FL2": 397, - "EPL": 398, - "EL1": 425, - "LLIGA": 399, - "SD": 400,...
Update leagueids.py updated ids to <I> season
py
diff --git a/moto/iam/responses.py b/moto/iam/responses.py index <HASH>..<HASH> 100644 --- a/moto/iam/responses.py +++ b/moto/iam/responses.py @@ -1386,10 +1386,6 @@ GET_ACCOUNT_AUTHORIZATION_DETAILS_TEMPLATE = """<GetAccountAuthorizationDetailsR </member> {% endfor %} </UserDetailList> - <Marker> -...
remove the marker since this is truncated
py
diff --git a/pyblish_houdini/lib.py b/pyblish_houdini/lib.py index <HASH>..<HASH> 100644 --- a/pyblish_houdini/lib.py +++ b/pyblish_houdini/lib.py @@ -33,6 +33,9 @@ def setup(console=False): pyblish_integration.register_dispatch_wrapper(threaded_wrapper) pyblish_integration.setup(console) + pyblish.api.r...
Adding host registration, for Pyblish <I>
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -62,7 +62,7 @@ master_doc = 'index' # General information about the project. project = 'PyPhi' -copyright = '2014--2017 {}'.format(__author__) +copyright = '2014--2018 {}'.format(__author__) # The versio...
docs/conf.py: Update copyright year
py
diff --git a/keyring/backend.py b/keyring/backend.py index <HASH>..<HASH> 100644 --- a/keyring/backend.py +++ b/keyring/backend.py @@ -1651,7 +1651,18 @@ def get_all_keyring(): """ Return a list of all implemented keyrings. """ + + # except don't include these because they can't be constructed without...
Add exclusion list to get_all_keyring to prevent errors from classes that require parameters.
py
diff --git a/LiSE/LiSE/query.py b/LiSE/LiSE/query.py index <HASH>..<HASH> 100644 --- a/LiSE/LiSE/query.py +++ b/LiSE/LiSE/query.py @@ -840,17 +840,6 @@ class QueryEngine(allegedb.query.QueryEngine): ) ) - def get_rulebook_char(self, rulemap, character): - character = self.json_...
Remove QueryEngine methods dependent on old character rule schema
py
diff --git a/layabout.py b/layabout.py index <HASH>..<HASH> 100644 --- a/layabout.py +++ b/layabout.py @@ -301,21 +301,17 @@ def _create_slack_with_string(string: str): def _create_slack_with_env_var(env_var: EnvVar) -> SlackClient: """ Create a SlackClient with a token from an env var. """ token = os.getenv...
Invert logic on connectors, prefer early return
py
diff --git a/salt/master.py b/salt/master.py index <HASH>..<HASH> 100644 --- a/salt/master.py +++ b/salt/master.py @@ -62,6 +62,13 @@ try: except ImportError: HAS_HALITE = False +try: + import systemd.daemon + HAS_PYTHON_SYSTEMD = True +except ImportError: + HAS_PYTHON_SYSTEMD = False + + log = loggin...
On systemd hosts, notify systemd when master is started
py
diff --git a/command/install_lib.py b/command/install_lib.py index <HASH>..<HASH> 100644 --- a/command/install_lib.py +++ b/command/install_lib.py @@ -59,21 +59,16 @@ class install_lib (Command): from py_compile import compile for f in outfiles: - # XXX can't assume this filen...
Patch inspired by Bastian Kleineidam <<EMAIL>>: use global __debug__ flag to determine if compiled files will be ".pyc" or ".pyo". Tweaked compilation output messages too.
py
diff --git a/sane_redirects/middleware.py b/sane_redirects/middleware.py index <HASH>..<HASH> 100644 --- a/sane_redirects/middleware.py +++ b/sane_redirects/middleware.py @@ -2,11 +2,12 @@ from __future__ import absolute_import, unicode_literals from django.conf import settings from django.http import HttpResponseR...
Add support for post-Django <I>-style middleware
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -17,6 +17,9 @@ setup( author_email='mike@yumatov.org', packages=find_packages(exclude=['tests', 'tests.*']), include_package_data=True, + install_requires=[ + 'Gears', + ], classifiers=[ ...
Add Gears to install_requires in setup.py
py
diff --git a/knack/output.py b/knack/output.py index <HASH>..<HASH> 100644 --- a/knack/output.py +++ b/knack/output.py @@ -160,6 +160,8 @@ class OutputProducer(object): else: raise except UnicodeEncodeError: + logger.warning("Unable to encode the output with %s encoding...
Show warning when UnicodeEncodeError is raised (#<I>)
py
diff --git a/tests/test_parser2.py b/tests/test_parser2.py index <HASH>..<HASH> 100755 --- a/tests/test_parser2.py +++ b/tests/test_parser2.py @@ -12,6 +12,11 @@ class MoreParserTests(unittest.TestCase): doc = parser.parse('<!DOCTYPE HTML>') self.assert_(doc.cloneNode(True)) + def test_line_counter(self): ...
Add a test case to ensure that this continues to work --HG-- extra : convert_revision : svn%3Aacbfec<I>-<I>-<I>-a<I>-<I>a<I>e<I>e0/trunk%<I>
py
diff --git a/salt/loader.py b/salt/loader.py index <HASH>..<HASH> 100644 --- a/salt/loader.py +++ b/salt/loader.py @@ -125,6 +125,19 @@ def minion_mods( pack={'__context__': context}, whitelist=whitelist, loaded_base_name=loaded_base_name) + + # Load ...
Reinstate minion config provider override as per doco
py
diff --git a/dump2polarion/csv2sqlite_cli.py b/dump2polarion/csv2sqlite_cli.py index <HASH>..<HASH> 100644 --- a/dump2polarion/csv2sqlite_cli.py +++ b/dump2polarion/csv2sqlite_cli.py @@ -80,6 +80,9 @@ def main(args=None): init_log(args.log_level) + if '.csv' not in args.input_file.lower(): + logger.w...
warn if input file doesn't seem to be CSV file
py
diff --git a/buildbot/status/web/waterfall.py b/buildbot/status/web/waterfall.py index <HASH>..<HASH> 100644 --- a/buildbot/status/web/waterfall.py +++ b/buildbot/status/web/waterfall.py @@ -586,7 +586,7 @@ class WaterfallStatusResource(HtmlResource): newargs[k].append(v) else: ...
fix XSS vulnerability reported by Nicolas Sylvain <<EMAIL>>
py
diff --git a/pysat/utils/_core.py b/pysat/utils/_core.py index <HASH>..<HASH> 100644 --- a/pysat/utils/_core.py +++ b/pysat/utils/_core.py @@ -702,8 +702,6 @@ def display_available_instruments(inst_loc=None, show_inst_mod=None, class NetworkLock(Lock): def __init__(self, *args, **kwargs): """Lock manager...
Added Note section to NetworkLock docstring
py
diff --git a/builder.py b/builder.py index <HASH>..<HASH> 100644 --- a/builder.py +++ b/builder.py @@ -20,6 +20,7 @@ The builder is not thread safe and can't be used to parse different sources at the same time. """ +from __future__ import with_statement __docformat__ = "restructuredtext en"
Make astroid compatible with Python <I> again.
py
diff --git a/tests/dev_transport_find_test.py b/tests/dev_transport_find_test.py index <HASH>..<HASH> 100644 --- a/tests/dev_transport_find_test.py +++ b/tests/dev_transport_find_test.py @@ -31,12 +31,7 @@ regex = re.compile(r'^Bus (.{3}) Device (.{3}): ID (.{4}):(.{4})') def test_usb_find_path_is_empty(): foun...
corrected test for transport.USB.find(path='') which must return None
py
diff --git a/meshio/_files.py b/meshio/_files.py index <HASH>..<HASH> 100644 --- a/meshio/_files.py +++ b/meshio/_files.py @@ -1,7 +1,11 @@ -import os import sys from contextlib import contextmanager +try: + from os import PathLike +except ImportError: + from pathlib import PurePath as PathLike + def is_bu...
os.PathLike is >=py<I>
py
diff --git a/tinytag/__init__.py b/tinytag/__init__.py index <HASH>..<HASH> 100644 --- a/tinytag/__init__.py +++ b/tinytag/__init__.py @@ -4,7 +4,7 @@ from .tinytag import TinyTag, TinyTagException, ID3, Ogg, Wave, Flac import sys -__version__ = '0.19.0' +__version__ = '0.20.0' if __name__ == '__main__': p...
bumped version to <I>
py
diff --git a/blockstack/lib/nameset/db.py b/blockstack/lib/nameset/db.py index <HASH>..<HASH> 100644 --- a/blockstack/lib/nameset/db.py +++ b/blockstack/lib/nameset/db.py @@ -454,12 +454,7 @@ def namedb_query_execute( cur, query, values ): """ try: - t1 = time.time() ret = cur.execute( query...
take out gratuitous timestamps
py
diff --git a/safe/definitions/reports/components.py b/safe/definitions/reports/components.py index <HASH>..<HASH> 100644 --- a/safe/definitions/reports/components.py +++ b/safe/definitions/reports/components.py @@ -480,7 +480,7 @@ population_chart_svg_component = { 'tags': [svg_product_tag], 'extra_args': { ...
change chart label from Affected to Exposed (#<I>)
py
diff --git a/airflow/models.py b/airflow/models.py index <HASH>..<HASH> 100755 --- a/airflow/models.py +++ b/airflow/models.py @@ -4482,7 +4482,7 @@ class XCom(Base, LoggingMixin): key = Column(String(512)) value = Column(LargeBinary) timestamp = Column( - DateTime, default=timezone.utcnow, nullab...
[AIRFLOW-<I>] Fix typo in Xcom model timestamp Fix typo in Xcom model timestamp field No new testing - the field is already represented in migrations Closes #<I> from andywilco/fix_datetime_typo
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ setup(name='marionette-tg', scripts=['bin/marionette_client','bin/marionette_server'], test_suite='marionette_tg', packages=['marionette_tg','marionette_tg.plugins','marionette_tg.executable...
Issue #<I>: include to ensure we have __init__.py in the formats dir
py
diff --git a/jardin/record.py b/jardin/record.py index <HASH>..<HASH> 100644 --- a/jardin/record.py +++ b/jardin/record.py @@ -10,7 +10,7 @@ class Record(dict): if i in self: return self[i] else: - return super(self.__class__, self).__getattr__(i) + return super(Record, self).__getattr__(i) ...
Avoid recursive calls for custom record classes
py
diff --git a/demo/PDF_display.py b/demo/PDF_display.py index <HASH>..<HASH> 100755 --- a/demo/PDF_display.py +++ b/demo/PDF_display.py @@ -140,7 +140,7 @@ dlg = wx.FileDialog(None, message = "Choose a file to display", # We got a file only when one was selected and OK pressed if dlg.ShowModal() == wx.ID_OK: # Th...
Type unicode filename now accepted
py
diff --git a/tensorflow_datasets/__init__.py b/tensorflow_datasets/__init__.py index <HASH>..<HASH> 100644 --- a/tensorflow_datasets/__init__.py +++ b/tensorflow_datasets/__init__.py @@ -16,11 +16,6 @@ # pylint: disable=line-too-long """`tensorflow_datasets` (`tfds`) defines a collection of datasets ready-to-use with...
Update init docstring in preparation for release PiperOrigin-RevId: <I>
py
diff --git a/moto/s3/responses.py b/moto/s3/responses.py index <HASH>..<HASH> 100644 --- a/moto/s3/responses.py +++ b/moto/s3/responses.py @@ -727,6 +727,8 @@ class ResponseObject(_TemplateEnvironmentMixin, ActionAuthenticatorMixin): self.method = request.method self.path = self._get_path(request) ...
Fixed host header not included in S3 requests sometimes.
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 @@ -968,12 +968,18 @@ class CurveBuilder(object): aids.append(aid) return numpy.array(aids), numpy.array(all_poes) ...
Polished calc_loss_curve
py
diff --git a/jpype/_pyinstaller/example.py b/jpype/_pyinstaller/example.py index <HASH>..<HASH> 100644 --- a/jpype/_pyinstaller/example.py +++ b/jpype/_pyinstaller/example.py @@ -2,10 +2,6 @@ import os import jpype import jpype.imports -from jpype.types import * - -for key, value in sorted(os.environ.items()): - ...
Drop (py<I>+) environment printout in test example
py
diff --git a/tomcrypt/mac.py b/tomcrypt/mac.py index <HASH>..<HASH> 100644 --- a/tomcrypt/mac.py +++ b/tomcrypt/mac.py @@ -12,12 +12,15 @@ class MAC(_MAC): pass +DEFAULT_HASH = 'sha256' +DEFAULT_CIPHER = 'aes' + def make_mac_constructor(name): if name in hash_macs: - def mac_constructor(key, hash, input=''): ...
Macs have default hash/cipher.
py
diff --git a/udiskie/udisks1.py b/udiskie/udisks1.py index <HASH>..<HASH> 100644 --- a/udiskie/udisks1.py +++ b/udiskie/udisks1.py @@ -596,7 +596,12 @@ class Daemon(Emitter): """Internal method.""" old_state = self[object_path] new_state = yield self.update(object_path) - self.trigger(...
Fix an error message that will sometimes appear when starting (UDisks1…)
py
diff --git a/tests/test_collections.py b/tests/test_collections.py index <HASH>..<HASH> 100644 --- a/tests/test_collections.py +++ b/tests/test_collections.py @@ -23,12 +23,8 @@ class Iterable(MatcherTestCase): def test_some_generator(self): gen = (x for x in [1, 2, 5]) self.assert_match(gen) - -...
Shorten some checks in Iterable and Generator tests
py
diff --git a/txaws/client/ssl.py b/txaws/client/ssl.py index <HASH>..<HASH> 100644 --- a/txaws/client/ssl.py +++ b/txaws/client/ssl.py @@ -1,6 +1,7 @@ from glob import glob import os import re +import sys from OpenSSL import SSL from OpenSSL.crypto import load_certificate, FILETYPE_PEM @@ -71,8 +72,14 @@ class V...
Since there's nothing anywhere that takes advantage of the "files" parameter, the simplest solution for supporting multiple platforms right now (and different locations for certs) is to check in the function itself.
py
diff --git a/identify/extensions.py b/identify/extensions.py index <HASH>..<HASH> 100644 --- a/identify/extensions.py +++ b/identify/extensions.py @@ -8,6 +8,7 @@ EXTENSIONS = { 'asciidoc': {'text', 'asciidoc'}, 'apinotes': {'text', 'apinotes'}, 'asar': {'binary', 'asar'}, + 'avif': {'binary', 'image'...
Add `avif` file extension
py
diff --git a/scrubadub/comparison.py b/scrubadub/comparison.py index <HASH>..<HASH> 100644 --- a/scrubadub/comparison.py +++ b/scrubadub/comparison.py @@ -98,7 +98,12 @@ def get_filth_classification_report( detected_classes = results_df.loc[:, detected_columns].values # Take the detected_columns above and fin...
try to give a more descriptive error
py
diff --git a/ELiDE/ELiDE/__init__.py b/ELiDE/ELiDE/__init__.py index <HASH>..<HASH> 100644 --- a/ELiDE/ELiDE/__init__.py +++ b/ELiDE/ELiDE/__init__.py @@ -1 +1,2 @@ - +from kivy.resources import resource_add_path +resource_add_path(__path__[0] + '/assets')
Add ELiDE's assets to kivy's resource paths
py
diff --git a/shovel/__init__.py b/shovel/__init__.py index <HASH>..<HASH> 100755 --- a/shovel/__init__.py +++ b/shovel/__init__.py @@ -24,6 +24,7 @@ import os import logging import inspect +from operator import attrgetter logger = logging.getLogger('shovel') handler = logging.StreamHandler() @@ -155,6 +156,8 @@ ...
sort tasks Makes for friendlier help output.
py
diff --git a/blimpy/file_wrapper.py b/blimpy/file_wrapper.py index <HASH>..<HASH> 100644 --- a/blimpy/file_wrapper.py +++ b/blimpy/file_wrapper.py @@ -282,7 +282,7 @@ class H5Reader(Reader): self.filesize = self.filestat.st_size/(1024.0**2) self.load_data = load_data self.h5 = h5...
Removed _ from read_header in H5 and Fil Readers Also made read_header return the parsed dictionary, for consistency with FilReader.read_header() Now both H5 and Fil readers return a dictionary, which is useful. Former-commit-id: <I>d<I>b5c1d4eebe<I>fc<I>b0bd5fea2a8cf2d9f
py
diff --git a/pymatgen/analysis/structure_analyzer.py b/pymatgen/analysis/structure_analyzer.py index <HASH>..<HASH> 100644 --- a/pymatgen/analysis/structure_analyzer.py +++ b/pymatgen/analysis/structure_analyzer.py @@ -4,6 +4,7 @@ from __future__ import division, unicode_literals +import warnings import six impo...
Added deprecation warnings to structure_analyzer.py
py
diff --git a/tests/io_/metadata.py b/tests/io_/metadata.py index <HASH>..<HASH> 100644 --- a/tests/io_/metadata.py +++ b/tests/io_/metadata.py @@ -155,7 +155,7 @@ class TestMetadataConsistency(unittest.TestCase): scipy.int8, scipy.int16, scipy.int32, scipy.int64, scipy.uint8, s...
Removed complex<I> from the list of dtypes to test, as not present on every machine.
py
diff --git a/test/test_imgaug.py b/test/test_imgaug.py index <HASH>..<HASH> 100644 --- a/test/test_imgaug.py +++ b/test/test_imgaug.py @@ -4893,13 +4893,14 @@ def test_Polygon_change_first_point_by_coords(): assert np.allclose(poly_reordered.exterior, np.float32([[0, 0]])) # invalid polygon - git_excepti...
Fix test for polygon first point choosing
py
diff --git a/sysconfig.py b/sysconfig.py index <HASH>..<HASH> 100644 --- a/sysconfig.py +++ b/sysconfig.py @@ -27,6 +27,10 @@ EXEC_PREFIX = os.path.normpath(sys.exec_prefix) project_base = os.path.dirname(os.path.abspath(sys.executable)) if os.name == "nt" and "pcbuild" in project_base[-8:].lower(): project_base...
Added support for new Windows build dirs in PC/ to distutils.sysconfig
py
diff --git a/synapse/tests/test_swarm_runtime.py b/synapse/tests/test_swarm_runtime.py index <HASH>..<HASH> 100644 --- a/synapse/tests/test_swarm_runtime.py +++ b/synapse/tests/test_swarm_runtime.py @@ -348,7 +348,6 @@ class SwarmRunTest(SwarmRunBase): env = self.getSwarmEnv() - env.core0.addTufoFor...
update swarm test for pre-existing model
py
diff --git a/holoviews/plotting/bokeh/chart.py b/holoviews/plotting/bokeh/chart.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/bokeh/chart.py +++ b/holoviews/plotting/bokeh/chart.py @@ -102,7 +102,7 @@ class PointPlot(LegendPlot, ColorbarPlot): xdim, ydim = dims[xidx], dims[yidx] data...
Ensure Point/Scatter plot correctly categorizes data on inverted axes (#<I>)
py
diff --git a/spyder/utils/programs.py b/spyder/utils/programs.py index <HASH>..<HASH> 100644 --- a/spyder/utils/programs.py +++ b/spyder/utils/programs.py @@ -800,7 +800,7 @@ def run_python_script_in_terminal(fname, wdir, args, interact, os.chmod(f.name, 0o777) def run_terminal_thread(): - ...
* Use clean environment to launch Terminal.app
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -374,7 +374,7 @@ class BuildPydoop(build): write_config(hdfs_core_impl=self.hdfs_core_impl) write_version() shutil.copyfile(PROP_FN, os.path.join("pydoop", PROP_BN)) - build_sercore_extension(...
Disabled sercore_extensions. So that we can concentrate on hdfs.
py
diff --git a/spyderlib/widgets/externalshell/start_ipython_kernel.py b/spyderlib/widgets/externalshell/start_ipython_kernel.py index <HASH>..<HASH> 100644 --- a/spyderlib/widgets/externalshell/start_ipython_kernel.py +++ b/spyderlib/widgets/externalshell/start_ipython_kernel.py @@ -160,10 +160,12 @@ __name__ = '__main_...
IPython Kernel: Make it work with the latest changes in <I>dev
py
diff --git a/vstutils/models.py b/vstutils/models.py index <HASH>..<HASH> 100644 --- a/vstutils/models.py +++ b/vstutils/models.py @@ -15,8 +15,8 @@ def __cyfunc(): # noprj CyFunctionType = type(__cyfunc) -def iscyfunction(object): # noprj - return isinstance(object, CyFunctionType) +def iscyfunction(obj): #...
Profiler optimization Optimize some calls for better performance per request.
py
diff --git a/gui2py/tools/toolbox.py b/gui2py/tools/toolbox.py index <HASH>..<HASH> 100644 --- a/gui2py/tools/toolbox.py +++ b/gui2py/tools/toolbox.py @@ -127,7 +127,8 @@ class ToolBoxDropTarget(wx.PyDropTarget): ctrl_name = self.data.GetData() ctrl = registry.CONTROLS[ctrl_name] ...
toolbox: better name for new objects
py
diff --git a/luigi/worker.py b/luigi/worker.py index <HASH>..<HASH> 100644 --- a/luigi/worker.py +++ b/luigi/worker.py @@ -23,7 +23,10 @@ import traceback import logging import warnings import socket -import simplejson as json +try: + import simplejson as json +except ImportError: + import json logger = log...
Fallback from simplejson to json. This solves some weird build error I had that was triggered by seemingly unrelated things. Change-Id: I<I>c<I>e4ea<I>a7a9dcbe<I>ea<I>d<I> Reviewed-on: <URL>
py
diff --git a/buildbot/clients/debug.py b/buildbot/clients/debug.py index <HASH>..<HASH> 100644 --- a/buildbot/clients/debug.py +++ b/buildbot/clients/debug.py @@ -169,13 +169,3 @@ class DebugWidget: def run(self): reactor.run() - -if __name__ == '__main__': - master = "localhost:8007" - if len(sys...
Remove __main__. We already support this through 'buildbot debugclient'
py
diff --git a/test/interface/emergency_repair.py b/test/interface/emergency_repair.py index <HASH>..<HASH> 100755 --- a/test/interface/emergency_repair.py +++ b/test/interface/emergency_repair.py @@ -93,7 +93,7 @@ def bad_repair(name, repair_type, msg): def wait_for_table(name, wait_for="ready_for_writes"): """Blo...
bumping the timeout on emergency_repair over-the-virtual-shoulder by @danielmewes
py
diff --git a/python/junction/node.py b/python/junction/node.py index <HASH>..<HASH> 100644 --- a/python/junction/node.py +++ b/python/junction/node.py @@ -44,8 +44,7 @@ class Node(object): for peer_addr in conns: remaining = max(0, deadline - time.time()) if timeout else None - peer =...
actually use the timeout in peer connection waiting
py