diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/geomdl/abstract.py b/geomdl/abstract.py index <HASH>..<HASH> 100644 --- a/geomdl/abstract.py +++ b/geomdl/abstract.py @@ -797,10 +797,10 @@ class Curve(SplineGeometry): def reverse(self): """ Reverses the curve """ - self._control_points = reversed(self._control_points) + self...
Fix a bug in curve reverse method
py
diff --git a/ELiDE/ELiDE/board/board.py b/ELiDE/ELiDE/board/board.py index <HASH>..<HASH> 100644 --- a/ELiDE/ELiDE/board/board.py +++ b/ELiDE/ELiDE/board/board.py @@ -582,9 +582,12 @@ class Board(RelativeLayout): else: patch['_image_paths'] = Spot.default_image_paths ...
Avoid needlessly patching nodes at ELiDE startup
py
diff --git a/test/test_client.py b/test/test_client.py index <HASH>..<HASH> 100644 --- a/test/test_client.py +++ b/test/test_client.py @@ -59,7 +59,9 @@ from test.utils import (assertRaisesExactly, one) -class TestClient(unittest.TestCase, TestRequestMixin): +class ClientUnitTest(unittest.T...
Enable MongoClient unittests that were disabled by mistake.
py
diff --git a/holoviews/core/util.py b/holoviews/core/util.py index <HASH>..<HASH> 100644 --- a/holoviews/core/util.py +++ b/holoviews/core/util.py @@ -17,9 +17,9 @@ def find_minmax(lims, olims): def int_to_roman(input): if type(input) != type(1): - raise TypeError, "expected integer, got %s" % type(input) +...
Fixed Py3 incompatibility in core/util.py
py
diff --git a/soco/core.py b/soco/core.py index <HASH>..<HASH> 100755 --- a/soco/core.py +++ b/soco/core.py @@ -878,7 +878,7 @@ class SoCo(object): def get_music_library_information(self, search_type, start=0, max_items=100): """ Retrieve information about the music library - + Arguments...
Added credit for the information on the searches to the Janos project
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ def unique_flatten_dict(d): core_requires = ['numpy', 'pandas >= 0.17.0', 'pyarrow >= 0.15.0', 'requests', 'protobuf >= 2.6.0'] stubs = [ - 'pandas-stubs' + 'pandas-stubs', 'types-requests' ] dev_extra...
fix(mypi): add missing requests type stub
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -31,9 +31,9 @@ setup(name = "pychal", 'Programming Language :: Python :: 3.6' ], install_requires = [ - 'iso8601', - 'tzlocal', - 'pytz', - 'requests', + 'iso8601==0.1.12',...
pin the dependencies in setup.py
py
diff --git a/salt/utils/templates.py b/salt/utils/templates.py index <HASH>..<HASH> 100644 --- a/salt/utils/templates.py +++ b/salt/utils/templates.py @@ -13,7 +13,6 @@ import logging import tempfile import traceback import sys -import collections # Import third party libs import jinja2 @@ -27,6 +26,7 @@ from sa...
Changed OrderedDict provider to salt.utils.odict for backwards compat with py<I>
py
diff --git a/tensorboard/backend/http_util.py b/tensorboard/backend/http_util.py index <HASH>..<HASH> 100644 --- a/tensorboard/backend/http_util.py +++ b/tensorboard/backend/http_util.py @@ -147,6 +147,7 @@ def Respond(request, headers = [] headers.append(('Content-Length', str(content_length))) + headers.appe...
core: add x-content-type-options: nosniff (#<I>) This prevents browsers from guessing correct mimetype and make it follow the content-type given by the server. There was no functional regression from the change.
py
diff --git a/backtrader/cerebro.py b/backtrader/cerebro.py index <HASH>..<HASH> 100644 --- a/backtrader/cerebro.py +++ b/backtrader/cerebro.py @@ -63,6 +63,7 @@ class Cerebro(six.with_metaclass(MetaParams, object)): ('maxcpus', None), ('stdstats', True), ('lookahead', 0), + ('jit', Fal...
Initial support in Cerebro for the "jit" mode to only use the minimum number of needed bars.
py
diff --git a/discord/ui/view.py b/discord/ui/view.py index <HASH>..<HASH> 100644 --- a/discord/ui/view.py +++ b/discord/ui/view.py @@ -118,6 +118,7 @@ class View: self.id = os.urandom(16).hex() self._cancel_callback: Optional[Callable[[View], None]] = None + self._stopped = asyncio.Event() ...
Add a way to wait for a view to finish its interactions
py
diff --git a/openshift/dynamic/client.py b/openshift/dynamic/client.py index <HASH>..<HASH> 100644 --- a/openshift/dynamic/client.py +++ b/openshift/dynamic/client.py @@ -179,11 +179,12 @@ class DynamicClient(object): def apply(self, resource, body=None, name=None, namespace=None): body = self.serialize...
Ensure that namespace and name parameters are used for apply (#<I>) resource definitions that are accompanied separately by names and namespaces should be updated and the name and namespace used Fixes #<I>
py
diff --git a/indra/assemblers/pysb/sites.py b/indra/assemblers/pysb/sites.py index <HASH>..<HASH> 100644 --- a/indra/assemblers/pysb/sites.py +++ b/indra/assemblers/pysb/sites.py @@ -68,7 +68,11 @@ def get_binding_site_name(agent): """Return a binding site name from a given agent.""" # Try to construct a bind...
Avoid looking up parents for CHEBI terms
py
diff --git a/discord/abc.py b/discord/abc.py index <HASH>..<HASH> 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -440,7 +440,7 @@ class GuildChannel: .. versionadded:: 1.3 """ category = self.guild.get_channel(self.category_id) - return bool(category and category._overwrites == se...
Fix comparison for overwrites when checking if a channel is synced
py
diff --git a/tests/tests.py b/tests/tests.py index <HASH>..<HASH> 100755 --- a/tests/tests.py +++ b/tests/tests.py @@ -24,6 +24,10 @@ logging.basicConfig(level=logging.DEBUG,format="[%(asctime)s %(levelname)s] [%(n logging.getLogger('Test-mYQL') +logging.getLogger('mYQL').disabled = True +logging.getLogger('yahoo_...
yahoo_oauth and requests logger disabled
py
diff --git a/openquake/engine/engine.py b/openquake/engine/engine.py index <HASH>..<HASH> 100644 --- a/openquake/engine/engine.py +++ b/openquake/engine/engine.py @@ -335,8 +335,9 @@ def run_calc(job_id, oqparam, exports, hazard_calculation_id=None, **kw): return try: if OQ_DISTRIBUTE.endswith('p...
Report the number of visible cores, not total system cores In a cgroups limited environment, like a SLURM cluster, the number of processors available is different from the number of procs available in the whole system.
py
diff --git a/sigal/__init__.py b/sigal/__init__.py index <HASH>..<HASH> 100644 --- a/sigal/__init__.py +++ b/sigal/__init__.py @@ -117,11 +117,14 @@ def build(source, destination, debug, verbose, force, config, theme, title, logger.error("Input directory not found: %s", settings['source']) sys.exit(1)...
Windows fix added comments and specified the concrete exception (ValueError)
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 @@ -1642,6 +1642,8 @@ class Promise(object): """ Caches the job store instance used during unpickling to prevent it from being instantiated for each promise + + :type: toil.jobStores....
Avoid reusing a cached promise job store from a different workflow (resolves #<I>)
py
diff --git a/vtki/utilities.py b/vtki/utilities.py index <HASH>..<HASH> 100755 --- a/vtki/utilities.py +++ b/vtki/utilities.py @@ -267,7 +267,7 @@ def numpy_to_texture(image): if image.ndim != 3 or image.shape[2] != 3: raise AssertionError('Input image must be nn by nm by RGB') grid = vtki.UniformGri...
Fix numpy to texture converter to be consistent with VTK image readers
py
diff --git a/pylint/test/functional/namedtuple_member_inference.py b/pylint/test/functional/namedtuple_member_inference.py index <HASH>..<HASH> 100644 --- a/pylint/test/functional/namedtuple_member_inference.py +++ b/pylint/test/functional/namedtuple_member_inference.py @@ -19,5 +19,4 @@ def test(): print(fan.foo)...
We understand namedtuple._replace properly (in a static analysis sense of course), so remove wrong assumption.
py
diff --git a/pyinfra_cli/main.py b/pyinfra_cli/main.py index <HASH>..<HASH> 100644 --- a/pyinfra_cli/main.py +++ b/pyinfra_cli/main.py @@ -205,13 +205,17 @@ def cli(*args, **kwargs): pyinfra INVENTORY server.user pyinfra home=/home/pyinfra \b - # Execute an arbitrary command on the inventory + # Execu...
Add debug-inventory example to the help doc.
py
diff --git a/caravel/config.py b/caravel/config.py index <HASH>..<HASH> 100644 --- a/caravel/config.py +++ b/caravel/config.py @@ -213,7 +213,7 @@ WARNING_MSG = None # Example: class CeleryConfig(object): BROKER_URL = 'sqla+sqlite:///celerydb.sqlite' - CELERY_IMPORTS = ('caravel.tasks', ) + CELERY_IMPORTS = ('ca...
Fix celery module import in comments. (#<I>)
py
diff --git a/killer.py b/killer.py index <HASH>..<HASH> 100644 --- a/killer.py +++ b/killer.py @@ -29,7 +29,7 @@ or the disk tray is tampered with, shut the computer down! # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <https://www.gnu.org/licenses/ag...
<I> - smtplib.SMTPRecipientsRefused fixed - execute.detect_ac() is actually running now. Should learn to get rid of comments when I'm done testing..
py
diff --git a/smtplibaio.py b/smtplibaio.py index <HASH>..<HASH> 100644 --- a/smtplibaio.py +++ b/smtplibaio.py @@ -417,8 +417,10 @@ class SMTP: future.set_result(True) self._loop.add_reader(self.file, callback) - yield from future - self._loop.remove_reader(self.file) + try:...
Also remove_reader() when the future throws.
py
diff --git a/openpnm/io/PerGeos.py b/openpnm/io/PerGeos.py index <HASH>..<HASH> 100644 --- a/openpnm/io/PerGeos.py +++ b/openpnm/io/PerGeos.py @@ -1,6 +1,5 @@ import numpy import numpy as np -import scipy as sp from openpnm.utils import logging from openpnm.io import GenericIO from openpnm.network import GenericNe...
Adding a bit of text to pergeos docstring [ci min]
py
diff --git a/xapian_backend.py b/xapian_backend.py index <HASH>..<HASH> 100644 --- a/xapian_backend.py +++ b/xapian_backend.py @@ -320,9 +320,6 @@ class SearchBackend(BaseSearchBackend): 'hits': 0, } - if query_facets is not None: - warnings.warn("Query faceting...
Removed outdated warning regarding query facets
py
diff --git a/openquake/calculators/export/__init__.py b/openquake/calculators/export/__init__.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/export/__init__.py +++ b/openquake/calculators/export/__init__.py @@ -15,7 +15,7 @@ # # You should have received a copy of the GNU Affero General Public License # a...
Try to override a race condition during imports [demos] Former-commit-id: 8e<I>fa2f<I>d<I>b7be<I>af<I>dbb<I>dd<I>
py
diff --git a/runtests.py b/runtests.py index <HASH>..<HASH> 100644 --- a/runtests.py +++ b/runtests.py @@ -3,6 +3,7 @@ import sys TESTS_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) +import django from django.conf import settings settings.configure( @@ -44,6 +45,12 @@ settings.configure( ...
Manually call django.setup() to populate apps registry.
py
diff --git a/src/wormhole/test/test_cli.py b/src/wormhole/test/test_cli.py index <HASH>..<HASH> 100644 --- a/src/wormhole/test/test_cli.py +++ b/src/wormhole/test/test_cli.py @@ -1172,6 +1172,14 @@ class Dispatch(unittest.TestCase): self.assertEqual(cfg.stderr.getvalue(), expected) +class FakeConfig(object...
Let me use FakeConfig in another test method
py
diff --git a/src/sunhead/serializers/json.py b/src/sunhead/serializers/json.py index <HASH>..<HASH> 100644 --- a/src/sunhead/serializers/json.py +++ b/src/sunhead/serializers/json.py @@ -32,6 +32,9 @@ def json_serial(obj): elif isinstance(obj, timedelta): serial = str(obj) + elif isinstance(obj, set)...
Added set to JSON serializer
py
diff --git a/dimod/binary_quadratic_model.py b/dimod/binary_quadratic_model.py index <HASH>..<HASH> 100644 --- a/dimod/binary_quadratic_model.py +++ b/dimod/binary_quadratic_model.py @@ -1661,7 +1661,7 @@ class BinaryQuadraticModel(Sized, Container, Iterable): Args: obj: bytes: By...
Add :meth: link in from_bson doc and remove superfluous `list` call
py
diff --git a/tests/conftest.py b/tests/conftest.py index <HASH>..<HASH> 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -453,8 +453,7 @@ def invalid_epub_file(): @pytest.fixture def html_file(): - source_url = "https://web.archive.org/web/20191122220303/" \ - "https://studio.learningequ...
Fix test: Do not use archive.org to fetch test zip data
py
diff --git a/revolver/contextmanager.py b/revolver/contextmanager.py index <HASH>..<HASH> 100644 --- a/revolver/contextmanager.py +++ b/revolver/contextmanager.py @@ -29,3 +29,20 @@ def sudo(username=None, login=False): env.sudo_forced = old_forced env.sudo_user = old_user env.shell = old_shell + + +@con...
New context unpatched_state added
py
diff --git a/test/test_ad2.py b/test/test_ad2.py index <HASH>..<HASH> 100644 --- a/test/test_ad2.py +++ b/test/test_ad2.py @@ -43,7 +43,7 @@ class TestAlarmDecoder(TestCase): self._device.on_read = EventHandler(Event(), self._device) self._device.on_write = EventHandler(Event(), self._device) - ...
ok need to test locally.. how?
py
diff --git a/rtcclient/template.py b/rtcclient/template.py index <HASH>..<HASH> 100644 --- a/rtcclient/template.py +++ b/rtcclient/template.py @@ -361,7 +361,8 @@ class Templater(RTCBase): match_str_list = ["rtc_cm:com.ibm.", "calm:"] - for key in list(wk_raw_data.keys()): +...
fix #<I>: OrderedDict mutated during iteration
py
diff --git a/doctr/tests/test_local.py b/doctr/tests/test_local.py index <HASH>..<HASH> 100644 --- a/doctr/tests/test_local.py +++ b/doctr/tests/test_local.py @@ -67,7 +67,7 @@ def test_GIT_URL(): def test_guess_github_repo(): """ Only works if run in this repo, and if cloned from origin. For safety, - on...
Don't run test_guess_github_repo() on fork builds
py
diff --git a/bcbio/variation/recalibrate.py b/bcbio/variation/recalibrate.py index <HASH>..<HASH> 100644 --- a/bcbio/variation/recalibrate.py +++ b/bcbio/variation/recalibrate.py @@ -39,6 +39,7 @@ def prep_recal(data): def apply_recal(data): """Apply recalibration tables to the sorted aligned BAM, producing recal...
BQSR: add save diskspace stub for recal BAMs
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ NEWS = open(os.path.join(here, 'NEWS.txt')).read() version = '0.1.0' install_requires = [ - "neo4jrestclient>=2.1.1", + 'neo4jrestclient>=2.1.0', 'prettytable', 'ipython>=1.0', ]
Downgrading neo4jrestclient dependency
py
diff --git a/billy/web/admin/urls.py b/billy/web/admin/urls.py index <HASH>..<HASH> 100644 --- a/billy/web/admin/urls.py +++ b/billy/web/admin/urls.py @@ -11,7 +11,7 @@ urlpatterns = patterns('billy.web.admin.views', name='admin_legislators'), url(r'^(?P<abbr>[a-z]{2})/committees/$', 'committees', ...
fix delete_committees url
py
diff --git a/accounts/views.py b/accounts/views.py index <HASH>..<HASH> 100644 --- a/accounts/views.py +++ b/accounts/views.py @@ -23,8 +23,7 @@ class Login(TemplateView): def get(self, request, *args, **kwargs): if request.user.is_authenticated(): - #return HttpResponseRedirect(reverse('inde...
Put index redirect back into the login view if user is logged in.
py
diff --git a/python/ray/rllib/agent.py b/python/ray/rllib/agent.py index <HASH>..<HASH> 100644 --- a/python/ray/rllib/agent.py +++ b/python/ray/rllib/agent.py @@ -56,6 +56,7 @@ class Agent(object): agent_id (str): Optional unique identifier for this agent, used to determine where to store ...
warn if agent failed (#<I>)
py
diff --git a/pyicloud/base.py b/pyicloud/base.py index <HASH>..<HASH> 100644 --- a/pyicloud/base.py +++ b/pyicloud/base.py @@ -1,9 +1,11 @@ import uuid import hashlib import json +import logging +import pickle import requests import sys -import pickle +import tempfile import os from re import match @@ -16,6 +1...
Cleaning up cookie handling to use a system-level temporary directory. Adding logger.
py
diff --git a/mixbox/typedlist.py b/mixbox/typedlist.py index <HASH>..<HASH> 100644 --- a/mixbox/typedlist.py +++ b/mixbox/typedlist.py @@ -69,6 +69,9 @@ class TypedList(collections.MutableSequence): ) six.reraise(TypeError, TypeError(error), sys.exc_info()[-1]) + def _is_type_castable(sel...
Added _is_type_castable() method to TypedList. This makes input validation the same between TypedField and TypedList.
py
diff --git a/pythran/dist.py b/pythran/dist.py index <HASH>..<HASH> 100644 --- a/pythran/dist.py +++ b/pythran/dist.py @@ -147,7 +147,7 @@ class PythranExtension(Extension): output_file = base + '.cpp' # target name if os.path.exists(source) and (not os.path.exists(output_file) - ...
Fix time comparison for cpp file creation
py
diff --git a/glue/ligolw/lsctables.py b/glue/ligolw/lsctables.py index <HASH>..<HASH> 100644 --- a/glue/ligolw/lsctables.py +++ b/glue/ligolw/lsctables.py @@ -741,6 +741,21 @@ class SnglInspiralTable(table.Table): keep.append(row) return keep + def vetoed(self, seglist): + """ + Return the inverse of what ...
Added vetoed() method to SnglInspiralTable, which is the complement of veto()
py
diff --git a/lib/creds/constants.py b/lib/creds/constants.py index <HASH>..<HASH> 100644 --- a/lib/creds/constants.py +++ b/lib/creds/constants.py @@ -28,15 +28,14 @@ def login_defs(): line = str(line) if PY2: line = line.encode(text_type('utf8')) - if line[:6] ...
fix max uid and gid checks.
py
diff --git a/billy/importers/events.py b/billy/importers/events.py index <HASH>..<HASH> 100644 --- a/billy/importers/events.py +++ b/billy/importers/events.py @@ -63,9 +63,26 @@ def import_events(abbr, data_dir, import_actions=False): bill_id = bill['bill_id'] bill_id = fix_bill_id(bill_id) ...
adding in a bit of logic for matching bills
py
diff --git a/src/feat/agencies/net/agency.py b/src/feat/agencies/net/agency.py index <HASH>..<HASH> 100644 --- a/src/feat/agencies/net/agency.py +++ b/src/feat/agencies/net/agency.py @@ -280,8 +280,6 @@ class Agency(agency.Agency): if hasattr(options, attr): new_value = get...
Bring the options parsing logic back to its original form.
py
diff --git a/limbo/plugins/urban.py b/limbo/plugins/urban.py index <HASH>..<HASH> 100644 --- a/limbo/plugins/urban.py +++ b/limbo/plugins/urban.py @@ -1,3 +1,4 @@ +# -*- coding: UTF-8 -*- """!urban <term> returns the urban dictionary definition and example of a term""" import requests import re @@ -15,7 +16,7 @@ def...
re-fix unicode in urban plugin
py
diff --git a/source/rafcon/statemachine/storage/storage.py b/source/rafcon/statemachine/storage/storage.py index <HASH>..<HASH> 100644 --- a/source/rafcon/statemachine/storage/storage.py +++ b/source/rafcon/statemachine/storage/storage.py @@ -14,8 +14,6 @@ import glob import copy import yaml -from gtkmvc import Obs...
StateMachineStorage no longer inherits from Observable This wasn't used at any instance
py
diff --git a/lib/search_engine.py b/lib/search_engine.py index <HASH>..<HASH> 100644 --- a/lib/search_engine.py +++ b/lib/search_engine.py @@ -3291,7 +3291,12 @@ def sort_records(req, recIDs, sort_field='', sort_order='d', sort_pattern='', ve val = "" # will hold value for recID according to which sort ...
WebSearch: CERN-specific hack for journal sorting * CERN-specific hack for journal sorting to transform page numbers of the form 3-<I> to 3 before applying numerical sorting. (addresses #<I>) * Cherry-picked from af<I>ef4ac<I>e<I>fe<I>a8a<I>fbf1d<I>e.
py
diff --git a/tests/test_substrate.py b/tests/test_substrate.py index <HASH>..<HASH> 100644 --- a/tests/test_substrate.py +++ b/tests/test_substrate.py @@ -828,7 +828,7 @@ class TestMAASAccountFromConfig(TestCase): config = get_maas_env().config with patch('subprocess.check_call', autospec=True) as cc_...
Correct check on MAASAccount types in test
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -27,11 +27,11 @@ with open('README.md') as fp: setup( name="docker_interface", - version="0.2.11", + version="0.2.12", packages=find_packages(), install_requires=[ - 'jsonschema==2.6.0', - ...
Relax requirements to support python <I>
py
diff --git a/fedmsg/commands/tweet.py b/fedmsg/commands/tweet.py index <HASH>..<HASH> 100644 --- a/fedmsg/commands/tweet.py +++ b/fedmsg/commands/tweet.py @@ -106,9 +106,9 @@ class TweetCommand(BaseCommand): self.log.warn("Bad URI for bitly %r" %link) link = "" - ...
Stop fedmsg-tweet from falling over.
py
diff --git a/kiner/producer.py b/kiner/producer.py index <HASH>..<HASH> 100644 --- a/kiner/producer.py +++ b/kiner/producer.py @@ -65,7 +65,7 @@ class KinesisProducer: if not self.queue.empty(): logger.info("Queue Flush: time without flush exceeded") self.flush...
Avoid continuously checking if it's time to flush the queue
py
diff --git a/vivarium/test_util.py b/vivarium/test_util.py index <HASH>..<HASH> 100644 --- a/vivarium/test_util.py +++ b/vivarium/test_util.py @@ -20,7 +20,6 @@ def setup_simulation(components, population_size=100, start=None): else: year_start = config.simulation_parameters.year_start simulation...
Messed up the ordering in the test_util
py
diff --git a/spyder/plugins/editor/panels/codefolding.py b/spyder/plugins/editor/panels/codefolding.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/editor/panels/codefolding.py +++ b/spyder/plugins/editor/panels/codefolding.py @@ -479,8 +479,8 @@ class FoldingPanel(Panel): # mouse enter fold sc...
Folding: Catch KeyError when trying to highlight folding region
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -91,7 +91,7 @@ setup( setup_requires=['numpy>=1.14.3', 'setuptools>=18.0'], python_requires='>=3.6', install_requires=["numpy>=1.14.3", "requests", "ruamel.yaml>=0.15.6", - "monty>=1.0.6", "...
Upgade monty version in setup.py
py
diff --git a/atx/__init__.py b/atx/__init__.py index <HASH>..<HASH> 100644 --- a/atx/__init__.py +++ b/atx/__init__.py @@ -19,6 +19,11 @@ except pkg_resources.DistributionNotFound: from atx.consts import * from atx.errors import * from atx.drivers import Pattern, Bounds, ImageCrop +import atx.adbkit.client + + +# ma...
add atx.adb_client for easily adb operator
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -51,6 +51,7 @@ setup( 'Framework :: Django', 'Framework :: Django :: 1.11', 'Framework :: Django :: 2.0', + 'Framework :: Django :: 2.1', ], zip_safe=False, tests_require=[
Added Django <I> to setup
py
diff --git a/hwt/synthesizer/utils.py b/hwt/synthesizer/utils.py index <HASH>..<HASH> 100644 --- a/hwt/synthesizer/utils.py +++ b/hwt/synthesizer/utils.py @@ -102,15 +102,15 @@ def toRtl(unitOrCls: Unit, name: str=None, if sc: if createFiles: - if fileMode == 'w': - ...
toRtl fix wrong append to file
py
diff --git a/axes/decorators.py b/axes/decorators.py index <HASH>..<HASH> 100644 --- a/axes/decorators.py +++ b/axes/decorators.py @@ -1,7 +1,9 @@ import logging import socket +import json from datetime import timedelta +from babel.dates import format_timedelta from django.conf import settings from django.cont...
Add json response on ajax request.
py
diff --git a/librosa/core/audio.py b/librosa/core/audio.py index <HASH>..<HASH> 100644 --- a/librosa/core/audio.py +++ b/librosa/core/audio.py @@ -139,7 +139,7 @@ def load(path, sr=22050, mono=True, offset=0.0, duration=None, # Load the target number of frames, and transpose to match librosa form ...
Compat fix: Fix core.load fallback Property fallback to audioread when OSError is raised in soundfile due to missing libsndfile binary dependency.
py
diff --git a/decode/plot/functions.py b/decode/plot/functions.py index <HASH>..<HASH> 100644 --- a/decode/plot/functions.py +++ b/decode/plot/functions.py @@ -206,20 +206,17 @@ def plot_chmap(cube, kidid, ax=None, **kwargs): """ if ax is None: ax = plt.gca() - fig = plt.gcf() index = np.whe...
:<I>: plot_chmap returns mappable and does not plot colorbar inside it
py
diff --git a/fmn/lib/defaults.py b/fmn/lib/defaults.py index <HASH>..<HASH> 100644 --- a/fmn/lib/defaults.py +++ b/fmn/lib/defaults.py @@ -244,15 +244,6 @@ def create_defaults_for(session, user, only_for=None, detail_values=None): pref = fmn.lib.models.Preference.create( session, user, con...
Remove regex usage from the defaults.
py
diff --git a/synapse/lib/layer.py b/synapse/lib/layer.py index <HASH>..<HASH> 100644 --- a/synapse/lib/layer.py +++ b/synapse/lib/layer.py @@ -14,7 +14,7 @@ import synapse.lib.msgpack as s_msgpack logger = logging.getLogger(__name__) -FAIR_ITERS = 5000 # every this many rows, yield CPU to other tasks +FAIR_ITERS ...
Make regex lookups more fair (#<I>)
py
diff --git a/netpyne/sim/run.py b/netpyne/sim/run.py index <HASH>..<HASH> 100644 --- a/netpyne/sim/run.py +++ b/netpyne/sim/run.py @@ -100,7 +100,7 @@ def preRun (): #------------------------------------------------------------------------------ # Run Simulation #-----------------------------------------------------...
renamed reRun with skipPreRun
py
diff --git a/scripts/generate_rpc_templates.py b/scripts/generate_rpc_templates.py index <HASH>..<HASH> 100755 --- a/scripts/generate_rpc_templates.py +++ b/scripts/generate_rpc_templates.py @@ -72,8 +72,10 @@ def generate_async_message_template(nargs): print " boost::function< void(" + csep("arg#_t") + ") > ca...
Got rid of some one-line ifs in generate_rpc_templates.py.
py
diff --git a/grimoire_elk/elk/stackexchange.py b/grimoire_elk/elk/stackexchange.py index <HASH>..<HASH> 100644 --- a/grimoire_elk/elk/stackexchange.py +++ b/grimoire_elk/elk/stackexchange.py @@ -43,22 +43,15 @@ class StackExchangeEnrich(Enrich): def get_elastic_mappings(self): - from grimoire_elk.utils ...
[enrich][stackexchange] Remove agg flag from title_analyzed field
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ if __name__ == '__main__': 'the Cole-Cole model', author='Maximilian Weigand', author_email='mweigand@geo.uni-bonn.de', - url='http://www.geo.uni-bonn.de/~mweigand', + ...
update homepage to github url
py
diff --git a/build.py b/build.py index <HASH>..<HASH> 100755 --- a/build.py +++ b/build.py @@ -625,7 +625,7 @@ virtual('apidoc', 'build/jsdoc-%(BRANCH)s-timestamp' % vars(variables)) 'build/src/external/src/exports.js', SRC, SHADER_SRC, ifind('apidoc/template')) def jsdoc_BRANCH_timestamp(t): - t....
Adjust parameters of jsdoc-call in build.py. The `src`-directory is no longer defined on the commmandline and the `index.md` as explicit source file is now the first argument.
py
diff --git a/exporters/export_managers/base_exporter.py b/exporters/export_managers/base_exporter.py index <HASH>..<HASH> 100644 --- a/exporters/export_managers/base_exporter.py +++ b/exporters/export_managers/base_exporter.py @@ -126,6 +126,7 @@ class BaseExporter(object): 'items_count', self.writer.get_m...
Generate stats report also when bypass is done
py
diff --git a/gglsbl/utils.py b/gglsbl/utils.py index <HASH>..<HASH> 100644 --- a/gglsbl/utils.py +++ b/gglsbl/utils.py @@ -1,11 +1,12 @@ +import binascii import sys def to_hex_2(v): return v.encode("hex") def to_hex_3(v): - return v.hex() + return binascii.hexlify(v) global to_hex
Fixes bug with converting bytes to hex with Python3 (#<I>)
py
diff --git a/tests/cases/py_client/cli_test.py b/tests/cases/py_client/cli_test.py index <HASH>..<HASH> 100644 --- a/tests/cases/py_client/cli_test.py +++ b/tests/cases/py_client/cli_test.py @@ -119,16 +119,10 @@ class PythonCliTestCase(base.TestCase): def testUploadDownload(self): localDir = os.path.join...
Fix failing test based on bad assumption We changed the behavior that authentication is always required in the girder python client, so this test must be changed to reflect that.
py
diff --git a/_functions.py b/_functions.py index <HASH>..<HASH> 100644 --- a/_functions.py +++ b/_functions.py @@ -1,29 +1,10 @@ #import wx as _wx import numpy as _n import os as _os -import sys as _sys import shutil as _shutil import spinmob as _s import pickle as _cPickle -# Import our local v...
Removed it. Recommend just sys.path.insert(0, path) then a normal import.
py
diff --git a/intern/service/boss/v1/volume.py b/intern/service/boss/v1/volume.py index <HASH>..<HASH> 100644 --- a/intern/service/boss/v1/volume.py +++ b/intern/service/boss/v1/volume.py @@ -1,4 +1,4 @@ -# Copyright 2016 The Johns Hopkins University Applied Physics Laboratory +# Copyright 2020 The Johns Hopkins Univer...
Return quickly from empty create_cutout (#<I>) Fixes #<I>
py
diff --git a/metal/mmtl/trainer.py b/metal/mmtl/trainer.py index <HASH>..<HASH> 100644 --- a/metal/mmtl/trainer.py +++ b/metal/mmtl/trainer.py @@ -154,12 +154,7 @@ class MultitaskTrainer(object): self.metrics_hist = {} self._reset_losses() for epoch in range(self.config["n_epochs"]): - ...
use progress bar regardless of how often you log
py
diff --git a/astroplan/constraints.py b/astroplan/constraints.py index <HASH>..<HASH> 100644 --- a/astroplan/constraints.py +++ b/astroplan/constraints.py @@ -65,10 +65,10 @@ def _get_altaz(times, observer, targets, force_zero_pressure=False): # convert times, targets to tuple for hashing try: - aake...
don't rely on target ID for hashing use the ra of targets as a dictionary key, since the conversion of targets prior to calculation means that the same underlying targets can have dfferent object IDs
py
diff --git a/src/edeposit/amqp/aleph/export.py b/src/edeposit/amqp/aleph/export.py index <HASH>..<HASH> 100755 --- a/src/edeposit/amqp/aleph/export.py +++ b/src/edeposit/amqp/aleph/export.py @@ -30,8 +30,9 @@ import isbn_validator from httpkie import Downloader import settings +from datastructures import Author fr...
export.py: Imports splitted to own lines.
py
diff --git a/sporco/linalg.py b/sporco/linalg.py index <HASH>..<HASH> 100644 --- a/sporco/linalg.py +++ b/sporco/linalg.py @@ -461,8 +461,6 @@ def solvemdbi_cg(ah, rho, b, axisM, axisK, tol=1e-5, mit=1000, isn=None): Number of CG iterations """ - K = ah.shape[axisK] - M = ah.shape[axisM] a = np...
Addressed some more code quality issues.
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 @@ -43,6 +43,7 @@ from pythainlp.util import ( time_to_thaiword, thai_to_eng, thaiword_to_num, + thai_keyboard_dist, ) @@ -155,7 +156,15 @@ class TestUtilPackage(unit...
Add test for thai keyboard distance
py
diff --git a/oembed/providers.py b/oembed/providers.py index <HASH>..<HASH> 100644 --- a/oembed/providers.py +++ b/oembed/providers.py @@ -529,7 +529,7 @@ class DjangoProvider(BaseProvider): # resize image if we have a photo, otherwise use the given maximums if self.resource_type == 'photo' and self.g...
Fixing a reference to an invalid resource type
py
diff --git a/constance/admin.py b/constance/admin.py index <HASH>..<HASH> 100644 --- a/constance/admin.py +++ b/constance/admin.py @@ -166,7 +166,7 @@ class ConstanceForm(forms.Form): for fieldset_title, fields_list in settings.CONFIG_FIELDSETS.items(): for field_name in fields_list: ...
Fix ConstanceForm validation Account for cases where CONSTANCE_CONFIG_FIELDSETS is not set at all in ConstanceForm validation.
py
diff --git a/microraiden/microraiden/proxy/resources/expensive.py b/microraiden/microraiden/proxy/resources/expensive.py index <HASH>..<HASH> 100644 --- a/microraiden/microraiden/proxy/resources/expensive.py +++ b/microraiden/microraiden/proxy/resources/expensive.py @@ -141,6 +141,9 @@ class Expensive(Resource): ...
proxy: catch exception raised on wrong balance
py
diff --git a/menuconfig.py b/menuconfig.py index <HASH>..<HASH> 100755 --- a/menuconfig.py +++ b/menuconfig.py @@ -658,7 +658,17 @@ def menuconfig(kconf): if _CONVERT_C_LC_CTYPE_TO_UTF8: _convert_c_lc_ctype_to_utf8() - # Get rid of the delay between pressing ESC and jumping to the parent menu + # ...
menuconfig: Mention some potential (though never seen) ESCDELAY iffiness
py
diff --git a/jcvi/formats/gff.py b/jcvi/formats/gff.py index <HASH>..<HASH> 100644 --- a/jcvi/formats/gff.py +++ b/jcvi/formats/gff.py @@ -2767,7 +2767,7 @@ def load(args): continue if desc_attr in g_fparent.attributes: desc = ",".join(g_fparent.attributes[desc...
[formats] Update desc when desc_attribute is in feature
py
diff --git a/test/testing/test_waiting.py b/test/testing/test_waiting.py index <HASH>..<HASH> 100644 --- a/test/testing/test_waiting.py +++ b/test/testing/test_waiting.py @@ -36,7 +36,6 @@ class TestPatchWaitUseCases(object): def cb(args, kwargs, res, exc_info): if res == 10: retu...
don't need these lines, implicit return is falsy
py
diff --git a/octodns/provider/yaml.py b/octodns/provider/yaml.py index <HASH>..<HASH> 100644 --- a/octodns/provider/yaml.py +++ b/octodns/provider/yaml.py @@ -104,6 +104,7 @@ class YamlProvider(BaseProvider): ''' SUPPORTS_GEO = True SUPPORTS_DYNAMIC = True + SUPPORTS_MUTLIVALUE_PTR = True SUPPORT...
yaml supports multi value PTR
py
diff --git a/docs/source/conf.py b/docs/source/conf.py index <HASH>..<HASH> 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -64,7 +64,7 @@ copyright = '2013, {}'.format(setup_pkg.kwargs['author']) # built documents. # # The short X.Y version. -version = setup_pkg.kwargs['version'] +version = '.'.join(s...
Make short version string digested from potentially longer version string... in sphinx docs conf.py
py
diff --git a/test_nameko_sentry.py b/test_nameko_sentry.py index <HASH>..<HASH> 100644 --- a/test_nameko_sentry.py +++ b/test_nameko_sentry.py @@ -155,8 +155,8 @@ def test_worker_exception( with pytest.raises(RemoteError): rpc_proxy.broken() - with pytest.raises(exception_cls) as ...
indentation fix: must exit the entrypoint waiter context before trying to get the result
py
diff --git a/grimoire/ocean/elastic.py b/grimoire/ocean/elastic.py index <HASH>..<HASH> 100644 --- a/grimoire/ocean/elastic.py +++ b/grimoire/ocean/elastic.py @@ -115,7 +115,13 @@ class ElasticOcean(object): # Forced from backend command line. last_update = from_date - logging.info("I...
[ocean] Support backends without from_date param
py
diff --git a/fabfile.py b/fabfile.py index <HASH>..<HASH> 100644 --- a/fabfile.py +++ b/fabfile.py @@ -10,13 +10,14 @@ from pathlib import Path PWD = path.dirname(__file__) -VENV_DIR = path.join(PWD, '.env') +ENV = os.environ["VENV_DIR"] if 'VENV_DIR' in os.environ else '.env' +VENV_DIR = path.join(PWD, ENV) ...
Allow control of virtualenv in fabfile via environment variable
py
diff --git a/charmhelpers/contrib/openstack/context.py b/charmhelpers/contrib/openstack/context.py index <HASH>..<HASH> 100644 --- a/charmhelpers/contrib/openstack/context.py +++ b/charmhelpers/contrib/openstack/context.py @@ -244,7 +244,7 @@ class IdentityServiceContext(OSContextGenerator): class AMQPContext(OSCont...
Reordered params for AMQPContext after last change broke backwards compatability
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -303,8 +303,8 @@ def test_load_ui_mainwindow(): app = QtWidgets.QApplication(sys.argv) win = QtWidgets.QMainWindow() - with ignoreQtMessageHandler(['QMainWindowLayout::count: ?']): - QtCompat.loadUi(self....
Verify original reason for RuntimeError being raised.
py
diff --git a/tests/test_future/test_utils.py b/tests/test_future/test_utils.py index <HASH>..<HASH> 100644 --- a/tests/test_future/test_utils.py +++ b/tests/test_future/test_utils.py @@ -18,6 +18,11 @@ from future.tests.base import unittest, skip26 TEST_UNICODE_STR = u'ℝεα∂@ßʟ℮ ☂ℯṧт υηḯ¢☺ḓ℮' +class MyExceptionIssu...
Fix tests for issue #<I>
py
diff --git a/aiida_codtools/parsers/ciffilter.py b/aiida_codtools/parsers/ciffilter.py index <HASH>..<HASH> 100644 --- a/aiida_codtools/parsers/ciffilter.py +++ b/aiida_codtools/parsers/ciffilter.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- -from aiida.parsers.plugins.codtools.baseclass import BaseCodtoolsParser -from a...
Fixing imports in ciffilter parser for #2
py
diff --git a/bxml/xml.py b/bxml/xml.py index <HASH>..<HASH> 100644 --- a/bxml/xml.py +++ b/bxml/xml.py @@ -145,6 +145,21 @@ class XML(File): d.root = deepcopy(self.root) return d + def element(self, tag_path, **attributes): + """given a tag in xpath form and optional attributes, find t...
XML.element() will find the element with the given tag_path and **attributes, or else create a new one, and returns it.
py
diff --git a/c7n/resources/rdscluster.py b/c7n/resources/rdscluster.py index <HASH>..<HASH> 100644 --- a/c7n/resources/rdscluster.py +++ b/c7n/resources/rdscluster.py @@ -13,6 +13,7 @@ # limitations under the License. import logging +from botocore.exceptions import ClientError from concurrent.futures import as_com...
Added a missing ClientError import
py
diff --git a/pygubu/__init__.py b/pygubu/__init__.py index <HASH>..<HASH> 100644 --- a/pygubu/__init__.py +++ b/pygubu/__init__.py @@ -10,7 +10,7 @@ from pygubu.builder.builderobject import BuilderObject, register_widget from pygubu.binding import remove_binding, ApplicationLevelBindManager -__version__ = '0.12' +...
Increase version number to sync with pypi.
py
diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index <HASH>..<HASH> 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -370,7 +370,7 @@ class Client: self.phone_code = ( input("Enter phone code: ") if self.phone_code is None else ...
Allow returning sms codes as int from the callback function
py