diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/lib/svtplay_dl/service/viaplay.py b/lib/svtplay_dl/service/viaplay.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/service/viaplay.py +++ b/lib/svtplay_dl/service/viaplay.py @@ -16,6 +16,7 @@ from svtplay_dl.utils import get_http_data from svtplay_dl.log import log from svtplay_dl.fetcher.hds import ...
viaplay: support for hds streams.
py
diff --git a/pypot/primitive/primitive.py b/pypot/primitive/primitive.py index <HASH>..<HASH> 100644 --- a/pypot/primitive/primitive.py +++ b/pypot/primitive/primitive.py @@ -59,6 +59,10 @@ class Primitive(StoppableThread): def _prim_setup(self): logger.info("Primitive %s setup.", self) + + for m...
Make sure that all goal values from a primitive are reset before starting it.
py
diff --git a/indra/literature/pmc_client.py b/indra/literature/pmc_client.py index <HASH>..<HASH> 100644 --- a/indra/literature/pmc_client.py +++ b/indra/literature/pmc_client.py @@ -110,7 +110,12 @@ def get_xml(pmc_id): def extract_text(xml_string): - """Get text from the body of the given NLM XML string. + ...
Update DocString for extract_text
py
diff --git a/ot/bregman.py b/ot/bregman.py index <HASH>..<HASH> 100644 --- a/ot/bregman.py +++ b/ot/bregman.py @@ -2107,6 +2107,14 @@ def screenkhorn(a, b, M, reg, ns_budget=None, nt_budget=None, uniform=True, rest vsc_full = np.full(nt, epsilon * kappa) usc_full[I] = usc vsc_full[J] = vsc + + if ...
replace reshape by numpy slicing in return
py
diff --git a/faker/providers/credit_card/__init__.py b/faker/providers/credit_card/__init__.py index <HASH>..<HASH> 100644 --- a/faker/providers/credit_card/__init__.py +++ b/faker/providers/credit_card/__init__.py @@ -44,6 +44,7 @@ class Provider(BaseProvider): prefix_mastercard, 16,...
Visa <I> digits credit card length support added. Fixes #<I>
py
diff --git a/libagent/gpg/__init__.py b/libagent/gpg/__init__.py index <HASH>..<HASH> 100644 --- a/libagent/gpg/__init__.py +++ b/libagent/gpg/__init__.py @@ -240,7 +240,7 @@ def run_agent(device_type): log.debug('os.environ: %s', os.environ) log.debug('pid: %d, parent pid: %d', os.getpid(), os.getppid()) ...
Allow using $PATH when looking for GPG binary It's needed for running neopg (instead of gnupg).
py
diff --git a/numina/enum.py b/numina/enum.py index <HASH>..<HASH> 100644 --- a/numina/enum.py +++ b/numina/enum.py @@ -71,7 +71,10 @@ class EnumType(type): return self.__members__[name] def __getattr__(self, name): - return self.__members__[name] + try: + return self.__members__...
Correct the getattr in Enum class to raise AttributeError
py
diff --git a/wsproto/__init__.py b/wsproto/__init__.py index <HASH>..<HASH> 100644 --- a/wsproto/__init__.py +++ b/wsproto/__init__.py @@ -6,4 +6,4 @@ wsproto A WebSocket implementation. """ -__version__ = "1.0.0dev0" +__version__ = "0.9.0"
Let's make it <I>.
py
diff --git a/delphin/tsql.py b/delphin/tsql.py index <HASH>..<HASH> 100644 --- a/delphin/tsql.py +++ b/delphin/tsql.py @@ -607,7 +607,6 @@ _qid = r'{id}\.{id}'.format(id=_id) # qualified id: "table.column" _TSQLLexer = util.Lexer( tokens=[ - (r'info|set|retrieve|select|insert', 'QUERY:a query type'), ...
Remove TSQL query types from query parser They are not used and they interfere with table/relation names that are the same as a query type (notably 'set'). This is still a problem if someone has a testsuite with tables named 'from' or 'where' and then execute a query over those, but hopefully this is rare.
py
diff --git a/src/kids/cache/__init__.py b/src/kids/cache/__init__.py index <HASH>..<HASH> 100644 --- a/src/kids/cache/__init__.py +++ b/src/kids/cache/__init__.py @@ -31,7 +31,11 @@ def make_key_hippie(obj, typed=True): return hash(obj), ftype(obj) except Exception: ## pylint: disable-msg=W0703 ...
fix: similar ``set`` could get different hash. ``set`` weren't sorted prior to introspection for hashing.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -75,7 +75,7 @@ if fallback: # Project-specific part begins here: tokenizer = Extension("mwparserfromhell.parser._tokenizer", - sources=glob("mwparserfromhell/parser/ctokenizer/*.c"), + ...
setup.py: Make source files be in a deterministic order To make the package build reproducibly, sort the source files in a deterministic order instead of just globbing them. Patch originally from <<URL>
py
diff --git a/tests/integration/states/pip.py b/tests/integration/states/pip.py index <HASH>..<HASH> 100644 --- a/tests/integration/states/pip.py +++ b/tests/integration/states/pip.py @@ -40,7 +40,10 @@ class PipStateTest(integration.ModuleCase, integration.SaltReturnAssertsMixIn): self.assertSaltCommentReg...
If `SHELL` is not in the environ, the error message is different.
py
diff --git a/responses/__init__.py b/responses/__init__.py index <HASH>..<HASH> 100644 --- a/responses/__init__.py +++ b/responses/__init__.py @@ -133,13 +133,13 @@ def _ensure_str(s): def _cookies_from_headers(headers): try: - import http.cookies as cookies + import http.cookies as _cookies - ...
fix #<I> (#<I>)
py
diff --git a/tests/test_verify_content.py b/tests/test_verify_content.py index <HASH>..<HASH> 100644 --- a/tests/test_verify_content.py +++ b/tests/test_verify_content.py @@ -625,7 +625,8 @@ class _TestCaseSinglefile(_TestCaseBase): os.rename(self.content_path, str(self.content_path) + '.deleted') sel...
Fix tests for verifying with missing single file
py
diff --git a/fake_filesystem_test.py b/fake_filesystem_test.py index <HASH>..<HASH> 100755 --- a/fake_filesystem_test.py +++ b/fake_filesystem_test.py @@ -745,6 +745,14 @@ class FakeOsModuleTest(FakeOsModuleTestBase): files.sort() self.assertEqual(files, sorted(self.os.listdir(directory))) + def ...
Added regression test for dictionnary instead of list
py
diff --git a/hs_restclient/__init__.py b/hs_restclient/__init__.py index <HASH>..<HASH> 100644 --- a/hs_restclient/__init__.py +++ b/hs_restclient/__init__.py @@ -459,6 +459,23 @@ class HydroShare(object): return new_resource_id + def deleteResource(self, pid): + """ + Delete a resource. +...
Implement deleteResource Update setAccessRules to return ID of modified resource
py
diff --git a/simuvex/procedures/libc___so___6/fread.py b/simuvex/procedures/libc___so___6/fread.py index <HASH>..<HASH> 100644 --- a/simuvex/procedures/libc___so___6/fread.py +++ b/simuvex/procedures/libc___so___6/fread.py @@ -10,7 +10,5 @@ class fread(simuvex.SimProcedure): def run(self, dst, size, nm, file_ptr):...
Update fread to use the new read calling convention
py
diff --git a/treeherder/etl/buildbot.py b/treeherder/etl/buildbot.py index <HASH>..<HASH> 100644 --- a/treeherder/etl/buildbot.py +++ b/treeherder/etl/buildbot.py @@ -476,6 +476,7 @@ JOB_NAME_BUILDERNAME = [ {"regex": re.compile(r'instrumentation-browser'), "desc": "Android Instrumentation Browser"}, {"regex"...
Bug <I> - Add Ld symbol for luciddream tests, r=edmorley
py
diff --git a/pgmpy/BayesianModel/__init__.py b/pgmpy/BayesianModel/__init__.py index <HASH>..<HASH> 100644 --- a/pgmpy/BayesianModel/__init__.py +++ b/pgmpy/BayesianModel/__init__.py @@ -1,4 +1,3 @@ -from . import BayesianModel -from . import CPD +from BayesianModel import BayesianModel -__all__ = ['BayesianModel', '...
changed __init__.py to import BayesianModel class directly, removed CPD from it
py
diff --git a/spyderlib/widgets/externalshell/monitor.py b/spyderlib/widgets/externalshell/monitor.py index <HASH>..<HASH> 100644 --- a/spyderlib/widgets/externalshell/monitor.py +++ b/spyderlib/widgets/externalshell/monitor.py @@ -7,9 +7,10 @@ # remote views for all consoles...! import os -import threading ...
All Consoles: Fix keyboard interruption (which was broken since revision <I>fd<I>a) Update Issue <I> Status: Started
py
diff --git a/ajax/views.py b/ajax/views.py index <HASH>..<HASH> 100755 --- a/ajax/views.py +++ b/ajax/views.py @@ -30,6 +30,8 @@ def json_response(f, *args, **kwargs): """ try: result = f(*args, **kwargs) + if isinstance(result, AJAXError): + raise result except AJAXError, e: ...
If the endpoint returns `AJAXError`, make sure we don't try and serialize it.
py
diff --git a/hypergraph/directedHyperGraph.py b/hypergraph/directedHyperGraph.py index <HASH>..<HASH> 100644 --- a/hypergraph/directedHyperGraph.py +++ b/hypergraph/directedHyperGraph.py @@ -1,5 +1,8 @@ from __future__ import absolute_import -from Queue import PriorityQueue +try: + from queue import PriorityQueue +...
Added python3 queue support
py
diff --git a/plexapi/base.py b/plexapi/base.py index <HASH>..<HASH> 100644 --- a/plexapi/base.py +++ b/plexapi/base.py @@ -453,13 +453,13 @@ class PlexPartialObject(PlexObject): 'year': year or self.year if self.section().type != 'artist' else '', 'language': language or se...
only allow sections available agents to be used.
py
diff --git a/Server/Python/src/dbs/business/DBSProcessingEra.py b/Server/Python/src/dbs/business/DBSProcessingEra.py index <HASH>..<HASH> 100644 --- a/Server/Python/src/dbs/business/DBSProcessingEra.py +++ b/Server/Python/src/dbs/business/DBSProcessingEra.py @@ -3,7 +3,7 @@ This module provides business object class t...
Check pointing after another round of unit tests are written From: afaq <afaq> git-svn-id: svn+ssh://svn.cern.ch/reps/CMSDMWM/DBS/trunk@<I> <I>e-<I>-<I>b1-a<I>-d<I>a<I>b
py
diff --git a/torf.py b/torf.py index <HASH>..<HASH> 100644 --- a/torf.py +++ b/torf.py @@ -209,10 +209,9 @@ def build_style_map_style(style_name): style_code = 0 style_map = ['regular', 'bold', 'italic', 'bold italic'] - style_name_lower = style_name.lower() - if 'bold' in style_name_lower or 'black' ...
Don't lowercase style to determine style mapping. There's really no reason to do this, the keywords of interest ("Bold", "Italic", etc.) are always capitalized.
py
diff --git a/spanner/google/cloud/spanner_v1/snapshot.py b/spanner/google/cloud/spanner_v1/snapshot.py index <HASH>..<HASH> 100644 --- a/spanner/google/cloud/spanner_v1/snapshot.py +++ b/spanner/google/cloud/spanner_v1/snapshot.py @@ -99,7 +99,7 @@ class _SnapshotBase(_SessionWrapper): table's pr...
minor typo (#<I>)
py
diff --git a/example/app/views.py b/example/app/views.py index <HASH>..<HASH> 100644 --- a/example/app/views.py +++ b/example/app/views.py @@ -3,7 +3,7 @@ import datetime from django.core.urlresolvers import reverse from django.shortcuts import render_to_response from django.template import RequestContext -from djan...
import ogone obj and use in ogone view
py
diff --git a/py3status/modules/xrandr_rotate.py b/py3status/modules/xrandr_rotate.py index <HASH>..<HASH> 100644 --- a/py3status/modules/xrandr_rotate.py +++ b/py3status/modules/xrandr_rotate.py @@ -29,6 +29,12 @@ Available placeholders for formatting the output: {icon} a rotation icon, specified by `horizontal_ic...
Add a remark in docstring about issue #<I>
py
diff --git a/datasift/request.py b/datasift/request.py index <HASH>..<HASH> 100644 --- a/datasift/request.py +++ b/datasift/request.py @@ -78,12 +78,13 @@ class DatasiftAuth(object): return request -class Response(object): +class Response(dict): def __init__(self, response, parser=json.loads): ...
Made the Response objects a subclass of dict, for ease of use
py
diff --git a/tomodachi/transport/aws_sns_sqs.py b/tomodachi/transport/aws_sns_sqs.py index <HASH>..<HASH> 100644 --- a/tomodachi/transport/aws_sns_sqs.py +++ b/tomodachi/transport/aws_sns_sqs.py @@ -444,7 +444,14 @@ class AWSSNSSQSTransport(Invoker): for message in messages: ...
Gracefully handle and discard invalid messages not in JSON format
py
diff --git a/schedule/models/events.py b/schedule/models/events.py index <HASH>..<HASH> 100644 --- a/schedule/models/events.py +++ b/schedule/models/events.py @@ -74,6 +74,9 @@ class Event(models.Model): [] ` """ + if self.pk: + # performance booster for occurrences relationship + ...
permance booster for occurrences relationship
py
diff --git a/xdis/magics.py b/xdis/magics.py index <HASH>..<HASH> 100755 --- a/xdis/magics.py +++ b/xdis/magics.py @@ -263,7 +263,7 @@ add_canonic_versions('3.3 3.3.1 3.3.0 3.3.2 3.3.3 3.3.4 3.3.5 ' add_canonic_versions('3.4 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 ' '3.4.5 3.4.6 3.4.7 3.4.8' ...
Remove dup <I> and <I>
py
diff --git a/cobra/core/Model.py b/cobra/core/Model.py index <HASH>..<HASH> 100644 --- a/cobra/core/Model.py +++ b/cobra/core/Model.py @@ -290,9 +290,10 @@ class Model(Object): self.change_objective(kwargs.pop("new_objective")) if "error_reporting" in kwargs: warn("error_reporting dep...
quadratic_component is an optional keyeword arg No longer pass quadratic_component=None to all solvers by default and force them to implement code to ignore it if they do not support quadratic programming. When specified, it is still passed on.
py
diff --git a/chisel/app.py b/chisel/app.py index <HASH>..<HASH> 100755 --- a/chisel/app.py +++ b/chisel/app.py @@ -233,7 +233,7 @@ struct ApplicationConfig wsgiref.util.setup_testing_defaults(environ) if "SCRIPT_FILENAME" not in environ: environ["SCRIPT_FILENAME"] = os.path.ab...
Make chisel config path absolute
py
diff --git a/nanoplot/NanoPlot.py b/nanoplot/NanoPlot.py index <HASH>..<HASH> 100755 --- a/nanoplot/NanoPlot.py +++ b/nanoplot/NanoPlot.py @@ -83,20 +83,22 @@ def main(): ) if args.barcoded: + main_path = settings["path"] barcodes = list(datadf["barcode"].unique()) ...
fixing path name of report when using barcodes as described in <URL>
py
diff --git a/exactitude/domain.py b/exactitude/domain.py index <HASH>..<HASH> 100644 --- a/exactitude/domain.py +++ b/exactitude/domain.py @@ -26,7 +26,7 @@ class DomainType(ExactitudeType): domain = domain.rsplit(':', 1)[0] domain = domain.rstrip('.') # handle unicode - ...
fix python 3 support
py
diff --git a/growler/middleware_chain.py b/growler/middleware_chain.py index <HASH>..<HASH> 100644 --- a/growler/middleware_chain.py +++ b/growler/middleware_chain.py @@ -11,7 +11,7 @@ import re from inspect import signature -class Middleware: +class MiddlewareNode: """ A class representing a node in the...
MiddlewareNode: Renamed ambiguously named "Middleware" class to MiddlewareNode. This change indicates that this is a node in the MiddlewareChain and not the user-created middleware itself. This *actual* middleware is the node's "func" attribute.
py
diff --git a/src/richenum/enums.py b/src/richenum/enums.py index <HASH>..<HASH> 100644 --- a/src/richenum/enums.py +++ b/src/richenum/enums.py @@ -68,7 +68,10 @@ def enum(**enums): en = copy.deepcopy(enums) e = type('Enum', (_EnumMethods,), dict((k, v) for k, v in _items(en))) - e.choices = [(v, k) for k...
python 3: mismatched types might not compare safely The test which sets up an enum with integers and tuples as values fails here in this deprecated block because the values don't compare. Just skip that if it happens; it's probably a silly case anyway.
py
diff --git a/peewee_mssql.py b/peewee_mssql.py index <HASH>..<HASH> 100644 --- a/peewee_mssql.py +++ b/peewee_mssql.py @@ -76,10 +76,11 @@ class MssqlQueryCompiler(QueryCompiler): # NO OFFSET SUPPORT - for_update, no_wait = query._for_update - if for_update: - stmt = 'FOR UPDATE NO...
Fix Select queries that don't have _for_update Without this change, regular select queries based on generated models fail
py
diff --git a/src/tea/scm/hg.py b/src/tea/scm/hg.py index <HASH>..<HASH> 100644 --- a/src/tea/scm/hg.py +++ b/src/tea/scm/hg.py @@ -99,9 +99,11 @@ class Hg(object): ['--user', user] if user is not None else []) return self._hg('commit', *args) - def push(self): + def push(self, new_branc...
Adding --new-branch to push command
py
diff --git a/httprunner/task.py b/httprunner/task.py index <HASH>..<HASH> 100644 --- a/httprunner/task.py +++ b/httprunner/task.py @@ -25,6 +25,8 @@ class TestCase(unittest.TestCase): """ try: self.test_runner.run_test(self.testcase_dict) + except exceptions.MyBaseFailure as ex: + ...
fix #<I>: distinguish failure and error
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -5,12 +5,12 @@ README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read() setup( name='pnc-cli', packages=find_packages(exclude=['test*']), - version='1.0.0', + version='1.0.1', descriptio...
pip considers <I> to be newer than <I> This reverts commit 1d<I>b2eb4f1fb<I>e<I>f7ac0e<I>fff<I>f1.
py
diff --git a/GPy/core/parameterization/parameterized.py b/GPy/core/parameterization/parameterized.py index <HASH>..<HASH> 100644 --- a/GPy/core/parameterization/parameterized.py +++ b/GPy/core/parameterization/parameterized.py @@ -197,9 +197,10 @@ class Parameterized(Parameterizable): raise RuntimeErro...
bug fix: the name of parameterable object is not removed when unlinking
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -33,7 +33,7 @@ if sys.version_info < (2, 7): install_requires.append('argparse>=0.8') setup( - name="WAL-E", + name="wal-e", version=VERSION, packages=find_packages(),
setup.py: downcase WAL-E to wal-e Continue the general conversion of machine-intended references to WAL-E to be lower case, much like the executable, package name, repository, and so on. It is still handy to have capitalized name (and WAL is an acronym anyway) because it makes references to WAL-E stand out in human-r...
py
diff --git a/metnet/sbml.py b/metnet/sbml.py index <HASH>..<HASH> 100644 --- a/metnet/sbml.py +++ b/metnet/sbml.py @@ -84,6 +84,13 @@ class SBMLDatabase(MetabolicDatabase): def get_compound_reactions(self, compound): return self._database.get_compound_reactions(compound) + def get_compound_name(self,...
sbml: Add method to get compound name
py
diff --git a/test/high_availability/test_motor_ha.py b/test/high_availability/test_motor_ha.py index <HASH>..<HASH> 100644 --- a/test/high_availability/test_motor_ha.py +++ b/test/high_availability/test_motor_ha.py @@ -874,8 +874,13 @@ class MotorTestReplicaSetAuth(MotorHATestCase): self.c = pymongo.mongo_repl...
MOTOR-<I>, fix tests for narrowed localhost exception. Brief hack while awaiting a PYTHON <I> backport to PyMongo <I>.x.
py
diff --git a/simpleai/search/viewers.py b/simpleai/search/viewers.py index <HASH>..<HASH> 100644 --- a/simpleai/search/viewers.py +++ b/simpleai/search/viewers.py @@ -49,22 +49,23 @@ class ConsoleViewer(DummyViewer): prompt = False if self.interactive: option = raw_input('> ')...
Empty option is correct (continue)
py
diff --git a/drf_auto_endpoint/endpoints.py b/drf_auto_endpoint/endpoints.py index <HASH>..<HASH> 100644 --- a/drf_auto_endpoint/endpoints.py +++ b/drf_auto_endpoint/endpoints.py @@ -1,5 +1,8 @@ +import json +import os from six import with_metaclass +from django.conf import settings as django_settings from django.u...
:heavy_plus_sign: if an endpoint has no fieldsets attribute, look for a fielsets.json file in the same directory and try to lead fieldsets from there
py
diff --git a/glue/segments.py b/glue/segments.py index <HASH>..<HASH> 100644 --- a/glue/segments.py +++ b/glue/segments.py @@ -501,7 +501,7 @@ class segmentlist(list): Return the intersection of the segmentlist and another. This operation is O(n). """ - return segmentlist(self[:]).__iand__(other) + return se...
Some performance improvements: don't make extra list copies.
py
diff --git a/django_socketio/views.py b/django_socketio/views.py index <HASH>..<HASH> 100644 --- a/django_socketio/views.py +++ b/django_socketio/views.py @@ -1,4 +1,6 @@ +from atexit import register + from datetime import datetime from traceback import print_exc @@ -8,11 +10,19 @@ from django_socketio import sig...
Added atexit cleanup handler to ensure on_finish signals are always sent.
py
diff --git a/tableschema/schema.py b/tableschema/schema.py index <HASH>..<HASH> 100644 --- a/tableschema/schema.py +++ b/tableschema/schema.py @@ -244,9 +244,7 @@ class Schema(object): except exceptions.ValidationError as exception: self.__errors = exception.errors if self.__strict: -...
Simplified exception raising in Schema
py
diff --git a/thinc/neural/__init__.py b/thinc/neural/__init__.py index <HASH>..<HASH> 100644 --- a/thinc/neural/__init__.py +++ b/thinc/neural/__init__.py @@ -0,0 +1 @@ +from ._classes.model import Model
import base Model class into thinc.neural.__init__
py
diff --git a/skosify/config.py b/skosify/config.py index <HASH>..<HASH> 100644 --- a/skosify/config.py +++ b/skosify/config.py @@ -168,11 +168,7 @@ def expand_curielike(namespaces, curie): return curie if ns in namespaces: - nsvalue = namespaces[ns] - try: - return URIRef(nsvalu...
Avoid Namespace.term as it may raise an Exception, depending on Python and rdflib versions
py
diff --git a/phoebe/frontend/bundle.py b/phoebe/frontend/bundle.py index <HASH>..<HASH> 100644 --- a/phoebe/frontend/bundle.py +++ b/phoebe/frontend/bundle.py @@ -494,7 +494,7 @@ class Bundle(Container): # got me an error system = self.get_system() if system is None: - return + ...
raise error on init failure in bundle
py
diff --git a/doxylink/sphinxcontrib/parsing.py b/doxylink/sphinxcontrib/parsing.py index <HASH>..<HASH> 100644 --- a/doxylink/sphinxcontrib/parsing.py +++ b/doxylink/sphinxcontrib/parsing.py @@ -38,9 +38,19 @@ arglist = Literal('(') + Group(ZeroOrMore(argument + Suppress(Literal(','))) + O full_symbol = (SkipTo('(')...
Add some documentation to the normalise funtion.
py
diff --git a/l/cli.py b/l/cli.py index <HASH>..<HASH> 100644 --- a/l/cli.py +++ b/l/cli.py @@ -32,7 +32,7 @@ def run(all, paths, recurse, output, stdout=stdout): I_hate_everything = [ - click.command(), + click.command(context_settings=dict(help_option_names=["-h", "--help"])), click.option( "-...
Support -h. Sigh.
py
diff --git a/example/drone_delivery/drone_delivery.py b/example/drone_delivery/drone_delivery.py index <HASH>..<HASH> 100644 --- a/example/drone_delivery/drone_delivery.py +++ b/example/drone_delivery/drone_delivery.py @@ -40,7 +40,7 @@ class Drone(object): self._log("Waiting for GPS Lock") - def takeof...
minor typos in the drone-delivery demo
py
diff --git a/tests/test_helpers.py b/tests/test_helpers.py index <HASH>..<HASH> 100644 --- a/tests/test_helpers.py +++ b/tests/test_helpers.py @@ -20,16 +20,6 @@ from apexpy import helpers ###============================================================================ -### Test constants -###======================...
removed unneeded test Removed test for constants that no longer exist
py
diff --git a/brome/core/model/basetest.py b/brome/core/model/basetest.py index <HASH>..<HASH> 100644 --- a/brome/core/model/basetest.py +++ b/brome/core/model/basetest.py @@ -520,8 +520,9 @@ class BaseTest(object): if not self.load_state(): if hasattr(self, 'create_state'): - ...
Don't save state when ret is false
py
diff --git a/tests/test_mapper.py b/tests/test_mapper.py index <HASH>..<HASH> 100644 --- a/tests/test_mapper.py +++ b/tests/test_mapper.py @@ -59,6 +59,16 @@ class MapTest(unittest.TestCase): def test_31_MapColumn(self): mc = mod_map.MapColumn('table,column,data_type,aikif_map,aikif_map_name,extract,forma...
tests for mapper MapColumn to ensure variables are set
py
diff --git a/ccmlib/node.py b/ccmlib/node.py index <HASH>..<HASH> 100644 --- a/ccmlib/node.py +++ b/ccmlib/node.py @@ -1274,6 +1274,16 @@ class Node(object): def _update_pid(self, process): pidfile = os.path.join(self.get_path(), 'cassandra.pid') + + #Wait for 2.5 s for the pid to be set + ...
Wait for pid. An issue when no_wait is used
py
diff --git a/code/macroeco/empirical.py b/code/macroeco/empirical.py index <HASH>..<HASH> 100644 --- a/code/macroeco/empirical.py +++ b/code/macroeco/empirical.py @@ -221,9 +221,9 @@ class Patch: sp_width = wh[0] sp_height = wh[1] x_origins = np.arange(self.x_min, self.x_max - s...
Fix bug in range of origins for SAR_sample
py
diff --git a/cotyledon/_service_manager.py b/cotyledon/_service_manager.py index <HASH>..<HASH> 100644 --- a/cotyledon/_service_manager.py +++ b/cotyledon/_service_manager.py @@ -254,6 +254,7 @@ class ServiceManager(_utils.SignalManager): def _shutdown(self): LOG.info('Caught SIGTERM signal, graceful exit...
We don't care about child status when we exit Some times master process exists take a long time, because it try to start new worker during the shutdown procedure. This change ignores the children status during the shutdown process.
py
diff --git a/distob/arrays.py b/distob/arrays.py index <HASH>..<HASH> 100644 --- a/distob/arrays.py +++ b/distob/arrays.py @@ -369,10 +369,11 @@ class DistArray(object): nonconstant_ix_axes = [] for j in range(idim): n = distix.shape[j] - partix ...
fix edge case of an index array with an axis of length zero
py
diff --git a/graphene_gae/webapp2/__init__.py b/graphene_gae/webapp2/__init__.py index <HASH>..<HASH> 100644 --- a/graphene_gae/webapp2/__init__.py +++ b/graphene_gae/webapp2/__init__.py @@ -10,8 +10,8 @@ __author__ = 'ekampf' class GraphQLHandler(webapp2.RequestHandler): def post(self): - schema = self....
Allow overriding schema and pretty settings in deruve
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ TEST_DEPENDENCIES = [ # (example breakage: https://gitlab.com/pycqa/flake8/issues/427) 'flake8~=3.8.4', 'pycodestyle~=2.6.0', - 'mypy>=0.910', + 'mypy==0.942', 'pytest~=6.2.4', ]
Pin mypy to the latest working version This is a workaround
py
diff --git a/shinken/scheduler.py b/shinken/scheduler.py index <HASH>..<HASH> 100644 --- a/shinken/scheduler.py +++ b/shinken/scheduler.py @@ -363,6 +363,11 @@ class Scheduler(object): if f: # print("found action for %s: %s" % (elt.__class__.__name__, f.__name__)) f(self, elt) + ...
Enh: add a warning if Scheduler.add() called with an unmanaged object type
py
diff --git a/ella/photos/models.py b/ella/photos/models.py index <HASH>..<HASH> 100644 --- a/ella/photos/models.py +++ b/ella/photos/models.py @@ -94,7 +94,7 @@ class Photo(models.Model): # cache thumbnail for future use to avoid hitting storage.exists() every time # and to allow thumbnail detection a...
Account for photos uploaded locally. Refs #<I>
py
diff --git a/falafel/core/evaluators.py b/falafel/core/evaluators.py index <HASH>..<HASH> 100644 --- a/falafel/core/evaluators.py +++ b/falafel/core/evaluators.py @@ -273,8 +273,8 @@ class MultiEvaluator(Evaluator): class InsightsEvaluator(SingleEvaluator): - def __init__(self, spec_mapping, url="not set", syst...
Minor arg tidy-up (mapping->mapper) for consistency
py
diff --git a/test_howdoi.py b/test_howdoi.py index <HASH>..<HASH> 100644 --- a/test_howdoi.py +++ b/test_howdoi.py @@ -22,12 +22,20 @@ class HowdoiTestCase(unittest.TestCase): return howdoi.howdoi(query) def setUp(self): + self.original_get_result = howdoi._get_result def side_effect(url...
ensured cache file is created when a new test url is hit
py
diff --git a/salt/log/setup.py b/salt/log/setup.py index <HASH>..<HASH> 100644 --- a/salt/log/setup.py +++ b/salt/log/setup.py @@ -51,7 +51,7 @@ LOG_LEVELS = { # Make a list of log level names sorted by log level SORTED_LEVEL_NAMES = [ - l[0] for l in sorted(list(LOG_LEVELS.items()), key=lambda x: x[1]) + l[0...
List call not needed. Changing it back to what it was
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -17,8 +17,8 @@ setup( author="Alexei Boronine", license="MIT", author_email="alexei.boronine@gmail.com", - url="http://github.com/alexeiboronine/discipline", - download_url="http://github.com/alexeiboronin...
Update URLs in setup.py.
py
diff --git a/netmiko/base_connection.py b/netmiko/base_connection.py index <HASH>..<HASH> 100644 --- a/netmiko/base_connection.py +++ b/netmiko/base_connection.py @@ -111,9 +111,9 @@ class BaseConnection(object): raise ValueError("Either ip or host must be set") if port is None: if 't...
Fixing a couple of bugs from serial integration
py
diff --git a/python/ray/autoscaler/gcp/config.py b/python/ray/autoscaler/gcp/config.py index <HASH>..<HASH> 100644 --- a/python/ray/autoscaler/gcp/config.py +++ b/python/ray/autoscaler/gcp/config.py @@ -267,6 +267,12 @@ def _configure_key_pair(config): def _configure_subnet(config): """Pick a reasonable subnet if...
gcp allow manual network configuration (#<I>)
py
diff --git a/src/webargs/core.py b/src/webargs/core.py index <HASH>..<HASH> 100644 --- a/src/webargs/core.py +++ b/src/webargs/core.py @@ -269,6 +269,10 @@ class Parser: error_status_code=error_status_code, error_headers=error_headers, ) + warnings.warn( + ...
Add a warning if validation errors are suppressed We can't be certain that the user doesn't know what they're doing in this case. It's conceivable that they have a validation hook which doesn't raise an error and they're prepared for `parse()` to return `None`. However, in that case, it would be beneficial to at least...
py
diff --git a/eth/rlp/headers.py b/eth/rlp/headers.py index <HASH>..<HASH> 100644 --- a/eth/rlp/headers.py +++ b/eth/rlp/headers.py @@ -144,9 +144,7 @@ class BlockHeader(rlp.Serializable): nonce=nonce, ) - #TODO implement long repr in Serializeable (or is it already there??) - # implement t...
Move shorter Header __repr__ string to __str__ Use new default repr that will come with the next release of RLP, but keep the short version as __str__. This fits with the semi-standard of short visually useful str, and a complete readout via repr. Remove comment about RLP, proposed in: <URL>
py
diff --git a/samples/api-python-client-doc/main.py b/samples/api-python-client-doc/main.py index <HASH>..<HASH> 100755 --- a/samples/api-python-client-doc/main.py +++ b/samples/api-python-client-doc/main.py @@ -65,6 +65,9 @@ class MainHandler(webapp.RequestHandler): <li><a href='/buzz/v1'>buzz</a> <li><a ...
Updated api-python-client-doc application to list the three new APIs
py
diff --git a/spyderlib/spyder.py b/spyderlib/spyder.py index <HASH>..<HASH> 100644 --- a/spyderlib/spyder.py +++ b/spyderlib/spyder.py @@ -938,23 +938,26 @@ class MainWindow(QMainWindow): # Eventually tabify new figure (if last figure is docked) if self.widgetlist: ...
Matplotlib figures integration: changed figure creation behavior -- when figure are set as dockable + tabified, opening the first figure as a floating window (i.e. undocked)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -26,6 +26,7 @@ class TestCommand(Command): 'django.contrib.contenttypes', 'bakery', ) + BUILD_DIR="./build/" ) from django.core.management import call...
Added BUILD_DIR to setup.py tests
py
diff --git a/tests/test_metadata.py b/tests/test_metadata.py index <HASH>..<HASH> 100644 --- a/tests/test_metadata.py +++ b/tests/test_metadata.py @@ -109,7 +109,7 @@ class SchemaMetadataTest(unittest.TestCase): self.cluster.control_connection.refresh_schema() meta = self.cluster.metadata - s...
Update Metadata test for cluster weak reference
py
diff --git a/vyper/types/types.py b/vyper/types/types.py index <HASH>..<HASH> 100644 --- a/vyper/types/types.py +++ b/vyper/types/types.py @@ -175,8 +175,6 @@ def canonicalize_type(t, is_indexed=False): return 'int256' elif t == 'address' or t == 'bytes32': return t - elif t == 'real': - ...
Remove obsolete ABI type "real" and "real<I>x<I>"
py
diff --git a/src/pybel_tools/query.py b/src/pybel_tools/query.py index <HASH>..<HASH> 100644 --- a/src/pybel_tools/query.py +++ b/src/pybel_tools/query.py @@ -88,7 +88,7 @@ class Query: ) # TODO streamline this logging... maybe put in get_subgraph function - log.info( ...
Tone down that logging Dammmmnnn @ddomingof there was a lot of output from this
py
diff --git a/factory/base.py b/factory/base.py index <HASH>..<HASH> 100644 --- a/factory/base.py +++ b/factory/base.py @@ -660,6 +660,14 @@ class DjangoModelFactory(Factory): return target_class._default_manager.create(*args, **kwargs) +class MogoFactory(Factory): + """Factory for mogo objects.""" + ...
Add MogoFactory. A Factory subclass, along the lines of DjangoModelFactory.
py
diff --git a/metrique/client/cubes/basesql.py b/metrique/client/cubes/basesql.py index <HASH>..<HASH> 100644 --- a/metrique/client/cubes/basesql.py +++ b/metrique/client/cubes/basesql.py @@ -227,8 +227,13 @@ class BaseSql(BaseCube): if isinstance(mtime_columns, basestring): ...
hack to reduce inconsistencies; delta resolution is to the minute rather than to the second
py
diff --git a/jungle/ec2.py b/jungle/ec2.py index <HASH>..<HASH> 100644 --- a/jungle/ec2.py +++ b/jungle/ec2.py @@ -23,7 +23,10 @@ def format_output(instances, flag): def _get_max_name_len(instances): - return max([len(get_tag_value(i.tags, 'Name')) for i in instances]) + # FIXME: ec2.instanceCollection doesn...
Return 0 from _get_max_name_len if there is no instance
py
diff --git a/tabular_predDB/HadoopEngine.py b/tabular_predDB/HadoopEngine.py index <HASH>..<HASH> 100644 --- a/tabular_predDB/HadoopEngine.py +++ b/tabular_predDB/HadoopEngine.py @@ -307,6 +307,7 @@ def read_hadoop_output(output_path, copy_to_filename=None): if copy_to_filename is not None: cmd_str = 'cp %s...
BUGFIX: actually read hadoop_output from hadoop_output_filename
py
diff --git a/articledownloader/articledownloader.py b/articledownloader/articledownloader.py index <HASH>..<HASH> 100644 --- a/articledownloader/articledownloader.py +++ b/articledownloader/articledownloader.py @@ -298,8 +298,6 @@ class ArticleDownloader: return False return False - return False ...
fix ecs remove return statements preventing ecs and aaac access
py
diff --git a/salt/states/postgres_user.py b/salt/states/postgres_user.py index <HASH>..<HASH> 100644 --- a/salt/states/postgres_user.py +++ b/salt/states/postgres_user.py @@ -191,8 +191,9 @@ def present(name, if isinstance(groups, (six.string_types, six.text_type)): lgroups = lgroups.split...
better change reporting for postgres_user groups
py
diff --git a/pymouse/windows.py b/pymouse/windows.py index <HASH>..<HASH> 100644 --- a/pymouse/windows.py +++ b/pymouse/windows.py @@ -57,6 +57,7 @@ class PyMouseEvent(PyMouseEventMeta): def run(self): self.hm.MouseAllButtons = self._click self.hm.MouseMove = self._move + #I think I can ad...
Added a note, as a reminder, that I can add scrolling support
py
diff --git a/nodeconductor/structure/executors.py b/nodeconductor/structure/executors.py index <HASH>..<HASH> 100644 --- a/nodeconductor/structure/executors.py +++ b/nodeconductor/structure/executors.py @@ -125,7 +125,7 @@ class SynchronizableUpdateExecutor(SynchronizableExecutorMixin, ErrorExecutorMix """ ...
Remove async kwarg from pre apply methods - nc-<I>
py
diff --git a/pycbc/waveform/waveform.py b/pycbc/waveform/waveform.py index <HASH>..<HASH> 100644 --- a/pycbc/waveform/waveform.py +++ b/pycbc/waveform/waveform.py @@ -651,14 +651,14 @@ def get_waveform_filter(out, template=None, **kwargs): wav_gen = filter_wav[type(_scheme.mgr.state)] htilde = wav_gen...
set chirp length for SPA and FD waveforms not ttotal
py
diff --git a/demos/dlgr/demos/mcmcp/experiment.py b/demos/dlgr/demos/mcmcp/experiment.py index <HASH>..<HASH> 100644 --- a/demos/dlgr/demos/mcmcp/experiment.py +++ b/demos/dlgr/demos/mcmcp/experiment.py @@ -49,7 +49,7 @@ class MCMCP(Experiment): def create_network(self): """Create a new network.""" - ...
Fix mcmcp to terminate in debug mode
py
diff --git a/wafer/schedule/admin.py b/wafer/schedule/admin.py index <HASH>..<HASH> 100644 --- a/wafer/schedule/admin.py +++ b/wafer/schedule/admin.py @@ -467,8 +467,18 @@ class SlotAdmin(CompareVersionAdmin): # Register and setup reversion support for Blocks and Venues +class ScheduleBlockAdminForm(forms.ModelFor...
Use same time selector for blocks as we use for slots
py
diff --git a/test/full_tst.py b/test/full_tst.py index <HASH>..<HASH> 100644 --- a/test/full_tst.py +++ b/test/full_tst.py @@ -283,11 +283,5 @@ class fullTest(AlignakTest): #[ok] get_raw_stats - #def test_daemons_inputs(self): - # """ - # We test alignak function have connection.get('xx')....
Fix: Tests - Reenable full tst
py
diff --git a/src/toil/test/provisioners/aws/awsProvisionerTest.py b/src/toil/test/provisioners/aws/awsProvisionerTest.py index <HASH>..<HASH> 100644 --- a/src/toil/test/provisioners/aws/awsProvisionerTest.py +++ b/src/toil/test/provisioners/aws/awsProvisionerTest.py @@ -71,7 +71,7 @@ class AWSProvisionerTest(ToilTest):...
Increase AWS test retry count (connected to #<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ requires = ["requests == 1.2.3"] setup( name='octopie', - version='0.0.10', + version='0.0.11', description='Python GitHub API Client', author='Steven Cheng', author_email='stevenc81...
Added <I> seconds connection timeout to each api request
py
diff --git a/stored_messages/tests/settings.py b/stored_messages/tests/settings.py index <HASH>..<HASH> 100644 --- a/stored_messages/tests/settings.py +++ b/stored_messages/tests/settings.py @@ -41,6 +41,23 @@ MIDDLEWARE_CLASSES = ( 'django.middleware.security.SecurityMiddleware', ) +# Django 1.10 requires the ...
adding default TEMPLATES setting, required in Django <I> (tests)
py
diff --git a/adafruit_platformdetect/__init__.py b/adafruit_platformdetect/__init__.py index <HASH>..<HASH> 100644 --- a/adafruit_platformdetect/__init__.py +++ b/adafruit_platformdetect/__init__.py @@ -116,7 +116,7 @@ class Detector: except FileNotFoundError: pass - return model + ...
Fixed the last one-off space I missed last time.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ setup( keywords='functional LINQ pipeline data collection rdd scala', packages=find_packages(exclude=['contrib', 'docs', 'tests*', 'test']), version='0.6.0', - install_requires=['future', 'six'...
Add dill to install_requires
py
diff --git a/focus/plugin/modules/stats.py b/focus/plugin/modules/stats.py index <HASH>..<HASH> 100644 --- a/focus/plugin/modules/stats.py +++ b/focus/plugin/modules/stats.py @@ -185,7 +185,7 @@ class Stats(base.Plugin): return time_str if not stats: - env.io.error('No stats to displa...
Updated message for no stats found.
py