diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/glances/main.py b/glances/main.py index <HASH>..<HASH> 100644 --- a/glances/main.py +++ b/glances/main.py @@ -277,7 +277,8 @@ Examples of use: else: args.port = self.server_port # Port in the -c URI #996 - args.client, args.port = (x if x else y for (x, y) in z...
Correct issue if args.client is None (related to issue #<I>)
py
diff --git a/grimoire_elk/raw/askbot.py b/grimoire_elk/raw/askbot.py index <HASH>..<HASH> 100644 --- a/grimoire_elk/raw/askbot.py +++ b/grimoire_elk/raw/askbot.py @@ -67,7 +67,3 @@ class AskbotOcean(ElasticOcean): """Askbot Ocean feeder""" mapping = Mapping - - def _fix_item(self, item): - # item[...
[raw-askbot] Remove fix_item This code removes the `fix_item` method in charge of settings the `ocean-unique-id` attribute. This attribute is not needed anymore, since the platform relies on `uuid` Perceval items.
py
diff --git a/tests/basics/class_getattr.py b/tests/basics/class_getattr.py index <HASH>..<HASH> 100644 --- a/tests/basics/class_getattr.py +++ b/tests/basics/class_getattr.py @@ -1,4 +1,4 @@ -# test that __getattr__, __getattrribute__ and instance members don't override builtins +# test that __getattr__ and instance me...
tests/basics/class_getattr: Remove invalid test for __getattribute__. Part of this test was trying to test some functionality of __getattribute__ but this method name was misspelt so it wasn't doing anything useful. Fixing the typo in this name makes the test fail because MicroPython doesn't support user defined __get...
py
diff --git a/beprof/curve.py b/beprof/curve.py index <HASH>..<HASH> 100644 --- a/beprof/curve.py +++ b/beprof/curve.py @@ -43,7 +43,6 @@ class Curve(np.ndarray): """ def __new__(cls, input_array, **meta): - # print("Here I am in Curve.__new__, cls:", cls) obj = np.asarray(input_array).view(c...
Trying console again Nothing importand has changed in this file
py
diff --git a/porespy/filters/_snows.py b/porespy/filters/_snows.py index <HASH>..<HASH> 100644 --- a/porespy/filters/_snows.py +++ b/porespy/filters/_snows.py @@ -91,12 +91,9 @@ def snow_partitioning(im, dt=None, r_max=4, sigma=0.4): peaks = trim_nearby_peaks(peaks=peaks, dt=dt) peaks, N = spim.label(peaks) ...
changing the snow function to fix the unlabelled voxel bug
py
diff --git a/tests/middleware/test_https_redirect.py b/tests/middleware/test_https_redirect.py index <HASH>..<HASH> 100644 --- a/tests/middleware/test_https_redirect.py +++ b/tests/middleware/test_https_redirect.py @@ -1,17 +1,19 @@ from starlette.applications import Starlette +from starlette.middleware import Middlew...
Remove routing decorators in test_https_redirect.py (#<I>)
py
diff --git a/salt/key.py b/salt/key.py index <HASH>..<HASH> 100644 --- a/salt/key.py +++ b/salt/key.py @@ -24,7 +24,10 @@ class KeyCLI(object): ''' def __init__(self, opts): self.opts = opts - self.key = Key(opts) + if self.opts['transport'] == 'zeromq': + self.key = Key(opts...
Make salt-key work with raet keys
py
diff --git a/doctor/routing.py b/doctor/routing.py index <HASH>..<HASH> 100644 --- a/doctor/routing.py +++ b/doctor/routing.py @@ -198,6 +198,7 @@ def create_routes(routes: Tuple[HTTPMethod], handle_http: Callable, handler_methods_and_properties = { '__name__': handler_name, ...
Fixed issue discovered while testing flask==<I> It looks like in MethodView the methods attribute was always a set if methods was not provided. Prior to <I> we were passing it in as a list and the MethodView kept it that way instead of converting to a set. With >= <I> methods will always be a set. To make this work ...
py
diff --git a/spikeextractors/extractors/nwbextractors/nwbextractors.py b/spikeextractors/extractors/nwbextractors/nwbextractors.py index <HASH>..<HASH> 100644 --- a/spikeextractors/extractors/nwbextractors/nwbextractors.py +++ b/spikeextractors/extractors/nwbextractors/nwbextractors.py @@ -1244,7 +1244,7 @@ class NwbSo...
debug for non-int unit ids on features table
py
diff --git a/tensorpack/RL/history.py b/tensorpack/RL/history.py index <HASH>..<HASH> 100644 --- a/tensorpack/RL/history.py +++ b/tensorpack/RL/history.py @@ -71,4 +71,4 @@ class HistoryFramePlayer(ProxyPlayer): def restart_episode(self): super(HistoryFramePlayer, self).restart_episode() self.his...
bugfix in RL/historybuffer
py
diff --git a/grimoire/elk/elastic.py b/grimoire/elk/elastic.py index <HASH>..<HASH> 100644 --- a/grimoire/elk/elastic.py +++ b/grimoire/elk/elastic.py @@ -71,10 +71,10 @@ class ElasticSearch(object): if r.status_code != 200: # Index does no exists - r = self.requests.post(self.index_u...
[elastic] Use PUT to create a new index. Fix error with ES 5
py
diff --git a/db_file_storage/storage.py b/db_file_storage/storage.py index <HASH>..<HASH> 100644 --- a/db_file_storage/storage.py +++ b/db_file_storage/storage.py @@ -13,7 +13,6 @@ from django.utils.http import urlencode from django.utils.deconstruct import deconstructible - NAME_FORMAT_HINT = '<app>.<model>/<con...
Save correct mimetype with Django <I>
py
diff --git a/pyradigm/multiple.py b/pyradigm/multiple.py index <HASH>..<HASH> 100644 --- a/pyradigm/multiple.py +++ b/pyradigm/multiple.py @@ -361,7 +361,12 @@ class MultiDatasetClassify(BaseMultiDataset): if subgroup is None or subgroup == target_set: ds_out = dataset elif subgroup < tar...
clean up on id when subgroups are involved [skip ci]
py
diff --git a/userena/utils.py b/userena/utils.py index <HASH>..<HASH> 100644 --- a/userena/utils.py +++ b/userena/utils.py @@ -72,7 +72,7 @@ def signin_redirect(redirect=None, user=None): :return: String containing the URI to redirect to. """ - if redirect is not None: return redirect + if redirect: r...
don't compare the "redirect" variable to None to prevent empty strings to pass the test
py
diff --git a/tests/test_payload.py b/tests/test_payload.py index <HASH>..<HASH> 100644 --- a/tests/test_payload.py +++ b/tests/test_payload.py @@ -1,11 +1,9 @@ -import asyncio from io import StringIO -from unittest import mock import pytest from async_generator import async_generator -from aiohttp import payload...
Drop a mocked test that requires 1GB of memory (#<I>)
py
diff --git a/pythonforandroid/archs.py b/pythonforandroid/archs.py index <HASH>..<HASH> 100644 --- a/pythonforandroid/archs.py +++ b/pythonforandroid/archs.py @@ -2,7 +2,6 @@ from distutils.spawn import find_executable from os import environ, uname from os.path import (exists, join, dirname, split) from glob import ...
Revert use of shlex.quote to avoid problems with python 2
py
diff --git a/dataset/database.py b/dataset/database.py index <HASH>..<HASH> 100644 --- a/dataset/database.py +++ b/dataset/database.py @@ -44,6 +44,7 @@ class Database(object): self.lock = threading.RLock() self.local = threading.local() + self.connections = {} if len(parsed_url.qu...
Fixes pudo/dataset#<I> by tracking checked-out sqlalchemy database connections, on a per-thread basis, and closing all connections when Database.close() is called.
py
diff --git a/elasticapm/handlers/logging.py b/elasticapm/handlers/logging.py index <HASH>..<HASH> 100644 --- a/elasticapm/handlers/logging.py +++ b/elasticapm/handlers/logging.py @@ -276,7 +276,6 @@ class Formatter(logging.Formatter): record.elasticapm_trace_id = None record.elasticapm_span_id...
Remove missed event.dataset reference (#<I>) Ref #<I>
py
diff --git a/src/python/grpcio/support.py b/src/python/grpcio/support.py index <HASH>..<HASH> 100644 --- a/src/python/grpcio/support.py +++ b/src/python/grpcio/support.py @@ -37,7 +37,12 @@ Could not find <Python.h>. This could mean the following: * You're on Windows and your Python installation was somehow corrupte...
Make sure >3 Python version triggers a failure
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ history = open('HISTORY.rst').read().replace('.. :changelog:', '') setup( name='django-stored-messages', - version='0.1.0', + version='0.1.1', description='Django contrib.messages on steroids'...
bumped version <I>
py
diff --git a/container/engine.py b/container/engine.py index <HASH>..<HASH> 100644 --- a/container/engine.py +++ b/container/engine.py @@ -378,13 +378,17 @@ def resolve_push_to(push_to, default_url): ''' protocol = 'http://' if push_to.startswith('http://') else 'https://' url = push_to = REMOVE_HTTP.sub...
Improved --push-to resolution
py
diff --git a/alerta/app/__init__.py b/alerta/app/__init__.py index <HASH>..<HASH> 100644 --- a/alerta/app/__init__.py +++ b/alerta/app/__init__.py @@ -30,6 +30,12 @@ if 'ALLOWED_EMAIL_DOMAINS' in os.environ: if 'ALLOWED_GITHUB_ORGS' in os.environ: app.config['ALLOWED_GITHUB_ORGS'] = os.environ['ALLOWED_GITHUB_ORG...
Read GitLab config vars from environment
py
diff --git a/pysnmp/carrier/asyncore/base.py b/pysnmp/carrier/asyncore/base.py index <HASH>..<HASH> 100644 --- a/pysnmp/carrier/asyncore/base.py +++ b/pysnmp/carrier/asyncore/base.py @@ -40,7 +40,6 @@ class AbstractSocketTransport(asyncore.dispatcher): del sockMap[self] def registerSocket(self, ...
since python <I> it appears that asyncore.dispatcher.del_channel() renders dispatchee object unusable -- avoid calling it prior to new socket registration
py
diff --git a/salt/cloud/clouds/opennebula.py b/salt/cloud/clouds/opennebula.py index <HASH>..<HASH> 100644 --- a/salt/cloud/clouds/opennebula.py +++ b/salt/cloud/clouds/opennebula.py @@ -62,6 +62,7 @@ to find the IP of the new VM. # Import Python Libs from __future__ import absolute_import +import distutils import...
Switch default filter tag for ONE resources from user only to all resources. Add get_one_version to return version of ONE.
py
diff --git a/cufflinks/plotlytools.py b/cufflinks/plotlytools.py index <HASH>..<HASH> 100644 --- a/cufflinks/plotlytools.py +++ b/cufflinks/plotlytools.py @@ -9,7 +9,7 @@ from collections import defaultdict from IPython.display import display,Image from .exceptions import CufflinksError from .colors import normalize...
Support for lists in heatmaps. Fixes #<I>
py
diff --git a/salt/modules/virt.py b/salt/modules/virt.py index <HASH>..<HASH> 100644 --- a/salt/modules/virt.py +++ b/salt/modules/virt.py @@ -3553,7 +3553,7 @@ def snapshot(domain, name=None, suffix=None, **kwargs): conn = __get_conn(**kwargs) _get_domain(conn, domain).snapshotCreateXML( - salt.util...
Lint: fix syntax error from merge conflict
py
diff --git a/stanza/models/classifier.py b/stanza/models/classifier.py index <HASH>..<HASH> 100644 --- a/stanza/models/classifier.py +++ b/stanza/models/classifier.py @@ -523,15 +523,17 @@ def main(): logger.info("Using test set: %s" % args.test_file) check_labels(model.labels, test_set) - correct = scor...
Only run the test set once at the end of a training run
py
diff --git a/rinoh/document.py b/rinoh/document.py index <HASH>..<HASH> 100644 --- a/rinoh/document.py +++ b/rinoh/document.py @@ -422,7 +422,8 @@ to the terms of the GNU Affero General Public License version 3.''') for i in range(current_level - section.level): parent = stack.pop(...
Fix outline links for sections with numerical IDs
py
diff --git a/waliki/slides/views.py b/waliki/slides/views.py index <HASH>..<HASH> 100644 --- a/waliki/slides/views.py +++ b/waliki/slides/views.py @@ -5,8 +5,10 @@ from sh import hovercraft from django.shortcuts import get_object_or_404 from django.http import HttpResponse from waliki.models import Page +from waliki...
Add permission check to slide urls.
py
diff --git a/aws_xray_sdk/core/sampling/local/sampler.py b/aws_xray_sdk/core/sampling/local/sampler.py index <HASH>..<HASH> 100644 --- a/aws_xray_sdk/core/sampling/local/sampler.py +++ b/aws_xray_sdk/core/sampling/local/sampler.py @@ -50,7 +50,7 @@ class LocalSampler(object): self.load_local_rules(rules) ...
Default sampling_req in LocalSampler to None (#<I>)
py
diff --git a/openquake/calculators/base.py b/openquake/calculators/base.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/base.py +++ b/openquake/calculators/base.py @@ -439,7 +439,7 @@ class HazardCalculator(BaseCalculator): logging.info('Rupture spinning factor = %s', s) if (f * s >= 1....
Better logging [skip CI]
py
diff --git a/libagent/device/ui.py b/libagent/device/ui.py index <HASH>..<HASH> 100644 --- a/libagent/device/ui.py +++ b/libagent/device/ui.py @@ -79,10 +79,10 @@ class UnexpectedError(Exception): """Unexpected response.""" -def expect(p, prefixes): +def expect(p, prefixes, confidential=False): """Read a ...
ui: don't log passphrases (since the log may be persisted)
py
diff --git a/flux_led/protocol.py b/flux_led/protocol.py index <HASH>..<HASH> 100755 --- a/flux_led/protocol.py +++ b/flux_led/protocol.py @@ -263,7 +263,11 @@ class ProtocolBase: if len(data) < OUTER_MESSAGE_WRAPPER_START_LEN: return OUTER_MESSAGE_WRAPPER_START_LEN inner_msg_...
Add comments about how the length of a wrapped message is calculated (#<I>)
py
diff --git a/fluent_contents/rendering/core.py b/fluent_contents/rendering/core.py index <HASH>..<HASH> 100644 --- a/fluent_contents/rendering/core.py +++ b/fluent_contents/rendering/core.py @@ -282,6 +282,12 @@ class RenderingPipe(object): if self._can_cache_output(plugin, output) and contentitem.pk: ...
Port the cache_output_per_site fix from <I> Related to: d1b<I>e8d4dc8afdc<I>ae<I>c<I>cca<I>fde
py
diff --git a/refcycle/object_graph.py b/refcycle/object_graph.py index <HASH>..<HASH> 100755 --- a/refcycle/object_graph.py +++ b/refcycle/object_graph.py @@ -330,7 +330,7 @@ class ObjectGraph(IDirectedGraph): try: dot_file = os.path.join(tempdir, 'output.gv') with open(dot_file, 'wb'...
utf-8 seems to be the more standard name for the encoding.
py
diff --git a/idiotic/util/blocks/value.py b/idiotic/util/blocks/value.py index <HASH>..<HASH> 100644 --- a/idiotic/util/blocks/value.py +++ b/idiotic/util/blocks/value.py @@ -28,6 +28,12 @@ class Value(block.Block): self._value = self.coerce(val) await self.output(self._value) + async def run(sel...
Value blocks need to output upon starting up if an initial state is given
py
diff --git a/hex_utils/hasc.py b/hex_utils/hasc.py index <HASH>..<HASH> 100644 --- a/hex_utils/hasc.py +++ b/hex_utils/hasc.py @@ -23,14 +23,27 @@ class HASC (Grid): _key_nodata = "no_data" _key_angle = "angle" - _side = 0 - _angle = None + _side = 0 + _angle = None + _hexPe...
Added hexPerp property to HASC class and created getters for all properties.
py
diff --git a/openstack_dashboard/dashboards/project/data_processing/job_executions/views.py b/openstack_dashboard/dashboards/project/data_processing/job_executions/views.py index <HASH>..<HASH> 100644 --- a/openstack_dashboard/dashboards/project/data_processing/job_executions/views.py +++ b/openstack_dashboard/dashboar...
Rename Job Executions to Jobs in Jobs page We rename the title of Jobs page into "Jobs" instead of old "Job Executions" to avoid user confusion. Close-Bug: #<I> Change-Id: I3b<I>e<I>db<I>dccb7de<I>d
py
diff --git a/monolithe/tests/unit/test_plural_name.py b/monolithe/tests/unit/test_plural_name.py index <HASH>..<HASH> 100644 --- a/monolithe/tests/unit/test_plural_name.py +++ b/monolithe/tests/unit/test_plural_name.py @@ -27,3 +27,4 @@ class GetPluralNameTest(TestCase): self.assertPluralNameEquals('gateway', ...
Added unit tests for VCenter entities
py
diff --git a/git/diff.py b/git/diff.py index <HASH>..<HASH> 100644 --- a/git/diff.py +++ b/git/diff.py @@ -168,11 +168,13 @@ class Diff(object): a_mode is None a_blob is None + a_path is None ``Deleted File``:: b_mode is None b_blob is None + b_path is None ...
Store path attribute on Diff object If a file in a commit contains no changes (for example, if only the file mode is changed) there will be no blob attached. This is usually where the filename is stored, so without it, the calling context can not tell what file was changed. Instead, always store a_path and b_path on...
py
diff --git a/securitysuite/suite.py b/securitysuite/suite.py index <HASH>..<HASH> 100644 --- a/securitysuite/suite.py +++ b/securitysuite/suite.py @@ -71,7 +71,7 @@ class ExtraTest(object): logger.debug("running securitysuite test group %s" % g) logger.test_start(g) try: - ...
Refactored ExtraTest.run() method ExtraTest.run() is now called .runner() to avoid confusion through the name collision. .run() is the class method that abstract test classes are supposed to implement, .runner() is the class method used to run multiple abstract test groups.
py
diff --git a/django_extensions/management/shells.py b/django_extensions/management/shells.py index <HASH>..<HASH> 100644 --- a/django_extensions/management/shells.py +++ b/django_extensions/management/shells.py @@ -79,6 +79,21 @@ def import_items(import_directives, style, quiet_load=False): def import_objects(opti...
Call django.setup() if the app registry isn't initialized yet This is needed for the iPython notebook extension when running Django <I>.
py
diff --git a/bedup/futimens.py b/bedup/futimens.py index <HASH>..<HASH> 100644 --- a/bedup/futimens.py +++ b/bedup/futimens.py @@ -55,10 +55,12 @@ def fstat_ns(fd): stat = ffi.new('struct stat *') if lib.fstat(fd, stat) != 0: raise IOError(ffi.errno, os.strerror(ffi.errno), fd) - assert 0 <= stat....
Be even more paranoid with nested structs.
py
diff --git a/dataviews/plotting/sheetplots.py b/dataviews/plotting/sheetplots.py index <HASH>..<HASH> 100644 --- a/dataviews/plotting/sheetplots.py +++ b/dataviews/plotting/sheetplots.py @@ -407,7 +407,7 @@ class CoordinateGridPlot(OverlayPlot): for col in groupby(self.grid.items(), lambda item: ...
Fix to CoordinateGridPlot axis handling
py
diff --git a/pygubu/uidesigner/widgeteditor.py b/pygubu/uidesigner/widgeteditor.py index <HASH>..<HASH> 100644 --- a/pygubu/uidesigner/widgeteditor.py +++ b/pygubu/uidesigner/widgeteditor.py @@ -315,8 +315,8 @@ class WidgetsTreeEditor: selection = tree.selection() if selection: selected_i...
Fix exception when clipboard is empty.
py
diff --git a/fontbakery-check-ttf.py b/fontbakery-check-ttf.py index <HASH>..<HASH> 100755 --- a/fontbakery-check-ttf.py +++ b/fontbakery-check-ttf.py @@ -533,8 +533,10 @@ def main(): if width_occurrences[width] > occurrences: occurrences = width_occurrences[width] most_common_width =...
The monospece detection threshold of <I>% same width glyph occurrences is an euristics that currently fails for the Cousine font because we have <I>% same-width glyphs in it. So I'm lowering the threshold to <I>%. This results in a correct monospace detection and a long list of <I> outliers (which seems the correct thi...
py
diff --git a/pyjade/ext/mako.py b/pyjade/ext/mako.py index <HASH>..<HASH> 100644 --- a/pyjade/ext/mako.py +++ b/pyjade/ext/mako.py @@ -52,6 +52,7 @@ class Compiler(_Compiler): def visitInclude(self,node): path = self.format_path(node.path) self.buffer('<%%include file="%s"/>'%(path)) + sel...
improve include support for mako In upstream jade, when you include a file you also receive all of that file's mixins. This is possible in Mako by using the namespace tag and importing everything.
py
diff --git a/blockstack_cli_0.14.1/blockstack_client/wallet.py b/blockstack_cli_0.14.1/blockstack_client/wallet.py index <HASH>..<HASH> 100644 --- a/blockstack_cli_0.14.1/blockstack_client/wallet.py +++ b/blockstack_cli_0.14.1/blockstack_client/wallet.py @@ -220,6 +220,10 @@ def encrypt_wallet(wallet, password): o...
check that data key is a single private key
py
diff --git a/packages/vaex-core/vaex/dataframe.py b/packages/vaex-core/vaex/dataframe.py index <HASH>..<HASH> 100644 --- a/packages/vaex-core/vaex/dataframe.py +++ b/packages/vaex-core/vaex/dataframe.py @@ -3695,6 +3695,9 @@ class DataFrame(object): return [k for k in self.column_names if not k.startswith(...
perf: dataframes are always true, to avoid calling __len__
py
diff --git a/pabot/pabot.py b/pabot/pabot.py index <HASH>..<HASH> 100755 --- a/pabot/pabot.py +++ b/pabot/pabot.py @@ -283,6 +283,13 @@ def get_suite_names(output_file): return [] +def _processes_count(): + try: + return max(multiprocessing.cpu_count(), 2) + except NotImplementedError: + ...
Fix cpu_count NotImplemented by assuming 2
py
diff --git a/examples/models/file/basic_plot.py b/examples/models/file/basic_plot.py index <HASH>..<HASH> 100644 --- a/examples/models/file/basic_plot.py +++ b/examples/models/file/basic_plot.py @@ -1,3 +1,14 @@ +''' A scatter plot of a smooth periodic oscillation. This example demonstrates red +circle scatter markers ...
<I> basic plot example metadata (#<I>) * initial commit * eliminated trailing whitespace * Update examples/models/file/basic_plot.py
py
diff --git a/OpenPNM/Base/__Core__.py b/OpenPNM/Base/__Core__.py index <HASH>..<HASH> 100644 --- a/OpenPNM/Base/__Core__.py +++ b/OpenPNM/Base/__Core__.py @@ -251,10 +251,10 @@ class Core(Base): ''' if props == '': # If empty, assume all models are to be regenerated - props = self._model...
Fixed bug/typo in regenerate...not sure how I missed it.
py
diff --git a/indra/explanation/model_checker/pybel.py b/indra/explanation/model_checker/pybel.py index <HASH>..<HASH> 100644 --- a/indra/explanation/model_checker/pybel.py +++ b/indra/explanation/model_checker/pybel.py @@ -27,8 +27,8 @@ class PybelModelChecker(ModelChecker): super().__init__(model, statements,...
In MC: exclude variants and include components
py
diff --git a/eth_account/internal/transactions.py b/eth_account/internal/transactions.py index <HASH>..<HASH> 100644 --- a/eth_account/internal/transactions.py +++ b/eth_account/internal/transactions.py @@ -168,7 +168,15 @@ class Transaction(HashableRLP): ) -UnsignedTransaction = Transaction.exclude(['v', 'r',...
Update for rlp <I>
py
diff --git a/geopy/point.py b/geopy/point.py index <HASH>..<HASH> 100644 --- a/geopy/point.py +++ b/geopy/point.py @@ -148,7 +148,7 @@ class Point(object): return iter((self.latitude, self.longitude, self.altitude)) def __repr__(self): - return "Point(%r, %r, %r)" % (self._items) + return ...
Fix broken __repr__ method in Point class Added convertion to tuple in Point.__repr__() method to make it work with string formatting.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ license: GNU-GPL2 from setuptools import setup setup(name='consoleprinter', - version='18', + version='19', description='Console printer with linenumbers, stacktraces, logging, conversions and...
pip Sunday <I> March <I> (week:9 day:<I>), <I>:<I>:<I>
py
diff --git a/update_dotdee/__init__.py b/update_dotdee/__init__.py index <HASH>..<HASH> 100644 --- a/update_dotdee/__init__.py +++ b/update_dotdee/__init__.py @@ -18,7 +18,7 @@ from natsort import natsort from property_manager import PropertyManager, mutable_property, required_property # Semi-standard module versio...
Release <I>: Add ability to execute files and use their output (#2)
py
diff --git a/test/test_qimageview.py b/test/test_qimageview.py index <HASH>..<HASH> 100644 --- a/test/test_qimageview.py +++ b/test/test_qimageview.py @@ -1,5 +1,5 @@ from qimage2ndarray import _qimageview -from qimage2ndarray.dynqt import QtGui +from qimage2ndarray.dynqt import qt, QtGui from nose.tools import rai...
adapt test to PySide (.base pointing to buffer)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -54,12 +54,12 @@ setup( "Flask-Login>=0.3, <0.5", "Flask-OpenID>=1.2.5, <2", "Flask-SQLAlchemy>=2.4, <3", - "Flask-WTF>=0.14.2, <1", + "Flask-WTF>=0.14.2, <0.15.0", "Flask-JWT-...
deps: constraint pre 1 packages following semver (#<I>)
py
diff --git a/src/livestreamer/stream/http.py b/src/livestreamer/stream/http.py index <HASH>..<HASH> 100644 --- a/src/livestreamer/stream/http.py +++ b/src/livestreamer/stream/http.py @@ -3,7 +3,7 @@ import inspect import requests from .stream import Stream -from .wrappers import StreamIOIterWrapper +from .wrappers ...
stream.http: Make use of StreamIOThreadWrapper. This makes the HTTP streams support background buffering.
py
diff --git a/blockstack/lib/c32.py b/blockstack/lib/c32.py index <HASH>..<HASH> 100644 --- a/blockstack/lib/c32.py +++ b/blockstack/lib/c32.py @@ -379,10 +379,11 @@ def c32checkDecode(c32data): >>> c32checkDecode('2G000003FNKA3P') (2, '0100000000') """ + c32data = c32normalize(c32data) + if not r...
normalize an address before checking its character set
py
diff --git a/nazs/core/commands.py b/nazs/core/commands.py index <HASH>..<HASH> 100644 --- a/nazs/core/commands.py +++ b/nazs/core/commands.py @@ -7,6 +7,6 @@ def run(cmd): raises subprocess.CalledProcessError if it fails """ - output = subprocess.check_output(cmd, shell=True) + output = subprocess.ch...
redirect commands.run stderr to stdout if the programmer wants to ignore them he can send them to /dev/null
py
diff --git a/bcbio/pipeline/disambiguate/__init__.py b/bcbio/pipeline/disambiguate/__init__.py index <HASH>..<HASH> 100644 --- a/bcbio/pipeline/disambiguate/__init__.py +++ b/bcbio/pipeline/disambiguate/__init__.py @@ -1,12 +1,13 @@ """Handle disambiguation of reads from a chimeric input, splitting by organism. Giv...
Set comments to <I> character length.
py
diff --git a/uni_form/templatetags/uni_form_tags.py b/uni_form/templatetags/uni_form_tags.py index <HASH>..<HASH> 100644 --- a/uni_form/templatetags/uni_form_tags.py +++ b/uni_form/templatetags/uni_form_tags.py @@ -31,8 +31,12 @@ def as_uni_form(form, arg=None): @register.filter def as_uni_errors(form): - templa...
Improving as_uni_errors filter, so It can render formset errors
py
diff --git a/doc/test_messages_documentation.py b/doc/test_messages_documentation.py index <HASH>..<HASH> 100644 --- a/doc/test_messages_documentation.py +++ b/doc/test_messages_documentation.py @@ -6,7 +6,7 @@ import sys -if sys.version_info[:2] >= (3, 9): +if sys.version_info[:2] > (3, 9): from collections ...
Fix version constraint - ``Counter.total`` is only available from Python <I> (#<I>)
py
diff --git a/esx/guest_tool.py b/esx/guest_tool.py index <HASH>..<HASH> 100644 --- a/esx/guest_tool.py +++ b/esx/guest_tool.py @@ -31,7 +31,7 @@ import subprocess import sys import time -_ = gettext.gettext +gettext.install('nova', unicode=1) PLATFORM_WIN = 'win32' PLATFORM_LINUX = 'linux2'
- Modified NOTE in vm_util.py - Changed gettext line to nova default in guest_tool.py
py
diff --git a/djangoratings/__init__.py b/djangoratings/__init__.py index <HASH>..<HASH> 100644 --- a/djangoratings/__init__.py +++ b/djangoratings/__init__.py @@ -45,11 +45,12 @@ class RatingManager(object): content_type = self.get_content_type(), object_id = self.instance.id, ...
django isnt treating None as null
py
diff --git a/taxon_names_resolver/manip_tools.py b/taxon_names_resolver/manip_tools.py index <HASH>..<HASH> 100644 --- a/taxon_names_resolver/manip_tools.py +++ b/taxon_names_resolver/manip_tools.py @@ -208,7 +208,7 @@ def taxTree(taxdict): # the taxonomic dictionary holds the lineage of each ident in # the ...
Minor correction — custom taxonomy for taxdict not working due to indexing in taxTree
py
diff --git a/loqusdb/build_models/profile_variant.py b/loqusdb/build_models/profile_variant.py index <HASH>..<HASH> 100644 --- a/loqusdb/build_models/profile_variant.py +++ b/loqusdb/build_models/profile_variant.py @@ -1,5 +1,4 @@ import logging -import json from loqusdb.models import ProfileVariant from .variant ...
Change from CAF to MAF tag when looking for MAF in vcf file
py
diff --git a/ansible/modules/hashivault/hashivault_audit_list.py b/ansible/modules/hashivault/hashivault_audit_list.py index <HASH>..<HASH> 100644 --- a/ansible/modules/hashivault/hashivault_audit_list.py +++ b/ansible/modules/hashivault/hashivault_audit_list.py @@ -37,7 +37,7 @@ def hashivault_audit_list(params): ...
Fix hashivault_audit_list `changed` state Make hashivault_audit_list always return as unchanged/OK, since it never changes Vault state. This behavior is consistent with other reading/listing modules, e.g. hashivault_approle_role_list.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ os.environ['DJANGO_SETTINGS_MODULE'] = 'django_mailbox.tests.settings' from django.core import management -if sys.argv[-1] == 'test': +if len(sys.argv) > 1 and sys.argv[1] == 'test': management.execute_f...
Add support to args in tests
py
diff --git a/knowledge_base/__init__.py b/knowledge_base/__init__.py index <HASH>..<HASH> 100755 --- a/knowledge_base/__init__.py +++ b/knowledge_base/__init__.py @@ -652,3 +652,19 @@ class KnowledgeBase(object): author.remove() return removed_resources + + + def remove_work(self, work): + + ...
added kb.remove_work()
py
diff --git a/tests/test_sftp.py b/tests/test_sftp.py index <HASH>..<HASH> 100644 --- a/tests/test_sftp.py +++ b/tests/test_sftp.py @@ -183,7 +183,7 @@ class TestSFTP(object): except: pass - def test_6_folder(self): + def test_6_folder(self, sftp): """ create a tem...
May have goofed up a cherry-pick earlier?
py
diff --git a/hagelslag/processing/TrackProcessing.py b/hagelslag/processing/TrackProcessing.py index <HASH>..<HASH> 100644 --- a/hagelslag/processing/TrackProcessing.py +++ b/hagelslag/processing/TrackProcessing.py @@ -278,7 +278,7 @@ class TrackProcessor(object): obs_hail_dists = pd.DataFrame(columns=["Ma...
Fixed bug in extraction of observed values.
py
diff --git a/cumulusci/cli/flow.py b/cumulusci/cli/flow.py index <HASH>..<HASH> 100644 --- a/cumulusci/cli/flow.py +++ b/cumulusci/cli/flow.py @@ -158,6 +158,9 @@ def flow_run(runtime, flow_name, org, delete_org, debug, o, skip, no_prompt): coordinator.run(org_config) duration = datetime.now() - start...
still show alert if flow errored
py
diff --git a/bsdploy/__init__.py b/bsdploy/__init__.py index <HASH>..<HASH> 100644 --- a/bsdploy/__init__.py +++ b/bsdploy/__init__.py @@ -54,14 +54,19 @@ class PloyConfigureHostCmd(object): add_help=False, ) masters = dict((master.id, master) for master in self.aws.get_masters('ezjail_ad...
Don't require name of master if there only is one.
py
diff --git a/tinymce/widgets.py b/tinymce/widgets.py index <HASH>..<HASH> 100644 --- a/tinymce/widgets.py +++ b/tinymce/widgets.py @@ -66,7 +66,12 @@ def get_language_config(): else: config['directionality'] = 'ltr' if mce_settings.USE_SPELLCHECKER: - from enchant import list_languages + ...
Add more meaningful message if pyenchant is not installed This addresses #<I>.
py
diff --git a/noseprogressive/result.py b/noseprogressive/result.py index <HASH>..<HASH> 100644 --- a/noseprogressive/result.py +++ b/noseprogressive/result.py @@ -5,7 +5,7 @@ from traceback import format_list, extract_tb, format_exception_only from unittest import TestResult from nose.exc import SkipTest -from nose...
Tolerate tests that don't have an address() method.
py
diff --git a/frosted/api.py b/frosted/api.py index <HASH>..<HASH> 100644 --- a/frosted/api.py +++ b/frosted/api.py @@ -32,7 +32,7 @@ from frosted.messages import FileSkipped, PythonSyntaxError __all__ = ['check', 'check_path', 'check_recursive', 'iter_source_code'] -_re_noqa = re.compile(r'((pyflakes|flake8)[:=]\s...
Fix regex to work only with noqa, and frosted specific qa
py
diff --git a/models.py b/models.py index <HASH>..<HASH> 100644 --- a/models.py +++ b/models.py @@ -442,6 +442,14 @@ class HSMM(HMM, ModelGibbsSampling, ModelEM, ModelMAPEM): super(HSMM,self).__init__(obs_distns=obs_distns,trans_distn=self.trans_distn,**kwargs) + @property + def stateseqs_norep(self):...
easy reference to stateseqs_norep and durations for HSMMs
py
diff --git a/dsari/database.py b/dsari/database.py index <HASH>..<HASH> 100644 --- a/dsari/database.py +++ b/dsari/database.py @@ -71,17 +71,18 @@ class BaseDatabase(): if k not in f: continue if type(f[k]) in (int, float): - run.schedule_time = epoch_to_dt(f[k]...
Fix build_run_from_result
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -10,8 +10,6 @@ requires = [ 'Flask', 'BeautifulSoup' ] -if sys.version_info[:2] == (2, 6): - requires.append('ordereddict') setup(name='coaster', version='0.2.7',
Coaster doesn't actually need ordereddict.
py
diff --git a/pypet/parameter.py b/pypet/parameter.py index <HASH>..<HASH> 100644 --- a/pypet/parameter.py +++ b/pypet/parameter.py @@ -981,7 +981,10 @@ class Parameter(BaseParameter): val = self._convert_data(data) if not self.f_supports(val): - raise TypeError('Unsupported data `%s` of t...
Added more comprehensive error statement if data is not supported by parameter;
py
diff --git a/pycdlib/pycdlib.py b/pycdlib/pycdlib.py index <HASH>..<HASH> 100644 --- a/pycdlib/pycdlib.py +++ b/pycdlib/pycdlib.py @@ -1617,7 +1617,7 @@ class PyCdlib(object): outfp.seek(old) return outfp.tell() - tmp_start - def _write_fp(self, outfp, blocksize=8192, progress_cb=None, progre...
Change the default blocksize to <I>K. This isn't a significant increase of memory, but does increase the performance a bit.
py
diff --git a/configure.py b/configure.py index <HASH>..<HASH> 100755 --- a/configure.py +++ b/configure.py @@ -130,13 +130,11 @@ if platform not in ('mingw'): command='src/inline.sh $varname < $in > $out', description='INLINE $out') n.build(built('browse_py.h'), 'inline', src('browse.py'), ...
fix TODO: correct dependencies for inline.sh Not sure why I just didn't write this right the first time; when running a script for its output, the script is always an implicit input of the output.
py
diff --git a/src/qinfer/utils.py b/src/qinfer/utils.py index <HASH>..<HASH> 100644 --- a/src/qinfer/utils.py +++ b/src/qinfer/utils.py @@ -32,7 +32,6 @@ from scipy.special import gammaln ############################################################################### #TODO: cases for p=0 or p=1 -@np.vectorize d...
Removed vectorization from binomial_pdf; it was vectorized already.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -47,7 +47,7 @@ def load_libraries(): # check the platform -if sys.platform.startswith("linux"): +if sys.platform.startswith("linux") or 'gnu' in sys.platform: module = Extension( "fitz._fitz", # name of the...
setup: consider GNU-based systems like Linux The toolchain of GNU systems mostly is the same as the ones used on Linux, so share the build settings.
py
diff --git a/pyradigm/pyradigm.py b/pyradigm/pyradigm.py index <HASH>..<HASH> 100644 --- a/pyradigm/pyradigm.py +++ b/pyradigm/pyradigm.py @@ -716,9 +716,9 @@ class MLDataset(object): """number of features in each sample.""" return np.int64(self.__num_features) - @num_features.setter - def num...
turning num_features setter to static method [skip ci]
py
diff --git a/zipline/protocol.py b/zipline/protocol.py index <HASH>..<HASH> 100644 --- a/zipline/protocol.py +++ b/zipline/protocol.py @@ -545,8 +545,12 @@ def shorten_filename(filename): if filename == None: return None - # check if the path contains zipeline_repo - path_re = r'(?<=zipline/).*' +...
patched regex to work on jenkins
py
diff --git a/satpy/readers/utils.py b/satpy/readers/utils.py index <HASH>..<HASH> 100644 --- a/satpy/readers/utils.py +++ b/satpy/readers/utils.py @@ -203,7 +203,7 @@ def unzip_file(filename): LOGGER.info("Using temp file for BZ2 decompression:", tmpfilepath) # If in python 3, try pbzip2 if s...
Correct typo in unzip_file utility function
py
diff --git a/shinken/daemon.py b/shinken/daemon.py index <HASH>..<HASH> 100644 --- a/shinken/daemon.py +++ b/shinken/daemon.py @@ -547,6 +547,7 @@ class Daemon(object): if len(startargs[0]) > 1: self.manager.start(close_http_daemon, initargs=(self.http_daemon,)) else: + ...
Fix: old multiprocessing lib where not initialized. Fix #<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -24,8 +24,8 @@ setup( 'pygsp.pointclouds', 'pygsp.tests'], package_data={'pygsp.pointclouds': ['misc/*.mat']}, test_suite='pygsp.tests.test_all.suite', - dependency_links=['git+https://github.com/py...
Fix dependency of pyqtgraph
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -24,7 +24,7 @@ class Mock(MagicMock): MOCK_MODULES = ['gi.repository', 'Gtk', 'GObject', 'sorting', 'choice', 'queueing_tool.queues.choice', 'queueing_tool.network.sorting', - ...
Fixed error on read the docs
py
diff --git a/rope/base/taskhandle.py b/rope/base/taskhandle.py index <HASH>..<HASH> 100644 --- a/rope/base/taskhandle.py +++ b/rope/base/taskhandle.py @@ -71,9 +71,9 @@ class JobSet(object): def finished_job(self): self.check_status() + self.done += 1 self.handle._inform_observers() ...
taskhandle: increment `self.done` before informing observers. Because self.done is incremented after `self.handle._inform_observers()` an observing function will never see `JobSet.get_percent_done() == <I>`. Thanks to dysiode for reporting.
py
diff --git a/compliance_checker/cf/cf.py b/compliance_checker/cf/cf.py index <HASH>..<HASH> 100644 --- a/compliance_checker/cf/cf.py +++ b/compliance_checker/cf/cf.py @@ -2454,7 +2454,7 @@ class CFBaseCheck(BaseCheck): if hasattr(grid_var, attr): number_found += 1 ...
add spaces to user messages in check_grid_mapping Two error/warning messages, which each consiste of more than one line of text output, were missing a space between two split lines.
py
diff --git a/steampy/models.py b/steampy/models.py index <HASH>..<HASH> 100644 --- a/steampy/models.py +++ b/steampy/models.py @@ -36,6 +36,7 @@ class Currency(enum.IntEnum): GBP = 2 EURO = 3 CHF = 4 + RUB = 5 class TradeOfferState(enum.IntEnum):
Update models.py Added RUB Currency
py
diff --git a/conllu/parser.py b/conllu/parser.py index <HASH>..<HASH> 100644 --- a/conllu/parser.py +++ b/conllu/parser.py @@ -28,6 +28,9 @@ def sent_to_tree(sentence): def parse_tree(text): result = parse(text) + if "head" not in result[0][0]: + raise ParseException("Can't parse tree, missing 'head' ...
Improve error for file with no head.
py
diff --git a/paramiko/util.py b/paramiko/util.py index <HASH>..<HASH> 100644 --- a/paramiko/util.py +++ b/paramiko/util.py @@ -241,7 +241,7 @@ def log_to_file(filename, level=DEBUG): if len(l.handlers) > 0: return l.setLevel(level) - f = open(filename, 'w') + f = open(filename, 'a') lh = l...
log_to_file() should append instead of replace
py
diff --git a/example_project/myapp/urls.py b/example_project/myapp/urls.py index <HASH>..<HASH> 100644 --- a/example_project/myapp/urls.py +++ b/example_project/myapp/urls.py @@ -1,5 +1,5 @@ from django.contrib.auth import views as auth_views -from django.conf.urls import patterns, include, url +from django.conf.urls ...
Fix import django.conf.urls.patterns is removed in Django <I>
py
diff --git a/spyderlib/plugins/editor.py b/spyderlib/plugins/editor.py index <HASH>..<HASH> 100644 --- a/spyderlib/plugins/editor.py +++ b/spyderlib/plugins/editor.py @@ -1477,7 +1477,11 @@ class Editor(SpyderPluginWidget): if os.name == 'nt' and len(fname) >= 2 and fname[1] == ':': fname...
plugins.editor: fixed bug following merge with <I> branch
py