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> 100755 --- a/setup.py +++ b/setup.py @@ -80,7 +80,7 @@ setuptools.setup( # Location where the package may be downloaded: download_url='https://pypi.org/project/harvesters/', # A list of required Python modules: - install_requires=['harvesters_util=...
Do not require harvesters_util anymore Harvester Core > <I> can work without harvester_util.
py
diff --git a/wikitextparser/template_test.py b/wikitextparser/template_test.py index <HASH>..<HASH> 100644 --- a/wikitextparser/template_test.py +++ b/wikitextparser/template_test.py @@ -51,7 +51,6 @@ class TemplateTest(unittest.TestCase): def test_normal_name(self): t = Template('{{ u |a}}') - h...
- help(t.normal_name)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -14,12 +14,14 @@ # limitations under the License. +import codecs import os from setuptools import find_packages, setup -with open(os.path.join(os.path.dirname(__file__), "README.md")) as readme: +readme_path = os....
Make an assumption about the encoding of `README.md` for `setup.py`. Without this, sometimes Windows blows up (I'm not quite sure why) trying to decode the UTF-8 as CP<I>.
py
diff --git a/source/rafcon/gui/controllers/global_variable_manager.py b/source/rafcon/gui/controllers/global_variable_manager.py index <HASH>..<HASH> 100644 --- a/source/rafcon/gui/controllers/global_variable_manager.py +++ b/source/rafcon/gui/controllers/global_variable_manager.py @@ -303,7 +303,7 @@ class GlobalVaria...
fix(gvm controller): assign value as string as descripted
py
diff --git a/tests/test_core_processors.py b/tests/test_core_processors.py index <HASH>..<HASH> 100644 --- a/tests/test_core_processors.py +++ b/tests/test_core_processors.py @@ -24,6 +24,11 @@ class TestForceSampleRate(unittest.TestCase): def id(): return 'dummy_proc' + @staticmethod + ...
add version to Dummy_Processor test class
py
diff --git a/riak/mapreduce.py b/riak/mapreduce.py index <HASH>..<HASH> 100644 --- a/riak/mapreduce.py +++ b/riak/mapreduce.py @@ -155,7 +155,7 @@ class RiakMapReduce(object): """ Run the map/reduce operation. Returns an array of results, or an array of RiakLink objects if the last phase is a...
timeout is expressed in milliseconds
py
diff --git a/federation/outbound.py b/federation/outbound.py index <HASH>..<HASH> 100644 --- a/federation/outbound.py +++ b/federation/outbound.py @@ -194,13 +194,13 @@ def handle_send( "handle_send - failed to generate payload for %s, %s: %s", fid, endpoint, traceback.format_exc(), ...
Tune debug logging context when reporting failed AP payloads
py
diff --git a/lenses/typeclass.py b/lenses/typeclass.py index <HASH>..<HASH> 100644 --- a/lenses/typeclass.py +++ b/lenses/typeclass.py @@ -53,7 +53,10 @@ def _mempty_dict(dct): @mappend.register(dict) def _mappend_dict(dct, other): - return {**dct, **other} + out = {} + out.update(dct) + out.update(othe...
python<I>: does not support syntax {**dct}
py
diff --git a/quark/ip_availability.py b/quark/ip_availability.py index <HASH>..<HASH> 100755 --- a/quark/ip_availability.py +++ b/quark/ip_availability.py @@ -47,9 +47,10 @@ def main(): def get_ip_availability(**kwargs): LOG.debug("Begin querying %s" % kwargs) - used_ips = get_used_ips(neutron_db_api.get_ses...
Use slaves on IP Availability queries RM <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -40,9 +40,14 @@ setup( packages=find_packages(), install_requires=['spglib', 'numpy', 'scipy', 'pymatgen>=2017.12.30', 'h5py', 'phonopy', 'matplotlib', 'seekpath'], - extras_require={'docs':...
Add style sheets to setup.py
py
diff --git a/mainline/__init__.py b/mainline/__init__.py index <HASH>..<HASH> 100644 --- a/mainline/__init__.py +++ b/mainline/__init__.py @@ -136,12 +136,14 @@ class Di(object): :rtype: generator ''' for key in keys: - provider = self.get_provider(key) - missing = sel...
Throw unresolvable on provider not existing
py
diff --git a/unleash/plugins/docs.py b/unleash/plugins/docs.py index <HASH>..<HASH> 100644 --- a/unleash/plugins/docs.py +++ b/unleash/plugins/docs.py @@ -100,6 +100,7 @@ def lint_release(ctx): # ensure documentation builds cleanly with in_tmpexport(ctx['commit']) as tmpdir: + ...
Install project when building docs to allow autodoc to work.
py
diff --git a/blockstack/blockstackd.py b/blockstack/blockstackd.py index <HASH>..<HASH> 100644 --- a/blockstack/blockstackd.py +++ b/blockstack/blockstackd.py @@ -1765,7 +1765,10 @@ def stop_server( clean=False, kill=False ): sys.exit(1) if kill: - time.sleep(3.0) + clean =...
kill by default with SIGKILL if SIGTERM didn't work. Also, always remove the PID file on SIGKILL
py
diff --git a/plaid/version.py b/plaid/version.py index <HASH>..<HASH> 100644 --- a/plaid/version.py +++ b/plaid/version.py @@ -1 +1 @@ -__version__ = '2.4.0' +__version__ = '2.4.1'
plaid-python@<I>
py
diff --git a/src/audio_metadata/formats/id3v1.py b/src/audio_metadata/formats/id3v1.py index <HASH>..<HASH> 100644 --- a/src/audio_metadata/formats/id3v1.py +++ b/src/audio_metadata/formats/id3v1.py @@ -6,6 +6,7 @@ __all__ = [ from .models import Tags from .tables import ID3v1Genres from ..exceptions import InvalidH...
ID3v1 should be a DictMixin
py
diff --git a/tests/test_xlsm_wrf.py b/tests/test_xlsm_wrf.py index <HASH>..<HASH> 100644 --- a/tests/test_xlsm_wrf.py +++ b/tests/test_xlsm_wrf.py @@ -53,7 +53,7 @@ def test_read_wrf(wrf): # make sure coordinates correct assert wrf.lsm_lat_var in xd.coords assert wrf.lsm_lon_var in xd.coords ...
rename time dimension for slicing
py
diff --git a/jishaku/cog.py b/jishaku/cog.py index <HASH>..<HASH> 100644 --- a/jishaku/cog.py +++ b/jishaku/cog.py @@ -169,8 +169,8 @@ class Jishaku: def sh_backend(self, code): """Open a subprocess, wait for it and format the output""" - proc = subprocess.Popen(["/bin/bash", "-c", code], stdout=...
Use context manager to ensure process closes
py
diff --git a/tartiflette_aiohttp/_reponse_headers.py b/tartiflette_aiohttp/_reponse_headers.py index <HASH>..<HASH> 100644 --- a/tartiflette_aiohttp/_reponse_headers.py +++ b/tartiflette_aiohttp/_reponse_headers.py @@ -9,7 +9,7 @@ except ImportError: pass -def set_response_headers(headers=None): +def set_respo...
There is no point in having headers nullable in the set_response_header method
py
diff --git a/utool/util_grabdata.py b/utool/util_grabdata.py index <HASH>..<HASH> 100755 --- a/utool/util_grabdata.py +++ b/utool/util_grabdata.py @@ -181,7 +181,9 @@ def download_url(url, filename=None, spoof=False): def fix_dropbox_link(dropbox_url): """ Dropbox links should be en-mass downloaed from dl.dropb...
Remove dropbox GET variables from links
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,6 @@ import os import sys -import platform from setuptools import setup @@ -28,14 +27,11 @@ test_deps = [ install_deps = [ 'pillow>=4.0.0', 'smbus2', - 'monotonic;python_version<"3.3"' + 'mono...
Conditional install_deps for wheel (#<I>)
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 @@ -665,6 +665,12 @@ if 'SPYDER_EXCEPTHOOK' in os.environ: p...
Jump to line number in editor for post mortem debugging.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,12 +3,12 @@ from distutils.core import setup setup( name='basepage', packages=['basepage'], - version='1.7.5', + version='1.7.4', description='A wrapper for WebDriver that provides some extended and ad...
Revert changes in setup.py
py
diff --git a/python/ray/tune/ray_trial_executor.py b/python/ray/tune/ray_trial_executor.py index <HASH>..<HASH> 100644 --- a/python/ray/tune/ray_trial_executor.py +++ b/python/ray/tune/ray_trial_executor.py @@ -256,9 +256,6 @@ class RayTrialExecutor(TrialExecutor): error_msg (str): Optional error message. ...
[tune] Close loggers after updating trial (#<I>) (#<I>)
py
diff --git a/GPy/examples/__init__.py b/GPy/examples/__init__.py index <HASH>..<HASH> 100644 --- a/GPy/examples/__init__.py +++ b/GPy/examples/__init__.py @@ -4,5 +4,4 @@ import classification import regression import dimensionality_reduction -import non_Gaussian import tutorials
non_Gaussian exampless deleted
py
diff --git a/exchangelib/autodiscover/discovery.py b/exchangelib/autodiscover/discovery.py index <HASH>..<HASH> 100644 --- a/exchangelib/autodiscover/discovery.py +++ b/exchangelib/autodiscover/discovery.py @@ -6,9 +6,10 @@ from urllib.parse import urlparse import dns.resolver from ..configuration import Configurat...
Fix for 'ValueError: Auth type must be OAuth <I>' when attempting autodiscover with OAuth credentials. Refs #<I>
py
diff --git a/discord/ui/view.py b/discord/ui/view.py index <HASH>..<HASH> 100644 --- a/discord/ui/view.py +++ b/discord/ui/view.py @@ -252,9 +252,10 @@ class View: view.add_item(_component_to_item(component)) return view - def add_item(self, item: Item[Any]) -> None: + def add_item(self, i...
Change View child mutators to be fluent-style methods
py
diff --git a/hydra_base/util/hydra_dateutil.py b/hydra_base/util/hydra_dateutil.py index <HASH>..<HASH> 100644 --- a/hydra_base/util/hydra_dateutil.py +++ b/hydra_base/util/hydra_dateutil.py @@ -23,6 +23,7 @@ from dateutil.parser import parse from .. import config import pandas as pd +import six log = logging.ge...
Use six for string comparison in date util
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -119,7 +119,7 @@ class build_config(Command): class BigFloatBuild(build): sub_commands = build.sub_commands - sub_commands.append(('build_config', lambda self:True)) + sub_commands.insert(0, ('build_config', lamb...
Make sure build_config is executed before build_py.
py
diff --git a/cobra/version.py b/cobra/version.py index <HASH>..<HASH> 100644 --- a/cobra/version.py +++ b/cobra/version.py @@ -47,7 +47,7 @@ if name == "nt": git_command = find_git_on_windows() -def call_git_describe(abbrev=4): +def call_git_describe(abbrev=7): try: return check_output([git_comma...
fixes issue #<I> (7 char git hash in version)
py
diff --git a/__init__.py b/__init__.py index <HASH>..<HASH> 100644 --- a/__init__.py +++ b/__init__.py @@ -31,7 +31,13 @@ A lot of TODO comments are inserted inside the pydocs of the code itself. Please read them for suggestions on work need to be done. -The DB way is currently very basic. +The DB way is currently...
Comment how works schema_mambu
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -98,7 +98,7 @@ setup(name=PACKAGENAME, version=VERSION, description=DESCRIPTION, scripts=scripts, - install_requires=['scipy', 'astropy>=1.0.2', 'emcee>=0.2.1'], + install_requires=['scipy', 'ast...
require correct version of emcee
py
diff --git a/productmd/composeinfo.py b/productmd/composeinfo.py index <HASH>..<HASH> 100644 --- a/productmd/composeinfo.py +++ b/productmd/composeinfo.py @@ -579,9 +579,6 @@ class VariantBase(productmd.common.MetadataBase): types = types or [] result = [] - if arch and arch not in self.arche...
composeinfo: fix arch kwarg handling in get_arches() Prior to this change, if a caller specified an arch parameter to get_arches(), productmd would crash with an AttributeError, because were checking the arches member on a VariantBase object that probably does not have that member defined. Remove the check completely...
py
diff --git a/bakery_lint/fonttests/test_ttf.py b/bakery_lint/fonttests/test_ttf.py index <HASH>..<HASH> 100644 --- a/bakery_lint/fonttests/test_ttf.py +++ b/bakery_lint/fonttests/test_ttf.py @@ -216,7 +216,7 @@ class TTFTestCase(TestCase): """ Check if NAME table does not contain items with platformID = 1 """ ...
added description for test failure message #<I>
py
diff --git a/ayrton/tests/test_execute.py b/ayrton/tests/test_execute.py index <HASH>..<HASH> 100644 --- a/ayrton/tests/test_execute.py +++ b/ayrton/tests/test_execute.py @@ -65,13 +65,13 @@ class MockedStdOut (unittest.TestCase): self.assertEqual (self.mock_stdout.read (), 'simple\n') self.mock_stdou...
[*] useless tests due to to API change in Command(..., _in).
py
diff --git a/blueqat/backends/numpy_backend.py b/blueqat/backends/numpy_backend.py index <HASH>..<HASH> 100644 --- a/blueqat/backends/numpy_backend.py +++ b/blueqat/backends/numpy_backend.py @@ -158,11 +158,10 @@ class NumPyBackend(Backend): n_qubits = ctx.n_qubits i = ctx.indices for target ...
Improve performance of numpy_backend Hadamard gate
py
diff --git a/tests/features/test_search_index.py b/tests/features/test_search_index.py index <HASH>..<HASH> 100644 --- a/tests/features/test_search_index.py +++ b/tests/features/test_search_index.py @@ -131,24 +131,32 @@ class TestSearchIndex(unittest.TestCase): def test_settings(self): self.index.save_ob...
Ensures that you can set settings with the get settings dict
py
diff --git a/tests/classifiers.py b/tests/classifiers.py index <HASH>..<HASH> 100644 --- a/tests/classifiers.py +++ b/tests/classifiers.py @@ -42,6 +42,8 @@ def optimize_final_model_classification(model_name=None): if model_name == 'DeepLearningClassifier': lower_bound = -0.235 + if model_name == 'LG...
modifies test boundaries to handle lightgbm better fitting to training data
py
diff --git a/openstack_dashboard/settings.py b/openstack_dashboard/settings.py index <HASH>..<HASH> 100644 --- a/openstack_dashboard/settings.py +++ b/openstack_dashboard/settings.py @@ -135,9 +135,14 @@ COMPRESS_PRECOMPILERS = ( ('text/scss', 'horizon.utils.scss_filter.HorizonScssFilter'), ) -COMPRESS_CSS_FILT...
Replace deprecated COMPRESS_CSS_FILTERS The COMPRESS_CSS_FILTERS option was deprecated in django-compressor <I>[1] and causes the following warning message. ``` DeprecationWarning: COMPRESS_CSS_FILTERS setting is deprecated and will be removed in django-compressor <I>. Use COMPRESS_FILTERS instead. ``` [1] <URL>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -from setuptools import setup +from setuptools import setup, find_packages setup( name='Flask-RESTful', @@ -9,7 +9,7 @@ setup( author='Kyle Conroy', author_email='kyle@tw...
use find_packages to get all the flask_restful directories
py
diff --git a/dotsite/debuggers.py b/dotsite/debuggers.py index <HASH>..<HASH> 100644 --- a/dotsite/debuggers.py +++ b/dotsite/debuggers.py @@ -4,6 +4,20 @@ import inspect from bdb import BdbQuit as DebugExit # pylint: disable=unused-import +try: + from pprintpp import pprint as pp +except ImportError: + fro...
Add pretty printing methods to debuggers
py
diff --git a/salt/modules/win_pkg.py b/salt/modules/win_pkg.py index <HASH>..<HASH> 100644 --- a/salt/modules/win_pkg.py +++ b/salt/modules/win_pkg.py @@ -842,15 +842,16 @@ def _get_msiexec(use_msiexec): Return if msiexec.exe will be used and the command to invoke it. ''' if use_msiexec is False: - ...
Fix problem when use_msiexec is a bool
py
diff --git a/subliminal/cli.py b/subliminal/cli.py index <HASH>..<HASH> 100644 --- a/subliminal/cli.py +++ b/subliminal/cli.py @@ -153,7 +153,7 @@ def subliminal(): hearing_impaired=args.hearing_impaired) # save subtitles - save_subtitles(subtitles) + save_subtitles...
Fix single subtitles saving in cli
py
diff --git a/validator/testcases/installrdf.py b/validator/testcases/installrdf.py index <HASH>..<HASH> 100644 --- a/validator/testcases/installrdf.py +++ b/validator/testcases/installrdf.py @@ -57,7 +57,8 @@ def _test_rdf(err, install): "contributor", "targetPlatform", ...
Added icon<I>URL support
py
diff --git a/hbp_service_client/document_service/tests/test_highlevel.py b/hbp_service_client/document_service/tests/test_highlevel.py index <HASH>..<HASH> 100644 --- a/hbp_service_client/document_service/tests/test_highlevel.py +++ b/hbp_service_client/document_service/tests/test_highlevel.py @@ -8,6 +8,7 @@ import mo...
Added a mechanism to throw exceptions with the request builder
py
diff --git a/release/e2e.py b/release/e2e.py index <HASH>..<HASH> 100644 --- a/release/e2e.py +++ b/release/e2e.py @@ -1737,7 +1737,9 @@ def run_test(test_config_file: str, if __name__ == "__main__": - parser = argparse.ArgumentParser() + parser = argparse.ArgumentParser( + description=__doc__, + ...
Print description in --help (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -54,6 +54,8 @@ setup( version='0.1.1', author='Adam DePrince', author_email='deprince@googlealumni.com', + maintainer='Cosimo Lupo', + maintainer_email='cosimo@anthrotype.com', description='Zopfli mod...
[setup.py] Add maintainer name and email
py
diff --git a/pyrtl/passes.py b/pyrtl/passes.py index <HASH>..<HASH> 100644 --- a/pyrtl/passes.py +++ b/pyrtl/passes.py @@ -85,9 +85,14 @@ def optimize(update_working_block=True, block=None): def constant_propagation(block): - """Removes excess constants in the block""" - + """ + Removes excess constants i...
Added more constant propogation documentation
py
diff --git a/py/dynesty/nestedsamplers.py b/py/dynesty/nestedsamplers.py index <HASH>..<HASH> 100644 --- a/py/dynesty/nestedsamplers.py +++ b/py/dynesty/nestedsamplers.py @@ -184,7 +184,12 @@ class SuperSampler(Sampler): # https://www.tandfonline.com/doi/full/10.1080/10618600.2013.791193 # and https:/...
long overdue fix to the scaling of slice sampling. There is no need to update scale by large amount in each iteration Also we should prevent warnings down the line by refusing to set the scale larger than half of the cube diagonal
py
diff --git a/bigquery/setup.py b/bigquery/setup.py index <HASH>..<HASH> 100644 --- a/bigquery/setup.py +++ b/bigquery/setup.py @@ -31,7 +31,7 @@ release_status = "Development Status :: 5 - Production/Stable" dependencies = [ 'enum34; python_version < "3.4"', "google-cloud-core >= 1.0.3, < 2.0dev", - "goog...
BigQuery: Restrict version range of google-resumable-media. (#<I>) * Restrict version range of google-resumable-media
py
diff --git a/chainlet/chainlink.py b/chainlet/chainlink.py index <HASH>..<HASH> 100644 --- a/chainlet/chainlink.py +++ b/chainlet/chainlink.py @@ -138,9 +138,12 @@ class ChainLink(object): @staticmethod def _get_linker(parent, child): - linkers = set(getattr(link, 'chain_linker', None) for link in (p...
fixed logic for selecting linker if any element does not define one
py
diff --git a/src/pandas_profiling/profile_report.py b/src/pandas_profiling/profile_report.py index <HASH>..<HASH> 100644 --- a/src/pandas_profiling/profile_report.py +++ b/src/pandas_profiling/profile_report.py @@ -332,6 +332,9 @@ class ProfileReport(SerializeReport, object): if isinstance(o, pd.Series...
profile_report: use to_json() to encode pd.DataFrame to json ProfileReport.to_json() exports some data using Pandas DataFrame and without this fix they are encoded using str(), which doesn't give the whole data.
py
diff --git a/hebel/pycuda_ops/cudart.py b/hebel/pycuda_ops/cudart.py index <HASH>..<HASH> 100644 --- a/hebel/pycuda_ops/cudart.py +++ b/hebel/pycuda_ops/cudart.py @@ -57,7 +57,7 @@ for _libcudart_libname in _libcudart_libname_list: else: break if _libcudart == None: - OSError('CUDA runtime library not...
Missing `raise` statement in cudart.py
py
diff --git a/instana/django19.py b/instana/django19.py index <HASH>..<HASH> 100644 --- a/instana/django19.py +++ b/instana/django19.py @@ -30,9 +30,11 @@ class InstanaMiddleware19(object): self.span = span def process_response(self, request, response): - self.span.set_tag(ext.HTTP_STATUS_CODE, re...
Properly set and clear self.span
py
diff --git a/tests/test_withFuture.py b/tests/test_withFuture.py index <HASH>..<HASH> 100644 --- a/tests/test_withFuture.py +++ b/tests/test_withFuture.py @@ -7,6 +7,7 @@ from future import standard_library standard_library.install_aliases() import os +import sys if sys.version_info < (2, 7, 0): # pragma: no co...
added forgotten import (why does this even work under py2?)
py
diff --git a/cassandra/cqlengine/columns.py b/cassandra/cqlengine/columns.py index <HASH>..<HASH> 100644 --- a/cassandra/cqlengine/columns.py +++ b/cassandra/cqlengine/columns.py @@ -22,6 +22,7 @@ from cassandra import util from cassandra.cqltypes import SimpleDateType, _cqltypes, UserType from cassandra.cqlengine im...
Add Duration support to cqlengine
py
diff --git a/uptick/__main__.py b/uptick/__main__.py index <HASH>..<HASH> 100755 --- a/uptick/__main__.py +++ b/uptick/__main__.py @@ -812,7 +812,7 @@ def main(): elif args.command == "balance": t = PrettyTable(["Account", "Amount", "Asset"]) t.align = "r" - for a in args.account.split(" "...
[main] fix balance for single accounts
py
diff --git a/neurom/core/tests/test_population.py b/neurom/core/tests/test_population.py index <HASH>..<HASH> 100644 --- a/neurom/core/tests/test_population.py +++ b/neurom/core/tests/test_population.py @@ -47,7 +47,7 @@ def test_population(): nt.ok_(pop.neurons[1].name, 'Single_basal') nt.ok_(pop.neurons[2].name, ...
added number of somata check2
py
diff --git a/master/buildbot/process/buildstep.py b/master/buildbot/process/buildstep.py index <HASH>..<HASH> 100644 --- a/master/buildbot/process/buildstep.py +++ b/master/buildbot/process/buildstep.py @@ -11,7 +11,7 @@ from twisted.web.util import formatFailure from buildbot import interfaces, locks from buildbot.s...
Add missing import in buildstep.py
py
diff --git a/pygccxml/declarations/scopedef.py b/pygccxml/declarations/scopedef.py index <HASH>..<HASH> 100644 --- a/pygccxml/declarations/scopedef.py +++ b/pygccxml/declarations/scopedef.py @@ -462,17 +462,11 @@ class scopedef_t(declaration.declaration_t): if recursive: self._logger.debug...
Simplify by using get with default on dicts
py
diff --git a/salt/runners/doc.py b/salt/runners/doc.py index <HASH>..<HASH> 100644 --- a/salt/runners/doc.py +++ b/salt/runners/doc.py @@ -72,7 +72,7 @@ def execution(): for v in six.itervalues(ret): docs.update(v) except SaltClientError as exc: - print(exc) # pylint: disable=...
Apparently pylint doesn't like print statements as functions
py
diff --git a/tests/integration/states/pip.py b/tests/integration/states/pip.py index <HASH>..<HASH> 100644 --- a/tests/integration/states/pip.py +++ b/tests/integration/states/pip.py @@ -64,6 +64,16 @@ class PipStateTest(integration.ModuleCase, integration.SaltReturnAssertsMixIn): shutil.rmtree(venv_di...
Skip this test when we are running on centOS 5
py
diff --git a/sortinghat/db/database.py b/sortinghat/db/database.py index <HASH>..<HASH> 100644 --- a/sortinghat/db/database.py +++ b/sortinghat/db/database.py @@ -26,6 +26,7 @@ from sqlalchemy import create_engine from sqlalchemy.exc import OperationalError from sqlalchemy.engine.url import URL from sqlalchemy.orm i...
[database] Fix 'Too many connections' error In SQLAlchemy, when a session is closed using close() method, it is not really closed. It is sent to a pool of connections. That is why 'Too many connections' error was raised. To avoid this, each session has to be deleted from the pool using NullPool class.
py
diff --git a/salt/modules/saltcheck.py b/salt/modules/saltcheck.py index <HASH>..<HASH> 100644 --- a/salt/modules/saltcheck.py +++ b/salt/modules/saltcheck.py @@ -168,7 +168,7 @@ def run_highstate_tests(): if state not in all_states: all_states.append(state) - for state_name in sls_li...
omission of correct list in iteration
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,7 @@ install_requires = [ 'munkres==1.0.12', 'inspire-schemas~=61.0', 'inspire-utils~=3.0,>=3.0.0', - 'json-merger[contrib]~=0.0,>=0.6.0', + 'json-merger[contrib]~=0.0,==0.7.4', 'pyrsistent~...
setup: pin json-merger <I> * workaround for problems introduces in json-merger <I>, see inspirehep/inspirehep#<I>.
py
diff --git a/salt/state.py b/salt/state.py index <HASH>..<HASH> 100644 --- a/salt/state.py +++ b/salt/state.py @@ -180,7 +180,7 @@ class State(object): ''' err = [] rets = [] - chunks = compile_high_data(high) + chunks = self.compile_high_data(high) errors = self.verify...
Fix typo in compile_high data
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -28,6 +28,9 @@ setup( author="Adam Johnson", author_email="me@adamj.eu", url="https://github.com/adamchainz/multilint", + project_urls={ + "Changelog": "https://github.com/adamchainz/multilint/blob/mas...
Add PyPI changelog link (#<I>)
py
diff --git a/djstripe/models/billing.py b/djstripe/models/billing.py index <HASH>..<HASH> 100644 --- a/djstripe/models/billing.py +++ b/djstripe/models/billing.py @@ -1073,7 +1073,7 @@ class Plan(StripeModel): """ stripe_class = stripe.Plan - expand_fields = ["tiers"] + expand_fields = ["product", "ti...
Added product to Plan.expand_fields
py
diff --git a/nhlib/geo/polygon.py b/nhlib/geo/polygon.py index <HASH>..<HASH> 100644 --- a/nhlib/geo/polygon.py +++ b/nhlib/geo/polygon.py @@ -96,7 +96,7 @@ class Polygon(object): # avoid calling class' constructor polygon = object.__new__(cls) # project polygon2d back on the sphere - ...
geo/polygon: Added a fix for cases where dilating certain (extremely convex polygons) will create holes in the shape and thus result in a multi-polygon. Dilation usually occurs in the context of generating rupture enclosing polygons, so the solution here is to simply take the exterior of the resulting shape, thus dis...
py
diff --git a/tensorflow_datasets/core/download/downloader.py b/tensorflow_datasets/core/download/downloader.py index <HASH>..<HASH> 100644 --- a/tensorflow_datasets/core/download/downloader.py +++ b/tensorflow_datasets/core/download/downloader.py @@ -204,7 +204,8 @@ class _Downloader(object): self._pbar_dl...
Update downloader to use url_info.filename
py
diff --git a/helpers/update_helpers.py b/helpers/update_helpers.py index <HASH>..<HASH> 100644 --- a/helpers/update_helpers.py +++ b/helpers/update_helpers.py @@ -116,5 +116,6 @@ if __name__ == '__main__': update_file(_FILE_SUBJECTS, res['subjects']) update_file(_FILE_TIDS, res['tids']) # Should be the l...
Avoid re-generation of seen_cables.txt iff the set of seen cables did not change
py
diff --git a/xero/auth.py b/xero/auth.py index <HASH>..<HASH> 100644 --- a/xero/auth.py +++ b/xero/auth.py @@ -38,7 +38,7 @@ class PrivateCredentials(object): self.consumer_key = consumer_key self.rsa_key = rsa_key - self.base_url = XERO_API_URL + self.base_url = XERO_BASE_URL ...
Fix incorrect constant used after PartnerCredentials patch.
py
diff --git a/src/python/pants/backend/python/targets/python_binary.py b/src/python/pants/backend/python/targets/python_binary.py index <HASH>..<HASH> 100644 --- a/src/python/pants/backend/python/targets/python_binary.py +++ b/src/python/pants/backend/python/targets/python_binary.py @@ -55,7 +55,11 @@ class PythonBinary...
docstring: in python_binary(platforms=...) param doc, add an example add an illustrative example to docstring. What I learned from <URL>
py
diff --git a/src/ossos/core/ossos/fitsviewer/singletviewer.py b/src/ossos/core/ossos/fitsviewer/singletviewer.py index <HASH>..<HASH> 100644 --- a/src/ossos/core/ossos/fitsviewer/singletviewer.py +++ b/src/ossos/core/ossos/fitsviewer/singletviewer.py @@ -43,7 +43,7 @@ class SingletViewer(WxMPLFitsViewer): ...
commented out deprecated definition of radii list
py
diff --git a/panwid/datatable/datatable.py b/panwid/datatable/datatable.py index <HASH>..<HASH> 100644 --- a/panwid/datatable/datatable.py +++ b/panwid/datatable/datatable.py @@ -626,7 +626,9 @@ class DataTable(urwid.WidgetWrap, urwid.listbox.ListWalker): if column.decoration_fn: value = column.de...
Fix cell formatting bug introduced in recent commit.
py
diff --git a/harpoon/ship/runner.py b/harpoon/ship/runner.py index <HASH>..<HASH> 100644 --- a/harpoon/ship/runner.py +++ b/harpoon/ship/runner.py @@ -450,7 +450,8 @@ class Runner(object): mounts = [] if remove_volumes: for m in conf.harpoon.docker_context.inspect_container(container_id)[...
Don't try to remove unnamed mounts
py
diff --git a/bot/action/standard/admin/fail.py b/bot/action/standard/admin/fail.py index <HASH>..<HASH> 100644 --- a/bot/action/standard/admin/fail.py +++ b/bot/action/standard/admin/fail.py @@ -1,11 +1,16 @@ from bot.action.core.action import Action +from bot.action.util.textformat import FormattedText class Fai...
Send a message previously to simulating fail
py
diff --git a/glue/lal.py b/glue/lal.py index <HASH>..<HASH> 100644 --- a/glue/lal.py +++ b/glue/lal.py @@ -435,3 +435,26 @@ class CacheEntry(object): d[instrument] = segments.segmentlist([self.segment]) return d +class Cache(list): + """ + An object representing a LAL cache file. Currently it is possible to + ...
added a lal Cache file class
py
diff --git a/gwpy/signal/window.py b/gwpy/signal/window.py index <HASH>..<HASH> 100644 --- a/gwpy/signal/window.py +++ b/gwpy/signal/window.py @@ -23,7 +23,10 @@ import numpy from math import ceil -from scipy.signal.windows import windows as scipy_windows +try: + from scipy.signal.windows._windows import _win_e...
gwpy.signal: fix import of scipy.signal.windows to address compatibility with scipy <I>
py
diff --git a/mopidy_tunein/tunein.py b/mopidy_tunein/tunein.py index <HASH>..<HASH> 100644 --- a/mopidy_tunein/tunein.py +++ b/mopidy_tunein/tunein.py @@ -313,12 +313,13 @@ class TuneIn(object): def tune(self, station): logger.debug('Tuning station id %s' % station['guide_id']) args = '&id=' + st...
Return all URIs when tuneing a station
py
diff --git a/example/queries.py b/example/queries.py index <HASH>..<HASH> 100644 --- a/example/queries.py +++ b/example/queries.py @@ -60,13 +60,8 @@ result = es.search( doc_type='commits', body={ 'query': { - 'bool': { - 'must': { - 'term': { - # parent ref is s...
Querying with parent id has changed in ES v5
py
diff --git a/marrow/mongo/core/document.py b/marrow/mongo/core/document.py index <HASH>..<HASH> 100644 --- a/marrow/mongo/core/document.py +++ b/marrow/mongo/core/document.py @@ -86,6 +86,11 @@ class Document(Container): @classmethod def _get_mongo_name_for(cls, name): + """Walk a string path (dot or double und...
Really need to check that all buffers are saved...
py
diff --git a/autofit/optimize/non_linear/multi_nest.py b/autofit/optimize/non_linear/multi_nest.py index <HASH>..<HASH> 100644 --- a/autofit/optimize/non_linear/multi_nest.py +++ b/autofit/optimize/non_linear/multi_nest.py @@ -138,7 +138,10 @@ class MultiNest(NonLinearOptimizer): except exc.FitException: ...
Testing if not use -np.inf on resampling stops slow-down.
py
diff --git a/tests/test_build_ext.py b/tests/test_build_ext.py index <HASH>..<HASH> 100644 --- a/tests/test_build_ext.py +++ b/tests/test_build_ext.py @@ -77,8 +77,9 @@ class BuildExtTestCase(support.TempdirManager, self.assertEqual(xx.foo(2, 5), 7) self.assertEqual(xx.foo(13,15), 28) self.as...
- Issue #<I>: Fix testing when Python is configured with the --without-doc-strings option.
py
diff --git a/salt/roster/__init__.py b/salt/roster/__init__.py index <HASH>..<HASH> 100644 --- a/salt/roster/__init__.py +++ b/salt/roster/__init__.py @@ -12,6 +12,8 @@ import salt.loader import os import logging +from salt.ext.six import string_types + log = logging.getLogger(__name__) @@ -36,8 +38,10 @@ clas...
Protect against backends set to NoneType
py
diff --git a/src/poetry/utils/shell.py b/src/poetry/utils/shell.py index <HASH>..<HASH> 100644 --- a/src/poetry/utils/shell.py +++ b/src/poetry/utils/shell.py @@ -72,7 +72,9 @@ class Shell: bin_dir = "Scripts" if WINDOWS else "bin" activate_path = env.path / bin_dir / activate_script - if WIN...
fixes mypy issue on windows (#<I>) * fixes mypy issue on windows * adds comments for mypy fix
py
diff --git a/tests/python/unittest/test_loss.py b/tests/python/unittest/test_loss.py index <HASH>..<HASH> 100644 --- a/tests/python/unittest/test_loss.py +++ b/tests/python/unittest/test_loss.py @@ -274,7 +274,7 @@ def test_saveload(): eval_metric=mx.metric.Loss()) assert mod.score(data_iter, eval_met...
Remove fixed seed for test_huber tests (#<I>)
py
diff --git a/discord_webhook/webhook.py b/discord_webhook/webhook.py index <HASH>..<HASH> 100644 --- a/discord_webhook/webhook.py +++ b/discord_webhook/webhook.py @@ -263,6 +263,8 @@ class DiscordEmbed: self.url = kwargs.get("url") self.timestamp = kwargs.get("timestamp") self.color = kwargs....
convert color to int if given as string (hex color)
py
diff --git a/mailchimp3/entities/campaigns.py b/mailchimp3/entities/campaigns.py index <HASH>..<HASH> 100755 --- a/mailchimp3/entities/campaigns.py +++ b/mailchimp3/entities/campaigns.py @@ -171,7 +171,7 @@ class Campaigns(BaseApi): raise KeyError('The campaign settings must have a subject_line') ...
Fix incorrect key from issue <I>
py
diff --git a/extract_binaries.py b/extract_binaries.py index <HASH>..<HASH> 100755 --- a/extract_binaries.py +++ b/extract_binaries.py @@ -25,7 +25,7 @@ def get_args(): def extract_binary(version, branch, jenkins_url, target_dir): if jenkins_url.endswith('/'): - jenkins_url = jenkins_url[0:-2] + j...
Preserve the port when stripping the jenkins_url path.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ setup( "mahjong.hand_calculating.yaku_list", "mahjong.hand_calculating.yaku_list.yakuman", ], - version="1.2.0.dev6", + version="1.2.0.dev7", description="Mahjong hands calculat...
Release <I>.dev7
py
diff --git a/ReText/editor.py b/ReText/editor.py index <HASH>..<HASH> 100644 --- a/ReText/editor.py +++ b/ReText/editor.py @@ -353,9 +353,8 @@ class ReTextEdit(QTextEdit): wasWordCharacter = False wordCount = 0 alphaNumCount = 0 - characterCount = 0 + characterCount = len(text) for c in text: - characte...
Simplify character count calculation The length is usually stored internally, so just retrieving it is faster.
py
diff --git a/src/brotli/__init__.py b/src/brotli/__init__.py index <HASH>..<HASH> 100644 --- a/src/brotli/__init__.py +++ b/src/brotli/__init__.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# flake8: noqa from .brotli import ( decompress, Decompressor, compress, BrotliEncoderMode, BROTLI_DEFAULT_MODE -) # noqa +)
Oh do shut up flake8.
py
diff --git a/tests/unit/utils/test_decorators.py b/tests/unit/utils/test_decorators.py index <HASH>..<HASH> 100644 --- a/tests/unit/utils/test_decorators.py +++ b/tests/unit/utils/test_decorators.py @@ -222,3 +222,17 @@ class DecoratorsTest(TestCase): 'an alias "old_function" is configured as...
Add with_deprecated test with opt-in policy by default
py
diff --git a/txtorcon/torconfig.py b/txtorcon/torconfig.py index <HASH>..<HASH> 100644 --- a/txtorcon/torconfig.py +++ b/txtorcon/torconfig.py @@ -445,9 +445,11 @@ class EphemeralHiddenService(object): self.auth = auth # FIXME ununsed # FIXME nicer than assert, plz assert isinstance(ports, l...
Check the Onion Service key-blob is a string
py
diff --git a/cereslib/_version.py b/cereslib/_version.py index <HASH>..<HASH> 100644 --- a/cereslib/_version.py +++ b/cereslib/_version.py @@ -1,2 +1,2 @@ # Versions compliant with PEP 440 https://www.python.org/dev/peps/pep-0440 -__version__ = "0.1.9" +__version__ = "0.1.10"
Update version number to <I>
py
diff --git a/birdfeeder/parser.py b/birdfeeder/parser.py index <HASH>..<HASH> 100644 --- a/birdfeeder/parser.py +++ b/birdfeeder/parser.py @@ -62,6 +62,7 @@ class NetCDFParser(Parser): def parse(self, filepath): + filepath = os.path.abspath(filepath) logger.debug("parse %s", filepat...
fixed: use abs path when relative path is given (#3)
py
diff --git a/test/test_frequencyseries.py b/test/test_frequencyseries.py index <HASH>..<HASH> 100644 --- a/test/test_frequencyseries.py +++ b/test/test_frequencyseries.py @@ -513,7 +513,7 @@ class TestFrequencySeriesBase(base_test.array_base): self.assertTrue(self.a1._epoch==self.epoch) def test...
Fixed a copy/paste mistake
py
diff --git a/yatiml/loader.py b/yatiml/loader.py index <HASH>..<HASH> 100644 --- a/yatiml/loader.py +++ b/yatiml/loader.py @@ -146,6 +146,7 @@ class Loader(yaml.Loader): if type_ in scalar_type_to_str: return scalar_type_to_str[type_] + print('{} {} {}'.format(type_, type(type_), type(typ...
Add some debug output for Travis tests
py
diff --git a/ctfile/ctfile.py b/ctfile/ctfile.py index <HASH>..<HASH> 100644 --- a/ctfile/ctfile.py +++ b/ctfile/ctfile.py @@ -632,6 +632,18 @@ class SDfile(CTfile): sdfile[1]['data'] = OrderedDict() return sdfile + def add_data(self, id, key, value): + """Add new data item. + + ...
Add data into "SDfile" by key-value.
py
diff --git a/telethon/tl/session.py b/telethon/tl/session.py index <HASH>..<HASH> 100644 --- a/telethon/tl/session.py +++ b/telethon/tl/session.py @@ -123,7 +123,8 @@ class JsonSession: 'time_offset': self.time_offset, 'server_address': self.server_address, ...
Fix Session not being able to save auth_key=None
py