diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/alignak/worker.py b/alignak/worker.py index <HASH>..<HASH> 100644 --- a/alignak/worker.py +++ b/alignak/worker.py @@ -257,10 +257,10 @@ class Worker: for chk in self.checks: if chk.status == 'queue': self._idletime = 0 - r = chk.execute() + ...
Enh: Pylint - C<I> on variables names in worker.py
py
diff --git a/tests/agent_test.py b/tests/agent_test.py index <HASH>..<HASH> 100644 --- a/tests/agent_test.py +++ b/tests/agent_test.py @@ -41,7 +41,7 @@ class Agent_tests(unittest.TestCase): response = json.loads(response) # verify return assert status_code == 200 - assert response['me...
remove extraneous assert for testing
py
diff --git a/evergreen/core/utils.py b/evergreen/core/utils.py index <HASH>..<HASH> 100644 --- a/evergreen/core/utils.py +++ b/evergreen/core/utils.py @@ -54,7 +54,7 @@ class Result(object): if self._exc == self._value == Null: self._cond.wait() if self._exc != Null: -...
Fixed raising exception in Result.get
py
diff --git a/girder/utility/filesystem_assetstore_adapter.py b/girder/utility/filesystem_assetstore_adapter.py index <HASH>..<HASH> 100644 --- a/girder/utility/filesystem_assetstore_adapter.py +++ b/girder/utility/filesystem_assetstore_adapter.py @@ -196,8 +196,13 @@ class FilesystemAssetstoreAdapter(AbstractAssetstore...
Allow FilesystemAssetstores to work on filesystems without POSIX permissions A CIFS-mounted filesystem does not support setting of POSIX permission bits. An NTFS filesystem may also have similar issues.
py
diff --git a/dwave/system/samplers/clique.py b/dwave/system/samplers/clique.py index <HASH>..<HASH> 100644 --- a/dwave/system/samplers/clique.py +++ b/dwave/system/samplers/clique.py @@ -163,11 +163,13 @@ class DWaveCliqueSampler(dimod.Sampler): :attr:`.largest_clique_size` variables. This BQM is embed...
Fix chain_strength in DWaveCliqueSampler docstring
py
diff --git a/reana_db/version.py b/reana_db/version.py index <HASH>..<HASH> 100644 --- a/reana_db/version.py +++ b/reana_db/version.py @@ -14,4 +14,4 @@ and parsed by ``setup.py``. from __future__ import absolute_import, print_function -__version__ = "0.7.0.dev20200501" +__version__ = "0.7.0.dev20200520"
release: <I>.de<I>
py
diff --git a/tests/test_decorators.py b/tests/test_decorators.py index <HASH>..<HASH> 100644 --- a/tests/test_decorators.py +++ b/tests/test_decorators.py @@ -10,6 +10,7 @@ from rest_framework.response import Response from rest_framework.serializers import Serializer from rest_framework.test import APIRequestFactory ...
Added test for serializer getter for all views
py
diff --git a/utils/foaf.py b/utils/foaf.py index <HASH>..<HASH> 100755 --- a/utils/foaf.py +++ b/utils/foaf.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ This is a utility for getting the friend-of-a-friend network for a
python3 is required
py
diff --git a/django_conneg/views.py b/django_conneg/views.py index <HASH>..<HASH> 100644 --- a/django_conneg/views.py +++ b/django_conneg/views.py @@ -125,14 +125,9 @@ Supported ranges are: return response def options(self, request, *args, **kwargs): - try: - response = http.HttpRespon...
Removed debugging code from options method implementation.
py
diff --git a/shakedown/cli/main.py b/shakedown/cli/main.py index <HASH>..<HASH> 100644 --- a/shakedown/cli/main.py +++ b/shakedown/cli/main.py @@ -18,6 +18,7 @@ from shakedown.cli.helpers import * @click.option('--ssl-no-verify', is_flag=True, help='Suppress SSL certificate verification') @click.option('--stdout', ty...
Allow options to be passed to pytest
py
diff --git a/optalg/opt_solver/problem.py b/optalg/opt_solver/problem.py index <HASH>..<HASH> 100644 --- a/optalg/opt_solver/problem.py +++ b/optalg/opt_solver/problem.py @@ -219,8 +219,6 @@ def create_problem_from_type_base(problem): problem : Object """ - print('type base') - p = OptProblem() ...
forgot to remove debuggin print statements
py
diff --git a/appconfigpy/_logger.py b/appconfigpy/_logger.py index <HASH>..<HASH> 100644 --- a/appconfigpy/_logger.py +++ b/appconfigpy/_logger.py @@ -66,4 +66,4 @@ def set_logger(is_enable, propagation_depth=1): def set_log_level(log_level): # deprecated - return + logger.disable(MODULE_NAME)
Suppress unintended logging
py
diff --git a/datascience/table.py b/datascience/table.py index <HASH>..<HASH> 100644 --- a/datascience/table.py +++ b/datascience/table.py @@ -549,9 +549,9 @@ class Table(collections.abc.Mapping): rows corresponding to each value. """ column = self._get_column(column_or_label) - index ...
Reverted to normal dict in table.index_by
py
diff --git a/sos/plugins/s390.py b/sos/plugins/s390.py index <HASH>..<HASH> 100644 --- a/sos/plugins/s390.py +++ b/sos/plugins/s390.py @@ -14,10 +14,10 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -from sos.plugins import Plugin, RedHat...
[s<I>] Enable on Ubuntu/Debian, and on s<I>x architecture All the tools & calls are the same on s<I>x as on s<I>. The tools called are available on Ubuntu/Debian s<I>x port (and old s<I> port). All of this should also be available on RedHat s<I>x port. Tested to work correctly on Ubuntu s<I>x port. Closes #<I>.
py
diff --git a/tickets/settings.py b/tickets/settings.py index <HASH>..<HASH> 100644 --- a/tickets/settings.py +++ b/tickets/settings.py @@ -9,7 +9,7 @@ STATUS_CHOICES = getattr(settings, 'TICKETS_STATUS_CHOICES', ( (3, _("In Progress")), (4, _("Resolved")), (5, _("Closed")), - )) +)) # List of statu...
remove unnecessary indention from tickets settings
py
diff --git a/phy/utils/cli.py b/phy/utils/cli.py index <HASH>..<HASH> 100644 --- a/phy/utils/cli.py +++ b/phy/utils/cli.py @@ -31,9 +31,6 @@ logger = logging.getLogger(__name__) # Set up logging with the CLI tool #------------------------------------------------------------------------------ -add_default_handler(le...
Add handler in phy CLI only
py
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index <HASH>..<HASH> 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -59,17 +59,13 @@ SETUP_PY = DALS(""" class TestEasyInstallTest: - def test_install_site_py(self): + ...
Use pytest tmpdir fixture for simplicity and clarity.
py
diff --git a/parsl/tests/test_error_handling/test_htex_missing_worker.py b/parsl/tests/test_error_handling/test_htex_missing_worker.py index <HASH>..<HASH> 100644 --- a/parsl/tests/test_error_handling/test_htex_missing_worker.py +++ b/parsl/tests/test_error_handling/test_htex_missing_worker.py @@ -14,6 +14,7 @@ def loc...
Make missing worker test cleanup DFK at end (#<I>) Without this, that DFK continues to exist and emit logs while other tests are happening.
py
diff --git a/admin.py b/admin.py index <HASH>..<HASH> 100644 --- a/admin.py +++ b/admin.py @@ -122,6 +122,7 @@ class AccAuthorizationAdmin(ModelView, AccMixin): def register_admin(app, admin): """Call on app initialization to register administration interface.""" category = "Access" + admin.category_icon_...
admin: category icons * Adds icon to each category (module) which is currently displayed in the sidebar-menu. * Improves kwalitee.
py
diff --git a/host/basil/HL/tlu.py b/host/basil/HL/tlu.py index <HASH>..<HASH> 100644 --- a/host/basil/HL/tlu.py +++ b/host/basil/HL/tlu.py @@ -38,7 +38,7 @@ class tlu(RegisterHardwareLayer): 'EN_INVERT_TRIGGER': {'descr': {'addr': 2, 'size': 1, 'offset': 6}}, 'EN_WRITE_TIMESTAMP':...
BUG: CURRENT_TLU_TRIGGER_NUMBER is read-only
py
diff --git a/sos/cleaner/parsers/mac_parser.py b/sos/cleaner/parsers/mac_parser.py index <HASH>..<HASH> 100644 --- a/sos/cleaner/parsers/mac_parser.py +++ b/sos/cleaner/parsers/mac_parser.py @@ -29,6 +29,9 @@ class SoSMacParser(SoSCleanerParser): '53:4f:53', '534f:53' ) + skip_files = [ + ...
[mac_parser] Skip parsing of modinfo output Skip parsing of modinfo output by the mac parser, as this can lead to numerous false positive matches and unhelpfully obfuscate the signature of modules.
py
diff --git a/salt/modules/localemod.py b/salt/modules/localemod.py index <HASH>..<HASH> 100644 --- a/salt/modules/localemod.py +++ b/salt/modules/localemod.py @@ -79,6 +79,8 @@ def _localectl_status(): ctl_key = ctl_key.strip().lower().replace(' ', '_') else: ctl_data = line.strip() +...
if line in output of localectl is empty, ignore it
py
diff --git a/quarkc/parser.py b/quarkc/parser.py index <HASH>..<HASH> 100644 --- a/quarkc/parser.py +++ b/quarkc/parser.py @@ -151,7 +151,7 @@ class Parser: def visit_dist_unit(self, node, (p, name, version, s)): return DistUnit(name, version) - @g.rule(r'version = ~"[0-9a-zA-Z]+(\.[0-9a-zA-Z])+"') +...
Make the package version parser less restrictive.
py
diff --git a/test/test-occurrences-download_request.py b/test/test-occurrences-download_request.py index <HASH>..<HASH> 100644 --- a/test/test-occurrences-download_request.py +++ b/test/test-occurrences-download_request.py @@ -24,7 +24,7 @@ class TestGbifClass(unittest.TestCase): req = GbifDownload("name", "...
fix <I> year to <I> in predicate declaration
py
diff --git a/examples/charts/server/interactive_excel.py b/examples/charts/server/interactive_excel.py index <HASH>..<HASH> 100644 --- a/examples/charts/server/interactive_excel.py +++ b/examples/charts/server/interactive_excel.py @@ -26,14 +26,14 @@ countries = ['Brazil', 'Italy', 'USA', 'Japan'] def create_line(da...
responsive is False by default, no need to set
py
diff --git a/squad/core/plugins.py b/squad/core/plugins.py index <HASH>..<HASH> 100644 --- a/squad/core/plugins.py +++ b/squad/core/plugins.py @@ -2,6 +2,10 @@ from django.db import models from django.forms import MultipleChoiceField, ChoiceField, CheckboxSelectMultiple from pkg_resources import EntryPoint, iter_entr...
core: plugins: fix builtin plugins path
py
diff --git a/kafka/client_async.py b/kafka/client_async.py index <HASH>..<HASH> 100644 --- a/kafka/client_async.py +++ b/kafka/client_async.py @@ -545,6 +545,8 @@ class KafkaClient(object): timeout_ms = 100 elif timeout_ms is None: timeout_ms = self.config['request_timeout_ms'] + ...
Check timeout type in KafkaClient constructor If a future was passed as the only positional parameter it would be assigned to the "timeout_ms" parameter erroneously. This mistake would not raise any exception but would lead to odd behaviour later, what could make it extremely difficult to troubleshoot. Adding a type ...
py
diff --git a/kafka_consumer/check.py b/kafka_consumer/check.py index <HASH>..<HASH> 100644 --- a/kafka_consumer/check.py +++ b/kafka_consumer/check.py @@ -113,7 +113,7 @@ class KafkaCheck(AgentCheck): def _process_highwater_offsets(self, request, instance, nodeid, response): highwater_offsets = {} - ...
[kafka_consumer] `topic_partitions_without_a_leader` is a list. [kafka_consumer] extend list, don't append to it.
py
diff --git a/tests/test_primer-designer.py b/tests/test_primer-designer.py index <HASH>..<HASH> 100644 --- a/tests/test_primer-designer.py +++ b/tests/test_primer-designer.py @@ -45,5 +45,5 @@ class PrimerDesignerTest(unittest.TestCase): def test_process_response(self): self.pd.process_response(ALIGNMEN...
assertIN fails in python<I>
py
diff --git a/indy_node/test/auth_rule/helper.py b/indy_node/test/auth_rule/helper.py index <HASH>..<HASH> 100644 --- a/indy_node/test/auth_rule/helper.py +++ b/indy_node/test/auth_rule/helper.py @@ -19,7 +19,7 @@ from indy_node.test.helper import ( sdk_send_and_check_req_json, sdk_send_and_check_auth_rule_req...
INDY-<I>: fix imports for test's helper
py
diff --git a/tools/vis.py b/tools/vis.py index <HASH>..<HASH> 100755 --- a/tools/vis.py +++ b/tools/vis.py @@ -235,6 +235,9 @@ def main(): # show all the history branches = get_branches(STATS_SERVER, 21212, ndays) + if 'master' in branches: + branches.remove('master') + branches.insert(0,'m...
performance charts: if present, display master first for each case
py
diff --git a/imgaug/imgaug.py b/imgaug/imgaug.py index <HASH>..<HASH> 100644 --- a/imgaug/imgaug.py +++ b/imgaug/imgaug.py @@ -1719,8 +1719,12 @@ def imshow(image, backend=IMSHOW_BACKEND_DEFAULT): # import only when necessary (faster startup; optional dependency; less fragile -- see issue #225) import...
Make figsize in imshow() dependent on image size
py
diff --git a/pycollocation/solvers.py b/pycollocation/solvers.py index <HASH>..<HASH> 100644 --- a/pycollocation/solvers.py +++ b/pycollocation/solvers.py @@ -257,7 +257,7 @@ class Solver(object): def residual_function(t): """Residual function evaluated at array of points t.""" - args...
Another Python <I> issue fixed.
py
diff --git a/wp_split.py b/wp_split.py index <HASH>..<HASH> 100755 --- a/wp_split.py +++ b/wp_split.py @@ -106,13 +106,21 @@ class SplitParser(WPParser): if not self.dest: # print("%s %s" % (title, len(elem))) return - if title[0] in self._files: + char = ascii_bin(title...
added ascii_bin() to wp_split
py
diff --git a/gandi/cli/core/utils/__init__.py b/gandi/cli/core/utils/__init__.py index <HASH>..<HASH> 100644 --- a/gandi/cli/core/utils/__init__.py +++ b/gandi/cli/core/utils/__init__.py @@ -2,7 +2,7 @@ Also custom exceptions and method to generate a random string. """ - +import sys import time import json @@ -...
Metrics output should handle output encoding regarding python version No need to encode to utf-8 in python3.X but mandatory for python2.X
py
diff --git a/sos/sos_script.py b/sos/sos_script.py index <HASH>..<HASH> 100755 --- a/sos/sos_script.py +++ b/sos/sos_script.py @@ -288,7 +288,7 @@ class SoS_Step: raise RuntimeError('Failed to parse script') # under window, the lines will be ended with \r\n, which will cause # trouble wit...
The last patch removes \n from end of script, which could lead to problems
py
diff --git a/pgi/obj.py b/pgi/obj.py index <HASH>..<HASH> 100644 --- a/pgi/obj.py +++ b/pgi/obj.py @@ -462,4 +462,13 @@ def ObjectAttribute(obj_info): signal_name = sig_info.name cls.__sigs__[signal_name] = sig_info + # XXX ^ 2 + def get_class_struct(cls, type_): + """Returns the class ...
add some private API to get the class struct
py
diff --git a/test.py b/test.py index <HASH>..<HASH> 100644 --- a/test.py +++ b/test.py @@ -7,12 +7,20 @@ """ import ahocorasick +import sys print(dir(ahocorasick)) + +def is_python_2(): + return sys.version_info.major == 2 + + a = ahocorasick.Automaton() -words = b"he e hers his she hi him man he".split() ...
fixed tests for python3 unicode strings
py
diff --git a/sailthru/sailthru_client.py b/sailthru/sailthru_client.py index <HASH>..<HASH> 100644 --- a/sailthru/sailthru_client.py +++ b/sailthru/sailthru_client.py @@ -539,7 +539,7 @@ class SailthruClient(object): data['stat'] = 'blast' return self._stats(data) - def stats_send(self, template=...
adding stats_send fucntion to sailthru client
py
diff --git a/qtpy/uic.py b/qtpy/uic.py index <HASH>..<HASH> 100644 --- a/qtpy/uic.py +++ b/qtpy/uic.py @@ -229,9 +229,6 @@ else: QMetaObject.connectSlotsByName(widget) return widget - - # Credit: - # http://stackoverflow.com/questions/4442286/python-code-genration-with-pyside-uic/14195313#1419...
Add credits in the loadUiType docstring
py
diff --git a/ics/icalendar.py b/ics/icalendar.py index <HASH>..<HASH> 100644 --- a/ics/icalendar.py +++ b/ics/icalendar.py @@ -16,6 +16,12 @@ class Calendar(object): self.populate(container[0]) + @classmethod + def from_container(klass, container): + k = klass() + k.popu...
Add a classmethod to icalendar.Calendar to make a new Calendar from a container
py
diff --git a/scapy.py b/scapy.py index <HASH>..<HASH> 100755 --- a/scapy.py +++ b/scapy.py @@ -21,6 +21,9 @@ # # $Log: scapy.py,v $ +# Revision 1.0.2.27 2006/01/04 15:04:17 pbi +# - added missing try/except arround dissection in rdpcap() +# # Revision 1.0.2.26 2005/12/23 00:51:51 pbi # - strengthened DNS disa...
- added missing try/except arround dissection in rdpcap()
py
diff --git a/datadog_checks_dev/datadog_checks/dev/kind.py b/datadog_checks_dev/datadog_checks/dev/kind.py index <HASH>..<HASH> 100644 --- a/datadog_checks_dev/datadog_checks/dev/kind.py +++ b/datadog_checks_dev/datadog_checks/dev/kind.py @@ -38,6 +38,8 @@ def kind_run(sleep=None, endpoints=None, conditions=None, env_v...
Make kind cluster name kubeadm compliant (#<I>)
py
diff --git a/scapy/arch/linux.py b/scapy/arch/linux.py index <HASH>..<HASH> 100644 --- a/scapy/arch/linux.py +++ b/scapy/arch/linux.py @@ -559,10 +559,15 @@ class L3PacketSocket(L2Socket): self.outs.bind(sdto) sn = self.outs.getsockname() ll = lambda x: x - if type(x) in conf.l3types: ...
Try to recover from incompatible l3 types
py
diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py index <HASH>..<HASH> 100644 --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -118,9 +118,11 @@ def generate_random_string( if using_ascii_letters: symbols += string.ascii_letters if using_punctuation: - symbol...
Avoid '$' in random string generation Until the [upstream bug](<URL>) is fixed in django-environ, this should prevent people using this template from hitting the bug. Fix #<I>
py
diff --git a/i3pystatus/core/threading.py b/i3pystatus/core/threading.py index <HASH>..<HASH> 100644 --- a/i3pystatus/core/threading.py +++ b/i3pystatus/core/threading.py @@ -67,7 +67,7 @@ class ExceptionWrapper(Wrapper): try: self.workload() except: - message = "\n> Exception ...
Remove leading newline from exception logging The new log formatting makes this unnecessary.
py
diff --git a/sos/plugins/processor.py b/sos/plugins/processor.py index <HASH>..<HASH> 100644 --- a/sos/plugins/processor.py +++ b/sos/plugins/processor.py @@ -36,9 +36,10 @@ class Processor(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin): "cpupower info", "cpupower idle-info", "...
[processor] Capture turbostat output The turbostat command is a topological report. This report will show what cstate and pstate processors are in, what the processor frequency is during that timeand how busy each core is. The cstate %'s tell us when we are saving power at the expense of performance which is useful fo...
py
diff --git a/django_productline/startup.py b/django_productline/startup.py index <HASH>..<HASH> 100644 --- a/django_productline/startup.py +++ b/django_productline/startup.py @@ -33,6 +33,13 @@ def select_product(): featuremonkey.remove_import_guard('django.conf') featuremonkey.remove_import_guard('django.db'...
import settings and initialize URLResolver during startup
py
diff --git a/topydo/ui/Main.py b/topydo/ui/Main.py index <HASH>..<HASH> 100644 --- a/topydo/ui/Main.py +++ b/topydo/ui/Main.py @@ -70,6 +70,8 @@ class UIApplication(CLIApplicationBase): def __init__(self): super().__init__() + config(p_overrides={('topydo', 'colors'): '0'}) # disable color in out...
Disable color output in column-ui's console We don't want raw ANSI codes there. We'll enable it back again after providing proper coloring solution.
py
diff --git a/Lib/fontbakery/utils.py b/Lib/fontbakery/utils.py index <HASH>..<HASH> 100644 --- a/Lib/fontbakery/utils.py +++ b/Lib/fontbakery/utils.py @@ -68,11 +68,6 @@ def unindent_rationale(rationale, checkid=None): content += "\n" continue - if checkid and line[:8].strip() != "": ...
remove the FATAL CRASH message due to bad rationale indentation I'll address this in a less disruotive manner later. (issue #<I>)
py
diff --git a/girder/api/rest.py b/girder/api/rest.py index <HASH>..<HASH> 100644 --- a/girder/api/rest.py +++ b/girder/api/rest.py @@ -732,13 +732,12 @@ def _setCommonCORSHeaders(): setResponseHeader( 'Access-Control-Expose-Headers', Setting().get(SettingKey.CORS_EXPOSE_HEADERS)) - allowe...
Fixes #<I>. CORS white list policy Allows both "*" and specific Origin white lists to be specified in the CORS allowed origins. If the request Origin is one of the explicitly white listed origins, that will be the response header, otherwise "*" will be used.
py
diff --git a/seleniumbase/console_scripts/sb_install.py b/seleniumbase/console_scripts/sb_install.py index <HASH>..<HASH> 100755 --- a/seleniumbase/console_scripts/sb_install.py +++ b/seleniumbase/console_scripts/sb_install.py @@ -571,6 +571,7 @@ def main(override=None): # Mac / Linux ...
Fix the "msedgedriver" install script (a new file was added)
py
diff --git a/owslib/swe/common.py b/owslib/swe/common.py index <HASH>..<HASH> 100644 --- a/owslib/swe/common.py +++ b/owslib/swe/common.py @@ -109,7 +109,7 @@ class AbstractSimpleComponent(AbstractDataComponent): self.axisID = testXMLAttribute(element,"axisID") # string, optional ...
Fix Quality factory The factory was incorrectly defined, but masked by the fact it was never getting the correct elements anyway.
py
diff --git a/test/unit/test_service_models.py b/test/unit/test_service_models.py index <HASH>..<HASH> 100644 --- a/test/unit/test_service_models.py +++ b/test/unit/test_service_models.py @@ -398,9 +398,7 @@ class HostCollectionTest( ) self.host_factory_mock = self.hos...
Remove lru_cache decorator host_factory_mock used in HostCollectionTest Making sure host_collection_host_factory always returns the same instance of Mock for given host value is not necessary.
py
diff --git a/bookstore/tests/test_clone.py b/bookstore/tests/test_clone.py index <HASH>..<HASH> 100644 --- a/bookstore/tests/test_clone.py +++ b/bookstore/tests/test_clone.py @@ -143,3 +143,10 @@ class TestCloneAPIHandler(AsyncTestCase): empty_key_handler = self.post_handler(post_body_dict) with pytes...
Add test for request with nonsense body; expected HTTPError
py
diff --git a/ds4drv/backends/hidraw.py b/ds4drv/backends/hidraw.py index <HASH>..<HASH> 100644 --- a/ds4drv/backends/hidraw.py +++ b/ds4drv/backends/hidraw.py @@ -46,8 +46,11 @@ class HidrawDS4Device(DS4Device): self.fd.write(hid + data) def close(self): - self.fd.close() - self.input_devi...
hidraw: Fix error on disconnect.
py
diff --git a/script/lib/config.py b/script/lib/config.py index <HASH>..<HASH> 100644 --- a/script/lib/config.py +++ b/script/lib/config.py @@ -5,7 +5,7 @@ import sys NODE_VERSION = 'v0.11.13' BASE_URL = 'https://gh-contractor-zcbenz.s3.amazonaws.com/libchromiumcontent' -LIBCHROMIUMCONTENT_COMMIT = 'fb188f45e178380e...
Upgrade to Chrome <I>.
py
diff --git a/intervaltree/__init__.py b/intervaltree/__init__.py index <HASH>..<HASH> 100644 --- a/intervaltree/__init__.py +++ b/intervaltree/__init__.py @@ -18,6 +18,5 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limi...
rm: from __future__ import absolute_imports
py
diff --git a/spyder/widgets/shortcutssummary.py b/spyder/widgets/shortcutssummary.py index <HASH>..<HASH> 100644 --- a/spyder/widgets/shortcutssummary.py +++ b/spyder/widgets/shortcutssummary.py @@ -100,6 +100,9 @@ class ShortcutsSummaryDialog(QDialog): group_layout = QGridLayout() ...
ShortcutsSummary: Take titles in account for calculate amount of shortcuts in each column.
py
diff --git a/triage/summarize.py b/triage/summarize.py index <HASH>..<HASH> 100755 --- a/triage/summarize.py +++ b/triage/summarize.py @@ -44,6 +44,7 @@ flakeReasonOrdinalRE = re.compile( r'|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d+)?' # IPs + optional port r'|[0-9a-fA-F]{8}-\S{4}-\S{4}-\S{4}-\S{12}(-\d+)?' # U...
Properly cluster short failures with node names.
py
diff --git a/jupyterthemes/stylefx.py b/jupyterthemes/stylefx.py index <HASH>..<HASH> 100755 --- a/jupyterthemes/stylefx.py +++ b/jupyterthemes/stylefx.py @@ -321,7 +321,7 @@ def style_layout(style_less, style_less += toggle_settings( toolbar, nbname, hideprompt, kernellogo) + '\n' if vimext: - ...
pass cursorcolor to vim_style
py
diff --git a/assess_model_migration.py b/assess_model_migration.py index <HASH>..<HASH> 100755 --- a/assess_model_migration.py +++ b/assess_model_migration.py @@ -275,11 +275,11 @@ def deploy_simple_resource_server(client, resource_contents): with open(index_file, 'wt') as f: f.write(resource_cont...
Correct indent so file is written before use.
py
diff --git a/krypy/linsys.py b/krypy/linsys.py index <HASH>..<HASH> 100644 --- a/krypy/linsys.py +++ b/krypy/linsys.py @@ -642,12 +642,11 @@ def _gmres( A, b, warnings.warn('Iter %d: Expl. res = %e >= tol = %e > upd. res = %e.' \ % (k+1, relresvec[-1], tol, norm_ur)...
fix bug in gmres (with return_basis=True)
py
diff --git a/pythonforandroid/recipes/xeddsa/__init__.py b/pythonforandroid/recipes/xeddsa/__init__.py index <HASH>..<HASH> 100644 --- a/pythonforandroid/recipes/xeddsa/__init__.py +++ b/pythonforandroid/recipes/xeddsa/__init__.py @@ -24,12 +24,7 @@ class XedDSARecipe(CythonRecipe): hostpython, 'ref10/...
[xeddsa] fixed shared library copying The copy of the build shared library was not working anymore after the update of python2 build chain. This patch fixes it by using self.ctx.get_site_packages_dir().
py
diff --git a/abydos/distance/_batagelj_bren.py b/abydos/distance/_batagelj_bren.py index <HASH>..<HASH> 100644 --- a/abydos/distance/_batagelj_bren.py +++ b/abydos/distance/_batagelj_bren.py @@ -135,6 +135,9 @@ class BatageljBren(_TokenDistance): .. versionadded:: 0.4.0 """ + if src == tar: +...
added base case for ''==''
py
diff --git a/src/alchemist/test.py b/src/alchemist/test.py index <HASH>..<HASH> 100644 --- a/src/alchemist/test.py +++ b/src/alchemist/test.py @@ -58,6 +58,9 @@ class TestBase: # Flush the database access layer. db.flush(names=self.packages, echo=False) + # Commit all of the deletes. + ...
Fix test teardown not actually commiting DELETE commands.
py
diff --git a/rflint/parser/testcase.py b/rflint/parser/testcase.py index <HASH>..<HASH> 100644 --- a/rflint/parser/testcase.py +++ b/rflint/parser/testcase.py @@ -20,12 +20,6 @@ class Testcase(RobotStatements): return True return False - @property - def path(self): - # t...
remove "path" attribute; it is now inherited from RobotStatements
py
diff --git a/ryu/tests/switch/tester.py b/ryu/tests/switch/tester.py index <HASH>..<HASH> 100644 --- a/ryu/tests/switch/tester.py +++ b/ryu/tests/switch/tester.py @@ -476,18 +476,18 @@ class OfTester(app_manager.RyuApp): def _output_test_report(self, report): self.logger.info('%s--- Test report ---', os...
tester: cleanup the code of couting the results
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -5,17 +5,19 @@ except ImportError: from os import path -def get_version(): - basedir = path.dirname(__file__) - with open(path.join(basedir, 'hn/version.py')) as f: - locals = {} - exec(f.read()...
sys.path is probably the bug
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,6 +3,11 @@ from distutils.extension import Extension setup( name='onewire', + version='0.1', + description='A wrapper for OWFS C-API, compatible with both Python 2.7 and Python 3.x.', + author='Kimmo Huoman...
Add version info etc. to setup.py
py
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index <HASH>..<HASH> 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -7448,7 +7448,11 @@ Keep all original rows and columns and also all original values Combine two DataFrame objects by filling null values in one DataFrame with...
DOC: Add details to DataFrame.combine_first docstring (#<I>) * DOC: Add details to DataFrame.combine_first docstring * fixup
py
diff --git a/python/src/cm_api/endpoints/cms.py b/python/src/cm_api/endpoints/cms.py index <HASH>..<HASH> 100644 --- a/python/src/cm_api/endpoints/cms.py +++ b/python/src/cm_api/endpoints/cms.py @@ -171,16 +171,18 @@ class ClouderaManager(BaseApiObject): } return self._cmd('collectDiagnosticData', data=json.d...
[py] OPSAPS-<I> Add parameter to diagnostic data command to select cluster. Adds an optional parameter to the collect_diagnostic_data_<I> command to specify which cluster should be collected by name so that a single cluster can be collected from a multi-cluster CM instance.
py
diff --git a/bingo/models.py b/bingo/models.py index <HASH>..<HASH> 100644 --- a/bingo/models.py +++ b/bingo/models.py @@ -165,6 +165,7 @@ class BingoBoard(models.Model): user = models.ForeignKey(get_user_model(), blank=True, null=True) password = models.CharField(max_length=255, blank=True) created = mo...
added last_used field to BingoBoard
py
diff --git a/zenpy/lib/util.py b/zenpy/lib/util.py index <HASH>..<HASH> 100644 --- a/zenpy/lib/util.py +++ b/zenpy/lib/util.py @@ -141,11 +141,11 @@ def json_encode(obj, serialize): return list(obj) -def all_are_none(*args) -> bool: +def all_are_none(*args): """ Check if all args are none. """ re...
util: don't use type hints These are Python3 syntax.
py
diff --git a/hamper/plugins/friendly.py b/hamper/plugins/friendly.py index <HASH>..<HASH> 100644 --- a/hamper/plugins/friendly.py +++ b/hamper/plugins/friendly.py @@ -66,6 +66,8 @@ class BotSnack(Plugin): } def process(self, bot, comm): + if not comm['directed']: + return slug...
Make botsnack directed only.
py
diff --git a/tests/test_50_server.py b/tests/test_50_server.py index <HASH>..<HASH> 100644 --- a/tests/test_50_server.py +++ b/tests/test_50_server.py @@ -128,7 +128,7 @@ class TestServer1(): status = None except OtherError, oe: print oe.args - status = s_utils.status_from_...
Extended the error status factory and renamed the method to show that
py
diff --git a/tests/thumbnail_tests/test_engines.py b/tests/thumbnail_tests/test_engines.py index <HASH>..<HASH> 100644 --- a/tests/thumbnail_tests/test_engines.py +++ b/tests/thumbnail_tests/test_engines.py @@ -233,6 +233,7 @@ class SimpleTestCase(BaseTestCase): imref2 = ImageFile(os.path.join(settings.MEDIA_R...
Only run the RGBA test with PIL
py
diff --git a/asymmetric_jwt_auth/models.py b/asymmetric_jwt_auth/models.py index <HASH>..<HASH> 100644 --- a/asymmetric_jwt_auth/models.py +++ b/asymmetric_jwt_auth/models.py @@ -1,11 +1,21 @@ from django.conf import settings from django.db import models from django.contrib.auth.models import User +from django.core....
Validate a public key before saving it
py
diff --git a/cloudvolume/frontends/graphene.py b/cloudvolume/frontends/graphene.py index <HASH>..<HASH> 100644 --- a/cloudvolume/frontends/graphene.py +++ b/cloudvolume/frontends/graphene.py @@ -443,8 +443,10 @@ class CloudVolumeGraphene(CloudVolumePrecomputed): def get_leaves_v1(self, root_id, bbox, mip): root...
fix(graphene): make sure api v1 is used in v1 specific code
py
diff --git a/demo/PDF_display.py b/demo/PDF_display.py index <HASH>..<HASH> 100755 --- a/demo/PDF_display.py +++ b/demo/PDF_display.py @@ -113,8 +113,8 @@ def pdf_show(pdf, page): pix.clearWith(255) # clear it with color "white" dev = fitz.Device(pix) ...
Change b/o pix.samples now is a bytearray
py
diff --git a/tests/test_resource.py b/tests/test_resource.py index <HASH>..<HASH> 100644 --- a/tests/test_resource.py +++ b/tests/test_resource.py @@ -81,3 +81,10 @@ class FilteringTests(TestCase): self.assertNotIn('filter[field][0]', params) self.assertNotIn('filter[operator][0]', params) se...
Add sanity tests for pagination
py
diff --git a/tests/thrift/thrift_test.py b/tests/thrift/thrift_test.py index <HASH>..<HASH> 100644 --- a/tests/thrift/thrift_test.py +++ b/tests/thrift/thrift_test.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- import mock import pytest import socket @@ -146,10 +147,14 @@ def test_annotation_list_builder(ann_mock): ...
Add thrift test for unicode binary annotation
py
diff --git a/sregistry/client/__init__.py b/sregistry/client/__init__.py index <HASH>..<HASH> 100644 --- a/sregistry/client/__init__.py +++ b/sregistry/client/__init__.py @@ -73,12 +73,13 @@ def get_parser(): type=str, default=None) # List local containers and collections - images = su...
removing "images" given that client doesnt have function (meaning no database)
py
diff --git a/seqcluster/libs/annotation.py b/seqcluster/libs/annotation.py index <HASH>..<HASH> 100644 --- a/seqcluster/libs/annotation.py +++ b/seqcluster/libs/annotation.py @@ -12,6 +12,9 @@ def read_gtf_line(cols): group = cols[2] attrs = cols[8].split(";") name = [attr.strip().split(" ")[...
allow biotype field in gtf as group definition
py
diff --git a/blobxfer/operations/download.py b/blobxfer/operations/download.py index <HASH>..<HASH> 100644 --- a/blobxfer/operations/download.py +++ b/blobxfer/operations/download.py @@ -542,7 +542,7 @@ class Downloader(object): self._transfer_set.remove( blobxfer.operations.downlo...
Fix zero-byte download regression - Introduced with concurrent download control - Resolves #<I>
py
diff --git a/jira/client.py b/jira/client.py index <HASH>..<HASH> 100755 --- a/jira/client.py +++ b/jira/client.py @@ -760,10 +760,11 @@ class JIRA(object): if relationship is not None: data['relationship'] = relationship + # check if the link comes from one of the configured application ...
bugfix of KeyError in JIRA.add_remote_link during check of application links
py
diff --git a/openquake/calculators/event_based_risk.py b/openquake/calculators/event_based_risk.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/event_based_risk.py +++ b/openquake/calculators/event_based_risk.py @@ -57,6 +57,7 @@ def _aggregate(outputs, compositemodel, tagmask, agg, all_eids, result, param):...
Added a comment [skip CI]
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,8 +11,8 @@ deps = { 'coincurve>=7.0.0,<16.0.0', ], 'eth-keys': [ - "eth-utils>=1.8.2,<2.0.0", - "eth-typing>=2.2.1,<3.0.0", + "eth-utils>=2.0.0,<3.0.0", + "eth-typing>=3.0.0,<...
Update eth-utils and eth-typing
py
diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py index <HASH>..<HASH> 100644 --- a/asv_bench/benchmarks/series_methods.py +++ b/asv_bench/benchmarks/series_methods.py @@ -144,6 +144,16 @@ class Clip: self.s.clip(0, 1) +class ClipDt: + def setup(self): + ...
ASV: Add asv for clip with date range (#<I>) * ASV: Add asv for clip with date range * ASV: Add asv for clip with date range ASV: Add asv for clip with date range * Fix asv * Remove * Remove type
py
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index <HASH>..<HASH> 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -254,7 +254,12 @@ class Command: except CommandError as e: raise e except Exception as e: - raise BadArg...
[commands] Try to use the proper name when conversion fails.
py
diff --git a/src/you_get/common.py b/src/you_get/common.py index <HASH>..<HASH> 100755 --- a/src/you_get/common.py +++ b/src/you_get/common.py @@ -1183,6 +1183,14 @@ def script_main(script_name, download, download_playlist, **kwargs): raise else: sys.exit(1) + except UnicodeEncodeE...
[common] catch UnicodeEncodeError and instruct users to change the locale
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -45,6 +45,6 @@ setup( }, install_requires=_install_requirements(), data_files=data_files.items(), - setup_requires=['pytest-runner'], + setup_requires=[], tests_require=_get_requirements('tests/requir...
Remove pytest-runner from setup.py pytest-runner is not available in RHEL7
py
diff --git a/tests/opentrons_sdk/drivers/motor_test.py b/tests/opentrons_sdk/drivers/motor_test.py index <HASH>..<HASH> 100644 --- a/tests/opentrons_sdk/drivers/motor_test.py +++ b/tests/opentrons_sdk/drivers/motor_test.py @@ -5,7 +5,7 @@ from opentrons_sdk.drivers.motor import OpenTrons, GCodeLogger class SerialTestC...
fixed bug in test decoding bytes to string
py
diff --git a/internetarchive/cli/ia_tasks.py b/internetarchive/cli/ia_tasks.py index <HASH>..<HASH> 100644 --- a/internetarchive/cli/ia_tasks.py +++ b/internetarchive/cli/ia_tasks.py @@ -2,7 +2,7 @@ # # The internetarchive module is a Python/CLI interface to Archive.org. # -# Copyright (C) 2012-2019 Internet Archive...
Wrap a line as recommended in PEP8. Additionally siplify the expression by using De Morgan's laws. In this case specifically `not (A or B) == not A and not B`.
py
diff --git a/pmagpy/ipmag.py b/pmagpy/ipmag.py index <HASH>..<HASH> 100755 --- a/pmagpy/ipmag.py +++ b/pmagpy/ipmag.py @@ -1446,7 +1446,7 @@ def plot_net(fignum): """ # make the perimeter - plt.figure(num=fignum) + plt.figure(num=fignum,) plt.clf() plt.axis("off") Dcirc = np.arange(0, 361.)
modified: ipmag.py
py
diff --git a/lenstronomy/LensModel/Profiles/epl.py b/lenstronomy/LensModel/Profiles/epl.py index <HASH>..<HASH> 100644 --- a/lenstronomy/LensModel/Profiles/epl.py +++ b/lenstronomy/LensModel/Profiles/epl.py @@ -44,8 +44,8 @@ class EPL(LensProfileBase): scheme. """ param_names = ['theta_E', 'gamma', 'e1',...
default lower and upper bounds of EPL model adjusted. Previous bounds are meant to be in projected quantity
py
diff --git a/reana_commons/version.py b/reana_commons/version.py index <HASH>..<HASH> 100755 --- a/reana_commons/version.py +++ b/reana_commons/version.py @@ -14,4 +14,4 @@ and parsed by ``setup.py``. from __future__ import absolute_import, print_function -__version__ = "0.5.0.dev20190213" +__version__ = "0.5.0.de...
release: <I>.de<I>
py
diff --git a/peru/cache.py b/peru/cache.py index <HASH>..<HASH> 100644 --- a/peru/cache.py +++ b/peru/cache.py @@ -106,6 +106,25 @@ class Cache: self._save_tree_to_branch(tree, name) return tree + def _unify_tree(self, name, root_tree=None, import_trees=()): + if root_tree: + se...
initial version of _unify_tree()
py
diff --git a/salt/modules/file.py b/salt/modules/file.py index <HASH>..<HASH> 100644 --- a/salt/modules/file.py +++ b/salt/modules/file.py @@ -3555,10 +3555,10 @@ def manage_file(name, sfn = __salt__['cp.cache_file'](source, saltenv) if not sfn: return _error( - ...
Support local files without md5sum see issue #<I>
py
diff --git a/memote/suite/cli/__init__.py b/memote/suite/cli/__init__.py index <HASH>..<HASH> 100644 --- a/memote/suite/cli/__init__.py +++ b/memote/suite/cli/__init__.py @@ -19,7 +19,6 @@ from __future__ import absolute_import -import locale import logging from builtins import dict @@ -29,8 +28,6 @@ from memo...
fix: do not use system locale but "C" (#<I>) * Quick fix to the GLPK model copy problem.
py