diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -21,4 +21,9 @@ setup( install_requires=[ 'Django', ], + tests_require=[ + 'django-nose', + 'coverage', + 'django-coverage', + ], )
define test requirements in setup.py
py
diff --git a/src/flapjack/resources/base.py b/src/flapjack/resources/base.py index <HASH>..<HASH> 100644 --- a/src/flapjack/resources/base.py +++ b/src/flapjack/resources/base.py @@ -148,7 +148,6 @@ class Base(six.with_metaclass(meta.Resource)): """simple classmethod to delegate pagination to the paginator ...
Quick hack to make pagination work with detail and post requests
py
diff --git a/spyderlib/widgets/pathmanager.py b/spyderlib/widgets/pathmanager.py index <HASH>..<HASH> 100644 --- a/spyderlib/widgets/pathmanager.py +++ b/spyderlib/widgets/pathmanager.py @@ -6,23 +6,24 @@ """Spyder path manager""" +# Standard library imports from __future__ import print_function - -from spy...
Migrate pathmanager.py to qtpy
py
diff --git a/scapy.py b/scapy.py index <HASH>..<HASH> 100755 --- a/scapy.py +++ b/scapy.py @@ -1221,13 +1221,17 @@ else: continue if flags & RTF_REJECT: continue - ifreq = ioctl(s, SIOCGIFADDR,struct.pack("16s16x",iff)) - addrfamily = struct.unpack("h...
Handle the case when an interface is present into routing tables but does not have any assigned IP (ticket #<I>) This seems to happen only on Ubuntu for the moment: <URL>
py
diff --git a/dark/hsp.py b/dark/hsp.py index <HASH>..<HASH> 100644 --- a/dark/hsp.py +++ b/dark/hsp.py @@ -81,6 +81,10 @@ def normalizeHSP(hsp, queryLen): queryEnd = subjectEnd + unmatchedQueryLeft queryStart = queryEnd - queryLen + # Final sanity check. + assert queryStart <= subjectStart + ...
Trivial (I hope): added final sanity check to normalizeHSP.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -38,7 +38,7 @@ with open('README.rst') as f: dist = setup( name='stone', - version='2.2.1', + version='2.2.2', install_requires=install_reqs, setup_requires=setup_requires, tests_require=test_reqs,
Bump to <I> (#<I>)
py
diff --git a/malcolm/parts/ADCore/positionlabellerpart.py b/malcolm/parts/ADCore/positionlabellerpart.py index <HASH>..<HASH> 100644 --- a/malcolm/parts/ADCore/positionlabellerpart.py +++ b/malcolm/parts/ADCore/positionlabellerpart.py @@ -10,7 +10,7 @@ from malcolm.controllers.runnablecontroller import RunnableControll...
Bump number of positions loaded to <I>
py
diff --git a/ethereum/tools/tester.py b/ethereum/tools/tester.py index <HASH>..<HASH> 100644 --- a/ethereum/tools/tester.py +++ b/ethereum/tools/tester.py @@ -49,6 +49,12 @@ try: except (ImportError, TypeError): pass +try: + from vyper import compiler + languages['vyper'] = compiler +except (ImportError, ...
Add Vyper rename as a test option as well.
py
diff --git a/pysat/utils/_core.py b/pysat/utils/_core.py index <HASH>..<HASH> 100644 --- a/pysat/utils/_core.py +++ b/pysat/utils/_core.py @@ -457,7 +457,7 @@ def fmt_output_in_cols(out_strs, ncols=3, max_num=6, lpad=None): """ output = "" - + # Ensure output strings are array-like out_strs = ...
BUG: small maximum number Fixed the formatting for a very small maximum number of points.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -241,7 +241,7 @@ if num_gsl_warn > 0: print_gsl_message(num_messages=num_gsl_warn) print '\033[1m'+'These warning messages about the C code do not mean that the python package was not installed successfully'+'\033[0m...
update statement about how long the test suite takes [ci skip]
py
diff --git a/spyderlib/spyder.py b/spyderlib/spyder.py index <HASH>..<HASH> 100644 --- a/spyderlib/spyder.py +++ b/spyderlib/spyder.py @@ -1782,9 +1782,8 @@ class MainWindow(QMainWindow): self.ql_reset = create_action(self, _('Reset to spyder default'), triggered=self.re...
Shortcuts must not be registered with a translatable context
py
diff --git a/compliance_checker/cf/util.py b/compliance_checker/cf/util.py index <HASH>..<HASH> 100644 --- a/compliance_checker/cf/util.py +++ b/compliance_checker/cf/util.py @@ -207,11 +207,11 @@ class NCGraph: return NCGraph(self.ds, coord, self.ds.variables[coord], self.reference_variables, self.reference_m...
Fix get_grid_mapping on NCGraph class (how did this work)
py
diff --git a/neo.py b/neo.py index <HASH>..<HASH> 100755 --- a/neo.py +++ b/neo.py @@ -363,7 +363,7 @@ class Hg(object): with open(exclude) as f: lines = f.read().splitlines() except: - lines = '' + lines = [] if file not in lines: ret...
Fixed variable type issue (lines should be array, not string)
py
diff --git a/pipenv/utils.py b/pipenv/utils.py index <HASH>..<HASH> 100644 --- a/pipenv/utils.py +++ b/pipenv/utils.py @@ -471,12 +471,12 @@ def actually_resolve_deps( warning_list = [] with warnings.catch_warnings(record=True) as warning_list: - constraints = get_resolver_metadata( - deps, index_...
Why doesnt this stay indented...
py
diff --git a/climlab/surface/albedo.py b/climlab/surface/albedo.py index <HASH>..<HASH> 100644 --- a/climlab/surface/albedo.py +++ b/climlab/surface/albedo.py @@ -63,7 +63,7 @@ class Iceline(DiagnosticProcess): class StepFunctionAlbedo(DiagnosticProcess): - def __init__(self, Tf=-10., a0=0.33, a2=0.25, ai=0.6,...
Changed the default albedo parameters for StepFunctionAlbedo class -- now the same as I previously used in Snowball Earth notebook.
py
diff --git a/tests/test_config.py b/tests/test_config.py index <HASH>..<HASH> 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -6,7 +6,11 @@ from socket import gaierror from paramiko.py3compat import string_types -from invoke import Result +try: + from invoke import Result +except ImportError: + ...
Skip tests requiring invoke if it's not installed Since invoke is an optional dependency and only one group of tests require it, skip them gracefully rather than failing if it's not present.
py
diff --git a/eventsourcing/application/simple.py b/eventsourcing/application/simple.py index <HASH>..<HASH> 100644 --- a/eventsourcing/application/simple.py +++ b/eventsourcing/application/simple.py @@ -158,6 +158,8 @@ class SimpleApplication(Pipeable): snapshot_record_class=snapshot_record_class, ...
Fixed SimpleApplication to pass JSON encoder and decoder classes into infrastructure factory (previously just wasn't doing that).
py
diff --git a/allauth/account/adapter.py b/allauth/account/adapter.py index <HASH>..<HASH> 100644 --- a/allauth/account/adapter.py +++ b/allauth/account/adapter.py @@ -333,8 +333,8 @@ class DefaultAccountAdapter(object): if hasattr(response, 'render'): response.render() resp['h...
fix: Always return data for AjaxCapableProcessFormViewMixin Example usage: If I was to make an ajax request for users updating their emails to 'account_email' the returned ajax response wouldn't contain the data - the list of the emails with their associated data - primary, verified, etc. It would only contain t...
py
diff --git a/tests/functional_tests/config_travis.py b/tests/functional_tests/config_travis.py index <HASH>..<HASH> 100644 --- a/tests/functional_tests/config_travis.py +++ b/tests/functional_tests/config_travis.py @@ -8,7 +8,6 @@ import sys from pyvirtualdisplay import Display from selenium import webdriver -impor...
Config import moved to if main clause.
py
diff --git a/salt/client/api.py b/salt/client/api.py index <HASH>..<HASH> 100644 --- a/salt/client/api.py +++ b/salt/client/api.py @@ -267,10 +267,11 @@ class APIClient(object): raise EauthAuthenticationError("Authentication failed with provided credentials.") # Grab eauth config for the current...
Simplify self.opts usage Introduced `tokenage_eauth` variable as `self.opts['external_auth'][tokenage['eauth']]` is used almost everywhere here.
py
diff --git a/test/TestVariableHasSpaces.py b/test/TestVariableHasSpaces.py index <HASH>..<HASH> 100644 --- a/test/TestVariableHasSpaces.py +++ b/test/TestVariableHasSpaces.py @@ -35,6 +35,9 @@ TASK_VARIABLES = ''' debug: msg: "test" example: "data = ${lookup{$local_part}lsearch{/etc/aliases}}" +- name: JSON ...
Add a test for false positive with nested JSON Closes: #<I>
py
diff --git a/salt/state.py b/salt/state.py index <HASH>..<HASH> 100644 --- a/salt/state.py +++ b/salt/state.py @@ -3100,7 +3100,7 @@ class BaseHighState(object): Returns: {'saltenv': ['state1', 'state2', ...]} ''' - matches = {} + matches = DefaultOrderedDict(OrderedDict) ...
Fix env_order in state.py Fixes #<I>
py
diff --git a/test_parmap.py b/test_parmap.py index <HASH>..<HASH> 100644 --- a/test_parmap.py +++ b/test_parmap.py @@ -9,10 +9,10 @@ import multiprocessing # Overhead of map_async, should be less than TIME_PER_TEST -TIME_OVERHEAD = 0.25 +TIME_OVERHEAD = 0.4 # The time each call takes to return in the _wait test...
Make tests last longer so travis does not fail
py
diff --git a/dj_database_url.py b/dj_database_url.py index <HASH>..<HASH> 100644 --- a/dj_database_url.py +++ b/dj_database_url.py @@ -12,6 +12,7 @@ except ImportError: # Register database schemes in URLs. urlparse.uses_netloc.append('postgres') urlparse.uses_netloc.append('postgresql') +urlparse.uses_netloc.append(...
Add "pgsql" as a PostgreSQL URL scheme.
py
diff --git a/bookstore/tests/test_handlers.py b/bookstore/tests/test_handlers.py index <HASH>..<HASH> 100644 --- a/bookstore/tests/test_handlers.py +++ b/bookstore/tests/test_handlers.py @@ -148,7 +148,8 @@ class TestCloneAPIHandler(AsyncTestCase): """ get_handler = self.get_handler('/api/bookstore/')...
Add expected None to handler's get test
py
diff --git a/{{cookiecutter.project_slug}}/config/settings/production.py b/{{cookiecutter.project_slug}}/config/settings/production.py index <HASH>..<HASH> 100644 --- a/{{cookiecutter.project_slug}}/config/settings/production.py +++ b/{{cookiecutter.project_slug}}/config/settings/production.py @@ -76,6 +76,8 @@ _AWS_EX...
Set AWS_DEFAULT_ACL to None as per django-storages documentation fixes #<I>
py
diff --git a/salt/state.py b/salt/state.py index <HASH>..<HASH> 100644 --- a/salt/state.py +++ b/salt/state.py @@ -1936,6 +1936,7 @@ class BaseHighState(object): high data structure. ''' highstate = {} + all_errors = [] for env, states in matches.items(): mods = s...
Fix "variable referenced before assignment" error
py
diff --git a/gns3server/modules/iou/ioucon.py b/gns3server/modules/iou/ioucon.py index <HASH>..<HASH> 100644 --- a/gns3server/modules/iou/ioucon.py +++ b/gns3server/modules/iou/ioucon.py @@ -224,6 +224,8 @@ class TelnetServer(Console): buf = self._read_cur(bufsize, socket.MSG_DONTWAIT) except Bloc...
Fixes SecureCRT issue when disconnecting from an IOU device on Windows.
py
diff --git a/jishaku/__main__.py b/jishaku/__main__.py index <HASH>..<HASH> 100644 --- a/jishaku/__main__.py +++ b/jishaku/__main__.py @@ -53,8 +53,6 @@ def entrypoint(intents: typing.Iterable[str], token: str): name = intent[1:].lower() value = intent[0] == "+" - print(name) - if na...
Whoops this shouldn't be here still
py
diff --git a/tests/test_task_panels.py b/tests/test_task_panels.py index <HASH>..<HASH> 100644 --- a/tests/test_task_panels.py +++ b/tests/test_task_panels.py @@ -95,7 +95,7 @@ class TestTaskPanelsMenu(unittest.TestCase): self.assertEqual(task.config, config) - self.assertEqual(len(task.panels_menu)...
[tests] Align tests for new panels This code aligns the tests of tast_panels which now include a larger number of panels.
py
diff --git a/tests/functional/test_logging.py b/tests/functional/test_logging.py index <HASH>..<HASH> 100644 --- a/tests/functional/test_logging.py +++ b/tests/functional/test_logging.py @@ -5,6 +5,11 @@ from tests.functional import PmxbotHarness class TestPmxbotLog(PmxbotHarness): + def test_no_op(self): + """ +...
Added a test that does nothing but exercise the harness
py
diff --git a/codenerix_storages/models.py b/codenerix_storages/models.py index <HASH>..<HASH> 100644 --- a/codenerix_storages/models.py +++ b/codenerix_storages/models.py @@ -116,7 +116,7 @@ class StorageContact(CodenerixModel): # zonas del almacen class StorageZone(CodenerixModel): - storage = models.ForeignKey...
Several upgrades focusing on Django 2.x
py
diff --git a/test/Python3/test_Python3_kernel.py b/test/Python3/test_Python3_kernel.py index <HASH>..<HASH> 100644 --- a/test/Python3/test_Python3_kernel.py +++ b/test/Python3/test_Python3_kernel.py @@ -117,7 +117,8 @@ df_var = pd.DataFrame({'column_{0}'.format(i): arr for i in range(10)}) import numpy d3var = numpy....
Try to figure out why test for Python3 fails under windows
py
diff --git a/master/buildbot/buildslave.py b/master/buildbot/buildslave.py index <HASH>..<HASH> 100644 --- a/master/buildbot/buildslave.py +++ b/master/buildbot/buildslave.py @@ -417,9 +417,9 @@ class AbstractBuildSlave(config.ReconfigurableServiceMixin, pb.Avatar, state["slave_commands"] = commands ...
don't print error message until after checking exception type
py
diff --git a/api/models.py b/api/models.py index <HASH>..<HASH> 100644 --- a/api/models.py +++ b/api/models.py @@ -298,7 +298,7 @@ class Container(UuidAuditedModel): if c_type == 'cmd': return '' else: - return 'start {c_type}' + return "start {}"...
fix(controller): format command before creating container The self._command_announceable() check was called inline with code that formatted the container's command, so no announcer would be created since the command showed up as "start {c_type}" literally. The _command property is only referenced in this code.
py
diff --git a/pyowm/config.py b/pyowm/config.py index <HASH>..<HASH> 100644 --- a/pyowm/config.py +++ b/pyowm/config.py @@ -2,12 +2,11 @@ # -*- coding: utf-8 -*- DEFAULT_CONFIG = { - 'api_key': 'b1b15e88fa797225412429c1c50c122a', # fake API key, won't work 'subscription_type': 'free', 'language': 'en'...
remove API key from config and increase timeout
py
diff --git a/wikidataintegrator/tests/test_item_creation.py b/wikidataintegrator/tests/test_item_creation.py index <HASH>..<HASH> 100644 --- a/wikidataintegrator/tests/test_item_creation.py +++ b/wikidataintegrator/tests/test_item_creation.py @@ -22,7 +22,7 @@ class TestItemCreation(unittest.TestCase): wdi...
retag for pypi release
py
diff --git a/bokeh/plotting.py b/bokeh/plotting.py index <HASH>..<HASH> 100644 --- a/bokeh/plotting.py +++ b/bokeh/plotting.py @@ -543,19 +543,20 @@ def scatter(*args, **kwargs): raise ValueError("Invalid marker type '%s'. Use markers() to see a list of valid marker types." % markertype) return _marker_ty...
Adding support for additional kwargs to gridplot()
py
diff --git a/limpyd/fields.py b/limpyd/fields.py index <HASH>..<HASH> 100644 --- a/limpyd/fields.py +++ b/limpyd/fields.py @@ -370,12 +370,12 @@ class RedisField(RedisProxyCommand): or params.get('_post_callback', None) is not None): with FieldLock(self): - return self._re...
Rename "_really_traverse_command" in "_index_and_traverse_command"
py
diff --git a/PySimpleGUI.py b/PySimpleGUI.py index <HASH>..<HASH> 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1828,6 +1828,7 @@ class FlexForm: def Layout(self,rows): self.AddRows(rows) + return self def LayoutAndRead(self,rows, non_blocking=False): self.AddRows(rows)
LayoutAndRead returns the form now!! Even more compact / lazy code
py
diff --git a/hotdoc/core/extension.py b/hotdoc/core/extension.py index <HASH>..<HASH> 100644 --- a/hotdoc/core/extension.py +++ b/hotdoc/core/extension.py @@ -299,13 +299,14 @@ class Extension(Configurable): group.add_argument("--%s-sources" % prefix, action="store", nargs="+", - ...
extension: Force using _ in the sources prefix names
py
diff --git a/salt/loader.py b/salt/loader.py index <HASH>..<HASH> 100644 --- a/salt/loader.py +++ b/salt/loader.py @@ -68,7 +68,10 @@ def grains(opts): os.path.join(salt_base_path, 'grains'), ] load = Loader(module_dirs, opts) - return load.gen_grains() + grains = load.gen_grains() + if ...
Allow grains to be overwritten from the config
py
diff --git a/gary/dynamics/nonlinear.py b/gary/dynamics/nonlinear.py index <HASH>..<HASH> 100644 --- a/gary/dynamics/nonlinear.py +++ b/gary/dynamics/nonlinear.py @@ -15,7 +15,7 @@ import numpy as np # Project from ..util import gram_schmidt -__all__ = ['lyapunov_spectrum', 'lyapunov_max'] +__all__ = ['lyapunov_spe...
Add fast lyapunov calc to all
py
diff --git a/src/radical/entk/task/task.py b/src/radical/entk/task/task.py index <HASH>..<HASH> 100644 --- a/src/radical/entk/task/task.py +++ b/src/radical/entk/task/task.py @@ -800,12 +800,8 @@ class Task(object): raise TypeError(expected_type=list, actual_type=type(d...
fall back to setter type checks the dict type checks for executable were inconsistent with those from the setter (they did not allow backward-compatible lists)
py
diff --git a/sos/plugins/selinux.py b/sos/plugins/selinux.py index <HASH>..<HASH> 100644 --- a/sos/plugins/selinux.py +++ b/sos/plugins/selinux.py @@ -23,7 +23,8 @@ class SELinux(Plugin, RedHatPlugin): def setup(self): self.add_copy_spec([ '/etc/sestatus.conf', - '/etc/selinux' + ...
[selinux] collect /var/lib/selinux On RHEL 8, modules and contexts are not in /etc/selinux/<policy> directory anymore, but in /var/lib/selinux/<policy> directory. Resolves: #<I>
py
diff --git a/pook/assertion.py b/pook/assertion.py index <HASH>..<HASH> 100644 --- a/pook/assertion.py +++ b/pook/assertion.py @@ -63,7 +63,7 @@ def matches(x, y, regex_expr=False): # Retrieve original regex pattern x = x.pattern if isregex(x) else x # Assert regular expression via unittest m...
replace depracated assertRegexpMatches with assertRegex (#<I>)
py
diff --git a/torf.py b/torf.py index <HASH>..<HASH> 100644 --- a/torf.py +++ b/torf.py @@ -49,6 +49,7 @@ def to_robofab(data): rglyph.lib[LIB_PREFIX + metadata_key] = layer[metadata_key] elif metadata_key in glyph: rglyph.lib[LIB_PREFIX + metadata_key] = glyph[...
Load background info to glyph lib data. This is only used in Glyphs, so we store it alongside the other user data.
py
diff --git a/template.py b/template.py index <HASH>..<HASH> 100644 --- a/template.py +++ b/template.py @@ -4,6 +4,15 @@ import yaml import argparse from jinja2 import Environment, FileSystemLoader +PY2 = sys.version_info[0] == 2 + + +def get_dict_items(adict): + if PY2: + return adict.iteritems() + els...
fix bugs in test and support python 3
py
diff --git a/tests/test_library.py b/tests/test_library.py index <HASH>..<HASH> 100644 --- a/tests/test_library.py +++ b/tests/test_library.py @@ -76,10 +76,12 @@ class LocalLibraryProviderTest(unittest.TestCase): self.library.browse(b'local:directory') mock_library.browse.assert_called_with(b'local:d...
Conditionally skip tests requiring Mopidy <I>.
py
diff --git a/jams/eval.py b/jams/eval.py index <HASH>..<HASH> 100644 --- a/jams/eval.py +++ b/jams/eval.py @@ -42,7 +42,7 @@ def validate_annotation(ann, namespace): 'Expected "{:s}", found "{:s}"' .format(namespace, ann.namespace)) - ns.validate_annotation(a...
revised eval validator to reflect refactor
py
diff --git a/mordred/task_collection.py b/mordred/task_collection.py index <HASH>..<HASH> 100644 --- a/mordred/task_collection.py +++ b/mordred/task_collection.py @@ -24,6 +24,7 @@ import logging import time +import traceback from grimoire_elk.arthur import feed_backend from grimoire_elk.elastic_items import El...
[task_collection] Print the full stack trace when there is an exception collecting the data
py
diff --git a/HardwareSource.py b/HardwareSource.py index <HASH>..<HASH> 100644 --- a/HardwareSource.py +++ b/HardwareSource.py @@ -433,7 +433,7 @@ class HardwareSourceDataBuffer(object): # select the preferred item. # TODO: better mechanism for selecting preferred item at start of acquisition. ...
Rework source panel to not use combobox pop-up. svn r<I>
py
diff --git a/tests/integration/shell/matcher.py b/tests/integration/shell/matcher.py index <HASH>..<HASH> 100644 --- a/tests/integration/shell/matcher.py +++ b/tests/integration/shell/matcher.py @@ -200,6 +200,20 @@ class MatchTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn): data = '\n'.join...
add more matcher grains tests with wildcard
py
diff --git a/saturn/runner.py b/saturn/runner.py index <HASH>..<HASH> 100644 --- a/saturn/runner.py +++ b/saturn/runner.py @@ -57,12 +57,16 @@ def get_class(satellite, number, variant): return eval(module_name+"."+j) return build_class(satellite, number, variant) -def build_instrument(name, ...
Cleaning: Removing pylint errors from runner.py code.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -66,7 +66,7 @@ packages = [ 'skitai.server.handlers', 'skitai.server.rpc', 'skitai.server.threads', - 'skitai.server.http2', + 'skitai.server.handlers.http2', 'skitai.saddle' ]
<I> fix or change pushing
py
diff --git a/dipper/sources/WormBase.py b/dipper/sources/WormBase.py index <HASH>..<HASH> 100644 --- a/dipper/sources/WormBase.py +++ b/dipper/sources/WormBase.py @@ -56,7 +56,7 @@ class WormBase(Source): 'feature_loc': {'file': 'c_elegans.PRJNA13758.annotations.gff3.gz', 'url': 'ftp:/...
get current dev release for disease_assoc file
py
diff --git a/LiSE/LiSE/handle.py b/LiSE/LiSE/handle.py index <HASH>..<HASH> 100644 --- a/LiSE/LiSE/handle.py +++ b/LiSE/LiSE/handle.py @@ -25,7 +25,7 @@ class EngineHandle(object): developing your own API. """ - def __init__(self, args, kwargs, logq): + def __init__(self, args, kwargs={}, logq=None): ...
Make it more convenient to instantiate EngineHandle
py
diff --git a/django_afip/models.py b/django_afip/models.py index <HASH>..<HASH> 100644 --- a/django_afip/models.py +++ b/django_afip/models.py @@ -306,18 +306,24 @@ class Receipt(models.Model): help_text=_( 'Date on which a service started. No applicable for goods.' ), + null=True,...
Some fields are optional for goods-sales
py
diff --git a/install-poetry.py b/install-poetry.py index <HASH>..<HASH> 100644 --- a/install-poetry.py +++ b/install-poetry.py @@ -267,7 +267,7 @@ You can test that everything is set up by executing: """ POST_MESSAGE_CONFIGURE_UNIX = """ -Add `export PATH="{poetry_home_bin}:$PATH` to your shell configuration file. ...
Add a missing " to the post install message of `install-poetry.py`
py
diff --git a/bika/lims/upgrade/v3_2_0_1705.py b/bika/lims/upgrade/v3_2_0_1705.py index <HASH>..<HASH> 100644 --- a/bika/lims/upgrade/v3_2_0_1705.py +++ b/bika/lims/upgrade/v3_2_0_1705.py @@ -131,7 +131,8 @@ def RemoveVersionableTypes(): def UpdateIndexesAndMetadata(ut): # Add getDepartmentUIDs to CATALOG_WORKSH...
Using Keyword index instead of Field index.
py
diff --git a/github/GithubObjects.py b/github/GithubObjects.py index <HASH>..<HASH> 100644 --- a/github/GithubObjects.py +++ b/github/GithubObjects.py @@ -389,7 +389,7 @@ Repository._addAttributePolicy( SeveralAttributePolicies( [ ] ) ) __repoElementCreatable = ElementCreatable( [ "name" ], [ "description", "homepa...
Fix bug with repository owner when owner is AuthenticatedUser
py
diff --git a/pypiper/ngstk.py b/pypiper/ngstk.py index <HASH>..<HASH> 100755 --- a/pypiper/ngstk.py +++ b/pypiper/ngstk.py @@ -52,8 +52,12 @@ class NGSTk(_AttributeDict): self.pm = pm if hasattr(pm.config, "tools"): self.tools = self.pm.config.tools + else: + self.tools = _AttributeDict(dict(), defaul...
fix ngstk bug with missing pipeline config
py
diff --git a/papermill/tests/test_iorw.py b/papermill/tests/test_iorw.py index <HASH>..<HASH> 100644 --- a/papermill/tests/test_iorw.py +++ b/papermill/tests/test_iorw.py @@ -6,8 +6,8 @@ if six.PY3: else: from mock import Mock, patch -from papermill.exceptions import PapermillException -from papermill.iorw impo...
Changed iorw imports from absolute to relative
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 @@ -177,16 +177,15 @@ class ConsoleViewer(object): description = 'Chosen node: %s' % node if is_goal is not None: description ...
The expanded can receive multiple nodes and successors lists (needed for local search)
py
diff --git a/aiogram/dispatcher/filters/state.py b/aiogram/dispatcher/filters/state.py index <HASH>..<HASH> 100644 --- a/aiogram/dispatcher/filters/state.py +++ b/aiogram/dispatcher/filters/state.py @@ -25,7 +25,7 @@ class State: elif self._group_name: group = self._group_name else: - ...
Use 'at' instead of '*' for state group.
py
diff --git a/gns3server/modules/project.py b/gns3server/modules/project.py index <HASH>..<HASH> 100644 --- a/gns3server/modules/project.py +++ b/gns3server/modules/project.py @@ -556,9 +556,9 @@ class Project: # We merge the data from all server in the same project-files directory ...
Improve compaction of .gns3project Ref #<I>
py
diff --git a/xmlrpc2/client.py b/xmlrpc2/client.py index <HASH>..<HASH> 100644 --- a/xmlrpc2/client.py +++ b/xmlrpc2/client.py @@ -36,6 +36,7 @@ class Client(object): self.transport = self.transports[parsed.scheme] + # Default to /RPC2 for path as it is a common endpoint if not parsed.path:...
Make a comment about why the default to /RPC2
py
diff --git a/bokeh/models/ranges.py b/bokeh/models/ranges.py index <HASH>..<HASH> 100644 --- a/bokeh/models/ranges.py +++ b/bokeh/models/ranges.py @@ -169,6 +169,9 @@ class DataRange1d(DataRange): A default width for the interval, in case ``start`` is equal to ``end``. """) + def __init__(self, *args, **...
Add back init that got lost in merge conflict
py
diff --git a/python/phonenumbers/phonenumberutil.py b/python/phonenumbers/phonenumberutil.py index <HASH>..<HASH> 100644 --- a/python/phonenumbers/phonenumberutil.py +++ b/python/phonenumbers/phonenumberutil.py @@ -2000,8 +2000,7 @@ def is_possible_number_with_reason(numobj): region_code = region_code_for_country_...
Merge code changes from upstream r<I>
py
diff --git a/plenum/__metadata__.py b/plenum/__metadata__.py index <HASH>..<HASH> 100644 --- a/plenum/__metadata__.py +++ b/plenum/__metadata__.py @@ -1,7 +1,7 @@ """ plenum package metadata """ -__version_info__ = (0, 1, 131) +__version_info__ = (0, 1, 132) __version__ = '{}.{}.{}'.format(*__version_info__) __aut...
incremented version as pushed to pypi
py
diff --git a/karaage/cache/usage.py b/karaage/cache/usage.py index <HASH>..<HASH> 100644 --- a/karaage/cache/usage.py +++ b/karaage/cache/usage.py @@ -125,8 +125,5 @@ def get_machine_usage(machine, start, end): date__range=(start, end)).aggregate(usage=Sum('cpu_usage'), jobs=Count(...
Simplify. Constraints introduced in cd<I>a<I>e5c2d<I>e<I>ca<I>e<I>c3be<I> should mean that MultipleObjectsReturned never is generated. Change-Id: I<I>ab0c<I>af<I>d<I>e<I>fa5f6d<I>
py
diff --git a/salt/cli/batch.py b/salt/cli/batch.py index <HASH>..<HASH> 100644 --- a/salt/cli/batch.py +++ b/salt/cli/batch.py @@ -53,15 +53,17 @@ class Batch(object): ping_gen = self.local.cmd_iter(*args, **self.eauth) + # Broadcast to targets fret = set() try: for re...
fix <I>, StopIteration should not throw exception out
py
diff --git a/angr/state_plugins/symbolic_memory.py b/angr/state_plugins/symbolic_memory.py index <HASH>..<HASH> 100644 --- a/angr/state_plugins/symbolic_memory.py +++ b/angr/state_plugins/symbolic_memory.py @@ -433,7 +433,10 @@ class SimSymbolicMemory(SimMemory): #pylint:disable=abstract-method # def _fill_...
Use register names in variable names (#<I>)
py
diff --git a/pymc3/glm/linear.py b/pymc3/glm/linear.py index <HASH>..<HASH> 100644 --- a/pymc3/glm/linear.py +++ b/pymc3/glm/linear.py @@ -155,6 +155,10 @@ class GLM(LinearComponent): vars=None, family='normal', name='', model=None, offset=0., eval_env=0): """ + ...
Clean GLM.from_formula docstring.
py
diff --git a/more_itertools/more.py b/more_itertools/more.py index <HASH>..<HASH> 100644 --- a/more_itertools/more.py +++ b/more_itertools/more.py @@ -402,10 +402,10 @@ def intersperse(e, iterable): [] """ - iterable = iter(iterable) - if iterable: - yield next(iterable) - for item i...
Rename var `iterable` to `it`. First, because it shadows the arg while changing its semantics. Second, because the semantic is that it's an iterator now, not merely an iterable. Third, because `it` is what we've used elsewhere in this situations.
py
diff --git a/nfc/tag/tt2.py b/nfc/tag/tt2.py index <HASH>..<HASH> 100644 --- a/nfc/tag/tt2.py +++ b/nfc/tag/tt2.py @@ -276,7 +276,6 @@ class Type2Tag(object): """ log.debug("write block #{0}".format(block)) assert(len(data) == 4) - assert(block > 3) if not self._page == block ...
no longer need to protect tt2.write into blocks 0-3
py
diff --git a/spyder/plugins/ipythonconsole.py b/spyder/plugins/ipythonconsole.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/ipythonconsole.py +++ b/spyder/plugins/ipythonconsole.py @@ -1543,14 +1543,6 @@ class IPythonConsole(SpyderPluginWidget): """Create kernel manager and client.""" # Kernel ...
IPython console: Remove check of PYTHONPATH in kernelspec env vars This is not needed anymore
py
diff --git a/bcbio/broad/picardrun.py b/bcbio/broad/picardrun.py index <HASH>..<HASH> 100644 --- a/bcbio/broad/picardrun.py +++ b/bcbio/broad/picardrun.py @@ -5,6 +5,25 @@ import os from bcbio.utils import curdir_tmpdir, file_exists from bcbio.distributed.transaction import file_transaction + +def picard_rnaseq_met...
Added RNASeq metrics to Picard.
py
diff --git a/salt/modules/state.py b/salt/modules/state.py index <HASH>..<HASH> 100644 --- a/salt/modules/state.py +++ b/salt/modules/state.py @@ -1584,7 +1584,7 @@ def show_states(queue=False, **kwargs): salt '*' state.show_states - .. versionadded:: Oxygen + .. versionadded:: Fluorine ''' ...
Oxygen should be Fluorine in state.show_states addition This feature was added in PR #<I>, which is presently only in the `develop` branch. Therefore, the `versionadded` tag should be `Fluorine` instead of `Oxygen`.
py
diff --git a/indra/statements/statements.py b/indra/statements/statements.py index <HASH>..<HASH> 100644 --- a/indra/statements/statements.py +++ b/indra/statements/statements.py @@ -5,7 +5,13 @@ Statement classes follow an inheritance hierarchy, with all Statement types inheriting from the parent class :py:class:`Sta...
Change order and formatting of domains mentioned
py
diff --git a/fitsio/fitslib.py b/fitsio/fitslib.py index <HASH>..<HASH> 100644 --- a/fitsio/fitslib.py +++ b/fitsio/fitslib.py @@ -616,6 +616,15 @@ class FITS(object): dtstr = img.dtype.descr[0][1][1:] if img.size == 0: raise ValueError("data must have at least 1 r...
make sure to convert correct endianness when writing during image HDU creation
py
diff --git a/script/release/uploaders/upload.py b/script/release/uploaders/upload.py index <HASH>..<HASH> 100755 --- a/script/release/uploaders/upload.py +++ b/script/release/uploaders/upload.py @@ -76,8 +76,8 @@ def main(): symbols_zip = os.path.join(OUT_DIR, SYMBOLS_NAME) shutil.copy2(os.path.join(OUT_DIR, ...
build: upload dsym files for all mac releases (#<I>)
py
diff --git a/zengine/settings.py b/zengine/settings.py index <HASH>..<HASH> 100644 --- a/zengine/settings.py +++ b/zengine/settings.py @@ -37,7 +37,7 @@ RIAK_PORT = os.environ.get('RIAK_PORT', 8098) REDIS_SERVER = os.environ.get('REDIS_SERVER') -ALLOWED_ORIGINS = ['http://127.0.0.1:8080', 'http://127.0.0.1:9001'] ...
add allowed origin url of ulakbus.net
py
diff --git a/spyder/plugins/base.py b/spyder/plugins/base.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/base.py +++ b/spyder/plugins/base.py @@ -246,6 +246,7 @@ class BasePluginWidget(QWidget): mainwindow.setWindowIcon(icon) mainwindow.setWindowTitle(self.get_plugin_title()) mainwindow....
Plugins: Resize their undocked window to its current size
py
diff --git a/bedup/tracking.py b/bedup/tracking.py index <HASH>..<HASH> 100644 --- a/bedup/tracking.py +++ b/bedup/tracking.py @@ -275,7 +275,11 @@ def track_updated_files(sess, vol, tt): sess.delete(inode) continue - tt.update(path=path.decode(FS_ENCODING)...
Deal with badly-encoded paths.
py
diff --git a/tests/test_movielens.py b/tests/test_movielens.py index <HASH>..<HASH> 100644 --- a/tests/test_movielens.py +++ b/tests/test_movielens.py @@ -704,7 +704,7 @@ def test_sklearn_cv(): for _ in range(self.n_splits): yield idx, idx - cv = CV(n_splits=3, random_state=42) + c...
Set random state to None since shuffle isn't used
py
diff --git a/cbamf/states.py b/cbamf/states.py index <HASH>..<HASH> 100644 --- a/cbamf/states.py +++ b/cbamf/states.py @@ -169,7 +169,7 @@ class LinearFit(State): def reset(self): self.state *= 0 -def prepare_image(image, imz=(0,-1), imsize=-1, invert=False, pad=const.PAD, dopad=True): +def prepare_imag...
no idea why nlogs was off by default, fixed
py
diff --git a/normalize/property/types.py b/normalize/property/types.py index <HASH>..<HASH> 100644 --- a/normalize/property/types.py +++ b/normalize/property/types.py @@ -117,6 +117,7 @@ def coerce_date(not_a_date): DateProperty = make_property_type( "DateProperty", trait_name="date", isa=date, coerce=coerce...
Make property.types.date* have a valid 'empty' configuration by default There's no reasonable '0' datetime value that evaluates to false in a boolean context, so just set it to None.
py
diff --git a/PyInquirer/prompts/checkbox.py b/PyInquirer/prompts/checkbox.py index <HASH>..<HASH> 100644 --- a/PyInquirer/prompts/checkbox.py +++ b/PyInquirer/prompts/checkbox.py @@ -41,9 +41,9 @@ class InquirerControl(TokenListControl): else: name = c['name'] value = c.ge...
'checked' is respected even when 'name' and 'value' don't jibe (fixes #<I>)
py
diff --git a/pychromecast/dial.py b/pychromecast/dial.py index <HASH>..<HASH> 100644 --- a/pychromecast/dial.py +++ b/pychromecast/dial.py @@ -137,8 +137,8 @@ def get_cast_type(cast_info, zconf=None, timeout=30, context=None): cast_type = CAST_TYPE_AUDIO _LOGGER.debug("cast type: %s, manuf...
Log error code on exception (#<I>)
py
diff --git a/lib/py/src/transport/TTwisted.py b/lib/py/src/transport/TTwisted.py index <HASH>..<HASH> 100644 --- a/lib/py/src/transport/TTwisted.py +++ b/lib/py/src/transport/TTwisted.py @@ -29,7 +29,6 @@ from twisted.protocols import basic from twisted.web import server, resource, http from thrift.transport import...
THRIFT-<I> TTwisted.py, during ConnectionLost processing: exceptions.RuntimeError: dictionary changed size during iteration This closes #<I>
py
diff --git a/pycbc/io/hdf.py b/pycbc/io/hdf.py index <HASH>..<HASH> 100644 --- a/pycbc/io/hdf.py +++ b/pycbc/io/hdf.py @@ -411,7 +411,12 @@ class SingleDetTriggers(object): break index = np.array(new_index) self.stat = stat[index] - self.mask = self.mask[index] + if self...
Fix error in SingleDetTriggers clustering (#<I>) mask_to_n_loudest_clustered_events() does not work correctly if the mask is a bool array, such as when a filter function has been used before. This patch makes it work in both cases.
py
diff --git a/thinc/about.py b/thinc/about.py index <HASH>..<HASH> 100644 --- a/thinc/about.py +++ b/thinc/about.py @@ -4,7 +4,7 @@ # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py __name__ = 'thinc' -__version__ = '7.0.0.dev2' +__version__ = '7.0.0.dev3' __summary__ = "Practical Machine Learn...
Set version to <I>.dev3
py
diff --git a/master/buildbot/test/unit/data/test_workers.py b/master/buildbot/test/unit/data/test_workers.py index <HASH>..<HASH> 100644 --- a/master/buildbot/test/unit/data/test_workers.py +++ b/master/buildbot/test/unit/data/test_workers.py @@ -247,7 +247,6 @@ class WorkersEndpoint(endpoint.EndpointMixin, unittest.Te...
test: Remove extraneous print()
py
diff --git a/tests/test_apk.py b/tests/test_apk.py index <HASH>..<HASH> 100644 --- a/tests/test_apk.py +++ b/tests/test_apk.py @@ -28,6 +28,25 @@ class APKTest(unittest.TestCase): self.assertIsNotNone(a.get_certificate(a.get_signature_name())) + def testAPKWrapperRaw(self): + from androguard.misc...
Write tests to check if raw=True works
py
diff --git a/javatools/manifest.py b/javatools/manifest.py index <HASH>..<HASH> 100644 --- a/javatools/manifest.py +++ b/javatools/manifest.py @@ -660,6 +660,9 @@ class SignatureBlockFileChange(GenericChange): def get_description(self): return "[binary file change]" + def fn_pretty(self, side_data): ...
Changed binary data is not shown in the reports
py
diff --git a/scripts/bootstrap.py b/scripts/bootstrap.py index <HASH>..<HASH> 100755 --- a/scripts/bootstrap.py +++ b/scripts/bootstrap.py @@ -162,6 +162,10 @@ def main(): set_tag(card, GameTag.CANT_BE_TARGETED_BY_ABILITIES, True) set_tag(card, GameTag.CANT_BE_TARGETED_BY_HERO_POWERS, True) + if "50% chance ...
Set FORGETFUL on cards that don't have it...
py
diff --git a/plenum/server/node.py b/plenum/server/node.py index <HASH>..<HASH> 100644 --- a/plenum/server/node.py +++ b/plenum/server/node.py @@ -196,6 +196,7 @@ class Node(HasActionQueue, Motor, Propagator, MessageProcessor, HasFileStorage, # init database and request managers self.db_manager = Da...
[INDY-<I>] add request managers initiating
py
diff --git a/nailgun/entity_mixins.py b/nailgun/entity_mixins.py index <HASH>..<HASH> 100644 --- a/nailgun/entity_mixins.py +++ b/nailgun/entity_mixins.py @@ -4,7 +4,7 @@ import http.client as http_client import json as std_json import threading import time -from collections import Iterable +from collections.abc imp...
Fix deprecation warning for collections import (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -122,6 +122,7 @@ setup( "pipenv.patched.notpip._vendor.distlib._backport": ["sysconfig.cfg"], "pipenv.patched.notpip._vendor.distlib": ["t32.exe", "t64.exe", "w32.exe", "w64.exe"], }, + python_require...
Add `python_requires` in setup.py This argument prevents accident install `pipenv` on not supported python versions. Syntax for this string you can find in PEP<I>. Note: this feature works with pip <I>+.
py