diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/src/asynqp/connection.py b/src/asynqp/connection.py index <HASH>..<HASH> 100644 --- a/src/asynqp/connection.py +++ b/src/asynqp/connection.py @@ -32,7 +32,6 @@ class Connection(object): The :class:`~asyncio.Protocol` which is paired with the transport """ def __init__(self, loop, transpo...
Removed unneded local `_loop` veriable in Connection
py
diff --git a/tests/conftest.py b/tests/conftest.py index <HASH>..<HASH> 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -29,6 +29,7 @@ from __future__ import absolute_import, print_function import datetime import os import shutil +import sys import tempfile import uuid from contextlib import contextmana...
tests: unique timestamping * ADD generator for timestamps to register events in different time windows
py
diff --git a/gsshapy/orm/cmt.py b/gsshapy/orm/cmt.py index <HASH>..<HASH> 100644 --- a/gsshapy/orm/cmt.py +++ b/gsshapy/orm/cmt.py @@ -15,6 +15,7 @@ __all__ = ['MapTableFile', 'MTContaminant', 'MTSediment'] +from io import open as io_open import os import logging @@ -116,7 +117,7 @@ class ...
fixes for python 2/3 compatibility for greek characters
py
diff --git a/ella/core/templatetags/pagination.py b/ella/core/templatetags/pagination.py index <HASH>..<HASH> 100644 --- a/ella/core/templatetags/pagination.py +++ b/ella/core/templatetags/pagination.py @@ -1,6 +1,7 @@ from urllib import urlencode from django import template +from django.utils.encoding import smart...
convert to str before urlencoding
py
diff --git a/src/discoursegraphs/readwrite/neo4j.py b/src/discoursegraphs/readwrite/neo4j.py index <HASH>..<HASH> 100755 --- a/src/discoursegraphs/readwrite/neo4j.py +++ b/src/discoursegraphs/readwrite/neo4j.py @@ -61,4 +61,4 @@ def upload_to_neo4j(discoursegraph): """ make_json_encodable(discoursegraph) ...
neo4j export now makes use of edge types
py
diff --git a/import_export/formats/base_formats.py b/import_export/formats/base_formats.py index <HASH>..<HASH> 100644 --- a/import_export/formats/base_formats.py +++ b/import_export/formats/base_formats.py @@ -2,13 +2,17 @@ import warnings import tablib try: - import xlrd + from tablib.compat import xlrd ...
Tweak xlrd loading
py
diff --git a/wscpe.py b/wscpe.py index <HASH>..<HASH> 100644 --- a/wscpe.py +++ b/wscpe.py @@ -116,6 +116,7 @@ class WSCPE(BaseWS): "Dummy", "SetTicketAcceso", "DebugLog", + "CrearCPE", "AgregarCabecera", "AgregarOrigen", "AgregarRetiroProductor",
WSCPE: Add `CrearCPE` to public methods
py
diff --git a/scapy/arch/windows/__init__.py b/scapy/arch/windows/__init__.py index <HASH>..<HASH> 100644 --- a/scapy/arch/windows/__init__.py +++ b/scapy/arch/windows/__init__.py @@ -441,7 +441,7 @@ def sndrcv(pks, pkt, timeout = 2, inter = 0, verbose=None, chainCC=0, retry=0, m if verbose: print "\...
Changed sndrcv() return behaviour for Windows as well
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -49,7 +49,7 @@ CONSOLE_SCRIPTS = [ py_version = platform.python_version() -_APITOOLS_VERSION = '0.5.22' +_APITOOLS_VERSION = '0.5.23' with open('README.rst') as fileobj: README = fileobj.read()
Update for <I> release.
py
diff --git a/filer/models/filemodels.py b/filer/models/filemodels.py index <HASH>..<HASH> 100644 --- a/filer/models/filemodels.py +++ b/filer/models/filemodels.py @@ -215,6 +215,10 @@ class File(PolymorphicModel, mixins.IconsMixin): ) @property + def file_ptr(self): + return self + + @prope...
added a 'file_ptr' property to the File model for deleting users from django.auth
py
diff --git a/airflow/models/dag.py b/airflow/models/dag.py index <HASH>..<HASH> 100644 --- a/airflow/models/dag.py +++ b/airflow/models/dag.py @@ -216,6 +216,10 @@ class DAG(LoggingMixin): <https://jinja.palletsprojects.com/en/2.11.x/api/#jinja2.Environment>`_ :type jinja_environment_kwargs: dict + :...
Updating the DAG docstring to include render_template_as_native_obj (#<I>)
py
diff --git a/tools/make_metadata.py b/tools/make_metadata.py index <HASH>..<HASH> 100755 --- a/tools/make_metadata.py +++ b/tools/make_metadata.py @@ -69,9 +69,16 @@ def entity_descriptor(confd): return ed +def entities_descriptor(eds): + return utils.make_instance(md.EntitiesDescriptor,{ + ...
Changed to construct a entities descriptor instead of a sequence of entity descriptor
py
diff --git a/tests/test_model_defs.py b/tests/test_model_defs.py index <HASH>..<HASH> 100644 --- a/tests/test_model_defs.py +++ b/tests/test_model_defs.py @@ -42,6 +42,7 @@ class ConcreteModel(models.Model): class ProxyModel(ConcreteModel): class Meta: + app_label = 'mutant' proxy = True
Added an app_label to a test proxy model to silence some deprecation warnings.
py
diff --git a/tests/test_util.py b/tests/test_util.py index <HASH>..<HASH> 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -584,7 +584,8 @@ def test_files(): # Expected output output = [os.path.join(os.path.abspath(os.path.curdir), 'tests', 'data', s) - for s in ['test1_22050.wav', +...
fixed find_files test to account for new mp3 example in tests/data
py
diff --git a/src/blackred/test/test_redis.py b/src/blackred/test/test_redis.py index <HASH>..<HASH> 100644 --- a/src/blackred/test/test_redis.py +++ b/src/blackred/test/test_redis.py @@ -24,7 +24,17 @@ import unittest from time import sleep -class RedisLibraryTest(unittest.TestCase): +class RedisTestBase(unittest....
Test refactoring The redis lib tests are refactored to use a common class to get the redis instance.
py
diff --git a/enoslib/infra/enos_distem/provider.py b/enoslib/infra/enos_distem/provider.py index <HASH>..<HASH> 100644 --- a/enoslib/infra/enos_distem/provider.py +++ b/enoslib/infra/enos_distem/provider.py @@ -209,7 +209,7 @@ def write_ssh_keys(path): with open("%s/id_rsa.pub"%path, "w") as pub: pub.wr...
Apply suggestion to enoslib/infra/enos_distem/provider.py
py
diff --git a/examples/VehicleBookings/veh.py b/examples/VehicleBookings/veh.py index <HASH>..<HASH> 100644 --- a/examples/VehicleBookings/veh.py +++ b/examples/VehicleBookings/veh.py @@ -1,5 +1,4 @@ from O365 import * -from printing import * import json @@ -15,25 +14,25 @@ if __name__ == '__main__': e = veh['e...
Removed unneeded import from veh.py I also updated it a little bit. Don't know if it works at all or not, but at hopefully it won't cause problems else where.
py
diff --git a/ckanutils.py b/ckanutils.py index <HASH>..<HASH> 100644 --- a/ckanutils.py +++ b/ckanutils.py @@ -33,7 +33,7 @@ from ckanapi import NotFound, NotAuthorized, ValidationError from tabutils import ( process as pr, io, fntools as ft, convert as cv, typetools as tt) -__version__ = '0.14.5' +__version__ ...
Bump to version <I>
py
diff --git a/ajax/__init__.py b/ajax/__init__.py index <HASH>..<HASH> 100755 --- a/ajax/__init__.py +++ b/ajax/__init__.py @@ -74,7 +74,7 @@ class ModelEndpoint(object): record = self._get_record() if self.can_delete(request.user, record): record.delete() - return {'pk': self.p...
Fix record fetching. Not sure how delete was working.
py
diff --git a/serenata_toolbox/datasets.py b/serenata_toolbox/datasets.py index <HASH>..<HASH> 100644 --- a/serenata_toolbox/datasets.py +++ b/serenata_toolbox/datasets.py @@ -14,7 +14,8 @@ def fetch_latest_backup(destination_path, '2016-11-19-current-year.xz', '2016-11-19-last-year.xz', ...
Adds congressperson civil names to datasets
py
diff --git a/charmhelpers/contrib/openstack/vaultlocker.py b/charmhelpers/contrib/openstack/vaultlocker.py index <HASH>..<HASH> 100644 --- a/charmhelpers/contrib/openstack/vaultlocker.py +++ b/charmhelpers/contrib/openstack/vaultlocker.py @@ -163,7 +163,7 @@ def retrieve_secret_id(url, token): :returns: secret_id ...
Fix exception from vaultlocker code due to upstream change (#<I>)
py
diff --git a/airflow/providers/exasol/hooks/exasol.py b/airflow/providers/exasol/hooks/exasol.py index <HASH>..<HASH> 100644 --- a/airflow/providers/exasol/hooks/exasol.py +++ b/airflow/providers/exasol/hooks/exasol.py @@ -19,6 +19,7 @@ from contextlib import closing from typing import Any, Dict, List, Optional, Tupl...
ExasolHook get_pandas_df does not return pandas dataframe but None (#<I>) closes #<I> ExasolHook get_pandas_df does not return pandas dataframe but None
py
diff --git a/pyls/hookspecs.py b/pyls/hookspecs.py index <HASH>..<HASH> 100644 --- a/pyls/hookspecs.py +++ b/pyls/hookspecs.py @@ -67,7 +67,7 @@ def pyls_experimental_capabilities(config, workspace): pass -@hookspec(firstresult=True) +@hookspec def pyls_folding_range(config, workspace, document): pass
Enable code folding results aggregation (#<I>)
py
diff --git a/airflow/bin/cli.py b/airflow/bin/cli.py index <HASH>..<HASH> 100755 --- a/airflow/bin/cli.py +++ b/airflow/bin/cli.py @@ -414,7 +414,7 @@ def webserver(args): '-n ' + 'airflow-webserver', '-p ' + str(pid)] - if not args.foreground: + if args.daemon:...
correct missed arg.foreground to arg.daemon in cli
py
diff --git a/hotdoc/core/project.py b/hotdoc/core/project.py index <HASH>..<HASH> 100644 --- a/hotdoc/core/project.py +++ b/hotdoc/core/project.py @@ -131,6 +131,8 @@ class Project(object): self.__conf_file = None self.__extension_classes = OrderedDict({ CoreExtension.extension_name: Core...
Use an env variable to setup uninstall extensions
py
diff --git a/tests/image_test.py b/tests/image_test.py index <HASH>..<HASH> 100644 --- a/tests/image_test.py +++ b/tests/image_test.py @@ -64,6 +64,10 @@ class ImageTest(PyPumpTest): "verb": "post", "object": self.imgdata, } + def test_create_empty(self): + image = self.pump...
Test empty Image instance will fail on missing object_type attribute
py
diff --git a/src/python/pants/backend/python/subsystems/pytest.py b/src/python/pants/backend/python/subsystems/pytest.py index <HASH>..<HASH> 100644 --- a/src/python/pants/backend/python/subsystems/pytest.py +++ b/src/python/pants/backend/python/subsystems/pytest.py @@ -18,7 +18,8 @@ class PyTest(Subsystem): '--...
Version changes should invalidate pytest runs. (#<I>) ### Problem When changing the pytest version or when adding/removing pytest plugins, pants does not invalidate targets. ### Solution Make sure pytest fingerprinting takes requirements into account. ### Result Test cache is correctly invalidated if we chan...
py
diff --git a/toytree/TreeNode.py b/toytree/TreeNode.py index <HASH>..<HASH> 100644 --- a/toytree/TreeNode.py +++ b/toytree/TreeNode.py @@ -1286,8 +1286,10 @@ class TreeNode(object): # find a child with children if not self.children[0].is_leaf(): child = self.children[0] + ...
fix for issue #<I>; unroot dists
py
diff --git a/django_geoip/models.py b/django_geoip/models.py index <HASH>..<HASH> 100644 --- a/django_geoip/models.py +++ b/django_geoip/models.py @@ -21,6 +21,9 @@ class Country(models.Model): def __unicode__(self): return self.name + def __str__(self): + return self.name + class Meta: ...
Added __str__ methods to model classes
py
diff --git a/greenhouse/scheduler.py b/greenhouse/scheduler.py index <HASH>..<HASH> 100644 --- a/greenhouse/scheduler.py +++ b/greenhouse/scheduler.py @@ -210,9 +210,7 @@ def mainloop(): # just wait until the first of them wakes up if state.timed_paused: ...
that was a bad idea, and buggy to boot
py
diff --git a/djongo/sql2mongo/query.py b/djongo/sql2mongo/query.py index <HASH>..<HASH> 100644 --- a/djongo/sql2mongo/query.py +++ b/djongo/sql2mongo/query.py @@ -642,7 +642,7 @@ class AlterQuery(VoidQuery): )): pass elif tok.match(tokens.Name.Builtin, ( - 'inte...
Handle boolean @ add field
py
diff --git a/cumulusci/core/flows.py b/cumulusci/core/flows.py index <HASH>..<HASH> 100644 --- a/cumulusci/core/flows.py +++ b/cumulusci/core/flows.py @@ -25,13 +25,10 @@ class BaseFlow(object): self.skip = skip self.task_options = {} self.skip_tasks = [] - self.task_return_values = []...
add comment for nested attribute; clean up other attribute comments
py
diff --git a/restclients_core/tests/models/test_base.py b/restclients_core/tests/models/test_base.py index <HASH>..<HASH> 100644 --- a/restclients_core/tests/models/test_base.py +++ b/restclients_core/tests/models/test_base.py @@ -5,6 +5,17 @@ import gc class TestModelBase(TestCase): + def test_override_init(se...
Adding a test for a model w/ a bad __init__
py
diff --git a/examples/reply.py b/examples/reply.py index <HASH>..<HASH> 100644 --- a/examples/reply.py +++ b/examples/reply.py @@ -6,7 +6,7 @@ client.login('email', 'password') @client.event def on_message(message): if message.content.startswith('!hello'): - client.send_message(message.channel, 'Hello was...
Make reply example a bit more meaningful.
py
diff --git a/datadog-checks-base/datadog_checks/log.py b/datadog-checks-base/datadog_checks/log.py index <HASH>..<HASH> 100644 --- a/datadog-checks-base/datadog_checks/log.py +++ b/datadog-checks-base/datadog_checks/log.py @@ -42,6 +42,20 @@ def _get_py_loglevel(lvl): return LOG_LEVEL_MAP.get(lvl.upper(), logging....
[base/log] Set `urllib3`'s logger to WARN level by default (#<I>) Already done separately in A5 (collector code) and A6 (checks/__init__.py). Let's do it directly in `datadog_checks_base` for consistency.
py
diff --git a/imgaug/augmenters/overlay.py b/imgaug/augmenters/overlay.py index <HASH>..<HASH> 100644 --- a/imgaug/augmenters/overlay.py +++ b/imgaug/augmenters/overlay.py @@ -93,8 +93,8 @@ def blend_alpha(image_fg, image_bg, alpha, eps=1e-2): assert image_fg.shape == image_bg.shape assert image_fg.dtype.kind ...
Reactivate dtypes in blend_alpha()
py
diff --git a/homely/install.py b/homely/install.py index <HASH>..<HASH> 100644 --- a/homely/install.py +++ b/homely/install.py @@ -121,6 +121,11 @@ class InstallFromSource(Helper): if self._tag not in map(str, current.splitlines()): return False + # if there's no symlinks, we can'...
Fix for InstallFromSource thinking its done ... when it has no symlinks to check
py
diff --git a/leaflet_storage/admin.py b/leaflet_storage/admin.py index <HASH>..<HASH> 100644 --- a/leaflet_storage/admin.py +++ b/leaflet_storage/admin.py @@ -3,10 +3,14 @@ from .models import Map, Marker, DataLayer, Pictogram, TileLayer, Polyline,\ Licence +class TileLayerAdmin(admin.ModelAdmi...
Make possible to edit TileLayer ranks from admin list view
py
diff --git a/tests/test_remote.py b/tests/test_remote.py index <HASH>..<HASH> 100644 --- a/tests/test_remote.py +++ b/tests/test_remote.py @@ -4,9 +4,12 @@ from supplement.remote import Environment from .helpers import cleantabs +def get_env(): + return Environment(env={'PYTHONPATH':'.'}) + @pytest.mark.xfail ...
fix: test_remote does not work without installed supplement
py
diff --git a/yoke/utils.py b/yoke/utils.py index <HASH>..<HASH> 100644 --- a/yoke/utils.py +++ b/yoke/utils.py @@ -36,7 +36,7 @@ def encrypt(config, output=False): resp = kms.encrypt(KeyId=key_name, Plaintext=bytes(json.dumps(secret_config))) if output: - print('Encrypted config...
Update secretConfig output to include config-friendly fields
py
diff --git a/nodeconductor/structure/views.py b/nodeconductor/structure/views.py index <HASH>..<HASH> 100644 --- a/nodeconductor/structure/views.py +++ b/nodeconductor/structure/views.py @@ -1044,6 +1044,8 @@ class BaseOnlineResourceViewSet(BaseResourceViewSet): # User can only create and delete those resourse. He...
Set non-VM resourses offline prior deletion - NC-<I>
py
diff --git a/py3status/modules/imap.py b/py3status/modules/imap.py index <HASH>..<HASH> 100644 --- a/py3status/modules/imap.py +++ b/py3status/modules/imap.py @@ -46,7 +46,7 @@ class Py3status: if self.hide_if_zero: response['full_text'] = '' else: - response['f...
this is what insufficient testing gets you
py
diff --git a/src/main/python/rlbot/utils/structures/game_data_struct.py b/src/main/python/rlbot/utils/structures/game_data_struct.py index <HASH>..<HASH> 100644 --- a/src/main/python/rlbot/utils/structures/game_data_struct.py +++ b/src/main/python/rlbot/utils/structures/game_data_struct.py @@ -140,8 +140,8 @@ def rotat...
fix issue with rotating struct crashing on python (#<I>)
py
diff --git a/py3status/docstrings.py b/py3status/docstrings.py index <HASH>..<HASH> 100644 --- a/py3status/docstrings.py +++ b/py3status/docstrings.py @@ -425,9 +425,9 @@ def show_modules(config, params): user_mods = False core_mods = True if details: - print_stderr("Module...
Print module information to sdtout instead of stderr (#<I>), by @robertnf
py
diff --git a/cocaine/asio/service.py b/cocaine/asio/service.py index <HASH>..<HASH> 100644 --- a/cocaine/asio/service.py +++ b/cocaine/asio/service.py @@ -382,7 +382,11 @@ class Service(AbstractService): @strategy.coroutine def connectThroughLocator(self, locator, timeout=None, blocking=False): - end...
More meaningful error messages in `Locator.resolve` method.
py
diff --git a/libsubmit/providers/googlecloud/googlecloud.py b/libsubmit/providers/googlecloud/googlecloud.py index <HASH>..<HASH> 100644 --- a/libsubmit/providers/googlecloud/googlecloud.py +++ b/libsubmit/providers/googlecloud/googlecloud.py @@ -85,6 +85,7 @@ class GoogleCloud(): # ExcecutionProvider): self....
Clarify name and remove Hungarian notation
py
diff --git a/knxip/ip.py b/knxip/ip.py index <HASH>..<HASH> 100644 --- a/knxip/ip.py +++ b/knxip/ip.py @@ -508,7 +508,7 @@ class KNXIPTunnel(): This method does not wait for an acknowledge or result frame. """ - if self.data_server is None: + if not self.connected: if auto...
Use self.connected instead of date_server to check if tunnel is up
py
diff --git a/pymongo/connection.py b/pymongo/connection.py index <HASH>..<HASH> 100644 --- a/pymongo/connection.py +++ b/pymongo/connection.py @@ -196,6 +196,9 @@ class Connection(object): # TODO support auth for pooling if result["ismaster"] == 1: return True else: + if "remot...
better error when attempting to connect directly to slave
py
diff --git a/src/html5lib/tokenizer.py b/src/html5lib/tokenizer.py index <HASH>..<HASH> 100644 --- a/src/html5lib/tokenizer.py +++ b/src/html5lib/tokenizer.py @@ -128,17 +128,11 @@ class HTMLTokenizer: "illegal-codepoint-for-numeric-entity", ...
Our handling of numeric entities, converting them to characters, is overly complex and the comment is misleading.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,8 @@ install_requires = [ # List your project dependencies here. # For more details, see: # http://packages.python.org/distribute/setuptools.html#declaring-dependencies - "enum", "lxml", "networkx",...
added missing packages to setup.py
py
diff --git a/carrot/serialization.py b/carrot/serialization.py index <HASH>..<HASH> 100644 --- a/carrot/serialization.py +++ b/carrot/serialization.py @@ -199,9 +199,36 @@ class SerializerRegistry(object): return decoder(data) +""" +.. data:: registry + +Global registry of serializers/deserializers. + +"""...
Add documentation to dynamically set functions.
py
diff --git a/intranet/apps/context_processors.py b/intranet/apps/context_processors.py index <HASH>..<HASH> 100644 --- a/intranet/apps/context_processors.py +++ b/intranet/apps/context_processors.py @@ -28,7 +28,7 @@ def nav_categorizer(request): if p.match(request.path): cat = category - if ...
check if user is authenticated before checking startpage
py
diff --git a/python_modules/libraries/dagster-dask/dagster_dask/resources.py b/python_modules/libraries/dagster-dask/dagster_dask/resources.py index <HASH>..<HASH> 100644 --- a/python_modules/libraries/dagster-dask/dagster_dask/resources.py +++ b/python_modules/libraries/dagster-dask/dagster_dask/resources.py @@ -14,9 ...
DaskClusterTypes refactoring (#<I>) * Specifying subpackages for AWS clusters. * AzureMLCluster was renamed a year ago to AzureVMCluster.
py
diff --git a/src/protean/impl/repository/elasticsearch_repo.py b/src/protean/impl/repository/elasticsearch_repo.py index <HASH>..<HASH> 100644 --- a/src/protean/impl/repository/elasticsearch_repo.py +++ b/src/protean/impl/repository/elasticsearch_repo.py @@ -76,13 +76,11 @@ class ElasticsearchModel(Document): def ...
Bugfix - Construct Entity from dict of ES Model
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ setup( ('/'.join([CONFIG_PATH, 'captures']), []), ('/'.join([CONFIG_PATH, 'videos']), []) ], - url='http://pypi.python.org/pypi/PyLapse/', + url='https://...
Changing url in setup.py
py
diff --git a/vhdl_toolkit/hdlObjects/typeDefs.py b/vhdl_toolkit/hdlObjects/typeDefs.py index <HASH>..<HASH> 100644 --- a/vhdl_toolkit/hdlObjects/typeDefs.py +++ b/vhdl_toolkit/hdlObjects/typeDefs.py @@ -239,11 +239,19 @@ class Std_logic_vector(HdlType): width = abs(width[1].val - width[0].val) + 1 v =...
std_logic_vector literal serialize method
py
diff --git a/tasklib/tests.py b/tasklib/tests.py index <HASH>..<HASH> 100644 --- a/tasklib/tests.py +++ b/tasklib/tests.py @@ -503,6 +503,12 @@ class TaskTest(TasklibTest): for normalizer in normalizers: normalizer(None) + def test_recurrent_task_generation(self): + today = datetime.da...
Tests: Test generation of recurrent tasks
py
diff --git a/webview/cef.py b/webview/cef.py index <HASH>..<HASH> 100644 --- a/webview/cef.py +++ b/webview/cef.py @@ -252,7 +252,7 @@ def shutdown(): shutil.rmtree('webrtc_event_logs') if os.path.exists('error.log'): - shutil.rmtree('error.log') + os.remove('error.log') ...
Use os.remove rather than shutil.rmtree to remove error.log on exit shutil.rmtree is only supposed to take a directory argument according to docs. Was resulting in an exception on window shutdown.
py
diff --git a/sandbox/library/models.py b/sandbox/library/models.py index <HASH>..<HASH> 100644 --- a/sandbox/library/models.py +++ b/sandbox/library/models.py @@ -1,5 +1,5 @@ +from django.core.urlresolvers import reverse from django.db import models -from django.urls import reverse from hashid_field import HashidAu...
Compatibility for older Django versions
py
diff --git a/eqcorrscan/core/template_gen.py b/eqcorrscan/core/template_gen.py index <HASH>..<HASH> 100644 --- a/eqcorrscan/core/template_gen.py +++ b/eqcorrscan/core/template_gen.py @@ -1131,7 +1131,6 @@ def from_meta_file(meta_file, st, lowcut, highcut, samp_rate, filt_order, template, where signal-to-noise ...
Fixed bug with 2-letter vs 3-letter channel code comparison Added additional (ugly) lines to compare only first and last letter of 2 or 3-letter channel codes.
py
diff --git a/gwpy/segments/flag.py b/gwpy/segments/flag.py index <HASH>..<HASH> 100644 --- a/gwpy/segments/flag.py +++ b/gwpy/segments/flag.py @@ -453,7 +453,7 @@ class DataQualityFlag(object): Either, two `float`-like numbers indicating the GPS [start, stop) interval, or a `SegmentList` ...
flag.py: fixed references to dqsegdb.ligo.org that server was named segments.ligo.org
py
diff --git a/manuscripts/_version.py b/manuscripts/_version.py index <HASH>..<HASH> 100644 --- a/manuscripts/_version.py +++ b/manuscripts/_version.py @@ -1,2 +1,2 @@ # Versions compliant with PEP 440 https://www.python.org/dev/peps/pep-0440 -__version__ = "0.2.5" +__version__ = "0.2.6"
Update version number to <I>
py
diff --git a/legit/cli.py b/legit/cli.py index <HASH>..<HASH> 100644 --- a/legit/cli.py +++ b/legit/cli.py @@ -128,7 +128,6 @@ def fuzzy_match_branch(branch): def cmd_switch(args): """Legit Switch command.""" - from_branch = get_current_branch_name() to_branch = args.get(0) to_branch = fuzzy_match_...
partially revert #<I>, to fix bug with previous intented behavior
py
diff --git a/tools/run_tests/jobset.py b/tools/run_tests/jobset.py index <HASH>..<HASH> 100755 --- a/tools/run_tests/jobset.py +++ b/tools/run_tests/jobset.py @@ -203,12 +203,23 @@ class Job(object): env.update(self._spec.environ) env.update(self._add_env) self._start = time.time() - self._process = s...
Potential fix for failing to start binaries on mac
py
diff --git a/wikitextparser/_wikitext.py b/wikitextparser/_wikitext.py index <HASH>..<HASH> 100644 --- a/wikitextparser/_wikitext.py +++ b/wikitextparser/_wikitext.py @@ -535,13 +535,13 @@ class WikiText: string = self._lststr[0][ss:se] byte_array = bytearray(string, 'ascii', 'replace') subsp...
chore(_ext_link_shadow): treat wikilinks the same as comments they cannot contain ext links. example: [[a|[http://b]]] is treated as plain text.
py
diff --git a/pytest-shutil/setup.py b/pytest-shutil/setup.py index <HASH>..<HASH> 100644 --- a/pytest-shutil/setup.py +++ b/pytest-shutil/setup.py @@ -25,7 +25,8 @@ install_requires = ['six', 'execnet', 'contextlib2;python_version<"3"', 'pytest', - ...
Update pytest-shutil/setup.py
py
diff --git a/sos/plugins/numa.py b/sos/plugins/numa.py index <HASH>..<HASH> 100644 --- a/sos/plugins/numa.py +++ b/sos/plugins/numa.py @@ -14,6 +14,7 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin +import os.path class Num...
[numa] missing import to os.path.join command "import os.path" missing. Resolves: #<I>
py
diff --git a/python/ray/tune/tests/test_trial_scheduler.py b/python/ray/tune/tests/test_trial_scheduler.py index <HASH>..<HASH> 100644 --- a/python/ray/tune/tests/test_trial_scheduler.py +++ b/python/ray/tune/tests/test_trial_scheduler.py @@ -886,8 +886,6 @@ class PopulationBasedTestingSuite(unittest.TestCase): ...
Update test_trial_scheduler.py (#<I>)
py
diff --git a/pyArango/tests/tests.py b/pyArango/tests/tests.py index <HASH>..<HASH> 100644 --- a/pyArango/tests/tests.py +++ b/pyArango/tests/tests.py @@ -202,6 +202,13 @@ class pyArangoTests(unittest.TestCase): self.assertEqual(lstRes, range(nbUsers)) self.assertEqual(q.count, nbUsers) + def test_nonRaw_creati...
Added test for CreationError with non-raw queries
py
diff --git a/frojd_fabric/ext/virtualenv.py b/frojd_fabric/ext/virtualenv.py index <HASH>..<HASH> 100644 --- a/frojd_fabric/ext/virtualenv.py +++ b/frojd_fabric/ext/virtualenv.py @@ -6,10 +6,13 @@ frojd_fabric.ext.virtualenv Holds methods for managing virtualenv. """ +from unipath import Path from fabric.decorator...
Added prompt that checks if path already exist. Closes #<I>
py
diff --git a/solvebio/resource/object.py b/solvebio/resource/object.py index <HASH>..<HASH> 100644 --- a/solvebio/resource/object.py +++ b/solvebio/resource/object.py @@ -592,13 +592,9 @@ class Object(CreateableAPIResource, if not self.is_dataset: raise SolveError("Only datasets can be restored.")...
fix default restore storage class, change to Standard-IA instead of Standard (#<I>)
py
diff --git a/semver.py b/semver.py index <HASH>..<HASH> 100644 --- a/semver.py +++ b/semver.py @@ -28,7 +28,7 @@ def parse(version): def compare(ver1, ver2): def nat_cmp(a, b): a, b = a or '', b or '' - convert = lambda text: int(text) if text.isdigit() else text.lower() + convert = lambda ...
Fix compatibility with Python <I>
py
diff --git a/src/html5lib/html5parser.py b/src/html5lib/html5parser.py index <HASH>..<HASH> 100644 --- a/src/html5lib/html5parser.py +++ b/src/html5lib/html5parser.py @@ -1274,8 +1274,9 @@ class InBodyPhase(Phase): self.parser.phase = self.parser.phases["afterBody"] def endTagHtml(self, token): - ...
Fix problem with unclosed scoping element and end tag html
py
diff --git a/deepdiff/model.py b/deepdiff/model.py index <HASH>..<HASH> 100644 --- a/deepdiff/model.py +++ b/deepdiff/model.py @@ -478,7 +478,7 @@ class InaccessibleRelationship(ChildRelationship): def _format_partial(self, partial): return None - def access_partial(self): + def access_partial(sel...
Still broken: Fix minor mistake, missing param
py
diff --git a/test/synchro/__init__.py b/test/synchro/__init__.py index <HASH>..<HASH> 100644 --- a/test/synchro/__init__.py +++ b/test/synchro/__init__.py @@ -38,7 +38,7 @@ from pymongo.common import SAFE_OPTIONS # So that synchronous unittests can import these names from Synchro, # thinking it's really pymongo from...
"TEXT" index type is gone again from PyMongo
py
diff --git a/mlbgame/statmap.py b/mlbgame/statmap.py index <HASH>..<HASH> 100644 --- a/mlbgame/statmap.py +++ b/mlbgame/statmap.py @@ -375,19 +375,3 @@ you should click "show source" to see all the stat values. Some official stat abbreviations on [mlb.com](http://mlb.mlb.com/mlb/official_info/baseball_basics/abbrevi...
Remove batter_stats and pitcher_stats objects from statmap These variables just required more code which slowed down the module and they were never really used, plus it is easy for users to create the same thing on their own WARNING: Not Backwards Compatible Change
py
diff --git a/heron/tools/cli/src/python/execute.py b/heron/tools/cli/src/python/execute.py index <HASH>..<HASH> 100644 --- a/heron/tools/cli/src/python/execute.py +++ b/heron/tools/cli/src/python/execute.py @@ -98,7 +98,6 @@ def heron_tar(class_name, topology_tar, arguments, tmpdir_root, java_defines): topology_jar ...
Remove unneeded dep when submitting a tar (#<I>) Remove unneeded heron-instance.jar dep from the classpath to start the jvm to execute the topology's main method when submitting a tar.
py
diff --git a/python/ica.py b/python/ica.py index <HASH>..<HASH> 100644 --- a/python/ica.py +++ b/python/ica.py @@ -90,11 +90,11 @@ W = dot(transpose(B),whtMat) # save output files logging.info('(ica) finished after ' + str(iterNum) + ' iterations') logging.info('(ica) writing output...') -savetxt(outputFile+"/"+"W-c...
Updated ica to save mat files
py
diff --git a/src/gnupg.py b/src/gnupg.py index <HASH>..<HASH> 100644 --- a/src/gnupg.py +++ b/src/gnupg.py @@ -85,7 +85,7 @@ from subprocess import PIPE import codecs ## For AOS, the locale module will need to point to a wrapper around the ## java.util.Locale class. -## See https://github.com/isislovecruft/android-l...
Don't point users to github, where possible. * Github has these rather nasty tracking mechanisms through pixel cookies, as well as hardware fingerprinting (potentially deanonymising) through HTML5 canvases. * I suck at configuring gitweb + lighttpd. I cannot get pretty URLs for the repos, but it's still bet...
py
diff --git a/xibless/label.py b/xibless/label.py index <HASH>..<HASH> 100644 --- a/xibless/label.py +++ b/xibless/label.py @@ -3,7 +3,7 @@ from .textfield import TextField class Label(TextField): def __init__(self, parent, text): TextField.__init__(self, parent, text) - self.width = 17 + se...
Fixed label height override (was previously and mistakely overriding width).
py
diff --git a/tools/buildgen/generate_projects.py b/tools/buildgen/generate_projects.py index <HASH>..<HASH> 100755 --- a/tools/buildgen/generate_projects.py +++ b/tools/buildgen/generate_projects.py @@ -50,7 +50,10 @@ jobs = [] for root, dirs, files in os.walk('templates'): for f in files: if os.path.splitext(...
generate_projects.py should make directories. That's necessary for generating Visual Studio project files that are in separate empty directories otherwise.
py
diff --git a/etrago/cluster/disaggregation.py b/etrago/cluster/disaggregation.py index <HASH>..<HASH> 100644 --- a/etrago/cluster/disaggregation.py +++ b/etrago/cluster/disaggregation.py @@ -219,9 +219,10 @@ class Disaggregation: # profile.print_stats(sort='cumtime') - def transfer_results(self, partial...
Only copy interesting timeseries The `transfer_results` function generally copies everything, but we are only interested in the timeseries computed for `'generators'` and `'storage_units'`. Overloading the function so that it copies only those when doing uniform disaggregation should speed up things at least a little ...
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ #!/usr/bin/env python from setuptools import setup, find_packages # This setup relies on setuptools since distutils is insufficient and badly hacked code -version = '3.1.3' +version = '3.1.4' author = 'David...
MAINT: prepare for release <I>
py
diff --git a/alot/widgets.py b/alot/widgets.py index <HASH>..<HASH> 100644 --- a/alot/widgets.py +++ b/alot/widgets.py @@ -393,8 +393,8 @@ class MessageWidget(urwid.WidgetWrap): self.show_raw = raw self.show_all_headers = all_headers - # build the summary line, header and body will be created...
make MessageWidget rebuild summary widget on each rebuild(). previously, this subwidget would never change and hence was excluded from being rebuild.
py
diff --git a/ELiDE/ELiDE/card.py b/ELiDE/ELiDE/card.py index <HASH>..<HASH> 100644 --- a/ELiDE/ELiDE/card.py +++ b/ELiDE/ELiDE/card.py @@ -523,6 +523,7 @@ class DeckBuilderLayout(Layout): ): Clock.schedule_once(self.on_decks, 0) return + self.clear_widgets() decknum = ...
Remove stale card widgets when switching rules
py
diff --git a/marrow/package/lazy.py b/marrow/package/lazy.py index <HASH>..<HASH> 100644 --- a/marrow/package/lazy.py +++ b/marrow/package/lazy.py @@ -1,7 +1,7 @@ from threading import RLock from collections.abc import MutableMapping from typeguard import check_argument_types -from typing import Callable +from typin...
More permissive defined requirement for the decorated function.
py
diff --git a/tomodachi/__version__.py b/tomodachi/__version__.py index <HASH>..<HASH> 100644 --- a/tomodachi/__version__.py +++ b/tomodachi/__version__.py @@ -1,4 +1,4 @@ -__version__ = '0.2.5' +__version__ = '0.2.6' if __name__ == "__main__": print(__version__)
Bumped version to <I>
py
diff --git a/parsl/monitoring/monitoring.py b/parsl/monitoring/monitoring.py index <HASH>..<HASH> 100644 --- a/parsl/monitoring/monitoring.py +++ b/parsl/monitoring/monitoring.py @@ -482,10 +482,11 @@ def monitor(pid, task_id, monitoring_hub_url, run_id, sleep_dur=10): logging.exception("Exception ...
add a catch for monitoring wrapper loop (#<I>)
py
diff --git a/user_tasks/admin.py b/user_tasks/admin.py index <HASH>..<HASH> 100644 --- a/user_tasks/admin.py +++ b/user_tasks/admin.py @@ -27,7 +27,9 @@ class UserTaskStatusAdmin(admin.ModelAdmin): list_display = ('created', 'uuid', 'state', 'user', 'name') ordering = ('-created',) - search_fields = ('uu...
Fix search in UserTaskStatusAdmin (#<I>) In the admin config, search_fields specified to search task statuses on user, which is a ForeignKey. Instead, we now search on user__username and user__email.
py
diff --git a/installers/macOS/setup.py b/installers/macOS/setup.py index <HASH>..<HASH> 100644 --- a/installers/macOS/setup.py +++ b/installers/macOS/setup.py @@ -152,8 +152,7 @@ def make_app_bundle(dist_dir, make_lite=False): 'jedi', 'jinja2', 'keyring', 'parso', 'pygments', 'pylint', ...
Update installers/macOS/setup.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -37,10 +37,10 @@ setup( 'numpy>=1.13.3', 'scipy>=0.18.1'], extras_require={ - 'doc': ['sphinx', 'shpinx_rtd_theme', 'nbsphinx'], + 'doc': ['sphinx', 'sphinx_rtd_theme', 'nbsphinx'], ...
added extras_require to setup.py
py
diff --git a/StreamDecompressor/p7zip.py b/StreamDecompressor/p7zip.py index <HASH>..<HASH> 100644 --- a/StreamDecompressor/p7zip.py +++ b/StreamDecompressor/p7zip.py @@ -26,13 +26,13 @@ class InfoBase: for m in ereg_info.finditer(infostring): setattr(self, self._normalize_key(m.group(1)), m.group...
Fixed: expected attributes in 7z Member and Header
py
diff --git a/spyderlib/spyder.py b/spyderlib/spyder.py index <HASH>..<HASH> 100644 --- a/spyderlib/spyder.py +++ b/spyderlib/spyder.py @@ -772,6 +772,7 @@ class MainWindow(QMainWindow): from spyderlib.plugins.workingdirectory import WorkingDirectory self.workingdirectory = WorkingDirectory(se...
Main Window: Add Working Dir to the Toolbars menu
py
diff --git a/alerta/shell.py b/alerta/shell.py index <HASH>..<HASH> 100644 --- a/alerta/shell.py +++ b/alerta/shell.py @@ -47,9 +47,10 @@ _COLOR_MAP = { "minor": '\033[93m', "warning": '\033[96m', "indeterminate": '\033[92m', - "clear": '\033[92m', + "cleared": '\033[92m', "normal": '\033[92m'...
add support for "ok" as "normal" severity
py
diff --git a/repairbox/cli.py b/repairbox/cli.py index <HASH>..<HASH> 100644 --- a/repairbox/cli.py +++ b/repairbox/cli.py @@ -26,9 +26,9 @@ def add_source(rbox: 'RepairBox', src: str) -> None: print('added dataset: {}'.format(src)) -def remove_source(rbox: 'RepairBox', src: str) -> None: - rbox.sources.rem...
bug fix: updated remove source command to use SourceManager.remove_by_name (#<I>)
py
diff --git a/python/ray/services.py b/python/ray/services.py index <HASH>..<HASH> 100644 --- a/python/ray/services.py +++ b/python/ray/services.py @@ -665,11 +665,14 @@ def start_ui(redis_address, stdout_file=None, stderr_file=None, cleanup=True): # querying the jupyter server. token = binascii.hexlify(os.ura...
Only pass in --allow-root if the user is root. (#<I>)
py
diff --git a/simuvex/plugins/unicorn_engine.py b/simuvex/plugins/unicorn_engine.py index <HASH>..<HASH> 100644 --- a/simuvex/plugins/unicorn_engine.py +++ b/simuvex/plugins/unicorn_engine.py @@ -407,7 +407,7 @@ class Unicorn(SimStatePlugin): d = self._symbolic_passthrough(chunk.bytes_at(start + pos, size))...
treat annotated ASTs as symbolic for unicorn
py
diff --git a/examples/college.py b/examples/college.py index <HASH>..<HASH> 100644 --- a/examples/college.py +++ b/examples/college.py @@ -260,14 +260,14 @@ if __name__ == '__main__': for stu in students(): assert (stu.avatar['physical'].location == stu.stat['room']) - for h in range(1, 128): + fo...
use a <I> hour sample Enough time for some students to get drunk and go to class. Also use the tick instead of the index
py
diff --git a/ipwhois/nir.py b/ipwhois/nir.py index <HASH>..<HASH> 100644 --- a/ipwhois/nir.py +++ b/ipwhois/nir.py @@ -242,7 +242,9 @@ class NIRWhois: if sub_section_end: - if sub_section_end != (m.start() - 1): + if field not in ( + ...
JPNIC nameservers parsing fix (#<I>)
py
diff --git a/rl/qlearning/boltzmannqlearning/maze_boltzmann_q_learning.py b/rl/qlearning/boltzmannqlearning/maze_boltzmann_q_learning.py index <HASH>..<HASH> 100644 --- a/rl/qlearning/boltzmannqlearning/maze_boltzmann_q_learning.py +++ b/rl/qlearning/boltzmannqlearning/maze_boltzmann_q_learning.py @@ -10,6 +10,8 @@ cla...
Update maze_boltzmann_q_learning.py
py