diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/wsgiservice/resource.py b/wsgiservice/resource.py index <HASH>..<HASH> 100644 --- a/wsgiservice/resource.py +++ b/wsgiservice/resource.py @@ -426,6 +426,11 @@ class Help(Resource): 'methods': self._get_methods(res), 'path': self.request.script_name + res._path, ...
resource.py (Help.GET): Sort the resources by name.
py
diff --git a/heartbeat/heartbeat.py b/heartbeat/heartbeat.py index <HASH>..<HASH> 100644 --- a/heartbeat/heartbeat.py +++ b/heartbeat/heartbeat.py @@ -16,18 +16,8 @@ class Challenge(object): of a specific file. """ - def __init__(self, position, seed): - self.position = position - self.seed...
Redo init meth with docstring, remove unneeded get methods (use properties instead)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -261,8 +261,8 @@ def get_version_info(): # If this is a release or another kind of source distribution of PyCBC except: - version = '1.6.1' - release = 'True' + version = '1.7.0dev' + re...
Set back to development (#<I>)
py
diff --git a/knowledgebase/dashboard/views.py b/knowledgebase/dashboard/views.py index <HASH>..<HASH> 100644 --- a/knowledgebase/dashboard/views.py +++ b/knowledgebase/dashboard/views.py @@ -20,8 +20,15 @@ class DashboardHomeView(LoginRequiredMixin, def get_context_data(self, **kwargs): context = super(...
Improve the SQL queries in the dashboard home
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -5,8 +5,8 @@ import os def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() -README = read('README.rst') -CHANGES = read('CHANGES.rst') +README = read('README.md') +# CHANGES = read('CHAN...
Using md, not rst, for docs
py
diff --git a/rarfile.py b/rarfile.py index <HASH>..<HASH> 100644 --- a/rarfile.py +++ b/rarfile.py @@ -709,8 +709,13 @@ class RarFile(object): def _parse_ext_time(self, h, pos): data = h.header_data - flags = unpack("<H", data[pos : pos + 2])[0] - pos += 2 + + # flags and rest of da...
Support EXTTIME with no data. Can happen, unrar thinks it's valid. Just a way to set .mtime?
py
diff --git a/beets/mediafile.py b/beets/mediafile.py index <HASH>..<HASH> 100644 --- a/beets/mediafile.py +++ b/beets/mediafile.py @@ -589,7 +589,9 @@ class MediaFile(object): @property def bitrate(self): - if self.type == 'flac': + if self.type in ('flac', 'ape'): + # Simulate bitr...
read-only metadata (length & bitrate) support for ogg and ape Original: beetbox/beets@4be6eda
py
diff --git a/djangoql/admin.py b/djangoql/admin.py index <HASH>..<HASH> 100644 --- a/djangoql/admin.py +++ b/djangoql/admin.py @@ -23,9 +23,12 @@ except ImportError: # Django 2.0 from django.urls import reverse try: - from django.urls import re_path -except ImportError: # Django <2.0 - from django.conf....
Update import django re_path to support Django <I>
py
diff --git a/airflow/jobs.py b/airflow/jobs.py index <HASH>..<HASH> 100644 --- a/airflow/jobs.py +++ b/airflow/jobs.py @@ -1101,7 +1101,7 @@ class SchedulerJob(BaseJob): task_instances_to_examine = ti_query.all() if len(task_instances_to_examine) == 0: - self.log.info("No tasks to conside...
[AIRFLOW-<I>] Make No tasks to consider for execution debug (#<I>) During normal operation, it is not necessary to see the message. This can only be useful when debugging an issue.
py
diff --git a/tools/mpy-tool.py b/tools/mpy-tool.py index <HASH>..<HASH> 100755 --- a/tools/mpy-tool.py +++ b/tools/mpy-tool.py @@ -287,7 +287,9 @@ class RawCode: # generate constant objects for i, obj in enumerate(self.objs): obj_name = 'const_obj_%s_%u' % (self.escaped_name, i) - ...
tools/mpy-tool.py: Implement freezing of Ellipsis const object.
py
diff --git a/guanciale/config.py b/guanciale/config.py index <HASH>..<HASH> 100644 --- a/guanciale/config.py +++ b/guanciale/config.py @@ -24,6 +24,9 @@ def _downloadRadare(): return None files = r.text.split("\n") + try: os.mkdir(os.path.dirname(__file__), "radare2")) + except: pass + ...
added mkdir in config._downloadRadare
py
diff --git a/lib/methods/files.py b/lib/methods/files.py index <HASH>..<HASH> 100644 --- a/lib/methods/files.py +++ b/lib/methods/files.py @@ -7,6 +7,7 @@ import re from lib import utils from lib import configuration from lib.utils import validate_dict +from fabric.contrib.files import exists class FilesMethod(Ba...
#<I> Check if file exists before trying to download it
py
diff --git a/rqalpha/main.py b/rqalpha/main.py index <HASH>..<HASH> 100644 --- a/rqalpha/main.py +++ b/rqalpha/main.py @@ -335,10 +335,10 @@ def _exception_handler(e): user_system_log.error(e.error) if not is_user_exc(e.error.exc_val): code = const.EXIT_CODE.EXIT_INTERNAL_ERROR - system_log.ex...
fix exc_info is replace when trigger __repr__
py
diff --git a/setuptools/dist.py b/setuptools/dist.py index <HASH>..<HASH> 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -51,7 +51,7 @@ def get_metadata_version(dist_md): # Based on Python 3.5 version -def write_pkg_file(self, file, is_test=False): +def write_pkg_file(self, file): """Write the PK...
When possible, avoid test-specific interfaces in production code.
py
diff --git a/cycy/compiler.py b/cycy/compiler.py index <HASH>..<HASH> 100644 --- a/cycy/compiler.py +++ b/cycy/compiler.py @@ -1,7 +1,7 @@ from characteristic import Attribute, attributes from cycy import bytecode -from cycy.objects import W_Function, W_Int32 +from cycy.objects import W_Char, W_Function, W_Int32 f...
add compiler support for char constants
py
diff --git a/cauldron/ui/statuses/_utils.py b/cauldron/ui/statuses/_utils.py index <HASH>..<HASH> 100644 --- a/cauldron/ui/statuses/_utils.py +++ b/cauldron/ui/statuses/_utils.py @@ -29,7 +29,8 @@ def get_digest_hash(response_data: dict, force: bool = False) -> str: r = response_data.copy() r['timestamp'] = N...
Compatibility Allow for a fallback hash to be used for Python <I> compatibility.
py
diff --git a/spacy/__init__.py b/spacy/__init__.py index <HASH>..<HASH> 100644 --- a/spacy/__init__.py +++ b/spacy/__init__.py @@ -1,17 +1,10 @@ # coding: utf8 from __future__ import unicode_literals -import warnings - -# This is used to suppress numpy runtime warnings, which warn about irrelevant -# binary incompati...
Undoing warning suppression, as doesnt really work
py
diff --git a/salt/states/keystone.py b/salt/states/keystone.py index <HASH>..<HASH> 100644 --- a/salt/states/keystone.py +++ b/salt/states/keystone.py @@ -138,7 +138,8 @@ def user_present(name, **connection_args) ret['comment'] = 'User "{0}" has been updated'.f...
Fix adding tenant to keystone user with no previous tenant assigned
py
diff --git a/pyramid_webassets/tests/test_webassets.py b/pyramid_webassets/tests/test_webassets.py index <HASH>..<HASH> 100644 --- a/pyramid_webassets/tests/test_webassets.py +++ b/pyramid_webassets/tests/test_webassets.py @@ -183,7 +183,7 @@ class TestWebAssets(unittest.TestCase): with self.assertRaises(Excep...
Fixed two asserts in test when raising an exception They were inside the with, so they were never executed. (Thanks to the cov plugin for this one)
py
diff --git a/holoviews/plotting/bokeh/plot.py b/holoviews/plotting/bokeh/plot.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/bokeh/plot.py +++ b/holoviews/plotting/bokeh/plot.py @@ -190,7 +190,7 @@ class CompositePlot(BokehPlot): Should return a list of plot objects that have changed and shou...
Ensure bokeh CompositePlot.current_handles works when no title is defined
py
diff --git a/holoviews/plotting/bokeh/element.py b/holoviews/plotting/bokeh/element.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/bokeh/element.py +++ b/holoviews/plotting/bokeh/element.py @@ -29,14 +29,14 @@ class ElementPlot(BokehPlot, GenericElementPlot): Whether to invert the share axes across pl...
Changed Bokeh default title color and size
py
diff --git a/tldap/backend/base.py b/tldap/backend/base.py index <HASH>..<HASH> 100644 --- a/tldap/backend/base.py +++ b/tldap/backend/base.py @@ -165,6 +165,9 @@ class LDAPbase(object): # Loop over list of search results for result_item in result_list: + # skip searchResRef for now + ...
Skip searchResRef results. We don't support referrals. Yet. Change-Id: Ieb4a<I>bb<I>b9ae4c5e<I>fbf9d<I>b<I>
py
diff --git a/mfaliquot/theory/numtheory.py b/mfaliquot/theory/numtheory.py index <HASH>..<HASH> 100755 --- a/mfaliquot/theory/numtheory.py +++ b/mfaliquot/theory/numtheory.py @@ -592,8 +592,8 @@ def sigma(n): n = _positive(n, "sigma") # Check that n is a positive int if not isinstance(n, Factors): n = facto...
"Fixes" to silly ways of iterating over dicts (really, really old code, from when I was just starting with python)
py
diff --git a/httpagentparser/__init__.py b/httpagentparser/__init__.py index <HASH>..<HASH> 100644 --- a/httpagentparser/__init__.py +++ b/httpagentparser/__init__.py @@ -242,8 +242,13 @@ class Android(Dist): look_for = 'Android' def getVersion(self, agent): - return agent.split('Android')[-1].split(...
Android phone / tablet differentiation Added a check to differentiate between Android phones and tablets.
py
diff --git a/src/sos/workflow_executor.py b/src/sos/workflow_executor.py index <HASH>..<HASH> 100755 --- a/src/sos/workflow_executor.py +++ b/src/sos/workflow_executor.py @@ -1003,7 +1003,7 @@ class Base_Executor: # if the job is failed elif isinstance(res, Exception): ...
Stop displaying an error message because it will be added to exec_error later #<I>
py
diff --git a/openquake/risklib/riskinput.py b/openquake/risklib/riskinput.py index <HASH>..<HASH> 100644 --- a/openquake/risklib/riskinput.py +++ b/openquake/risklib/riskinput.py @@ -59,7 +59,9 @@ def read_composite_risk_model(dstore): for lt in rm: rf = dstore['%s/%s/%s' % (riskmodel, quo...
Added a comment [skip CI] Former-commit-id: a1d6b<I>f1ac<I>d<I>b<I>e<I>fc9e6c<I>a<I>b<I>c
py
diff --git a/dvc/daemon.py b/dvc/daemon.py index <HASH>..<HASH> 100644 --- a/dvc/daemon.py +++ b/dvc/daemon.py @@ -94,7 +94,7 @@ def daemon(args): cmd = [sys.executable] if not is_binary(): - cmd += ["-m", "dvc"] + cmd += [sys.argv[0]] cmd += ["daemon", "-q"] + args env = fix_env()
daemon: use `sys.argv[0]` instead of `-m dvc` This way dvc will actually launch the same script that it is running from and not installed dvc module, that might not match.
py
diff --git a/synapse/tests/test_lib_heap.py b/synapse/tests/test_lib_heap.py index <HASH>..<HASH> 100644 --- a/synapse/tests/test_lib_heap.py +++ b/synapse/tests/test_lib_heap.py @@ -136,6 +136,10 @@ class HeapTest(SynTest): self.eq(rand, byts) + # Attempt reading past the atomfile +...
Add a test for reading past maxsize and throwing a BadHeapFile exception
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 @@ -1,12 +1,21 @@ +import vcr import pandas +import pytest +from sharepa.search import ShareSearch from sharepa.helpers import pretty_print from sharepa.helpers import sour...
Add pytest fail check on raising pretty print exeption
py
diff --git a/src/transformers/benchmark/benchmark_utils.py b/src/transformers/benchmark/benchmark_utils.py index <HASH>..<HASH> 100644 --- a/src/transformers/benchmark/benchmark_utils.py +++ b/src/transformers/benchmark/benchmark_utils.py @@ -807,7 +807,7 @@ class Benchmark(ABC): else: ...
fix print in benchmark (#<I>)
py
diff --git a/sprinter/directory.py b/sprinter/directory.py index <HASH>..<HASH> 100644 --- a/sprinter/directory.py +++ b/sprinter/directory.py @@ -5,6 +5,10 @@ packages to different locations. """ import os +rc_template = \ +""" +export PATH=%s:$PATH +""" class Directory(object): @@ -57,7 +61,8 @@ class Direc...
adding default configs to .rc file in a sprinter project
py
diff --git a/bika/lims/content/duplicateanalysis.py b/bika/lims/content/duplicateanalysis.py index <HASH>..<HASH> 100644 --- a/bika/lims/content/duplicateanalysis.py +++ b/bika/lims/content/duplicateanalysis.py @@ -160,7 +160,7 @@ class DuplicateAnalysis(Analysis): range_min = orig - (orig * variation / 100)...
Duplicate variation calculates against original analysis value
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ tests_require = [ ] -version = (1, 0, 0, 'alpha') +version = (1, 1, 0, 'alpha') def get_version():
Version in setup.py on the master branch is out of date The version in setup.py on the master branch is <I> even though it includes all the commits in later stable releases.
py
diff --git a/noseprogressive/plugin.py b/noseprogressive/plugin.py index <HASH>..<HASH> 100644 --- a/noseprogressive/plugin.py +++ b/noseprogressive/plugin.py @@ -109,11 +109,6 @@ class ProgressivePlugin(Plugin): # Exception: self.stream.write(''.join(format_exception_only(exception_type, exce...
Delete printErrors(), which never gets called.
py
diff --git a/mongo_orchestration/replica_sets.py b/mongo_orchestration/replica_sets.py index <HASH>..<HASH> 100644 --- a/mongo_orchestration/replica_sets.py +++ b/mongo_orchestration/replica_sets.py @@ -552,7 +552,7 @@ class ReplicaSet(BaseModel): def check_member_state(self): """Verify that all RS memb...
Bug fix: STARTUP (0) is not an acceptable state
py
diff --git a/libact/query_strategies/query_by_committee.py b/libact/query_strategies/query_by_committee.py index <HASH>..<HASH> 100644 --- a/libact/query_strategies/query_by_committee.py +++ b/libact/query_strategies/query_by_committee.py @@ -1,4 +1,5 @@ from libact.base.interfaces import QueryStrategy +import libact....
QueryByCommittee support class names in models list in constructor
py
diff --git a/hangups/javascript.py b/hangups/javascript.py index <HASH>..<HASH> 100644 --- a/hangups/javascript.py +++ b/hangups/javascript.py @@ -70,6 +70,7 @@ class JavaScriptLexer(purplex.Lexer): """Lexer for a subset of JavaScript.""" # TODO negatives? floats? INTEGER = purplex.TokenDef(r'\d+') + ...
Add FLOAT token to Javascript lexer
py
diff --git a/purplex/parse.py b/purplex/parse.py index <HASH>..<HASH> 100644 --- a/purplex/parse.py +++ b/purplex/parse.py @@ -65,7 +65,8 @@ class Parser(metaclass=ParserBase): def _build(self, start, debug): magic = MagicParser() - magic.tokens = list(self.LEXER.tokens.keys()) + magic.tok...
Ignored Tokens are not longer passed to PLY.yacc
py
diff --git a/src/hamster/edit_activity.py b/src/hamster/edit_activity.py index <HASH>..<HASH> 100644 --- a/src/hamster/edit_activity.py +++ b/src/hamster/edit_activity.py @@ -149,11 +149,10 @@ class CustomFactController(gobject.GObject): return description.strip() def on_save_button_clicked(self, button...
use self.fact directly on save self.facts has already been validated.
py
diff --git a/models.py b/models.py index <HASH>..<HASH> 100755 --- a/models.py +++ b/models.py @@ -1,4 +1,5 @@ from django.db import models +from django.db.models import Q from django.contrib.auth.models import AbstractBaseUser from django.utils import timezone @@ -48,12 +49,22 @@ class AbstractSoftDelete(models.M...
Added ability to set date_deleted when soft-deleting; added convenience Q creators.
py
diff --git a/storage/tests/system.py b/storage/tests/system.py index <HASH>..<HASH> 100644 --- a/storage/tests/system.py +++ b/storage/tests/system.py @@ -1683,6 +1683,7 @@ class TestIAMConfiguration(unittest.TestCase): with self.assertRaises(exceptions.BadRequest): blob_acl.save() + @unittes...
Skip failing 'test_bpo_set_unset_preserves_acls' systest. (#<I>) Back-end fix for the issue expected <I>-<I>-<I>. See #<I>.
py
diff --git a/flask_apidoc/commands.py b/flask_apidoc/commands.py index <HASH>..<HASH> 100644 --- a/flask_apidoc/commands.py +++ b/flask_apidoc/commands.py @@ -40,4 +40,8 @@ class GenerateApiDoc(Command): cmd.append('--template') cmd.append(self.template_path) - return subprocess.call(...
Send to STDOUT the output from apidoc #<I>
py
diff --git a/smeftrunner/classes.py b/smeftrunner/classes.py index <HASH>..<HASH> 100644 --- a/smeftrunner/classes.py +++ b/smeftrunner/classes.py @@ -44,6 +44,12 @@ class SMEFT(object): C = definitions.symmetrize(C) self.C_in = C + def load_wcxf(self, stream): + wc = wcxf.WC.load(stream) ...
Add WCxf load method to SMEFT class
py
diff --git a/tests/test-empty-results.py b/tests/test-empty-results.py index <HASH>..<HASH> 100644 --- a/tests/test-empty-results.py +++ b/tests/test-empty-results.py @@ -9,7 +9,8 @@ URL = "https://indianexpress.com/section/lifestyle/health/feed/" class Test(unittest.TestCase): def test_empty_result(self): - ...
Update test (endpoint was no longer result-less)
py
diff --git a/__init__.py b/__init__.py index <HASH>..<HASH> 100644 --- a/__init__.py +++ b/__init__.py @@ -15,5 +15,5 @@ __revision__ = "$Id$" # Updated automatically by the Python release process. # #--start constants-- -__version__ = "3.2b2" +__version__ = "3.2rc1" #--end constants--
Bump to <I>rc1.
py
diff --git a/tests/manual_test.py b/tests/manual_test.py index <HASH>..<HASH> 100644 --- a/tests/manual_test.py +++ b/tests/manual_test.py @@ -1,31 +1,16 @@ #!/usr/bin/env python -import sys - -if sys.version_info[0] >= 3: - raise NotImplementedError('Py3 not supported in this test yet') +import sys import os i...
Allow the test to fail on its own merits rather than failing with a not-so-useful message; removed Python <I> support.
py
diff --git a/marrow/util/text.py b/marrow/util/text.py index <HASH>..<HASH> 100644 --- a/marrow/util/text.py +++ b/marrow/util/text.py @@ -52,3 +52,35 @@ def wrap(text, columns=78): lines.append(oline) return "\n".join(lines) + + +def rewrap(text, columns=78): + lines = [] + + if i...
Added rewrap function (which unwraps e.g. docstring text before wrapping at new limit).
py
diff --git a/taxi/__init__.py b/taxi/__init__.py index <HASH>..<HASH> 100644 --- a/taxi/__init__.py +++ b/taxi/__init__.py @@ -1 +1 @@ -__version__ = '3.0' +__version__ = '3.0.1'
update version number to <I>
py
diff --git a/bumpversion/version_part.py b/bumpversion/version_part.py index <HASH>..<HASH> 100644 --- a/bumpversion/version_part.py +++ b/bumpversion/version_part.py @@ -258,11 +258,10 @@ class VersionConfig: self._serialize( version, serialize_format, context, raise_if_incomplete...
Cleanup: improve readability of the if-statement
py
diff --git a/zengine/engine.py b/zengine/engine.py index <HASH>..<HASH> 100644 --- a/zengine/engine.py +++ b/zengine/engine.py @@ -210,7 +210,11 @@ class WFCurrent(Current): filters = self.input.get('filters', {}) try: - self.task_data['object_id'] = filters.get('object_id')['values'][0] ...
fixed setting of object_id into task_data
py
diff --git a/dataflows/base/datastream_processor.py b/dataflows/base/datastream_processor.py index <HASH>..<HASH> 100644 --- a/dataflows/base/datastream_processor.py +++ b/dataflows/base/datastream_processor.py @@ -1,6 +1,7 @@ import logging import itertools import collections +import copy from datapackage import...
Prevent datapackage leaking across steps
py
diff --git a/sos/plugins/rabbitmq.py b/sos/plugins/rabbitmq.py index <HASH>..<HASH> 100644 --- a/sos/plugins/rabbitmq.py +++ b/sos/plugins/rabbitmq.py @@ -60,5 +60,8 @@ class RabbitMQ(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): "/var/log/containers/rabbitmq/*" ], sizelimit=self.get_option('...
[rabbitmq] Mask default password in rabbitmq.conf Use do_file_sub() to mask the default password in the config file /etc/rabbitmq/rabbitmq.conf, and solve issue #<I>. Fixes: #<I> Closes: #<I>
py
diff --git a/pysat/_instrument.py b/pysat/_instrument.py index <HASH>..<HASH> 100644 --- a/pysat/_instrument.py +++ b/pysat/_instrument.py @@ -271,6 +271,7 @@ class Instrument(object): # use Instrument definition of MetaLabels over the Metadata declaration self.meta_labels = labels self.meta ...
BUG: Ensured meta object immutable upon Instrument instantiation
py
diff --git a/pymbar/tests/test_mbar_solvers.py b/pymbar/tests/test_mbar_solvers.py index <HASH>..<HASH> 100644 --- a/pymbar/tests/test_mbar_solvers.py +++ b/pymbar/tests/test_mbar_solvers.py @@ -48,7 +48,7 @@ def test_solvers(statesa, statesb, test_system): "TNC", "trust-ncg", "trust-krylov",...
Mark the one protocol test which can sthocastically fail on windows only as flaky
py
diff --git a/payu/models/fms.py b/payu/models/fms.py index <HASH>..<HASH> 100644 --- a/payu/models/fms.py +++ b/payu/models/fms.py @@ -10,6 +10,7 @@ import multiprocessing import os import resource as res import shlex +import shutil import subprocess as sp import sys from itertools import count @@ -72,18 +73,13 @...
Changed fms driver to use shutil calls
py
diff --git a/woven/deployment.py b/woven/deployment.py index <HASH>..<HASH> 100644 --- a/woven/deployment.py +++ b/woven/deployment.py @@ -117,7 +117,7 @@ def deploy_files(local_dir, remote_dir, pattern = '',rsync_exclude=['*.pyc','.*' #resolve pattern into a dir:filename dict local_files = _get_local_files(l...
fixed up deploy_files to remove redundant context
py
diff --git a/salt/minion.py b/salt/minion.py index <HASH>..<HASH> 100644 --- a/salt/minion.py +++ b/salt/minion.py @@ -1869,7 +1869,10 @@ class Syndic(Minion): ''' Lock onto the publisher. This is the main event loop for the syndic ''' - signal.signal(signal.SIGTERM, self.clean_die) + ...
Add the same signal handling to the Syndic
py
diff --git a/salt/modules/win_lgpo.py b/salt/modules/win_lgpo.py index <HASH>..<HASH> 100644 --- a/salt/modules/win_lgpo.py +++ b/salt/modules/win_lgpo.py @@ -6794,6 +6794,7 @@ def _checkAllAdmxPolicies( 'D', 'e', 'l', 'V', 'a', 'l', 's', ...
properly cast delvals_regex to bytes for search
py
diff --git a/holoviews/plotting/mpl/element.py b/holoviews/plotting/mpl/element.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/mpl/element.py +++ b/holoviews/plotting/mpl/element.py @@ -431,7 +431,7 @@ class ElementPlot(GenericElementPlot, MPLPlot): element = self.hmap.last ax = self.handles[...
Fixed key bug in ElementPlot.initialize_plot
py
diff --git a/tests/plots/test_declarative.py b/tests/plots/test_declarative.py index <HASH>..<HASH> 100644 --- a/tests/plots/test_declarative.py +++ b/tests/plots/test_declarative.py @@ -575,7 +575,7 @@ def test_plotobs_subset_level(sample_obs): def test_plotobs_subset_level_no_units(sample_obs): - """Test Plot...
DOC: Differentiate level test docstring
py
diff --git a/src/livestreamer_cli/output.py b/src/livestreamer_cli/output.py index <HASH>..<HASH> 100644 --- a/src/livestreamer_cli/output.py +++ b/src/livestreamer_cli/output.py @@ -1,6 +1,7 @@ import os import subprocess import sys +import time from .compat import is_win32, stdout from .utils import ignored @@...
cli: Check if player executes successfully.
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -128,6 +128,7 @@ html_theme_options = { 'github_repo': 'doctr', 'github_banner': True, 'logo_name': True, + 'travis_button': True, } # Add any paths that contain custom themes here, re...
Add Travis button to the docs (supposedly) I don't actually see it.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ try: except IOError: README = '' -version = "0.0.2" +version = "0.0.3" setup(name='gearbox', version=version,
raise version for deprecation warning reporting in debug mode
py
diff --git a/setup_boilerplate.py b/setup_boilerplate.py index <HASH>..<HASH> 100644 --- a/setup_boilerplate.py +++ b/setup_boilerplate.py @@ -156,8 +156,8 @@ class SimpleRefCounter(docutils.nodes.NodeVisitor): resolved_path = path.resolve() except FileNotFoundError: # in resolve(), prior to Pyth...
comment unused lines in setup boilerplate
py
diff --git a/src/hamster/overview.py b/src/hamster/overview.py index <HASH>..<HASH> 100644 --- a/src/hamster/overview.py +++ b/src/hamster/overview.py @@ -127,7 +127,7 @@ class Overview(object): def on_timechart_new_range(self, chart, start_date, end_date): self.start_date = start_date self.end_d...
drag view date with us when zooming in and out
py
diff --git a/client/stt.py b/client/stt.py index <HASH>..<HASH> 100644 --- a/client/stt.py +++ b/client/stt.py @@ -5,6 +5,7 @@ import traceback import json import tempfile import logging +from abc import ABCMeta, abstractmethod import requests import yaml @@ -12,8 +13,23 @@ import yaml The default Speech-to-Tex...
STT engines now inherit from AbstractSTTEngine
py
diff --git a/salt/modules/disk.py b/salt/modules/disk.py index <HASH>..<HASH> 100644 --- a/salt/modules/disk.py +++ b/salt/modules/disk.py @@ -21,7 +21,7 @@ def __virtual__(): ''' if salt.utils.is_windows(): return False - return 'disk' + return True def _clean_flags(args, caller):
Not renaming, return a boolean in `__virtual__()`.
py
diff --git a/python_modules/libraries/dagster-mysql/dagster_mysql/utils.py b/python_modules/libraries/dagster-mysql/dagster_mysql/utils.py index <HASH>..<HASH> 100644 --- a/python_modules/libraries/dagster-mysql/dagster_mysql/utils.py +++ b/python_modules/libraries/dagster-mysql/dagster_mysql/utils.py @@ -33,7 +33,7 @@...
fix(dagster-mysql): allow environment to source connection string (#<I>)
py
diff --git a/djangosaml2/views.py b/djangosaml2/views.py index <HASH>..<HASH> 100644 --- a/djangosaml2/views.py +++ b/djangosaml2/views.py @@ -47,6 +47,7 @@ from saml2.client import Saml2Client from saml2.metadata import entity_descriptor from saml2.ident import code, decode from saml2.sigver import MissingKey +from...
Added temples and code display cusomizable error in two cases.
py
diff --git a/wafer/models.py b/wafer/models.py index <HASH>..<HASH> 100644 --- a/wafer/models.py +++ b/wafer/models.py @@ -139,8 +139,8 @@ class SpeakerRegistration(models.Model): contact_number = models.CharField(max_length=16, null=True, blank=True) comments = models.TextField(null=True, blank=True) bi...
Comment out the ImageField in the legacy SpeakerRegistration model
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -109,6 +109,8 @@ class install(_install): print >> env_file, "# Source this file to access PyCBC" print >> env_file, "PATH=" + self.install_scripts + ":$PATH" print >> env_file, "PYTHONPATH=" + self....
add export statements to pycbc-user-env.sh
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,9 +7,9 @@ from setuptools import setup, find_packages INSTALL_REQUIRES = ( 'gevent>1,<2', 'paramiko>1,<3', + 'click>2', 'docopt<1', 'colorama<1', - 'termcolor>1,<2', 'jinja2>2,<3', 'pyth...
Replace `termcolor` with `click` in requirements.
py
diff --git a/statsdmetrics/metrics.py b/statsdmetrics/metrics.py index <HASH>..<HASH> 100644 --- a/statsdmetrics/metrics.py +++ b/statsdmetrics/metrics.py @@ -4,6 +4,7 @@ statsdmetrics.metrics Define metric classes """ +from abc import ABCMeta, abstractmethod from re import compile, sub try: @@ -80,6 +81,8 @@ d...
Mark to_request() as an abstractmethod So all metrics are required to implement this method.
py
diff --git a/gutenberg/download.py b/gutenberg/download.py index <HASH>..<HASH> 100644 --- a/gutenberg/download.py +++ b/gutenberg/download.py @@ -2,11 +2,11 @@ from __future__ import absolute_import -import bs4 -import collections import gutenberg.common.functutil as functutil import gutenberg.common.osutil as ...
No-op: sort imports
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -21,6 +21,8 @@ PACKAGE_LICENSE = 'MIT' PACKAGE_DESCRIPTION = 'Xplenty API Python SDK' PACKAGE_INCLUDE_PACKAGE_DATA = True PACKAGE_DATA_FILES = [ ] +PACKAGE_CLASSIFIERS = ['Programming Language :: Python :: 2.7', + ...
Add classifier to setup.py for python <I>/3 Indicate that this package is compatible with python <I> or python 3.
py
diff --git a/properties/basic.py b/properties/basic.py index <HASH>..<HASH> 100644 --- a/properties/basic.py +++ b/properties/basic.py @@ -101,7 +101,10 @@ class GettableProperty(object): ) def sphinx_class(self): - return ':class:`{cls} <.{cls}>`'.format(cls=self.__class__.__name__) + ret...
Fix sphinx class reference, improve check for None or undefined
py
diff --git a/timeside/tools/data_samples.py b/timeside/tools/data_samples.py index <HASH>..<HASH> 100644 --- a/timeside/tools/data_samples.py +++ b/timeside/tools/data_samples.py @@ -39,11 +39,10 @@ class NumpySrc: rate=%d, channels=%d, endianness=(int)1234...
Suppress printing of depth in tools/data_samples
py
diff --git a/gifi/feature.py b/gifi/feature.py index <HASH>..<HASH> 100644 --- a/gifi/feature.py +++ b/gifi/feature.py @@ -51,7 +51,7 @@ def _start(feature=None, e=None): feature_id = 1 if numbered_epic_features: feature_id = 1 + max(map( - lambda epic_feature: int('0' + re.sub('[^0-9]', '...
Improve regex to for feature id
py
diff --git a/protowhat/Reporter.py b/protowhat/Reporter.py index <HASH>..<HASH> 100644 --- a/protowhat/Reporter.py +++ b/protowhat/Reporter.py @@ -48,7 +48,8 @@ class TestRunnerProxy(TestRunner): self.runner = runner def do_test(self, test): - self.tests.append(test) + if isinstance(test, ...
Only store Tests in TestRunnerProxy
py
diff --git a/commander/types/sensor_event.py b/commander/types/sensor_event.py index <HASH>..<HASH> 100644 --- a/commander/types/sensor_event.py +++ b/commander/types/sensor_event.py @@ -13,12 +13,7 @@ class SensorEvent: stream, metadata, timestamp_year, timestamp_month, timestamp_day, timestamp_hours, timestamp_m...
Make report buckets work - there's a bug somewhere in the sensor logging code that occasionally causes saved values to be whack.
py
diff --git a/arguments/__init__.py b/arguments/__init__.py index <HASH>..<HASH> 100644 --- a/arguments/__init__.py +++ b/arguments/__init__.py @@ -376,7 +376,7 @@ class Arguments(object): newdoc += commands[cmd].strip() newdoc += "\n" - + return newdoc.strip()
Anna Wintour: Men and women, women and men. It will never work. Monday <I> June <I> (week:<I> day:<I>), <I>:<I>:<I>
py
diff --git a/searx/engines/duckduckgo.py b/searx/engines/duckduckgo.py index <HASH>..<HASH> 100644 --- a/searx/engines/duckduckgo.py +++ b/searx/engines/duckduckgo.py @@ -27,7 +27,7 @@ supported_languages_url = 'https://duckduckgo.com/d2030.js' time_range_support = True # search-url -url = 'https://duckduckgo.com/h...
[fix] change duckduckgo url to avoid error response
py
diff --git a/topydo/lib/ListFormat.py b/topydo/lib/ListFormat.py index <HASH>..<HASH> 100644 --- a/topydo/lib/ListFormat.py +++ b/topydo/lib/ListFormat.py @@ -193,7 +193,7 @@ class ListFormatParser(object): # relative completion date 'X': lambda t: 'x ' + humanize_date(t.completion_date()) if ...
Fix the %z placeholder Or: I should just run my tests first.
py
diff --git a/nornir/core/inventory.py b/nornir/core/inventory.py index <HASH>..<HASH> 100644 --- a/nornir/core/inventory.py +++ b/nornir/core/inventory.py @@ -192,15 +192,6 @@ class Host(object): return self.get("nornir_ssh_port", 22) @property - def ssh_forwardagent(self): - """Either ``norni...
Removed ssh_forwardagent as a property from Host class.
py
diff --git a/dragon_rest/dragons.py b/dragon_rest/dragons.py index <HASH>..<HASH> 100644 --- a/dragon_rest/dragons.py +++ b/dragon_rest/dragons.py @@ -34,7 +34,7 @@ class DragonAPI(object): host, username='admin', password='dragonadmin', - timeout=15...
Change default timeout from <I>s to <I>s.
py
diff --git a/pylint/checkers/base.py b/pylint/checkers/base.py index <HASH>..<HASH> 100644 --- a/pylint/checkers/base.py +++ b/pylint/checkers/base.py @@ -1386,11 +1386,6 @@ class BasicChecker(_BasicChecker): """ self._check_unreachable(node) - @utils.check_messages("exec-used") - def visit_ex...
Remove dead visit_exec method (#<I>) * In Python 3 'exec' is just a 'Call' node
py
diff --git a/openquake/baselib/parallel.py b/openquake/baselib/parallel.py index <HASH>..<HASH> 100644 --- a/openquake/baselib/parallel.py +++ b/openquake/baselib/parallel.py @@ -397,6 +397,7 @@ def safely_call(func, args, monitor=dummy_mon): zsocket.send(err) if res.tb_str == 'TASK_ENDED'...
Fixed monitor times [skip CI]
py
diff --git a/pylint/__pkginfo__.py b/pylint/__pkginfo__.py index <HASH>..<HASH> 100644 --- a/pylint/__pkginfo__.py +++ b/pylint/__pkginfo__.py @@ -27,7 +27,7 @@ numversion = (2, 0, 0) version = '.'.join([str(num) for num in numversion]) install_requires = [ - 'astroid<2.0', + 'astroid>=1.6', 'six', ...
Allow any version of astroid for now
py
diff --git a/rest_framework_gis/filters.py b/rest_framework_gis/filters.py index <HASH>..<HASH> 100644 --- a/rest_framework_gis/filters.py +++ b/rest_framework_gis/filters.py @@ -84,7 +84,7 @@ class GeoFilterSet(django_filters.FilterSet): } def __new__(cls, *args, **kwargs): - cls.filter_overrides.up...
filter_overrides has been moved to the meta class in django-filter <I>
py
diff --git a/h2o-perf/bench/py/runner.py b/h2o-perf/bench/py/runner.py index <HASH>..<HASH> 100644 --- a/h2o-perf/bench/py/runner.py +++ b/h2o-perf/bench/py/runner.py @@ -51,6 +51,23 @@ def main(argv): if args['wipe']: PerfUtils.wipe_output_dir(output_dir) + if True: + out_file_name = os.path....
Add runnerSetup to runner
py
diff --git a/mapchete/config.py b/mapchete/config.py index <HASH>..<HASH> 100644 --- a/mapchete/config.py +++ b/mapchete/config.py @@ -546,7 +546,7 @@ class MapcheteConfig(object): process area : shapely geometry """ if not self._init_inputs: - return box(*self.process_pyramid.boun...
use init_bounds instead of pyramid bounds on readonly mode (#<I>)
py
diff --git a/bcbio/qc/multiqc.py b/bcbio/qc/multiqc.py index <HASH>..<HASH> 100644 --- a/bcbio/qc/multiqc.py +++ b/bcbio/qc/multiqc.py @@ -32,8 +32,8 @@ def summary(*samples): logger.debug("multiqc not found. Update bcbio_nextgen.py tools to fix this issue.") file_fapths = [] opts = "" - out_dir =...
Move multiqc working folder into qc/multiqc
py
diff --git a/tests/test_hypothesis.py b/tests/test_hypothesis.py index <HASH>..<HASH> 100644 --- a/tests/test_hypothesis.py +++ b/tests/test_hypothesis.py @@ -293,3 +293,11 @@ class SignatureTestCase(unittest.TestCase): self.assertEqual(packed, "v") self.assertFalse(unpacked.startswith("v")) + + ...
Test object paths explicitly for signature method Avoid annoying coverage errors.
py
diff --git a/walker/main.py b/walker/main.py index <HASH>..<HASH> 100755 --- a/walker/main.py +++ b/walker/main.py @@ -4,27 +4,28 @@ import os import subprocess import sys -def execute_command(repo): - os.chdir(repo) +def execute_command(target): + os.chdir(target) command = sys.argv[1:] try: ...
main: change references to repos to targets
py
diff --git a/tcex/tcex_local.py b/tcex/tcex_local.py index <HASH>..<HASH> 100644 --- a/tcex/tcex_local.py +++ b/tcex/tcex_local.py @@ -272,7 +272,7 @@ class TcExLocal: # ignore unwanted files from build to ensure app packages are minimum size ignore_patterns = shutil.ignore_patterns( - '*...
packaging : fixes for windows; zipfile doubling in size
py
diff --git a/rash/tests/test_indexer.py b/rash/tests/test_indexer.py index <HASH>..<HASH> 100644 --- a/rash/tests/test_indexer.py +++ b/rash/tests/test_indexer.py @@ -47,6 +47,7 @@ class TestIndexer(BaseTestCase): def test_find_record_files(self): indexer = self.get_indexer() + self.assertEqual(l...
More assertion in test_find_record_files
py
diff --git a/custodian/vasp/handlers.py b/custodian/vasp/handlers.py index <HASH>..<HASH> 100644 --- a/custodian/vasp/handlers.py +++ b/custodian/vasp/handlers.py @@ -313,14 +313,18 @@ class MeshSymmetryErrorHandler(ErrorHandler): def check(self): msg = "Reciprocal lattice and k-lattice belong to differen...
Dont trigger MeshSymmetryError if either ISYM=False or if using automatic kpoint generation. Move this prior to attempting to parse the Vasprun
py
diff --git a/codekit/cli/github_auth.py b/codekit/cli/github_auth.py index <HASH>..<HASH> 100755 --- a/codekit/cli/github_auth.py +++ b/codekit/cli/github_auth.py @@ -6,19 +6,33 @@ # - add command line option for delete scope from getpass import getuser, getpass +import argparse import os import platform import ...
Add argument parser to github-auth I needed to be able to set the user name because not everyone's GitHub username is their $USER. For DM-<I>.
py
diff --git a/bcbio/qc/multiqc.py b/bcbio/qc/multiqc.py index <HASH>..<HASH> 100644 --- a/bcbio/qc/multiqc.py +++ b/bcbio/qc/multiqc.py @@ -188,9 +188,9 @@ def _create_config_file(out_dir, samples): out = {"table_columns_visible": dict()} # Avoid duplicated bcbio columns with qualimap - if any(("qualimap"...
QC: if qualimap is on, skip GC% from fastqc
py
diff --git a/stellar_base/operation.py b/stellar_base/operation.py index <HASH>..<HASH> 100644 --- a/stellar_base/operation.py +++ b/stellar_base/operation.py @@ -967,7 +967,7 @@ class ManageData(Operation): valid_data_name_len = len(self.data_name) <= 64 valid_data_val_len = ( - self.dat...
Fix ManageData defect when data_val is None(remove data) (#<I>)
py