diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/rest_framework_jwt/utils.py b/rest_framework_jwt/utils.py index <HASH>..<HASH> 100644 --- a/rest_framework_jwt/utils.py +++ b/rest_framework_jwt/utils.py @@ -49,5 +49,7 @@ def jwt_decode_handler(token): return jwt.decode( token, api_settings.JWT_SECRET_KEY, - api_settings.JWT_...
added back verification and leeway -- using proper kwargs for these. updates #<I>
py
diff --git a/example/image-classification/symbols/googlenet.py b/example/image-classification/symbols/googlenet.py index <HASH>..<HASH> 100644 --- a/example/image-classification/symbols/googlenet.py +++ b/example/image-classification/symbols/googlenet.py @@ -6,7 +6,6 @@ with convolutions." arXiv preprint arXiv:1409.484...
Debug error caused by missplaced import find_mxnet in googlenet (#<I>)
py
diff --git a/taskw/utils.py b/taskw/utils.py index <HASH>..<HASH> 100644 --- a/taskw/utils.py +++ b/taskw/utils.py @@ -57,6 +57,7 @@ def decode_task(line): task = {} for key, value in re.findall(r'(\w+):"(.*?)(?<!\\)"', line): + value = value.replace('\\"', '"') # unescape quotes task[key] ...
Fixed problems with quotes in task properties E.g., 'Fix "quotes" in bugwarrior' would be read as 'Fix \"quotes\" in bugwarrior', now the quotes are properly decoded.
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 @@ -302,6 +302,7 @@ REST_FRAMEWORK = { } SITE_URL = env("SITE_URL", default="http://local.treeherder.mozilla.org") +APPEND_SLASH = False B...
Bug <I> - Disable APPEND_SLASH to prevent usage of API URLs that <I> Rather than play whac-a-mole as and when people use API URLs that are missing the trailing slash, let's just stop redirecting to make the mistake more obvious: <URL>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -29,8 +29,9 @@ def read_version(): lines = f.read().splitlines() for l in lines: if "__version__" in l: - return l.split("=")[1].strip() + return l.split("=")[1].str...
Rename pypi package from pyqode-xxx to pyqode.xxx #<I>
py
diff --git a/quart/ctx.py b/quart/ctx.py index <HASH>..<HASH> 100644 --- a/quart/ctx.py +++ b/quart/ctx.py @@ -240,7 +240,6 @@ def copy_current_app_context(func: Callable) -> Callable: name = current_app.name ... - await asyncio.ensure_future(within_context()) """ if not has...
Remove references to asyncio There is no longer (since using ContextVars) a requirement to copy the context when creating a task/future. Hence these references were misleading.
py
diff --git a/dock/core.py b/dock/core.py index <HASH>..<HASH> 100644 --- a/dock/core.py +++ b/dock/core.py @@ -97,6 +97,10 @@ class BuildContainerWarlock(object): self._check_build_input(build_image, json_args_path) + if not os.path.exists(DOCKER_SOCKET_PATH): + logger.error("Looks like d...
check if socket exists before bindmounting it
py
diff --git a/indra/statements.py b/indra/statements.py index <HASH>..<HASH> 100644 --- a/indra/statements.py +++ b/indra/statements.py @@ -1061,8 +1061,9 @@ class Statement(object): # statement and referenced through bound conditions. l = self.agent_list() for a in self.agent_list(): - ...
Fix getting bound conds of None Agents
py
diff --git a/pep257.py b/pep257.py index <HASH>..<HASH> 100755 --- a/pep257.py +++ b/pep257.py @@ -392,8 +392,8 @@ def check_class_has_docstring(class_docstring, context, is_script): return "PEP257 Exported classes should have docstrings.", -def check_tripple_double_quotes(docstring, context, is_script): -...
Correct spelling of "triple" The word "triple" was misspelled as "tripple" in a few places.
py
diff --git a/tests/test_networkmanager.py b/tests/test_networkmanager.py index <HASH>..<HASH> 100644 --- a/tests/test_networkmanager.py +++ b/tests/test_networkmanager.py @@ -538,7 +538,7 @@ class TestNetworkManager(dbusmock.DBusTestCase): self.assertEqual(self.settings.GetConnectionByUuid(uuid), connectionPat...
test: Fix deprecated assertRaisesRegexp() call
py
diff --git a/pep381client/__init__.py b/pep381client/__init__.py index <HASH>..<HASH> 100644 --- a/pep381client/__init__.py +++ b/pep381client/__init__.py @@ -213,7 +213,8 @@ class Synchronization: for f in self.files_per_project.get(project, ()): self.remove_file(f) if os.path.exists(sel...
Delete directories for simple pages.
py
diff --git a/zipline/transforms/utils.py b/zipline/transforms/utils.py index <HASH>..<HASH> 100644 --- a/zipline/transforms/utils.py +++ b/zipline/transforms/utils.py @@ -381,6 +381,12 @@ class BatchTransform(EventWindow): self.updated = False self.cached = None + # Data panel that provides b...
Backfills a batch transform panel with supplemental data. For the case where the window isn't covered by the data streaming through the simulator. e.g. in a case where the stocks being iterated over change every quarter, the supplemental data will fill in the 'gap' missing from the transform since the 'new' stocks we...
py
diff --git a/tests/test_builder.py b/tests/test_builder.py index <HASH>..<HASH> 100644 --- a/tests/test_builder.py +++ b/tests/test_builder.py @@ -38,7 +38,7 @@ def get_sphinx_output(srcdir, outdir, docname): app.build() path = os.path.join(outdir, docname + '.spelling') try: - with codecs.open(pa...
Replace codecs.open() with Python 3 builtin open() Since Python 3, the builtin open() supports all features provided by codecs.open() (much like io.open()). Its use is no longer required.
py
diff --git a/algoliasearch/index.py b/algoliasearch/index.py index <HASH>..<HASH> 100644 --- a/algoliasearch/index.py +++ b/algoliasearch/index.py @@ -82,6 +82,9 @@ class Index(object): self.index_name = index_name self._request_path = '/1/indexes/%s' % safe(self.index_name) + def __repr__(self):...
Add repr methods Makes it easier to work with multiple indexes from the repl.
py
diff --git a/pycbc/waveform/parameters.py b/pycbc/waveform/parameters.py index <HASH>..<HASH> 100644 --- a/pycbc/waveform/parameters.py +++ b/pycbc/waveform/parameters.py @@ -397,8 +397,12 @@ coa_phase = Parameter("coa_phase", inclination = Parameter("inclination", dtype=float, default=0., label=r"$\i...
fix definition of inclination; add thetajn (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -50,8 +50,9 @@ setup( license='Apache 2.0', author='White Turing', author_email='fujiawei@stu.hznu.edu.cn', - description='A Android automation framework.', + description='An Android automation framework.'...
Update setup.py for installation.
py
diff --git a/sepa/definitions/statement.py b/sepa/definitions/statement.py index <HASH>..<HASH> 100644 --- a/sepa/definitions/statement.py +++ b/sepa/definitions/statement.py @@ -101,7 +101,7 @@ def amount_details(tag): '_self': tag, '_sorting': ['InstdAmt', 'TxAmt', 'CntrValAmt', 'AnncdPstngAmt', 'Pr...
Release <I> to fix a typo
py
diff --git a/apps/custom_registration/backends/email/urls.py b/apps/custom_registration/backends/email/urls.py index <HASH>..<HASH> 100644 --- a/apps/custom_registration/backends/email/urls.py +++ b/apps/custom_registration/backends/email/urls.py @@ -12,4 +12,5 @@ urlpatterns = patterns('', direct_to_template,...
Included the registration urls to fallback on for anything else
py
diff --git a/dev/deps.py b/dev/deps.py index <HASH>..<HASH> 100644 --- a/dev/deps.py +++ b/dev/deps.py @@ -177,7 +177,9 @@ def _pep425_get_abi(): try: soabi = sysconfig.get_config_var('SOABI') if soabi: - return soabi.replace('cpython-', 'cp').replace('.', '_').replace('-', '_') + ...
Fix abi detection on Mac/Linux
py
diff --git a/certvalidator/validate.py b/certvalidator/validate.py index <HASH>..<HASH> 100644 --- a/certvalidator/validate.py +++ b/certvalidator/validate.py @@ -1190,7 +1190,8 @@ def verify_crl(cert, path, validation_context, use_deltas=True, cert_description raise ...
When the key_usage extension is not present, a key can be used to sign CRLs per RFC <I>
py
diff --git a/salt/modules/win_network.py b/salt/modules/win_network.py index <HASH>..<HASH> 100644 --- a/salt/modules/win_network.py +++ b/salt/modules/win_network.py @@ -91,7 +91,7 @@ def traceroute(host): cmd = 'tracert {0}'.format(salt.utils.network.sanitize_host(host)) lines = __salt__['cmd.run'](cmd).spl...
Fix PEP8 E<I> - test for membership should be "not in"
py
diff --git a/stackility/command.py b/stackility/command.py index <HASH>..<HASH> 100644 --- a/stackility/command.py +++ b/stackility/command.py @@ -169,7 +169,8 @@ def find_myself(): def read_config_info(ini_file): try: - config = ConfigParser.ConfigParser() + config = ConfigParser.RawConfigParser(...
Read the INI file with case-sensitivity for the keys
py
diff --git a/cmsfields/forms/widgets.py b/cmsfields/forms/widgets.py index <HASH>..<HASH> 100644 --- a/cmsfields/forms/widgets.py +++ b/cmsfields/forms/widgets.py @@ -48,7 +48,7 @@ class CmsUrlWidget(widgets.MultiWidget): # Expose sub widgets for form field. self.url_type_registry = url_type_registr...
Fix JavaScript actions was broken when making HorizonatalRadioFieldRenderer generic.
py
diff --git a/legit/cli.py b/legit/cli.py index <HASH>..<HASH> 100644 --- a/legit/cli.py +++ b/legit/cli.py @@ -162,7 +162,8 @@ def cmd_graft(args): cmd_switch(switch_args) - status_log(graft_branch, 'Grafting {0} into {1}.', branch) + status_log(graft_branch, 'Grafting {0} into {1}.'.format( + col...
colored out for grafting branhces
py
diff --git a/rtv/content.py b/rtv/content.py index <HASH>..<HASH> 100644 --- a/rtv/content.py +++ b/rtv/content.py @@ -395,10 +395,7 @@ class SubredditContent(Content): listing='r', period=None): # Strip leading, trailing, and redundant backslashes - n = '' - n = ''.join([n +...
subreddit name parsing code more readable
py
diff --git a/mistletoe/html_token.py b/mistletoe/html_token.py index <HASH>..<HASH> 100644 --- a/mistletoe/html_token.py +++ b/mistletoe/html_token.py @@ -21,19 +21,22 @@ class HTMLBlock(block_token.BlockToken): content (str): literal strings rendered as-is. """ _last_tag = '' + pattern = re.compi...
disallow opening space in html tag (#<I>)
py
diff --git a/river/tests/core/test__class_api.py b/river/tests/core/test__class_api.py index <HASH>..<HASH> 100644 --- a/river/tests/core/test__class_api.py +++ b/river/tests/core/test__class_api.py @@ -166,7 +166,7 @@ class ClassApiTest(TestCase): before = datetime.now() BasicTestModel.river.my_field...
Increase expected time for the case with too many workflow object
py
diff --git a/src/Exscript/protocols/Dummy.py b/src/Exscript/protocols/Dummy.py index <HASH>..<HASH> 100644 --- a/src/Exscript/protocols/Dummy.py +++ b/src/Exscript/protocols/Dummy.py @@ -72,7 +72,7 @@ class Dummy(Protocol): def cancel_expect(self): self.cancel = True - def _connect_hook(self, hostnam...
Update unit tests with init_timeout feature
py
diff --git a/parsimonious/tests/test_nodes.py b/parsimonious/tests/test_nodes.py index <HASH>..<HASH> 100644 --- a/parsimonious/tests/test_nodes.py +++ b/parsimonious/tests/test_nodes.py @@ -69,6 +69,7 @@ def test_str(): def test_repr(): """Test repr of ``Node``.""" s = u'hai ö' - n = Node(u'böogie', s, 0...
Tolerate different reprs on different Python versions. This fixes the last of the tests failing in Python 3. Tox is happy now.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -199,6 +199,8 @@ setup( os.path.join('bin','ligolw_glitch_page.py'), os.path.join('bin','ligolw_dqactive'), os.path.join('bin','ligolw_segment_insert'), + os.path.join('bin','ligolw_segment_intersect'), + ...
Add new ligolw_segment_union and intersect programs
py
diff --git a/traffic/core/traffic.py b/traffic/core/traffic.py index <HASH>..<HASH> 100644 --- a/traffic/core/traffic.py +++ b/traffic/core/traffic.py @@ -658,7 +658,7 @@ class Traffic(HBoxMixin, GeographyMixin): Example usage: >>> from traffic.drawing import EuroPP - >>> fig, ax = plt.subplo...
Missing parenthesis in plot example
py
diff --git a/chainlet/__init__.py b/chainlet/__init__.py index <HASH>..<HASH> 100644 --- a/chainlet/__init__.py +++ b/chainlet/__init__.py @@ -1,7 +1,12 @@ from __future__ import absolute_import -from .chainlink import ChainLink +from .chainlink import ChainLink, StopTraversal from .funclink import FunctionLink, func...
StopTraversal is now exported at the namespace top
py
diff --git a/src/toil/job.py b/src/toil/job.py index <HASH>..<HASH> 100644 --- a/src/toil/job.py +++ b/src/toil/job.py @@ -29,6 +29,7 @@ import sys import time import uuid import dill +import tempfile try: import cPickle as pickle @@ -898,13 +899,14 @@ class Job(JobLikeObject): logger.debug('Loading...
Avoid cPickle deadlock when unpickling Job objects
py
diff --git a/zimsoap/client.py b/zimsoap/client.py index <HASH>..<HASH> 100644 --- a/zimsoap/client.py +++ b/zimsoap/client.py @@ -701,7 +701,7 @@ class ZimbraAdminClient(ZimbraAbstractClient): 'id': ac_id, }) - def add_account_alias(selc, account, alias): + def add_account_alias(self,...
there was a typo in add_account_alias
py
diff --git a/fancyimpute/solver.py b/fancyimpute/solver.py index <HASH>..<HASH> 100644 --- a/fancyimpute/solver.py +++ b/fancyimpute/solver.py @@ -29,6 +29,20 @@ class Solver(object): self.max_value = max_value self.normalizer = normalizer + def __repr__(self): + return str(self) + + de...
added __str__ and __repr__ to base class
py
diff --git a/sanic_jwt/authentication.py b/sanic_jwt/authentication.py index <HASH>..<HASH> 100644 --- a/sanic_jwt/authentication.py +++ b/sanic_jwt/authentication.py @@ -495,7 +495,10 @@ class Authentication(BaseAuthentication): extend_payload, payload=payload, user=user ) - retu...
Add support for PyJwt_2_0_0
py
diff --git a/uncompyle6/semantics/pysource.py b/uncompyle6/semantics/pysource.py index <HASH>..<HASH> 100644 --- a/uncompyle6/semantics/pysource.py +++ b/uncompyle6/semantics/pysource.py @@ -2369,7 +2369,7 @@ def deparse_code2str(code, out=sys.stdout, version=None, """Return the deparsed text for a Python code obj...
One more deparse_code removal
py
diff --git a/requests_aws4auth/test/requests_aws4auth_test.py b/requests_aws4auth/test/requests_aws4auth_test.py index <HASH>..<HASH> 100644 --- a/requests_aws4auth/test/requests_aws4auth_test.py +++ b/requests_aws4auth/test/requests_aws4auth_test.py @@ -431,6 +431,21 @@ class AWS4Auth_GetCanonicalHeaders_Test(unittest...
Added test for host port strip during canonical header generation To test for change in d<I>dcb
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -110,6 +110,7 @@ setup( 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: Implementa...
installation: addition of PyPy classifiers
py
diff --git a/tests/test_commands.py b/tests/test_commands.py index <HASH>..<HASH> 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -1087,9 +1087,9 @@ class TestRedisCommands: @skip_if_server_version_lt('6.2.0') def test_set_pxat_timedelta(self, r): - expire_at = redis_server_time(r...
fixing timing issues in set pxat test (#<I>) closes #<I>
py
diff --git a/bika/lims/browser/worksheet/views/printview.py b/bika/lims/browser/worksheet/views/printview.py index <HASH>..<HASH> 100644 --- a/bika/lims/browser/worksheet/views/printview.py +++ b/bika/lims/browser/worksheet/views/printview.py @@ -15,6 +15,7 @@ from Products.CMFCore.utils import getToolByName from Prod...
Helper function to fetch an AR Analysis by title
py
diff --git a/pipenv/cli.py b/pipenv/cli.py index <HASH>..<HASH> 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -1937,7 +1937,7 @@ def do_shell(three=None, python=False, fancy=False, shell_args=None): # Compatibility mode: if compat: try: - shell = PIPENV_SHELL + shell = os.pa...
fix shell for new pyenv shell support
py
diff --git a/sockeye/train.py b/sockeye/train.py index <HASH>..<HASH> 100644 --- a/sockeye/train.py +++ b/sockeye/train.py @@ -751,7 +751,7 @@ def train(args: argparse.Namespace, custom_metrics_logger: Optional[Callable] = if horovod_mpi.hvd.rank() > 0: args.output = os.path.join(args.output, C.H...
Fix: zero means keep all checkpoints
py
diff --git a/cobra/test/solvers.py b/cobra/test/solvers.py index <HASH>..<HASH> 100644 --- a/cobra/test/solvers.py +++ b/cobra/test/solvers.py @@ -199,8 +199,9 @@ def add_new_test(TestCobraSolver, solver_name, solver): Cone_production.add_metabolites({production_capacity_constraint: cone_production_cost }) ...
fix testing of mip solvers
py
diff --git a/py/nupic/data/jsonhelpers.py b/py/nupic/data/jsonhelpers.py index <HASH>..<HASH> 100644 --- a/py/nupic/data/jsonhelpers.py +++ b/py/nupic/data/jsonhelpers.py @@ -34,14 +34,15 @@ # TODO: offer a combined json parsing/validation function that applies # defaults from the schema +import json import ...
Raise own ValidationError exception implementation, which happens to be a validictory.ValidationError subclass (which may change at some point in the future), honoring the original intent of this module.
py
diff --git a/src/_pytest/assertion/rewrite.py b/src/_pytest/assertion/rewrite.py index <HASH>..<HASH> 100644 --- a/src/_pytest/assertion/rewrite.py +++ b/src/_pytest/assertion/rewrite.py @@ -807,8 +807,9 @@ class AssertionRewriter(ast.NodeVisitor): ) ) + negation = ast.UnaryOp(ast...
minor: visit_Assert: move setting of `negation` out of branches
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 @@ -2578,8 +2578,6 @@ class DataFrame(NDFrame): default use all of the columns take_last : boolean, default False Take the last observed row in a ...
DOC: skipna not an argument of drop_duplicates From what I can tell, `skipna` keyword was both added and subsequently removed in #<I>. However, the docstring for DataFrame.drop_duplicates still lists it as a parameter.
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#! /usr/bin/env python3 # Requires Python 3.6+ """Configuration of Sphinx documentation generator."""
Make docs.conf shebang nicer
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 @@ -1312,8 +1312,8 @@ def losses_by_period(losses, return_periods, num_events=None, eff_time=None): NB: the return periods must be...
Updated docstring [skip CI]
py
diff --git a/malcolm/modules/pmac/velocityprofile.py b/malcolm/modules/pmac/velocityprofile.py index <HASH>..<HASH> 100644 --- a/malcolm/modules/pmac/velocityprofile.py +++ b/malcolm/modules/pmac/velocityprofile.py @@ -451,11 +451,15 @@ class VelocityProfile: :Returns Array(float), Array(float): absolute time,...
cope with zero motion in a velocity profile
py
diff --git a/dmf_control_board_firmware/calibrate/oscope.py b/dmf_control_board_firmware/calibrate/oscope.py index <HASH>..<HASH> 100644 --- a/dmf_control_board_firmware/calibrate/oscope.py +++ b/dmf_control_board_firmware/calibrate/oscope.py @@ -1,22 +1,20 @@ +import logging + import pandas as pd import time import...
Fix/simplify detection of VISA instruments
py
diff --git a/tests/test_mongo_doc_manager.py b/tests/test_mongo_doc_manager.py index <HASH>..<HASH> 100644 --- a/tests/test_mongo_doc_manager.py +++ b/tests/test_mongo_doc_manager.py @@ -124,6 +124,8 @@ class TestMongoDocManager(MongoTestCase): self.assertEqual(len(res), 0) def test_insert_file(self): +...
Drop 'test' database in mongo gridfs tests so that the DocManager's client refreshes its index cache. This is necessary because we use a separate client for test cleanup, and the DocManager's client is unaware that the required GridFS indexes have been removed. When it tries to insert something to GridFS, it then fail...
py
diff --git a/django_admin_hstore_widget/forms.py b/django_admin_hstore_widget/forms.py index <HASH>..<HASH> 100644 --- a/django_admin_hstore_widget/forms.py +++ b/django_admin_hstore_widget/forms.py @@ -8,4 +8,6 @@ class HStoreFormField(HStoreField): widget = HStoreFormWidget def clean(self, value): + ...
Fix issue with null and blank values (#8)
py
diff --git a/tests/fake_webapp.py b/tests/fake_webapp.py index <HASH>..<HASH> 100644 --- a/tests/fake_webapp.py +++ b/tests/fake_webapp.py @@ -30,6 +30,10 @@ EXAMPLE_HTML = """\ }, 2400 ); }); + $('.right-clicable').bind('contextmenu', function(){ + $(this).html('...
added javascript for right click test in fake webapp
py
diff --git a/examples/segments/open-data.py b/examples/segments/open-data.py index <HASH>..<HASH> 100644 --- a/examples/segments/open-data.py +++ b/examples/segments/open-data.py @@ -33,7 +33,9 @@ h1month1 = DataQualityFlag.fetch_open_data('H1_DATA', 'Sep 12 2015', # We can also download the LIGO-Livingston segments...
examples: added cross-reference link
py
diff --git a/boil/version.py b/boil/version.py index <HASH>..<HASH> 100644 --- a/boil/version.py +++ b/boil/version.py @@ -35,8 +35,9 @@ def getDir(): def callGit(args): """Call git with args and return the output.""" - return subprocess.check_output(['git', '-C', getDir()] + args, - ...
made python3 compatible
py
diff --git a/celerite/__init__.py b/celerite/__init__.py index <HASH>..<HASH> 100644 --- a/celerite/__init__.py +++ b/celerite/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -__version__ = "0.1.0.dev0" +__version__ = "0.1.0" try: __CELERITE_SETUP__
bumping version number - <I> release
py
diff --git a/odl/discr/grid.py b/odl/discr/grid.py index <HASH>..<HASH> 100644 --- a/odl/discr/grid.py +++ b/odl/discr/grid.py @@ -998,11 +998,15 @@ class RegularGrid(TensorGrid): return RegularGrid(new_shape, new_center, new_stride) def __repr__(self): - """repr(self) implementation.""" + ...
Changed `__str__()` in `RegularGrid` to be identical to `__repr__()`
py
diff --git a/manager_utils/manager_utils.py b/manager_utils/manager_utils.py index <HASH>..<HASH> 100644 --- a/manager_utils/manager_utils.py +++ b/manager_utils/manager_utils.py @@ -32,7 +32,7 @@ class ManagerUtilsQuerySet(QuerySet): Assumes that this model only has one element in the table and returns it. If...
updated single function to just use get()
py
diff --git a/meshio/xdmf/main.py b/meshio/xdmf/main.py index <HASH>..<HASH> 100644 --- a/meshio/xdmf/main.py +++ b/meshio/xdmf/main.py @@ -315,7 +315,7 @@ class XdmfReader: class XdmfWriter: def __init__( - self, filename, mesh, data_format="HDF", compression=None, compression_opts=None + self, fi...
xdmf: turn on compression by default
py
diff --git a/categories/__init__.py b/categories/__init__.py index <HASH>..<HASH> 100644 --- a/categories/__init__.py +++ b/categories/__init__.py @@ -1,7 +1,7 @@ __version_info__ = { 'major': 0, 'minor': 4, - 'micro': 6, + 'micro': 7, 'releaselevel': 'final', 'serial': 0 } @@ -47,4 +47,4 @@...
upped version to <I>
py
diff --git a/resync/list_base_with_index.py b/resync/list_base_with_index.py index <HASH>..<HASH> 100644 --- a/resync/list_base_with_index.py +++ b/resync/list_base_with_index.py @@ -262,7 +262,7 @@ class ListBaseWithIndex(ListBase): # max_sitemap_entries to go into each sitemap, store the # n...
Copy md and ln for write() based output
py
diff --git a/hotdoc/extensions/gi_extension.py b/hotdoc/extensions/gi_extension.py index <HASH>..<HASH> 100644 --- a/hotdoc/extensions/gi_extension.py +++ b/hotdoc/extensions/gi_extension.py @@ -1000,14 +1000,14 @@ class GIExtension(BaseExtension): gen_index_page = Page('gen-index') for language in ...
gi extension: acknowledge gi-index
py
diff --git a/satpy/tests/reader_tests/test_slstr_l1b.py b/satpy/tests/reader_tests/test_slstr_l1b.py index <HASH>..<HASH> 100644 --- a/satpy/tests/reader_tests/test_slstr_l1b.py +++ b/satpy/tests/reader_tests/test_slstr_l1b.py @@ -121,9 +121,10 @@ class TestSLSTRReader(TestSLSTRL1B): class FakeSpl: """F...
Style fixes for slstr tests.
py
diff --git a/gtkmvco/gtkmvc/view.py b/gtkmvco/gtkmvc/view.py index <HASH>..<HASH> 100644 --- a/gtkmvco/gtkmvc/view.py +++ b/gtkmvco/gtkmvc/view.py @@ -1,6 +1,8 @@ # Author: Roberto Cavada <cavada@irst.itc.it> +# Modified by: Guillaume Libersat <glibersat AT linux62.org> # # Copyright (c) 2005 by Roberto Cavada +#...
FEATURE Added custom widgets support (thanks to Guillaume Libersat) [RC]
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -116,6 +116,7 @@ See "Home Page" on GitHub for detail. 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', + 'Programming...
Add Python <I> to setup.py classifiers. (#<I>)
py
diff --git a/Lib/glyphsLib/__init__.py b/Lib/glyphsLib/__init__.py index <HASH>..<HASH> 100644 --- a/Lib/glyphsLib/__init__.py +++ b/Lib/glyphsLib/__init__.py @@ -23,7 +23,7 @@ import logging from fontTools.misc.py23 import tostr from glyphsLib.classes import __all__ as __all_classes__ -from glyphsLib.classes impor...
[flake8] mute F<I> 'import *: unable to detect undefined names' we need to re-export from glyphsLib.classes
py
diff --git a/tests/unit/transport/test_tcp.py b/tests/unit/transport/test_tcp.py index <HASH>..<HASH> 100644 --- a/tests/unit/transport/test_tcp.py +++ b/tests/unit/transport/test_tcp.py @@ -107,9 +107,6 @@ class ClearReqTestCases(BaseTCPReqCase, ReqChannelMixin): def tearDown(self): del self.channel - ...
Remove duplicate tearDown test functions in tcp unit test
py
diff --git a/sklearn2pmml/__init__.py b/sklearn2pmml/__init__.py index <HASH>..<HASH> 100644 --- a/sklearn2pmml/__init__.py +++ b/sklearn2pmml/__init__.py @@ -49,6 +49,27 @@ class EstimatorProxy(BaseEstimator): self._copy_attrs() return self +class SelectorProxy(BaseEstimator): + + def __init__(self, selector_)...
Added 'SelectorProxy' transformation type
py
diff --git a/treeherder/webapp/api/views.py b/treeherder/webapp/api/views.py index <HASH>..<HASH> 100644 --- a/treeherder/webapp/api/views.py +++ b/treeherder/webapp/api/views.py @@ -68,12 +68,9 @@ def oauth_required(func): return Response(msg, 403) - scheme = 'http' - if request.is_secur...
used settings.TREEHERDER_REQUEST_PROTOCOL to set the request scheme
py
diff --git a/shap/explainers/_tree.py b/shap/explainers/_tree.py index <HASH>..<HASH> 100644 --- a/shap/explainers/_tree.py +++ b/shap/explainers/_tree.py @@ -1415,7 +1415,10 @@ class XGBTreeModelLoader(object): def __init__(self, xgb_model): # new in XGBoost 1.1, 'binf' is appended to the buffer ...
Update _tree.py
py
diff --git a/source/rafcon/gui/models/abstract_state.py b/source/rafcon/gui/models/abstract_state.py index <HASH>..<HASH> 100644 --- a/source/rafcon/gui/models/abstract_state.py +++ b/source/rafcon/gui/models/abstract_state.py @@ -440,11 +440,22 @@ class AbstractStateModel(MetaModel, Hashable): vividict = mirr...
Add meta conversion for name size and pos
py
diff --git a/fireplace/actions.py b/fireplace/actions.py index <HASH>..<HASH> 100644 --- a/fireplace/actions.py +++ b/fireplace/actions.py @@ -355,9 +355,7 @@ class Play(GameAction): card.choose = self.choose self.broadcast(game, EventListener.ON, *args) - game.process_deaths() game._play(card) - game.proc...
Remove unnecessary death processing phases in Play()
py
diff --git a/mardor/marfile.py b/mardor/marfile.py index <HASH>..<HASH> 100644 --- a/mardor/marfile.py +++ b/mardor/marfile.py @@ -95,12 +95,16 @@ class AdditionalInfo: self.block_id) @classmethod - def from_fileobj(cls, fp): + def from_bytes(cls, data, offset, size): + ...
Add a from_bytes method to AdditionalInfo
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -49,7 +49,7 @@ setup(name='s4cmd', url='https://github.com/bloomreach/s4cmd', py_modules=['s4cmd'], scripts=['s4cmd', 's4cmd.py'], # Added s4cmd.py as script for backward compatibility - install_requi...
Add requirement for pytz
py
diff --git a/ravel.py b/ravel.py index <HASH>..<HASH> 100644 --- a/ravel.py +++ b/ravel.py @@ -493,7 +493,7 @@ class Connection(dbus.TaskKeeper) : #end if if self._dispatch == None : self._dispatch = _DispatchNode(self) - self.connection.add_filter(_message_interface_dispatch, ...
fix reference circularity between _message_interface_dispatch and its bus argument
py
diff --git a/wpull/version.py b/wpull/version.py index <HASH>..<HASH> 100644 --- a/wpull/version.py +++ b/wpull/version.py @@ -32,5 +32,5 @@ def get_version_tuple(string): return (major, minor, patch, level, serial) -__version__ = '0.33a1' +__version__ = '0.33' version_info = get_version_tuple(__version__)
Bumps version to <I>.
py
diff --git a/qa_tests/classical_psha_unittest.py b/qa_tests/classical_psha_unittest.py index <HASH>..<HASH> 100644 --- a/qa_tests/classical_psha_unittest.py +++ b/qa_tests/classical_psha_unittest.py @@ -378,7 +378,7 @@ class ClassicalPSHACalculatorAssuranceTestCase( exp_results_dir = os.path.join("complex_faul...
fixed some args used in a qa test
py
diff --git a/airflow/models.py b/airflow/models.py index <HASH>..<HASH> 100755 --- a/airflow/models.py +++ b/airflow/models.py @@ -1988,7 +1988,10 @@ class TaskFail(Base): self.execution_date = execution_date self.start_date = start_date self.end_date = end_date - self.duration = (self...
[AIRFLOW-<I>] Fix duration calculation on TaskFail Closes #<I> from johnarnold/duration
py
diff --git a/pynes/tests/clv_test.py b/pynes/tests/clv_test.py index <HASH>..<HASH> 100644 --- a/pynes/tests/clv_test.py +++ b/pynes/tests/clv_test.py @@ -4,14 +4,15 @@ import unittest from pynes.compiler import lexical, syntax, semantic + class ClvTest(unittest.TestCase): def test_clv_sngl(self): ...
PEP8 fixes on tests/clv_test.py
py
diff --git a/safe/impact_functions/generic/classified_polygon_people/impact_function.py b/safe/impact_functions/generic/classified_polygon_people/impact_function.py index <HASH>..<HASH> 100644 --- a/safe/impact_functions/generic/classified_polygon_people/impact_function.py +++ b/safe/impact_functions/generic/classified...
Add notes in the report about Null value
py
diff --git a/tornado/test/twisted_test.py b/tornado/test/twisted_test.py index <HASH>..<HASH> 100644 --- a/tornado/test/twisted_test.py +++ b/tornado/test/twisted_test.py @@ -630,6 +630,24 @@ if have_twisted: os.chdir(self.__curdir) shutil.rmtree(self.__tempdir) + ...
Add more warnings filters in twisted_test. Necessary for green builds with Twisted <I> on Python 3.x.
py
diff --git a/discord/http.py b/discord/http.py index <HASH>..<HASH> 100644 --- a/discord/http.py +++ b/discord/http.py @@ -246,10 +246,9 @@ class HTTPClient: # This is handling exceptions from the request except OSError as e: # Connection reset by peer - ...
If we're out of retries just raise the OSError
py
diff --git a/tests/train/zh/cws/train_large_rnn_cws.py b/tests/train/zh/cws/train_large_rnn_cws.py index <HASH>..<HASH> 100644 --- a/tests/train/zh/cws/train_large_rnn_cws.py +++ b/tests/train/zh/cws/train_large_rnn_cws.py @@ -11,7 +11,7 @@ from tests import cdroot cdroot() tokenizer = RNNTokenizer() -save_dir = 'd...
training cws on large corpus
py
diff --git a/salt/modules/influx.py b/salt/modules/influx.py index <HASH>..<HASH> 100644 --- a/salt/modules/influx.py +++ b/salt/modules/influx.py @@ -490,7 +490,7 @@ def login_test(name, password, database=None, host=None, port=None): client = _client(user=name, password=password, host=host, port=port) ...
Fix more errors. That'll teach me not to work in two places at once.
py
diff --git a/schedule/__init__.py b/schedule/__init__.py index <HASH>..<HASH> 100644 --- a/schedule/__init__.py +++ b/schedule/__init__.py @@ -360,12 +360,12 @@ class Job(object): """ Schedule the job to run at an irregular (randomized) interval. - The job's interval will randomly vary from t...
Fix docstring whitespace that broke the PEP8 check
py
diff --git a/workbench/server/workbench_server.py b/workbench/server/workbench_server.py index <HASH>..<HASH> 100644 --- a/workbench/server/workbench_server.py +++ b/workbench/server/workbench_server.py @@ -486,14 +486,15 @@ class WorkBench(object): # Does worker support sample_set_input? if self.plug...
fix a bug when processing workers that support sample_sets
py
diff --git a/salt/cli/salt.py b/salt/cli/salt.py index <HASH>..<HASH> 100644 --- a/salt/cli/salt.py +++ b/salt/cli/salt.py @@ -233,7 +233,11 @@ class SaltCMD(parsers.SaltCMDOptionParser): not_return_counter = 0 not_return_minions = [] for each_minion in ret: - if ret[each_minion] =...
Correct checking of minion return for report summary output. The "not_return_counter" for output summary is incorrect due to incorrect checking of the data structure. Due to the incorrect check it always indincates that all minions have returned - which is not always the case.
py
diff --git a/tests/test_superform.py b/tests/test_superform.py index <HASH>..<HASH> 100644 --- a/tests/test_superform.py +++ b/tests/test_superform.py @@ -19,9 +19,9 @@ class AccountForm(SuperForm): class SuperFormTests(TestCase): def test_declared_composite_fields(self): - self.assertEqual(AccountForm.b...
Fix test-issue with python 3. Tests do still not pass.
py
diff --git a/pyfilemail/errors.py b/pyfilemail/errors.py index <HASH>..<HASH> 100644 --- a/pyfilemail/errors.py +++ b/pyfilemail/errors.py @@ -1,3 +1,6 @@ +import requests + + class FileMailBaseError(Exception): def __str__(self): return self.message @@ -56,8 +59,13 @@ def hellraiser(response): ...
try to catch exceptions when no json exists in response
py
diff --git a/chickpea/views.py b/chickpea/views.py index <HASH>..<HASH> 100644 --- a/chickpea/views.py +++ b/chickpea/views.py @@ -160,6 +160,13 @@ class UpdateMapPermissions(UpdateView): form_class = UpdateMapPermissionsForm pk_url_kwarg = 'map_id' + def get_form(self, form_class): + form = super...
Only owner can modify "edit_status"
py
diff --git a/dev/coverage.py b/dev/coverage.py index <HASH>..<HASH> 100644 --- a/dev/coverage.py +++ b/dev/coverage.py @@ -430,7 +430,7 @@ def _gitignore(root): return (dir_patterns, file_patterns) -def _do_request(method, url, headers, data=None, query_params=None, timeout=20): +def _do_request(method, url, h...
Increase timeout for submitting coverage data
py
diff --git a/tornado/concurrent.py b/tornado/concurrent.py index <HASH>..<HASH> 100644 --- a/tornado/concurrent.py +++ b/tornado/concurrent.py @@ -74,8 +74,7 @@ dummy_executor = DummyExecutor() def run_on_executor(*args: Any, **kwargs: Any) -> Callable: """Decorator to run a synchronous method asynchronously on a...
Remove text about callback (removed) in run_on_executor
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -187,7 +187,9 @@ EXTRAS_REQUIRE['develop'] = \ # Project's URLs PROJECT_URLS = { - 'Documentation': 'https://django-environ.readthedocs.io', + 'Documentation': find_meta('url'), + 'Funding': 'https://opencollectiv...
Add 'Funding' and 'Say Thanks!' project urls
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -72,7 +72,7 @@ setup( 'matplotlib>=1.4.3', 'scikit-learn>=0.16.1', 'xlrd>=0.9.3', - 'xlwt>=1.0.0'], + 'openpyxl>...
Updated excel requirement to openpyxl in setup.py.
py
diff --git a/flask_security/forms.py b/flask_security/forms.py index <HASH>..<HASH> 100644 --- a/flask_security/forms.py +++ b/flask_security/forms.py @@ -29,7 +29,6 @@ _default_field_labels = { 'password': 'Password', 'remember_me': 'Remember Me', 'login': 'Login', - 'retype_password': 'Retype Passwo...
Remove a duplicate line ('retype_password': 'Retype Password', now line <I>) in forms.py
py
diff --git a/tests/test_progress.py b/tests/test_progress.py index <HASH>..<HASH> 100644 --- a/tests/test_progress.py +++ b/tests/test_progress.py @@ -19,7 +19,7 @@ class TestSignals: def posteval_cb(image, progress): notes['seen_posteval'] = True - image = pyvips.Image.black(10, 10000) +...
prog test could fail on heavilly loaded systems
py
diff --git a/src/bezier/_surface_intersection.py b/src/bezier/_surface_intersection.py index <HASH>..<HASH> 100644 --- a/src/bezier/_surface_intersection.py +++ b/src/bezier/_surface_intersection.py @@ -23,6 +23,7 @@ leading underscore will be surfaced as the actual interface (e.g. or the speedup. """ +import atexi...
Adding exit hook for `free_surface_intersections_workspace()`.
py
diff --git a/tests/unit/viz/utils.py b/tests/unit/viz/utils.py index <HASH>..<HASH> 100644 --- a/tests/unit/viz/utils.py +++ b/tests/unit/viz/utils.py @@ -1,16 +1,14 @@ -from geopandas import GeoDataFrame from pandas import DataFrame -from shapely.geometry import Point + +from cartoframes.utils.geom_utils import geoda...
Improve build_geojson utility
py
diff --git a/WrightTools/data/_join.py b/WrightTools/data/_join.py index <HASH>..<HASH> 100644 --- a/WrightTools/data/_join.py +++ b/WrightTools/data/_join.py @@ -122,14 +122,14 @@ def join(datas, *, name="join", parent=None, verbose=True): new = out[variable_name] # These lines are ne...
Join needs to have the new shape here, not the old (#<I>) Should at some point do more tests than we currently do, but join is due to be rewritten anyway. More proper tests should be among the first things to do in that rewrite
py