diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/kitnirc/client.py b/kitnirc/client.py index <HASH>..<HASH> 100644 --- a/kitnirc/client.py +++ b/kitnirc/client.py @@ -401,7 +401,7 @@ class Client(object): def part(self, target, message=None): """Part a channel.""" - if target not in self.server.channels: + if str(target) not...
String-ify before checking .channels membership This allows passing in `Channel` objects to work properly.
py
diff --git a/src/views.py b/src/views.py index <HASH>..<HASH> 100644 --- a/src/views.py +++ b/src/views.py @@ -2221,10 +2221,11 @@ class GenList(GenBase, ListView): # Add adapted columns a['columns']=[] for column in context['columns']: - # Repair the name - column['name...
Columns without label are allowed in the lists
py
diff --git a/nyamuk/nyamuk.py b/nyamuk/nyamuk.py index <HASH>..<HASH> 100644 --- a/nyamuk/nyamuk.py +++ b/nyamuk/nyamuk.py @@ -12,6 +12,7 @@ import nyamuk_net class Nyamuk(base_nyamuk.BaseNyamuk): def __init__(self, id): base_nyamuk.BaseNyamuk.__init__(self, id) + self.in_pub_msg = [] #incoming...
add incoming publish message to it's list if there is no on_message callback
py
diff --git a/salt/utils/templates.py b/salt/utils/templates.py index <HASH>..<HASH> 100644 --- a/salt/utils/templates.py +++ b/salt/utils/templates.py @@ -20,7 +20,9 @@ import jinja2.ext # Import salt libs import salt.utils -from salt.exceptions import SaltRenderError +from salt.exceptions import ( + SaltRenderE...
Improve jinja error reporting Salt execution functions routinely raise SaltInvocationError and CommandExecutionError exceptions. This commit catches them in the jinja renderer and provides a nicely-formatted error message, preventing the traceback from being in the render error that is printed to the CLI.
py
diff --git a/pyte/screens.py b/pyte/screens.py index <HASH>..<HASH> 100644 --- a/pyte/screens.py +++ b/pyte/screens.py @@ -124,6 +124,10 @@ class Screen(list): 1-indexed**, so, for instance ``ESC [ 10;10 f`` really means -- move cursor to position (9, 9) in the display matrix. + .. versionchanged::...
Added a note on `pyte.modes.LNM` to `Screen` docstring
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,8 @@ import os import sys +# Temporary patch for issue reported here: +# https://groups.google.com/forum/#!topic/nose-users/fnJ-kAUbYHQ +import multiprocessing # TODO: Remove when Travis-CI updates 2.7 to 2.7.4+ __...
Temporary patch for <I> multiprocessing bug
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 @@ -160,7 +160,7 @@ class EbrCalculator(base.RiskCalculator): is_stochastic = True prec...
Add the new calculator as an accepted precalculator for event_based_risk
py
diff --git a/satpy/dependency_tree.py b/satpy/dependency_tree.py index <HASH>..<HASH> 100644 --- a/satpy/dependency_tree.py +++ b/satpy/dependency_tree.py @@ -185,9 +185,9 @@ class DependencyTree(Tree): """Update 'name' property of a node and any related metadata.""" old_name = node.name asse...
Fix dependency tree node name when the new name is the same as old
py
diff --git a/tests/unit/modules/pillar_test.py b/tests/unit/modules/pillar_test.py index <HASH>..<HASH> 100644 --- a/tests/unit/modules/pillar_test.py +++ b/tests/unit/modules/pillar_test.py @@ -16,6 +16,7 @@ from salttesting.mock import ( ensure_in_syspath('../../') # Import Salt libs +import salt.ext.six as six ...
Use assertCountEqual instead of assertEqual for lists in Py3
py
diff --git a/proso_concepts/admin.py b/proso_concepts/admin.py index <HASH>..<HASH> 100644 --- a/proso_concepts/admin.py +++ b/proso_concepts/admin.py @@ -18,5 +18,5 @@ class ConceptAdmin(admin.ModelAdmin): @admin.register(Tag) class TagAdmin(admin.ModelAdmin): - list_display = ('type', 'value') - search_fiel...
concepts - update Tags in admin
py
diff --git a/simple_settings/special_settings.py b/simple_settings/special_settings.py index <HASH>..<HASH> 100644 --- a/simple_settings/special_settings.py +++ b/simple_settings/special_settings.py @@ -23,7 +23,8 @@ def override_settings_by_env(settings_dict): if not settings_dict[SPECIAL_SETTINGS_KEY]['OVERRIDE_...
Refs #<I> - Do not update special settings key from ENV
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -14,9 +14,10 @@ setup(name='python-for-android', entry_points={ 'console_scripts': [ 'python-for-android = pythonforandroid.toolchain:ToolchainCL', + 'p4a = pythonforandroid.toolch...
Added p4a console_script in setup.py
py
diff --git a/runcommands/args.py b/runcommands/args.py index <HASH>..<HASH> 100644 --- a/runcommands/args.py +++ b/runcommands/args.py @@ -190,7 +190,9 @@ class Arg: container = tuple if type is None: - if container is None: + if isinstance(choices, builtins.type) and i...
Allow arg choices to be specified as an enum This seems more intuitive than using `type` and allows a `type` to be specified along with `choices` when `choices` is an enum (maybe an unlikely need, but who knows).
py
diff --git a/sentinelhub/constants.py b/sentinelhub/constants.py index <HASH>..<HASH> 100644 --- a/sentinelhub/constants.py +++ b/sentinelhub/constants.py @@ -494,6 +494,23 @@ class MimeType(Enum): return self.value return mimetypes.types_map['.' + self.value] + def get_sample_type(self): + ...
Function to return sample type used in Sentinel-Hub evalscripts.
py
diff --git a/examples/server/sanic/app.py b/examples/server/sanic/app.py index <HASH>..<HASH> 100644 --- a/examples/server/sanic/app.py +++ b/examples/server/sanic/app.py @@ -4,7 +4,7 @@ from sanic.response import html import socketio sio = socketio.AsyncServer(async_mode='sanic') -app = Sanic() +app = Sanic(name='...
Add application name to Sanic example (#<I>)
py
diff --git a/tests/test_trie.py b/tests/test_trie.py index <HASH>..<HASH> 100644 --- a/tests/test_trie.py +++ b/tests/test_trie.py @@ -69,9 +69,3 @@ def test_hash_backoff(tree): assert tree(1, 5) == 3 assert tree(1, 10) == 4 assert tree.longest_node == 11 - - -def test_fmt_line(): - assert _fmt_line(1...
* Remove serialization test, as now use ujson
py
diff --git a/openfisca_core/populations/group_population.py b/openfisca_core/populations/group_population.py index <HASH>..<HASH> 100644 --- a/openfisca_core/populations/group_population.py +++ b/openfisca_core/populations/group_population.py @@ -267,7 +267,6 @@ class GroupPopulation(Population): # The map is ...
Update openfisca_core/populations/group_population.py
py
diff --git a/scout/server/blueprints/panels/views.py b/scout/server/blueprints/panels/views.py index <HASH>..<HASH> 100644 --- a/scout/server/blueprints/panels/views.py +++ b/scout/server/blueprints/panels/views.py @@ -95,9 +95,11 @@ def gene_edit(panel_id, hgnc_id): panel_gene = controllers.existing_gene(store, p...
fix issue with adding transcripts to panel genes
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,9 @@ import setuptools setup( name='amptrac', version='0.0', - description='', + url='https://github.com/tomprince/amptrac', + description="Client for twisted's amp interface to trac", + licens...
Update license in setup.py.
py
diff --git a/intranet/apps/printing/views.py b/intranet/apps/printing/views.py index <HASH>..<HASH> 100644 --- a/intranet/apps/printing/views.py +++ b/intranet/apps/printing/views.py @@ -175,6 +175,7 @@ def check_page_range(page_range, max_pages): pages += range_high - range_low + 1 else...
fix(printing): convert page to int
py
diff --git a/tests/test_file.py b/tests/test_file.py index <HASH>..<HASH> 100644 --- a/tests/test_file.py +++ b/tests/test_file.py @@ -58,8 +58,12 @@ def test_ini_to_dict(): @patch("runez.open", side_effect=Exception) @patch("os.path.exists", return_value=True) @patch("os.path.isfile", return_value=True) +@patch("os...
Restored readlines() failure test
py
diff --git a/gwpy/timeseries/core.py b/gwpy/timeseries/core.py index <HASH>..<HASH> 100644 --- a/gwpy/timeseries/core.py +++ b/gwpy/timeseries/core.py @@ -408,7 +408,7 @@ class TimeSeries(Series): stepseries *= win # calculated FFT, weight, and stack fft_ = stepseries.fft(nfft=nff...
TimeSeries.average_fft: fixed bug in data setting
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -6,8 +6,6 @@ import sys from setuptools import find_packages, setup -# from m2r import convert - # Package meta-data. NAME = 'hatesonar' DESCRIPTION = 'Hate Speech Detection Library for Python' @@ -35,6 +33,7 @@ setup(...
Update setup.py to use markdown as is
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -39,7 +39,6 @@ setup( 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 3.5', ...
Removed tag for Python <I> (#<I>) Python <I> could not be supported since neither mypy nor pylint support Python <I> anymore. Python <I> reached end-of-life in <I>, so more dependencies are probably affected as well. This change simply removes the corresponding tag in the distribution. The continous integration ...
py
diff --git a/salt/states/boto_elasticache.py b/salt/states/boto_elasticache.py index <HASH>..<HASH> 100644 --- a/salt/states/boto_elasticache.py +++ b/salt/states/boto_elasticache.py @@ -212,7 +212,12 @@ def present( if not security_group_ids: security_group_ids = [] _security_group_ids =...
call to boto_secgroup.convert_to_group_ids should be by keyword args, the earlier code would end up with incorrect parameters being used with region being mapped to vpc_name.
py
diff --git a/delocate/tools.py b/delocate/tools.py index <HASH>..<HASH> 100644 --- a/delocate/tools.py +++ b/delocate/tools.py @@ -375,7 +375,7 @@ def dir2zip(in_dir, zip_fname): info = zipfile.ZipInfo(in_fname) info.filename = relpath(in_fname, in_dir) # See https://stackoverflow...
set S_IFREG (regular file) in ZipInfo.external_attr Fixes <URL> in the ZipInfo 'external_attr'. If we don't do that, then upon installing the wheel with pip, any files that had executable flags (e.g. embedded executables) in the wheel will lose them. Pip restores the execute permissions when uncompressing the wheel on...
py
diff --git a/splunklib/client.py b/splunklib/client.py index <HASH>..<HASH> 100644 --- a/splunklib/client.py +++ b/splunklib/client.py @@ -1872,7 +1872,7 @@ class StoragePasswords(Collection): name = UrlEncoded(realm, encode_slash=True) + ":" + UrlEncoded(username, encode_slash=True) # Append th...
Fix SyntaxWarning over comparison of literals using is
py
diff --git a/spyderlib/widgets/externalshell/sitecustomize.py b/spyderlib/widgets/externalshell/sitecustomize.py index <HASH>..<HASH> 100644 --- a/spyderlib/widgets/externalshell/sitecustomize.py +++ b/spyderlib/widgets/externalshell/sitecustomize.py @@ -324,18 +324,17 @@ if matplotlib is not None: if mpl_ion.lowe...
sitecustomize: Only set the mpl backend for our Python consoles
py
diff --git a/tests/tests.py b/tests/tests.py index <HASH>..<HASH> 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -990,7 +990,7 @@ class TestAssets(unittest.TestCase): pass def test_assets_set_asset(self): - assets_set_asset = self.rocket.assets_set_asset(asset_name='logo', file='logo.png').j...
Use absolute filename for the logo file
py
diff --git a/testing/wd_wrapper.py b/testing/wd_wrapper.py index <HASH>..<HASH> 100644 --- a/testing/wd_wrapper.py +++ b/testing/wd_wrapper.py @@ -25,7 +25,7 @@ class WorkDir: return do(cmd, self.cwd) - def write(self, name: str, content: "str | bytes", /, **kw: object) -> Path: + def write(self, nam...
restore python <I> support
py
diff --git a/python/ray/tests/test_client.py b/python/ray/tests/test_client.py index <HASH>..<HASH> 100644 --- a/python/ray/tests/test_client.py +++ b/python/ray/tests/test_client.py @@ -1,3 +1,4 @@ +import os import pytest import time import sys @@ -417,15 +418,16 @@ def test_basic_named_actor(ray_start_regular_sha...
[Client] Test Serialization in a platform independent way. (#<I>)
py
diff --git a/src/ocrmypdf/_weave.py b/src/ocrmypdf/_weave.py index <HASH>..<HASH> 100644 --- a/src/ocrmypdf/_weave.py +++ b/src/ocrmypdf/_weave.py @@ -21,6 +21,7 @@ from itertools import groupby import pikepdf from .helpers import flatten_groups, page_number +from .exec import tesseract def _update_page_resour...
weave: if we don't have textonly_pdf, delete instruction to draw image
py
diff --git a/bcbio/variation/genotype.py b/bcbio/variation/genotype.py index <HASH>..<HASH> 100644 --- a/bcbio/variation/genotype.py +++ b/bcbio/variation/genotype.py @@ -510,6 +510,7 @@ def variantcall_sample(data, region=None, out_file=None): "cortex": cortex.run_cortex, "samtool...
Add the paired VarScan call to the available callers
py
diff --git a/nodeshot/conf/project_template/project_name/settings.py b/nodeshot/conf/project_template/project_name/settings.py index <HASH>..<HASH> 100644 --- a/nodeshot/conf/project_template/project_name/settings.py +++ b/nodeshot/conf/project_template/project_name/settings.py @@ -43,6 +43,8 @@ DATABASES = { #} ...
Added POSTGIS_VERSION to project_template settings.py
py
diff --git a/pybliometrics/scopus/abstract_retrieval.py b/pybliometrics/scopus/abstract_retrieval.py index <HASH>..<HASH> 100644 --- a/pybliometrics/scopus/abstract_retrieval.py +++ b/pybliometrics/scopus/abstract_retrieval.py @@ -168,7 +168,7 @@ class AbstractRetrieval(Retrieval): return ((start['@year'],...
Return None as confdate instead of list with tuples with Nones
py
diff --git a/openquake/calculators/base.py b/openquake/calculators/base.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/base.py +++ b/openquake/calculators/base.py @@ -435,10 +435,7 @@ class HazardCalculator(BaseCalculator): else: # we are in a basic calculator self.read_inputs() ...
Fix an extract bug discovered by Catalina [skip hazardlib]
py
diff --git a/LiSE/LiSE/allegedb/__init__.py b/LiSE/LiSE/allegedb/__init__.py index <HASH>..<HASH> 100644 --- a/LiSE/LiSE/allegedb/__init__.py +++ b/LiSE/LiSE/allegedb/__init__.py @@ -980,9 +980,7 @@ class ORM(object): windows.append((branch0, turn_from, tick_from, turn0, tick0)) break ...
Fail loudly if _build_loading_windows' assumptions are violated
py
diff --git a/src/ossos/core/setup.py b/src/ossos/core/setup.py index <HASH>..<HASH> 100644 --- a/src/ossos/core/setup.py +++ b/src/ossos/core/setup.py @@ -5,7 +5,6 @@ from setuptools import setup, find_packages dependencies = ['requests >= 2.7', 'astropy >= 4.0', 'vos >= 3.0', - ...
remove ephem dependency as not needed for pipeline and trouble...
py
diff --git a/glue/ligolw/metaio.py b/glue/ligolw/metaio.py index <HASH>..<HASH> 100644 --- a/glue/ligolw/metaio.py +++ b/glue/ligolw/metaio.py @@ -1,3 +1,4 @@ +import numarray import re import sys from xml import sax @@ -124,6 +125,9 @@ class Table(ligolw.Table): raise ligolw.ElementError, "Stream name %s does ...
Add a method to extract a column of numeric data as a numarray array.
py
diff --git a/salt/grains/core.py b/salt/grains/core.py index <HASH>..<HASH> 100644 --- a/salt/grains/core.py +++ b/salt/grains/core.py @@ -1260,6 +1260,13 @@ def os_data(): grains['osfullname'] = \ grains.get('lsb_distrib_id', osname).strip() if 'osrelease' not in grains: + ...
Added temporary workaround for CentOS 7 os-release id bug.
py
diff --git a/connector/setup.py b/connector/setup.py index <HASH>..<HASH> 100755 --- a/connector/setup.py +++ b/connector/setup.py @@ -182,7 +182,7 @@ setup( 'paramiko >= 1.15.1', 'lxml >= 3.3.0', 'ncclient >= 0.6.6', - 'grpcio <= 1.36.1', + 'grpcio <= 1.28.1', 'cisco-g...
revert grpcio to <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,11 +13,13 @@ The Scientific PYthon Development EnviRonment from distutils.core import setup from distutils.command.build import build -from sphinx import setup_command +from distutils.command.install_data import instal...
setup.py: Run update-desktop-database after installing our desktop file on Linux - This will inform the OS that Spyder can open python files right away after installation.
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 @@ -41,9 +41,6 @@ class LDAPbase(object): self.settings_dict = settings_dict self._obj = None - self._reconnect() - assert self._obj is not Non...
Don't connect to LDAP until we need to. Preserve compatability with previous versions of TLDAP. Change-Id: I<I>de<I>a9f9a2fde<I>f<I>efdb<I>b<I>fc3fc2
py
diff --git a/exist/__init__.py b/exist/__init__.py index <HASH>..<HASH> 100644 --- a/exist/__init__.py +++ b/exist/__init__.py @@ -21,5 +21,5 @@ __author__ = 'Matt McDougall' __author_email__ = 'matt@moatmedia.com.au' __copyright__ = 'Copyright 2015 MoatMedia' __license__ = 'Apache 2.0' -__version__ = '0.1.9' +__ver...
Minor version update due to duplicate on pypi
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ setup( classifiers=( 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :...
Updated classifiers in setup.py [ci skip]
py
diff --git a/danceschool/stats/stats.py b/danceschool/stats/stats.py index <HASH>..<HASH> 100644 --- a/danceschool/stats/stats.py +++ b/danceschool/stats/stats.py @@ -211,12 +211,12 @@ def getClassTypeMonthlyData(year=None, series=None, typeLimit=None): def ClassTypeMonthlyJSON(request): try: year = int(...
Fixed broken stats graphs arising from DB migration.
py
diff --git a/tests/testapp/tests/test_core_settings_based_registry.py b/tests/testapp/tests/test_core_settings_based_registry.py index <HASH>..<HASH> 100644 --- a/tests/testapp/tests/test_core_settings_based_registry.py +++ b/tests/testapp/tests/test_core_settings_based_registry.py @@ -64,3 +64,7 @@ def test_assert_con...
regression test to make sure all known limits are in the registry
py
diff --git a/hbmqtt/plugins/manager.py b/hbmqtt/plugins/manager.py index <HASH>..<HASH> 100644 --- a/hbmqtt/plugins/manager.py +++ b/hbmqtt/plugins/manager.py @@ -140,7 +140,7 @@ class PluginManager: def clean_fired_events(future): try: self._fi...
Fix delicious exception so it is properly eaten
py
diff --git a/dvc/main.py b/dvc/main.py index <HASH>..<HASH> 100644 --- a/dvc/main.py +++ b/dvc/main.py @@ -55,13 +55,12 @@ def main(argv=None): except DvcParserError: ret = 254 except UnicodeError: - if is_py2: - logger.exception( - "unicode is not fully supported in ...
main: make sure to raise UinocedeError for py3
py
diff --git a/zhaquirks/philips/zllextendedcolorlight.py b/zhaquirks/philips/zllextendedcolorlight.py index <HASH>..<HASH> 100644 --- a/zhaquirks/philips/zllextendedcolorlight.py +++ b/zhaquirks/philips/zllextendedcolorlight.py @@ -49,6 +49,8 @@ class ZLLExtendedColorLight(CustomDevice): (PHILIPS, "LCT021")...
Support default power on state for Hue Lily and Hue Calla (#<I>)
py
diff --git a/km3pipe/pumps/daq.py b/km3pipe/pumps/daq.py index <HASH>..<HASH> 100644 --- a/km3pipe/pumps/daq.py +++ b/km3pipe/pumps/daq.py @@ -249,6 +249,9 @@ class DAQEvent(object): self.trigger_mask = unpack('<Q', file_obj.read(8))[0] self.overlays = unpack('<i', file_obj.read(4))[0] + # TO...
Fixes JDAQEvent parsing, since dataformat description in the Wiki is not correct
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -36,10 +36,12 @@ exec(compile(open(salt_version).read(), salt_version, 'exec')) class TestCommand(Command): description = 'Run tests' - user_options = [] + user_options = [ + ('runtests-opts=', 'R', 'Comma...
Allow passing options to `tests/runtests.py` from `python setup.py test`.
py
diff --git a/theanets/layers.py b/theanets/layers.py index <HASH>..<HASH> 100644 --- a/theanets/layers.py +++ b/theanets/layers.py @@ -871,7 +871,9 @@ class LSTM(RNN): fn=fn, sequences=inputs, non_sequences=self.weights + self.biases, - outputs_info=[self.zeros('h'), se...
Include directionality in LSTM layer!
py
diff --git a/creep/src/definition.py b/creep/src/definition.py index <HASH>..<HASH> 100755 --- a/creep/src/definition.py +++ b/creep/src/definition.py @@ -82,7 +82,9 @@ class Definition: actions.extend (actions_append) cancels.extend (cancels_append) else: - logger.debug ('Command \'link\' on...
Log failed modifiers and linkers as warning instead of debug.
py
diff --git a/sllurp/llrp.py b/sllurp/llrp.py index <HASH>..<HASH> 100644 --- a/sllurp/llrp.py +++ b/sllurp/llrp.py @@ -694,10 +694,6 @@ class LLRPClient (LineReceiver): def pause (self, duration_seconds=0): """Pause an inventory operation for a set amount of time.""" - if self.state != LLRPClient...
pause() should always be save; remove check that fails on borked reader
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -27,5 +27,7 @@ topydo is a todo list application using the todo.txt format. It is heavily inspi * Maintain dependencies between todo items; * Allow todos to recur; * Some conveniences when adding new items (e.g. adding crea...
Add test_suite variable for test directory.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -2,6 +2,8 @@ import os from setuptools import setup, find_packages +from itertools import chain +from glob import glob import cookielaw @@ -19,6 +21,12 @@ CLASSIFIERS = [ 'Topic :: Internet :: WWW/HTTP :: Session...
Adding package_data to setup.py to ensure non-python files are installed
py
diff --git a/gitlab_runner/tests/conftest.py b/gitlab_runner/tests/conftest.py index <HASH>..<HASH> 100644 --- a/gitlab_runner/tests/conftest.py +++ b/gitlab_runner/tests/conftest.py @@ -13,6 +13,7 @@ from .common import ( CONFIG, GITLAB_LOCAL_MASTER_PORT, GITLAB_LOCAL_RUNNER_PORT, + GITLAB_MASTER_URL...
gitlab runner better conditions (#<I>) * Add attempts * Check for every log line, check for both enpoints
py
diff --git a/bitfield/tests/tests.py b/bitfield/tests/tests.py index <HASH>..<HASH> 100644 --- a/bitfield/tests/tests.py +++ b/bitfield/tests/tests.py @@ -104,8 +104,8 @@ class BitTest(TestCase): def test_comparison(self): self.assertEqual(Bit(0), Bit(0)) - self.assertNotEquals(Bit(1), Bit(0)) - ...
tests: Use assertNotEqual instead of deprecated assertNotEquals.
py
diff --git a/gcloud/storage/test_connection.py b/gcloud/storage/test_connection.py index <HASH>..<HASH> 100644 --- a/gcloud/storage/test_connection.py +++ b/gcloud/storage/test_connection.py @@ -584,11 +584,11 @@ class TestConnection(unittest2.TestCase): self.assertEqual(netloc, 'api.example.com') sel...
Dead chickens for pep8 E<I>.
py
diff --git a/pyglibc/__init__.py b/pyglibc/__init__.py index <HASH>..<HASH> 100644 --- a/pyglibc/__init__.py +++ b/pyglibc/__init__.py @@ -41,4 +41,5 @@ __all__ = [ 'select', 'selectors', 'signalfd', + 'subreaper', ]
Add subreaper to __all__
py
diff --git a/pytestsalt/fixtures/daemons.py b/pytestsalt/fixtures/daemons.py index <HASH>..<HASH> 100644 --- a/pytestsalt/fixtures/daemons.py +++ b/pytestsalt/fixtures/daemons.py @@ -525,7 +525,7 @@ class SaltScriptBase(object): @property def log_prefix(self): - return '[pytest-{0}]'.format(self.conf...
Fix the port source on the daemons fixtures side
py
diff --git a/polymodels/fields.py b/polymodels/fields.py index <HASH>..<HASH> 100644 --- a/polymodels/fields.py +++ b/polymodels/fields.py @@ -152,4 +152,5 @@ class PolymorphicTypeField(ForeignKey): kwargs.pop(kwarg) if self.overriden_default: kwargs.pop('default') + kwargs...
Account for the late limit_choices_to deconstruction in <I>.
py
diff --git a/salt/states/saltmod.py b/salt/states/saltmod.py index <HASH>..<HASH> 100644 --- a/salt/states/saltmod.py +++ b/salt/states/saltmod.py @@ -79,6 +79,9 @@ def state( ssh Set to `True` to use the ssh client instaed of the standard salt client + roster + In the event of using salt-ssh,...
Add roster doc to salt.state runner
py
diff --git a/json5/lib.py b/json5/lib.py index <HASH>..<HASH> 100644 --- a/json5/lib.py +++ b/json5/lib.py @@ -172,9 +172,12 @@ def dump(obj, fp, skipkeys=False, ensure_ascii=True, check_circular=True, should produce exactly the same output as ``json.dumps(obj, fp).`` """ - fp.write(str(dumps(obj, skipke...
dump() properly passes args to dumps() Fix a bug (caused by a missing cls) that caused dump() to pass arguments to dumps() incorrectly.
py
diff --git a/analytical/tests/test_tag_clickmap.py b/analytical/tests/test_tag_clickmap.py index <HASH>..<HASH> 100644 --- a/analytical/tests/test_tag_clickmap.py +++ b/analytical/tests/test_tag_clickmap.py @@ -2,9 +2,6 @@ Tests for the Clickmap template tags and filters. """ -import re - -from django.contrib.auth....
fixed various typos, this would of failed previously
py
diff --git a/src/python/pants/engine/native.py b/src/python/pants/engine/native.py index <HASH>..<HASH> 100644 --- a/src/python/pants/engine/native.py +++ b/src/python/pants/engine/native.py @@ -808,7 +808,7 @@ class Native(object): return self.gc(scheduler, self.lib.scheduler_destroy) def set_panic_handler(s...
Make RUST_BACKTRACE sniffing less specific (#<I>) We set it to 'all' now on CI, so otherwise lose information
py
diff --git a/flask_permissions/models.py b/flask_permissions/models.py index <HASH>..<HASH> 100644 --- a/flask_permissions/models.py +++ b/flask_permissions/models.py @@ -37,6 +37,22 @@ class Role(db.Model): def __init__(self, name): self.name = name.lower() + def add_abilities(*abilities): + ...
Adds add and remove methods for abilities
py
diff --git a/multiqc/modules/somalier/somalier.py b/multiqc/modules/somalier/somalier.py index <HASH>..<HASH> 100644 --- a/multiqc/modules/somalier/somalier.py +++ b/multiqc/modules/somalier/somalier.py @@ -545,9 +545,13 @@ class MultiqcModule(BaseMultiqcModule): for s_name, d in self.somalier_data.items(): ...
Somalier: division by zero in sex ploidy plot
py
diff --git a/zipline/protocol.py b/zipline/protocol.py index <HASH>..<HASH> 100644 --- a/zipline/protocol.py +++ b/zipline/protocol.py @@ -144,6 +144,13 @@ class BarData(object): else: return name in self.__dict__ + def has_key(self, name): + """ + DEPRECATED: __contains__ is pr...
MAINT: Add a has_key method to BarData for compatibility. BarData should, at least for the time being, be compatible with existing algorithms that had worked against the prior usage of an ndict as data, which provided `has_key`. Of note, the Python language has deprecated `has_key` in favor of using `in` and `__conta...
py
diff --git a/phypno/widgets/overview.py b/phypno/widgets/overview.py index <HASH>..<HASH> 100644 --- a/phypno/widgets/overview.py +++ b/phypno/widgets/overview.py @@ -177,8 +177,8 @@ class Overview(QGraphicsView): stamps = _make_timestamps(self.start_time, self.minimum, self.maximum, ...
use two lists, not dict for time stamps in overview
py
diff --git a/grammpy/StringGrammar.py b/grammpy/StringGrammar.py index <HASH>..<HASH> 100644 --- a/grammpy/StringGrammar.py +++ b/grammpy/StringGrammar.py @@ -24,7 +24,7 @@ class StringGrammar(Grammar): return super().add_term(StringGrammar.__to_string_arr(term)) def term(self, term=None): - r...
Fix return of Terminal instance when term method accept string
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,8 @@ setup( 'PyYAML>=3.11', 'retrying>=1.3.3', 'six>=1.10.0', - 'pytz>=2016.10' + 'pytz>=2016.10', + 'future>=0.16.0' ], setup_requires=[ 'pytest-run...
add the future package as a dependency
py
diff --git a/pysparkling/rdd.py b/pysparkling/rdd.py index <HASH>..<HASH> 100644 --- a/pysparkling/rdd.py +++ b/pysparkling/rdd.py @@ -146,7 +146,7 @@ class RDD(object): >>> r = Context().parallelize( ... [('a', 1), ('b', 2), ('a', 3), ('c', 4)] ... ).aggregateByKey(0, seqOp, combOp) - ...
revert last change to doctest of aggregateByKey
py
diff --git a/autofit/core/phase.py b/autofit/core/phase.py index <HASH>..<HASH> 100644 --- a/autofit/core/phase.py +++ b/autofit/core/phase.py @@ -40,8 +40,8 @@ class AbstractPhase(object): phase_name: str The name of this phase """ - self.optimizer = optimizer_class(name=phase_nam...
creating default phase name prior to passing argument to optimizer class constructor
py
diff --git a/tests/test_datalad.py b/tests/test_datalad.py index <HASH>..<HASH> 100644 --- a/tests/test_datalad.py +++ b/tests/test_datalad.py @@ -27,3 +27,5 @@ def test_commit_file(annex_path, new_dataset): with open(file_path, 'w') as fd: fd.write("""GPL""") commit_files.run(annex_path, ds_id, ['LICE...
Fix missing assert for test_commit_file.
py
diff --git a/tests/unit/modules/win_repo_test.py b/tests/unit/modules/win_repo_test.py index <HASH>..<HASH> 100644 --- a/tests/unit/modules/win_repo_test.py +++ b/tests/unit/modules/win_repo_test.py @@ -24,6 +24,7 @@ ensure_in_syspath('../../') from salt.modules import win_repo win_repo.__opts__ = {} +win_repo.__sa...
Mock __salt__ and call to salt.loader.render to fix win_repo test
py
diff --git a/eco/__init__.py b/eco/__init__.py index <HASH>..<HASH> 100644 --- a/eco/__init__.py +++ b/eco/__init__.py @@ -32,7 +32,7 @@ class Source(object): @property def combined_contents(self): - return ";\n".join([coffeescript._default_compiler_script(), self.contents]) + return ";\n".joi...
Update eco/__init__.py Hi, I've noticed that with the latest version of <URL>) Thank you
py
diff --git a/django_fsm/tests.py b/django_fsm/tests.py index <HASH>..<HASH> 100644 --- a/django_fsm/tests.py +++ b/django_fsm/tests.py @@ -118,7 +118,7 @@ class DocumentTest(TestCase): class BlogPostStatus(models.Model): - name = models.CharField(max_length=3, unique=True) + name = models.CharField(max_lengt...
change length CharField BlogPostStatus.name to accommodate all the possible states in the tests At least PostgreSQL complains loudly when a value doesn't fit into the varchar.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -52,7 +52,7 @@ if sys.platform == 'darwin': setup(name = "paramiko", - version = "1.11.0", + version = "1.10.3", description = "SSH2 protocol library", author = "Jeff Forcier", author_email ...
Not sure how this got updated :(
py
diff --git a/great_expectations/render/renderer/column_section_renderer.py b/great_expectations/render/renderer/column_section_renderer.py index <HASH>..<HASH> 100644 --- a/great_expectations/render/renderer/column_section_renderer.py +++ b/great_expectations/render/renderer/column_section_renderer.py @@ -375,10 +375,1...
Set content block class dynamically (#<I>)
py
diff --git a/src/infi/docopt_completion/common.py b/src/infi/docopt_completion/common.py index <HASH>..<HASH> 100644 --- a/src/infi/docopt_completion/common.py +++ b/src/infi/docopt_completion/common.py @@ -67,7 +67,7 @@ def build_command_tree(pattern, cmd_params): Recursively fill in a command tree in CommandPara...
Group long imports in parens
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,14 @@ #from distutils.core import setup +import io + from setuptools import setup + +def read(path): + with io.open(path, mode="r", encoding="utf-8") as fd: + return fd.read() + + setup( name = 'Ebo...
Fixed #<I> - Read the ``README.md`` file using utf-8 encoding. (cherry picked from commit <I>)
py
diff --git a/pvlib/pvl_tools.py b/pvlib/pvl_tools.py index <HASH>..<HASH> 100755 --- a/pvlib/pvl_tools.py +++ b/pvlib/pvl_tools.py @@ -180,10 +180,10 @@ class Parse(): #parse complex logic except: pvl_logger.warning('Optional value "'+arg+'" not input'"") ...
Modified lambda execution to ignore NAN entries
py
diff --git a/insights/specs/__init__.py b/insights/specs/__init__.py index <HASH>..<HASH> 100644 --- a/insights/specs/__init__.py +++ b/insights/specs/__init__.py @@ -223,7 +223,6 @@ class Specs(SpecSet): journal_since_boot = RegistryPoint(filterable=True) katello_service_status = RegistryPoint(filterable=Tru...
Delete kdump from specs/init (#<I>)
py
diff --git a/gitlab/__init__.py b/gitlab/__init__.py index <HASH>..<HASH> 100644 --- a/gitlab/__init__.py +++ b/gitlab/__init__.py @@ -30,7 +30,7 @@ from gitlab.exceptions import * # noqa from gitlab import utils # noqa __title__ = "python-gitlab" -__version__ = "2.0.1" +__version__ = "2.1.0" __author__ = "Gauva...
chore: bump to <I> There are a few more features in there
py
diff --git a/rest_framework_nested/routers.py b/rest_framework_nested/routers.py index <HASH>..<HASH> 100644 --- a/rest_framework_nested/routers.py +++ b/rest_framework_nested/routers.py @@ -52,7 +52,7 @@ class NestedSimpleRouter(SimpleRouter): self.nest_prefix = kwargs.pop('lookup', 'nested_%i' % self.nest_co...
Replaced filter call with a list comprehension for py3k support
py
diff --git a/src/masonite/authorization/Gate.py b/src/masonite/authorization/Gate.py index <HASH>..<HASH> 100644 --- a/src/masonite/authorization/Gate.py +++ b/src/masonite/authorization/Gate.py @@ -33,16 +33,14 @@ class Gate: self.policies[model_class] = policy_class return self - def get_po...
rewrite objects policy to remove orm dependency
py
diff --git a/lhc/io/sequence/sequence_file.py b/lhc/io/sequence/sequence_file.py index <HASH>..<HASH> 100644 --- a/lhc/io/sequence/sequence_file.py +++ b/lhc/io/sequence/sequence_file.py @@ -10,13 +10,13 @@ class SequenceFile: REGISTERED_EXTENSIONS = {} REGISTERED_FORMATS = {} # type: Dict[str, ClassVar['Seq...
allow sequence filenames to be None
py
diff --git a/metpy/calc/thermo.py b/metpy/calc/thermo.py index <HASH>..<HASH> 100644 --- a/metpy/calc/thermo.py +++ b/metpy/calc/thermo.py @@ -135,7 +135,7 @@ def moist_lapse(pressure, temperature): def dt(t, p): t = units.Quantity(t, temperature.units) p = units.Quantity(p, pressure.units) - ...
Better implementation for sat mixing ratio Changed the implementation for saturation mixing ratio, added a formula in the notes section of the doc string to equiv pot temp, and included sat mixing ratio in moist lapse function
py
diff --git a/torchvision/datasets/cifar.py b/torchvision/datasets/cifar.py index <HASH>..<HASH> 100644 --- a/torchvision/datasets/cifar.py +++ b/torchvision/datasets/cifar.py @@ -21,7 +21,7 @@ class CIFAR10(data.Dataset): ``cifar-10-batches-py`` exists or will be saved to if download is set to True. ...
remove extra space (#<I>)
py
diff --git a/src/quart/app.py b/src/quart/app.py index <HASH>..<HASH> 100644 --- a/src/quart/app.py +++ b/src/quart/app.py @@ -1780,8 +1780,6 @@ class Quart(Scaffold): self.log_exception(sys.exc_info()) async def shutdown(self) -> None: - await asyncio.gather(*self.background_tasks) - ...
Bugfix await background task shutdown after shutdown funcs This allows the after-serving shutdown functions to stop or otherwise trigger the end of the background tasks.
py
diff --git a/ratcave/console_scripts/arena_scanner.py b/ratcave/console_scripts/arena_scanner.py index <HASH>..<HASH> 100644 --- a/ratcave/console_scripts/arena_scanner.py +++ b/ratcave/console_scripts/arena_scanner.py @@ -42,7 +42,6 @@ def scan(tracker, rigid_body_name, pointwidth=.06, pointspeed=3.): rigid body ...
removed key detection in arena_scan, because it's so fast, and it removes the last psychopy dependency.
py
diff --git a/blocking.py b/blocking.py index <HASH>..<HASH> 100644 --- a/blocking.py +++ b/blocking.py @@ -22,7 +22,8 @@ def predicateCoverage(pairs, predicates) : # page 102 of Bilenko def trainBlocking(training_pairs, predicates, data_model, eta, epsilon) : - training_distinct, training_dupes = training_pairs + ...
fixed important bug that was emptying out the training set of duplicates
py
diff --git a/codespell.py b/codespell.py index <HASH>..<HASH> 100755 --- a/codespell.py +++ b/codespell.py @@ -193,10 +193,6 @@ def parse_options(args): parser.add_option('-d', '--disable-colors', action = 'store_true', default = False, help = 'Disable colors even ...
Remove '-r' recursive flag If user specifies directory then it means user wants to check it recursively.
py
diff --git a/aiobotocore/paginate.py b/aiobotocore/paginate.py index <HASH>..<HASH> 100644 --- a/aiobotocore/paginate.py +++ b/aiobotocore/paginate.py @@ -22,6 +22,10 @@ class AioPageIterator(PageIterator): self._current_kwargs = self._op_kwargs self._previous_next_token = None self._next_tok...
port paginator fix from botocore
py
diff --git a/gitenberg/book.py b/gitenberg/book.py index <HASH>..<HASH> 100644 --- a/gitenberg/book.py +++ b/gitenberg/book.py @@ -73,7 +73,10 @@ class Book(): path = os.path.join(self.library_path, name) if os.path.exists(path): self.local_path = path - else: + + def ma...
fix to fetch broke clone
py
diff --git a/hdate/date.py b/hdate/date.py index <HASH>..<HASH> 100644 --- a/hdate/date.py +++ b/hdate/date.py @@ -71,7 +71,7 @@ class HDate(object): # pylint: disable=useless-object-inheritance def __repr__(self): """Return a representation of HDate for programmatic use.""" return ("<HDate(gdat...
When printing the HDate represantation, return the gdate `repr`
py
diff --git a/fedmsg/commands/relay.py b/fedmsg/commands/relay.py index <HASH>..<HASH> 100644 --- a/fedmsg/commands/relay.py +++ b/fedmsg/commands/relay.py @@ -68,6 +68,8 @@ class RelayCommand(BaseCommand): options=self.config, # Only run this *one* consumer ...
Fedmsg-relay shouldn't run producers. If another package happens to be installed in the system, running `fedmsg-relay` shouldn't inadvertently start that thing.
py
diff --git a/openfisca_core/columns.py b/openfisca_core/columns.py index <HASH>..<HASH> 100644 --- a/openfisca_core/columns.py +++ b/openfisca_core/columns.py @@ -224,13 +224,17 @@ class EnumCol(IntCol): def json_to_python(self): enum = self.enum if enum is None: - return super(EnumCol...
Accept string indexs when enumeration column has no enumeration.
py