diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/exporters/notifications/ses_mail_notifier.py b/exporters/notifications/ses_mail_notifier.py index <HASH>..<HASH> 100644 --- a/exporters/notifications/ses_mail_notifier.py +++ b/exporters/notifications/ses_mail_notifier.py @@ -126,6 +126,7 @@ class SESMailNotifier(BaseNotifier): 'access_key': {'typ...
added missing field mail_from in SESMailNotifier
py
diff --git a/aws_xray_sdk/ext/django/templates.py b/aws_xray_sdk/ext/django/templates.py index <HASH>..<HASH> 100644 --- a/aws_xray_sdk/ext/django/templates.py +++ b/aws_xray_sdk/ext/django/templates.py @@ -1,6 +1,7 @@ import logging from django.template import Template +from django.utils.safestring import SafeStri...
Fix #<I>: Subsegment name serialization causing MissingName error Django sometimes uses SafeString instead of str for template names. Jsonpickle serializes SafeString as `{ "py/newargs": ["django/forms/widgets/attrs.html"]}` instead of `"django/forms/widgets/attrs.html" which is the reason for the invalid subsegment ...
py
diff --git a/stdnet/orm/fields.py b/stdnet/orm/fields.py index <HASH>..<HASH> 100755 --- a/stdnet/orm/fields.py +++ b/stdnet/orm/fields.py @@ -595,10 +595,7 @@ which can be rather useful feature. if not value: value = {} else: - try: - value =...
added safe loading of json fields
py
diff --git a/ravendb/documents/session/operations/lazy.py b/ravendb/documents/session/operations/lazy.py index <HASH>..<HASH> 100644 --- a/ravendb/documents/session/operations/lazy.py +++ b/ravendb/documents/session/operations/lazy.py @@ -224,7 +224,9 @@ class LazySessionOperations: return self._delegate.add...
RDBC-<I> Change signature of the lazy conditional load method
py
diff --git a/telemetry/telemetry/page/page_runner.py b/telemetry/telemetry/page/page_runner.py index <HASH>..<HASH> 100644 --- a/telemetry/telemetry/page/page_runner.py +++ b/telemetry/telemetry/page/page_runner.py @@ -328,7 +328,7 @@ def _UpdatePageSetArchivesIfChanged(page_set): os.path.join(dirpath, fil...
In page_runner, only look in the page_set bucket for wpr files. R=<EMAIL>, <EMAIL> BUG=<I> Committed: <URL>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ setup( 'numpy==1.9.0', 'SQLAlchemy==1.0.12', 'pyhocon==0.3.29', - 'psycopg2==2.7.6.1',], + ...
use pyscopg2-binary until it sucks
py
diff --git a/debugger/blocks.py b/debugger/blocks.py index <HASH>..<HASH> 100644 --- a/debugger/blocks.py +++ b/debugger/blocks.py @@ -20,5 +20,4 @@ class DebuggingChildBlock(XBlock): margin: 10px; } """) - widget.initialize_js("foo") return widget
Don't ask to be initialized if you don't need to.
py
diff --git a/build/build.py b/build/build.py index <HASH>..<HASH> 100755 --- a/build/build.py +++ b/build/build.py @@ -303,7 +303,7 @@ def main(): # Find a working Bazel. bazel_path = get_bazel_path(args.bazel_path) - check_bazel_version(bazel_path, min_version="0.24.0", max_version=None) + check_bazel_versio...
Update bazel min version to <I>. I think this was the first release including the --repo_env arg: <URL>
py
diff --git a/term2048/game.py b/term2048/game.py index <HASH>..<HASH> 100644 --- a/term2048/game.py +++ b/term2048/game.py @@ -135,19 +135,20 @@ class Game(object): """ main game loop """ - while True: - os.system(Game.__clear) - print(self.__str__(margins={'left'...
wrapping the whole game loop in a try/except
py
diff --git a/src/python/pants/base/build_environment.py b/src/python/pants/base/build_environment.py index <HASH>..<HASH> 100644 --- a/src/python/pants/base/build_environment.py +++ b/src/python/pants/base/build_environment.py @@ -74,7 +74,7 @@ def get_scm(): if worktree and os.path.isdir(worktree): git = G...
Squelch message from scm When I run commands like `./pants filter ...` this is the only message to stderr that comes out. It isn't important to us and I'd like to tamp it down to debug. Testing Done: CI running at <URL>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,10 @@ #!/usr/bin/env python +import os import sys from setuptools import setup +from setuptools.command.test import test PY2 = sys.version_info[0] == 2 install_requires = [ @@ -13,6 +15,15 @@ if PY2: in...
override test command to also setup django for testsuite
py
diff --git a/toot/console.py b/toot/console.py index <HASH>..<HASH> 100644 --- a/toot/console.py +++ b/toot/console.py @@ -285,5 +285,7 @@ def main(): run_command(app, user, command_name, args) except ConsoleError as e: print_err(str(e)) + sys.exit(1) except api.ApiError as e: ...
Exit with nonzero code on error fixes #<I>
py
diff --git a/tests/test_install.py b/tests/test_install.py index <HASH>..<HASH> 100644 --- a/tests/test_install.py +++ b/tests/test_install.py @@ -20,9 +20,8 @@ from distutils.tests import support def _make_ext_name(modname): - if os.name == 'nt': - if sys.executable.endswith('_d.exe'): - modn...
Turn two ifs into one in the code I commited a few days ago
py
diff --git a/pylint/checkers/similar.py b/pylint/checkers/similar.py index <HASH>..<HASH> 100644 --- a/pylint/checkers/similar.py +++ b/pylint/checkers/similar.py @@ -257,6 +257,11 @@ class LineSet: def __hash__(self): return id(self) + def __eq__(self, other): + if not isinstance(other, LineS...
Redefining __hash__ without redefining __eq__ is suspicious
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -73,7 +73,7 @@ setup( "eth-account>=0.5.3,<0.6.0", "eth-hash[pycryptodome]>=0.2.0,<1.0.0", "eth-typing>=2.0.0,<3.0.0", - "eth-utils>=1.9.3,<2.0.0", + "eth-utils>=1.9.5,<2.0.0", ...
Update eth-utils requirement to >=<I>
py
diff --git a/yamcs-client/src/yamcs/core/context.py b/yamcs-client/src/yamcs/core/context.py index <HASH>..<HASH> 100644 --- a/yamcs-client/src/yamcs/core/context.py +++ b/yamcs-client/src/yamcs/core/context.py @@ -3,8 +3,7 @@ import urllib3 from google.protobuf.message import DecodeError from yamcs import clientvers...
Hide urllib3 warning on old versions of requests
py
diff --git a/fireplace/brawls/__init__.py b/fireplace/brawls/__init__.py index <HASH>..<HASH> 100644 --- a/fireplace/brawls/__init__.py +++ b/fireplace/brawls/__init__.py @@ -3,7 +3,7 @@ from hearthstone.enums import CardClass, CardType, GameTag from ..actions import Buff, Give, Summon from ..aura import Refresh fro...
Simplify BananaBrawl random picker
py
diff --git a/pytweening/__init__.py b/pytweening/__init__.py index <HASH>..<HASH> 100644 --- a/pytweening/__init__.py +++ b/pytweening/__init__.py @@ -1,6 +1,9 @@ +from __future__ import division + import math -__version__ = '1.0.1' +__version__ = '1.0.2' + # from http://www.roguebasin.com/index.php?title=Bresenh...
Bumping version from <I> to <I>. Also making sure the `/` division is always floating point.
py
diff --git a/skyfield/timelib.py b/skyfield/timelib.py index <HASH>..<HASH> 100644 --- a/skyfield/timelib.py +++ b/skyfield/timelib.py @@ -343,10 +343,9 @@ class Time(object): # TODO: raise non-IndexError exception if this Time is not an array; # otherwise, a `for` loop over it will not raise an error...
Avoid forcing array creation when Time is indexed
py
diff --git a/tcex/tcex_resources.py b/tcex/tcex_resources.py index <HASH>..<HASH> 100644 --- a/tcex/tcex_resources.py +++ b/tcex/tcex_resources.py @@ -270,9 +270,6 @@ class Resource(object): def add_filter(self, name, operator, value): """Add ThreatConnect API Filter for this resource request. - ...
Removing link to internal docs
py
diff --git a/theanets/main.py b/theanets/main.py index <HASH>..<HASH> 100644 --- a/theanets/main.py +++ b/theanets/main.py @@ -310,7 +310,7 @@ class Experiment: sets = dict(train_set=train_set, valid_set=valid_set, cg_set=train_set) # set up training algorithm(s) - optimize = optimize or self...
Ensure rmsprop is used as a default trainer.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,8 @@ from setuptools import setup setup( name='Flask-SES', - version='1.0', + url='https://github.com/stooie90/flask-ses', + version='0.1', license='MIT', author='Stuart Robertson', auth...
Updated version and url in setup.py
py
diff --git a/rehive/api/resources/admin_resources.py b/rehive/api/resources/admin_resources.py index <HASH>..<HASH> 100644 --- a/rehive/api/resources/admin_resources.py +++ b/rehive/api/resources/admin_resources.py @@ -173,9 +173,8 @@ class APIAdminTransactions(ResourceList, ResourceCollection): response = sel...
[admin_transacton_patch,<I>] Make status optional in AdminTransacton PATCH method. - Remove the `status` from the patch method of admin transaction Fixed #<I>
py
diff --git a/alpaca_trade_api/rest.py b/alpaca_trade_api/rest.py index <HASH>..<HASH> 100644 --- a/alpaca_trade_api/rest.py +++ b/alpaca_trade_api/rest.py @@ -253,7 +253,8 @@ class REST(object): extended_hours: bool = None, order_class: str = None, take_...
Add kwargs to submit_order
py
diff --git a/neopixel.py b/neopixel.py index <HASH>..<HASH> 100644 --- a/neopixel.py +++ b/neopixel.py @@ -145,7 +145,10 @@ class NeoPixel: g = 0 b = 0 elif (len(value) == self.bpp) or ((len(value) == 3) and (self.bpp == 4)): - r, g, b, w = value if len(value) == 4 ...
Revert use of ternary; tuple addition failed when color is a list.
py
diff --git a/great_expectations/data_asset/util.py b/great_expectations/data_asset/util.py index <HASH>..<HASH> 100644 --- a/great_expectations/data_asset/util.py +++ b/great_expectations/data_asset/util.py @@ -207,11 +207,11 @@ def recursively_convert_to_json_serializable(test_obj): str(test_obj), type(te...
Return DotDict for expectation_suite by default
py
diff --git a/spyderlib/widgets/projectexplorer.py b/spyderlib/widgets/projectexplorer.py index <HASH>..<HASH> 100644 --- a/spyderlib/widgets/projectexplorer.py +++ b/spyderlib/widgets/projectexplorer.py @@ -456,14 +456,6 @@ class ExplorerTreeWidget(FilteredDirView): # Enable drag & drop events self.s...
Project explorer/bugfix: keyboard shortcut 'F2' (rename file/directory) was broken
py
diff --git a/ddmrp_adjustment/models/stock_warehouse_orderpoint.py b/ddmrp_adjustment/models/stock_warehouse_orderpoint.py index <HASH>..<HASH> 100644 --- a/ddmrp_adjustment/models/stock_warehouse_orderpoint.py +++ b/ddmrp_adjustment/models/stock_warehouse_orderpoint.py @@ -38,7 +38,7 @@ class StockWarehouseOrderpoint(...
[<I>][FIX] ADU *must* only be computed by the cron job (we do *not* want real-time ADU).
py
diff --git a/src/transformers/commands/serving.py b/src/transformers/commands/serving.py index <HASH>..<HASH> 100644 --- a/src/transformers/commands/serving.py +++ b/src/transformers/commands/serving.py @@ -109,7 +109,7 @@ class ServeCommand(BaseTransformersCLICommand): if not _serve_dependancies_installed: ...
Auto-format (fixes previous commit).
py
diff --git a/openquake/logs.py b/openquake/logs.py index <HASH>..<HASH> 100644 --- a/openquake/logs.py +++ b/openquake/logs.py @@ -26,7 +26,7 @@ TODO(jmc): support debug level per logger. from amqplib import client_0_8 as amqp import logging -from celery.log import redirect_stdouts_to_logger +from celery.log import...
Only perform the Celery stdout/stderr redirection once. Former-commit-id: <I>c<I>e<I>cebf<I>acab<I>aee<I>ce<I>e<I>
py
diff --git a/pyinfra/version.py b/pyinfra/version.py index <HASH>..<HASH> 100644 --- a/pyinfra/version.py +++ b/pyinfra/version.py @@ -2,4 +2,4 @@ # File: pyinfra/version.py # Desc: version file -__version__ = '0.1.dev31' +__version__ = '0.1.dev32'
de<I>. This fixes some Python3 issues (six.text_type > str). This should be the final dev version - once I've got the tests covering the critical parts of the API I am confident <I> is ready to be cut.
py
diff --git a/toml.py b/toml.py index <HASH>..<HASH> 100644 --- a/toml.py +++ b/toml.py @@ -92,8 +92,9 @@ def load_value(v): escapedchars = ['\0', '\n', '\r', '\t', '\"', '\\'] escapeseqs = v.split('\\')[1:] for i in escapeseqs: - if i[0] not in escapes and i[0] != 'x': - ...
Addresses some issues raised in #4 No longer chop off opening brackets for nested arrays Ignore trailing backslashes
py
diff --git a/quark/db/api.py b/quark/db/api.py index <HASH>..<HASH> 100644 --- a/quark/db/api.py +++ b/quark/db/api.py @@ -336,14 +336,15 @@ def network_delete(context, network): def subnet_find_allocation_counts(context, net_id, **filters): query = context.session.query(models.Subnet, - ...
Fixes #<I>: subnet.allocated_ips corrected
py
diff --git a/airflow/jobs.py b/airflow/jobs.py index <HASH>..<HASH> 100644 --- a/airflow/jobs.py +++ b/airflow/jobs.py @@ -426,8 +426,22 @@ class SchedulerJob(BaseJob): session.commit() active_runs = dag.get_active_runs() + + # Making a set of task instances that are easy to skip based on...
Optimization that gets a list of task instances to skip as a batch from the db
py
diff --git a/examples/example_simple_sa.py b/examples/example_simple_sa.py index <HASH>..<HASH> 100644 --- a/examples/example_simple_sa.py +++ b/examples/example_simple_sa.py @@ -22,8 +22,6 @@ async def create_table(engine): async def go(loop): engine = await create_engine(user='root', db='test_pymysql', ...
remove ipdb from example
py
diff --git a/salt/modules/sysrc.py b/salt/modules/sysrc.py index <HASH>..<HASH> 100644 --- a/salt/modules/sysrc.py +++ b/salt/modules/sysrc.py @@ -60,9 +60,14 @@ def get(**kwargs): ret = {} for sysrc in sysrcs.split("\n"): - rcfile = sysrc.split(': ')[0] - var = sysrc.split(': ')[1] - v...
fix bug in sysrc to allow for empty rc variables /etc/defaults/rc.conf containes empty variables, e.g. cloned_interfaces. sysrc will return something like 'cloned_interfaces: ' such empty variables would raise an exception. Fixed by checking for empty variables.
py
diff --git a/chalice/deployer.py b/chalice/deployer.py index <HASH>..<HASH> 100644 --- a/chalice/deployer.py +++ b/chalice/deployer.py @@ -639,7 +639,11 @@ class LambdaDeploymentPackager(object): def _add_py_deps(self, zip, deps_dir): # type: (zipfile.ZipFile, str) -> None prefix_len = len(deps_d...
Don't include chalice from site-packages in zipfile This is handled elsewhere and will result in UserWarnings from the zipfile module about duplicate files.
py
diff --git a/zappa/zappa.py b/zappa/zappa.py index <HASH>..<HASH> 100755 --- a/zappa/zappa.py +++ b/zappa/zappa.py @@ -697,7 +697,7 @@ class Zappa(object): """ - client = boto3.client('logs') + client = self.boto_session.client('logs') log_name = '/aws/lambda/' + lambda_name ...
use the class session in fetch_logs
py
diff --git a/build.py b/build.py index <HASH>..<HASH> 100644 --- a/build.py +++ b/build.py @@ -38,8 +38,8 @@ version = to_version(pkg['version']) resolved = _resolve_plugin(pkg.get('repository', {}).get('url'), version) # copy source code -shutil.rmtree('build/source', ignore_errors=True) -shutil.copytree(name, 'bu...
fix missing copy of python code
py
diff --git a/spadespipeline/basicAssembly.py b/spadespipeline/basicAssembly.py index <HASH>..<HASH> 100755 --- a/spadespipeline/basicAssembly.py +++ b/spadespipeline/basicAssembly.py @@ -42,9 +42,7 @@ class Basic(object): metadata.run = GenObject() # Populate the .fastqfiles category of :self....
Removed restrictions on words not allow to be present in fastq names/paths
py
diff --git a/examples/usbcat/device.py b/examples/usbcat/device.py index <HASH>..<HASH> 100755 --- a/examples/usbcat/device.py +++ b/examples/usbcat/device.py @@ -160,7 +160,7 @@ class USBCat(functionfs.Function): """ event_count = self.eventfd.read() trace('eventfd reports %i events' % event...
examples/usbcat/device: Typo in comment.
py
diff --git a/rets/parsers/base.py b/rets/parsers/base.py index <HASH>..<HASH> 100644 --- a/rets/parsers/base.py +++ b/rets/parsers/base.py @@ -50,7 +50,7 @@ class Base(object): reply_text = attributes.get('ReplyText', 'RETS did not supply a Reply Text.') logger.debug("Recieved ReplyCode of {0!s} fro...
found a new reply code to catch
py
diff --git a/lifxlan/lifxlan.py b/lifxlan/lifxlan.py index <HASH>..<HASH> 100644 --- a/lifxlan/lifxlan.py +++ b/lifxlan/lifxlan.py @@ -105,7 +105,7 @@ class LifxLAN: device = d return device - # takes in list of strings, returns list of devices + # takes in list of strings, returns...
changed get_devices_by_name to return a Group instead of a list of device objects
py
diff --git a/sakmapper/network.py b/sakmapper/network.py index <HASH>..<HASH> 100644 --- a/sakmapper/network.py +++ b/sakmapper/network.py @@ -174,14 +174,15 @@ def mapper_graph(df, lens_data=None, lens='pca', resolution=10, gain=0.5, equali max_K=5): """ input: N x n_dim image of of raw dat...
mapper_graph returns also dictionary of patches
py
diff --git a/allauth/socialaccount/providers/facebook/provider.py b/allauth/socialaccount/providers/facebook/provider.py index <HASH>..<HASH> 100644 --- a/allauth/socialaccount/providers/facebook/provider.py +++ b/allauth/socialaccount/providers/facebook/provider.py @@ -25,7 +25,7 @@ class FacebookAccount(ProviderAccou...
Use Facebook's SSL version of avatar picture (closes #<I>)
py
diff --git a/pandas/tests/series/test_ufunc.py b/pandas/tests/series/test_ufunc.py index <HASH>..<HASH> 100644 --- a/pandas/tests/series/test_ufunc.py +++ b/pandas/tests/series/test_ufunc.py @@ -439,3 +439,14 @@ def test_outer(): with pytest.raises(NotImplementedError, match=tm.EMPTY_STRING_PATTERN): np...
TST: GH<I>, added new test to validate numpy matmul function with dataframes (#<I>) * TST: GH<I>, added new test to validate numpy matmul function with dataframes as inputs * TST: GH<I>, updated variable names * Updated based on PR feedback * Removed variable initialisations per feedback * Final updates to...
py
diff --git a/nion/swift/HistogramPanel.py b/nion/swift/HistogramPanel.py index <HASH>..<HASH> 100644 --- a/nion/swift/HistogramPanel.py +++ b/nion/swift/HistogramPanel.py @@ -531,7 +531,9 @@ class HistogramPanel(Panel.Panel): display_stream = TargetDisplayStream(document_controller) self.__buffered_da...
Fix bug when comparing data and metadata in display stream.
py
diff --git a/uvicorn/workers.py b/uvicorn/workers.py index <HASH>..<HASH> 100644 --- a/uvicorn/workers.py +++ b/uvicorn/workers.py @@ -1,8 +1,10 @@ import asyncio import logging import signal +import sys from typing import Any +from gunicorn.arbiter import Arbiter from gunicorn.workers.base import Worker from...
Exit with status 3 when worker starts failed (#<I>) * fix: exit with status 3 when worker starts failed to aviod infinite start/stop cycles * docs: fixes spelling error * style: lint the code * fix: replace magic exit code
py
diff --git a/intranet/apps/seniors/views.py b/intranet/apps/seniors/views.py index <HASH>..<HASH> 100644 --- a/intranet/apps/seniors/views.py +++ b/intranet/apps/seniors/views.py @@ -9,6 +9,7 @@ from django.shortcuts import redirect, render from .forms import SeniorForm from .models import Senior from ..auth.decorat...
Remove Reference to Cache in Senior View
py
diff --git a/pyxel/editor/widget.py b/pyxel/editor/widget.py index <HASH>..<HASH> 100644 --- a/pyxel/editor/widget.py +++ b/pyxel/editor/widget.py @@ -115,11 +115,9 @@ class Widget: if key is not None: self._capture_mouse(key) - x = mx - self.x y = my - ...
Changed the timing to call a handler
py
diff --git a/jsonschema/compat.py b/jsonschema/compat.py index <HASH>..<HASH> 100644 --- a/jsonschema/compat.py +++ b/jsonschema/compat.py @@ -1,3 +1,8 @@ +""" +Python 2/3 compatibility helpers. + +Note: This module is *not* public API. +""" import contextlib import operator import sys
Add a note to compat.py. This was always true, and documented in the FAQ. Adding it nonetheless to the module docstring.
py
diff --git a/pancloud/credentials.py b/pancloud/credentials.py index <HASH>..<HASH> 100644 --- a/pancloud/credentials.py +++ b/pancloud/credentials.py @@ -77,7 +77,7 @@ class Credentials(object): self.region = region self.refresh_token_ = refresh_token self.scope = scope - self.state =...
Generate new state each time get_authorization_url() is called (#<I>)
py
diff --git a/salt/returners/mysql_return.py b/salt/returners/mysql_return.py index <HASH>..<HASH> 100644 --- a/salt/returners/mysql_return.py +++ b/salt/returners/mysql_return.py @@ -108,10 +108,10 @@ def get_jid(jid): cur = serv.cursor() sql = '''SELECT id, full_ret FROM `salt`.`salt_returns` - ...
Fix get_jid query. verified working
py
diff --git a/tests/settings/postgis.py b/tests/settings/postgis.py index <HASH>..<HASH> 100644 --- a/tests/settings/postgis.py +++ b/tests/settings/postgis.py @@ -1,6 +1,6 @@ from __future__ import unicode_literals -from . import * +from .postgresql_psycopg2 import * DATABASES['default']['ENGINE'] = 'django.con...
Make sure to use postgresql settings for postgis
py
diff --git a/grimoire_elk/elk/nntp.py b/grimoire_elk/elk/nntp.py index <HASH>..<HASH> 100644 --- a/grimoire_elk/elk/nntp.py +++ b/grimoire_elk/elk/nntp.py @@ -27,4 +27,7 @@ from .mbox import MBoxEnrich class NNTPEnrich(MBoxEnrich): def get_project_repository(self, eitem): - return eitem['origin'] + ...
[enrich][nntp] Fix howto get the project repository from the origin in NNTP
py
diff --git a/filer/models/imagemodels.py b/filer/models/imagemodels.py index <HASH>..<HASH> 100644 --- a/filer/models/imagemodels.py +++ b/filer/models/imagemodels.py @@ -26,7 +26,7 @@ if not filer_settings.FILER_IMAGE_MODEL: must_always_publish_author_credit = models.BooleanField(_('must always publish author...
Passified QuantifiedCode [ci skip]
py
diff --git a/memorious/tests/test_reporting.py b/memorious/tests/test_reporting.py index <HASH>..<HASH> 100644 --- a/memorious/tests/test_reporting.py +++ b/memorious/tests/test_reporting.py @@ -8,20 +8,10 @@ class TestReporting(object): def test_operation_reporting(self, crawler, context): log_operation_...
Whether a crawler is running or not is decided slightly differently now
py
diff --git a/openquake/risk/probabilistic_event_based.py b/openquake/risk/probabilistic_event_based.py index <HASH>..<HASH> 100644 --- a/openquake/risk/probabilistic_event_based.py +++ b/openquake/risk/probabilistic_event_based.py @@ -105,8 +105,6 @@ def compute_loss_ratio_curve_from_aggregate(aggregate_hist, tses, tim...
Deleted print Former-commit-id: 0f<I>ce7e<I>a<I>f<I>b<I>bccf<I>b<I>c
py
diff --git a/src/vmshepherd/http/rpc_api.py b/src/vmshepherd/http/rpc_api.py index <HASH>..<HASH> 100644 --- a/src/vmshepherd/http/rpc_api.py +++ b/src/vmshepherd/http/rpc_api.py @@ -117,7 +117,7 @@ class RpcApi(handler.JSONRPCView): try: preset = vmshepherd.preset_manager.get_preset(preset_name) ...
use logging error insted of exception for clean logs
py
diff --git a/djcelery/snapshot.py b/djcelery/snapshot.py index <HASH>..<HASH> 100644 --- a/djcelery/snapshot.py +++ b/djcelery/snapshot.py @@ -33,7 +33,7 @@ debug = logger.debug def aware_tstamp(secs): """Event timestamps uses the local timezone.""" - return maybe_make_aware(datetime.fromtimestamp(secs)) + ...
Fix snapshot.aware_tstamp by converting from utc timestamp
py
diff --git a/pymc/distributions/simulator.py b/pymc/distributions/simulator.py index <HASH>..<HASH> 100644 --- a/pymc/distributions/simulator.py +++ b/pymc/distributions/simulator.py @@ -247,8 +247,6 @@ class Simulator(NoDistribution): # in which case this would not be needed. However, that would have to be ...
Remove unnecessary tag in Simulator logp
py
diff --git a/tests/test_gitpuller.py b/tests/test_gitpuller.py index <HASH>..<HASH> 100644 --- a/tests/test_gitpuller.py +++ b/tests/test_gitpuller.py @@ -402,6 +402,25 @@ def test_delete_conflicted_file(): puller.pull_all() +def test_delete_remotely_modify_locally(): + """ + Test that we can del...
Test deleting a file upstream, and editing locally
py
diff --git a/cumulusci/cli/cli.py b/cumulusci/cli/cli.py index <HASH>..<HASH> 100644 --- a/cumulusci/cli/cli.py +++ b/cumulusci/cli/cli.py @@ -526,7 +526,7 @@ def org_connected_app(config): @click.command(name='config_connected_app', help="Configures the connected app used for connecting to Salesforce orgs") @click...
don't hide input when entering client secret on windows machines (workaround for click issue)
py
diff --git a/awss/awsc.py b/awss/awsc.py index <HASH>..<HASH> 100644 --- a/awss/awsc.py +++ b/awss/awsc.py @@ -79,8 +79,11 @@ def get_all_aminames(i_info): """ for i in i_info: - # pylint: disable=maybe-no-member - i_info[i]['aminame'] = EC2R.Image(i_info[i]['ami']).name + try: + ...
Change AMI-Name Lookup to Account for AMI-index without a name If an AMI-number does not have a corresponding name, it is assigned the value “Unknown” This value will display in instance lists This value used as a special-case in the cmd_ssh_user function [ci skip]
py
diff --git a/panels/_version.py b/panels/_version.py index <HASH>..<HASH> 100644 --- a/panels/_version.py +++ b/panels/_version.py @@ -1,2 +1,2 @@ # Versions compliant with PEP 440 https://www.python.org/dev/peps/pep-0440 -__version__ = "0.0.27" +__version__ = "0.0.28"
Update version number to <I>
py
diff --git a/pyfakefs/fake_filesystem_unittest.py b/pyfakefs/fake_filesystem_unittest.py index <HASH>..<HASH> 100644 --- a/pyfakefs/fake_filesystem_unittest.py +++ b/pyfakefs/fake_filesystem_unittest.py @@ -461,7 +461,7 @@ class Patcher(object): return False module_names = list(self._fake_mo...
Use snapshot of modules to avoid RuntimeError When running code on Python <I>, we get this error intermittently: RuntimeError: dictionary changed size during iteration Creating a list instead of set appears to solve this issue.
py
diff --git a/salt/modules/linux_sysctl.py b/salt/modules/linux_sysctl.py index <HASH>..<HASH> 100644 --- a/salt/modules/linux_sysctl.py +++ b/salt/modules/linux_sysctl.py @@ -12,11 +12,6 @@ from salt._compat import string_types from salt.exceptions import CommandExecutionError -__outputter__ = { - 'assign': 'tx...
migrate linux sysctl to new outputters
py
diff --git a/prospector/__pkginfo__.py b/prospector/__pkginfo__.py index <HASH>..<HASH> 100644 --- a/prospector/__pkginfo__.py +++ b/prospector/__pkginfo__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -__version_info__ = (0, 12, 11) +__version_info__ = (1, 0) __version__ = '.'.join(map(str, __version_info__))
Finally thinking this might actually be stable enough :-)
py
diff --git a/cellpy/utils/run_cellpy.py b/cellpy/utils/run_cellpy.py index <HASH>..<HASH> 100644 --- a/cellpy/utils/run_cellpy.py +++ b/cellpy/utils/run_cellpy.py @@ -138,7 +138,7 @@ def plotting_stuff(filename, folder, fig_folder, cell_name, m_s=20, ti_la_s=35): plt.figure(figsize=(20, 22)) number_plots = (0...
plotting with thicker line for cap vs. votlage
py
diff --git a/python/dllib/src/bigdl/dllib/nn/layer.py b/python/dllib/src/bigdl/dllib/nn/layer.py index <HASH>..<HASH> 100644 --- a/python/dllib/src/bigdl/dllib/nn/layer.py +++ b/python/dllib/src/bigdl/dllib/nn/layer.py @@ -3824,6 +3824,23 @@ class Threshold(Layer): v, ...
add more layers and operations (#<I>) * add more layers and operations * fix compile error * fix compile error
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ setup( name='parserutils', description='A collection of performant parsing utilities', keywords='parser,parsing,utils,utilities,collections,dates,elements,numbers,strings,url,xml', - version='0...
Sync setup file with target version.
py
diff --git a/tests/tests.py b/tests/tests.py index <HASH>..<HASH> 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -362,6 +362,8 @@ class TestChannels(unittest.TestCase): user_id=self.testuser_id).json() self.assertTrue(channels_add_owner.get('suc...
Add extra owner to room to be able to remove user in the test
py
diff --git a/runtests/mpi/tester.py b/runtests/mpi/tester.py index <HASH>..<HASH> 100644 --- a/runtests/mpi/tester.py +++ b/runtests/mpi/tester.py @@ -73,6 +73,7 @@ def MPITest(commsize): rt = None #pytest.skip("rank %d not needed for comm of size %d" %(MPI.COMM_WORLD.rank, siz...
Free the MPI communicators. According to mpi4py this is important or we have a leak.
py
diff --git a/openquake/baselib/general.py b/openquake/baselib/general.py index <HASH>..<HASH> 100644 --- a/openquake/baselib/general.py +++ b/openquake/baselib/general.py @@ -223,6 +223,8 @@ def split_in_slices(number, num_slices): >>> split_in_slices(2, 4) [slice(0, 1, None), slice(1, 2, None)] """ + ...
Added two asserts [skip CI]
py
diff --git a/bin/rez-make-project_.py b/bin/rez-make-project_.py index <HASH>..<HASH> 100644 --- a/bin/rez-make-project_.py +++ b/bin/rez-make-project_.py @@ -91,17 +91,19 @@ _project_build_requires = { usage = "usage: rez-make-project <name> <version>" +proj_types_str = str(',').join(_project_types) p = Option...
-minor fixes to rez-make-project util
py
diff --git a/tests/test_asyncio/conftest.py b/tests/test_asyncio/conftest.py index <HASH>..<HASH> 100644 --- a/tests/test_asyncio/conftest.py +++ b/tests/test_asyncio/conftest.py @@ -45,10 +45,15 @@ async def _get_info(redis_url): (False, PythonParser), pytest.param( (True, HiredisParser)...
Split incorrect mark into two separate marks (#<I>)
py
diff --git a/openquake/calculators/tests/classical_test.py b/openquake/calculators/tests/classical_test.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/tests/classical_test.py +++ b/openquake/calculators/tests/classical_test.py @@ -474,7 +474,7 @@ hazard_uhs-std.csv 'hazard_curve-mean-PGA.csv', ...
Increases tolerance in classical test_case_<I>
py
diff --git a/vobject/base.py b/vobject/base.py index <HASH>..<HASH> 100644 --- a/vobject/base.py +++ b/vobject/base.py @@ -34,10 +34,7 @@ except NameError: """ Return string """ - if type(s) == str: - return s.encode('utf-8') - else: - return bytes(s) + ...
we don't need to alter the str_() fxn for python 3
py
diff --git a/waliki/forms.py b/waliki/forms.py index <HASH>..<HASH> 100644 --- a/waliki/forms.py +++ b/waliki/forms.py @@ -44,7 +44,7 @@ class NewPageForm(forms.ModelForm): class Meta: model = Page - fields = ['title', 'slug'] + fields = ['title', 'slug', 'markup'] def clean_slug(se...
added markup for new_page form. Fix #<I>
py
diff --git a/dividebatur/senatecount.py b/dividebatur/senatecount.py index <HASH>..<HASH> 100755 --- a/dividebatur/senatecount.py +++ b/dividebatur/senatecount.py @@ -258,6 +258,7 @@ def write_angular_json(config, out_dir): } obj['counts'] = [{ 'name': count['name'], + 'state':...
write the statename for each count into count config JSON file
py
diff --git a/spikeylab/stim/auto_parameter_view.py b/spikeylab/stim/auto_parameter_view.py index <HASH>..<HASH> 100644 --- a/spikeylab/stim/auto_parameter_view.py +++ b/spikeylab/stim/auto_parameter_view.py @@ -14,6 +14,10 @@ class AutoParameterTableView(AbstractDragView, QtGui.QTableView): self.setItemDelegat...
Maintain highlight for selected row in auto-parameter model. Color matches stim highlighting.
py
diff --git a/tests/helper.py b/tests/helper.py index <HASH>..<HASH> 100644 --- a/tests/helper.py +++ b/tests/helper.py @@ -9,8 +9,6 @@ import sys import time from functools import partial -from process_tests import setup_coverage - TIMEOUT = int(os.getenv('MANHOLE_TEST_TIMEOUT', 10)) SOCKET_PATH = '/tmp/manhole-s...
Rip out old cruft. Close #<I>.
py
diff --git a/examples/lbfgs/driver.py b/examples/lbfgs/driver.py index <HASH>..<HASH> 100644 --- a/examples/lbfgs/driver.py +++ b/examples/lbfgs/driver.py @@ -116,9 +116,11 @@ if __name__ == "__main__": batch_size = 100 num_batches = mnist.train.num_examples / batch_size batches = [mnist.train.next_batch(batch...
Add more print statements to lbfgs app to help debug. (#<I>)
py
diff --git a/zinnia/tests/views.py b/zinnia/tests/views.py index <HASH>..<HASH> 100644 --- a/zinnia/tests/views.py +++ b/zinnia/tests/views.py @@ -495,7 +495,7 @@ class ViewsTestCase(ViewsBaseCase): if comments.get_comment_app_name() == comments.DEFAULT_COMMENTS_APP: # If we are using the default ...
Handle savepoint queries on trackback view testcase
py
diff --git a/tests/test_object.py b/tests/test_object.py index <HASH>..<HASH> 100644 --- a/tests/test_object.py +++ b/tests/test_object.py @@ -669,3 +669,10 @@ def test_array_of_array(): a2 = Array(a) assert a == a2 assert a is not a2 + + +def test_object_mapping(sandwich): + object_mapping = sandwich...
tests: exercise more of ObjectMapping
py
diff --git a/salt/log/handlers/__init__.py b/salt/log/handlers/__init__.py index <HASH>..<HASH> 100644 --- a/salt/log/handlers/__init__.py +++ b/salt/log/handlers/__init__.py @@ -56,9 +56,9 @@ class TemporaryLoggingHandler(logging.NullHandler): records will be dispatched to the provided handlers. ''' - d...
Add level passing support to the temporary logging handler.
py
diff --git a/tests/tests.py b/tests/tests.py index <HASH>..<HASH> 100755 --- a/tests/tests.py +++ b/tests/tests.py @@ -240,6 +240,17 @@ class TestTable(unittest.TestCase): #self.assertEquals(self.table.addFunction('', from_file='tests_data/jscode.js'),True) logging.debug(self.xml_pretty_print(self.tab...
#<I> : tests for BinderFunction created
py
diff --git a/searx/utils.py b/searx/utils.py index <HASH>..<HASH> 100644 --- a/searx/utils.py +++ b/searx/utils.py @@ -308,14 +308,15 @@ def int_or_zero(num): def is_valid_lang(lang): is_abbr = (len(lang) == 2) + lang = lang.lower().decode('utf-8') if is_abbr: for l in language_codes: - ...
[fix] convert bytes type to string in language detection (fixes dictzone)
py
diff --git a/sgp4/wulfgar.py b/sgp4/wulfgar.py index <HASH>..<HASH> 100644 --- a/sgp4/wulfgar.py +++ b/sgp4/wulfgar.py @@ -1,24 +1,20 @@ """Support test functions, in a module small enough to carry inline.""" +from importlib import import_module from unittest import TestCase __unittest = 1 # Tell unittest not to ...
Fix test detection in non-top-level modules
py
diff --git a/validator/sawtooth_validator/journal/completer.py b/validator/sawtooth_validator/journal/completer.py index <HASH>..<HASH> 100644 --- a/validator/sawtooth_validator/journal/completer.py +++ b/validator/sawtooth_validator/journal/completer.py @@ -67,9 +67,6 @@ class Completer(object): self._block_s...
Remove double defination of caches in completer
py
diff --git a/km3pipe/io/hdf5.py b/km3pipe/io/hdf5.py index <HASH>..<HASH> 100644 --- a/km3pipe/io/hdf5.py +++ b/km3pipe/io/hdf5.py @@ -568,7 +568,6 @@ class HDF5Pump(Pump): evt_ids = self.group_ids[fname] local_index = self._translate_index(fname, index) group_id = evt_ids[local_index] - ...
Ignore header if there is none
py
diff --git a/LiSE/LiSE/proxy.py b/LiSE/LiSE/proxy.py index <HASH>..<HASH> 100644 --- a/LiSE/LiSE/proxy.py +++ b/LiSE/LiSE/proxy.py @@ -1849,10 +1849,16 @@ class EngineProxy(AbstractEngine): self._things_cache = StructuredDefaultDict(1, ThingProxy) self._character_places_cache = StructuredDefaultDict(1...
Munge kwargs for couple caches Portal rulebooks cache will be harder to munge...
py
diff --git a/openquake/calculators/export/hazard.py b/openquake/calculators/export/hazard.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/export/hazard.py +++ b/openquake/calculators/export/hazard.py @@ -825,7 +825,8 @@ def export_gmf_scenario_csv(ekey, dstore): def _gmf_scenario(data, num_sites, imts): ...
Sorted the eids [skip CI]
py
diff --git a/pw.py b/pw.py index <HASH>..<HASH> 100644 --- a/pw.py +++ b/pw.py @@ -70,8 +70,8 @@ def main(): # add entry entry = Entry( path=normalize_path(path), - user=unicode(node['U']) if 'U' in node else None, - password=str(node.get('P', '')), # xerox had some problems with unicode st...
explicit conversion to str() or unicode() does not seem necessary anymore
py
diff --git a/easymode/i18n/decorators.py b/easymode/i18n/decorators.py index <HASH>..<HASH> 100644 --- a/easymode/i18n/decorators.py +++ b/easymode/i18n/decorators.py @@ -37,9 +37,9 @@ class I18n(object): i18n.register(cls, getattr(settings, 'LOCALE_DIR', None) or model_dir ) # add permi...
Fixes I<I>n for models with tuple permissions Fixes an error when `I<I>n` tries to add its permission to a model with a tuple for permissions. A model's `cls._meta.permissions` attribute can either be a list or a tuple (see <URL>).
py
diff --git a/wily/commands/build.py b/wily/commands/build.py index <HASH>..<HASH> 100644 --- a/wily/commands/build.py +++ b/wily/commands/build.py @@ -40,7 +40,7 @@ def build(config, archiver, operators): index = state.index # remove existing revisions from the list - revisions = [revision for revision i...
make a change to the build diff command
py
diff --git a/lib/svtplay_dl/service/bigbrother.py b/lib/svtplay_dl/service/bigbrother.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/service/bigbrother.py +++ b/lib/svtplay_dl/service/bigbrother.py @@ -9,6 +9,7 @@ from svtplay_dl.service import Service, OpenGraphThumbMixin from svtplay_dl.error import ServiceErro...
bigbrother: support for progressive download
py
diff --git a/buildozer/targets/android.py b/buildozer/targets/android.py index <HASH>..<HASH> 100644 --- a/buildozer/targets/android.py +++ b/buildozer/targets/android.py @@ -36,7 +36,7 @@ from buildozer.libs.version import parse class TargetAndroid(Target): p4a_branch = "old_toolchain" p4a_directory = "pyth...
android: fix bad templating string pushed by mistake with android_new
py
diff --git a/wallace/custom.py b/wallace/custom.py index <HASH>..<HASH> 100644 --- a/wallace/custom.py +++ b/wallace/custom.py @@ -222,6 +222,7 @@ def node(): exp.log("node_get_request successful", key) except: session.commit() + print(traceback.format_exc()) e...
print tracebacks for node requests?
py
diff --git a/docs/mxdoc.py b/docs/mxdoc.py index <HASH>..<HASH> 100644 --- a/docs/mxdoc.py +++ b/docs/mxdoc.py @@ -98,6 +98,8 @@ def build_mxnet(app): def build_julia_docs(app): """build Julia docs""" + os.environ['MXNET_HOME'] = os.path.abspath(os.path.join(app.builder.srcdir, '..')) + print("Julia will ...
Julia path patch (#<I>) * fix path to be static * add MXNET_HOME setting for Julia docs * Update docs/mxdoc.py
py