diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
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 @@ -112,20 +112,6 @@ class TestUrlAndDirectory(object): Let's test the different scenarios to ensure everything works. """ -# root path without module usage -# ...
Those were in-progress notes, should all be happening already.
py
diff --git a/img_proof/ipa_cloud.py b/img_proof/ipa_cloud.py index <HASH>..<HASH> 100644 --- a/img_proof/ipa_cloud.py +++ b/img_proof/ipa_cloud.py @@ -213,8 +213,10 @@ class IpaCloud(object): def _get_user_data(self): """ Return formatted bash script string. - The public ssh key is added ...
Update get user data docstring.
py
diff --git a/tests/test_jsonify.py b/tests/test_jsonify.py index <HASH>..<HASH> 100644 --- a/tests/test_jsonify.py +++ b/tests/test_jsonify.py @@ -1,7 +1,7 @@ from pecan.jsonify import jsonify, encode from pecan import Pecan, expose from webtest import TestApp -from simplejson import loads +from...
the jsonify test was breaking because it imported from simplejson instead of json that should be installed via setup.py at build time.
py
diff --git a/salt/states/pkg.py b/salt/states/pkg.py index <HASH>..<HASH> 100644 --- a/salt/states/pkg.py +++ b/salt/states/pkg.py @@ -431,7 +431,7 @@ def _find_install_targets(name=None, # package's name and version err = 'Unable to cache {0}: {1}' try: - cached_pa...
fix second run problems with pkg.installed using sources Fixes #<I>
py
diff --git a/hack/build-local-images.py b/hack/build-local-images.py index <HASH>..<HASH> 100755 --- a/hack/build-local-images.py +++ b/hack/build-local-images.py @@ -57,7 +57,8 @@ image_config = { image_prefix: { "directory": "origin", "binaries": { - "openshift": "/usr/bin/openshift"...
add hyperkube to locally built images
py
diff --git a/pysat/tests/test_instrument.py b/pysat/tests/test_instrument.py index <HASH>..<HASH> 100644 --- a/pysat/tests/test_instrument.py +++ b/pysat/tests/test_instrument.py @@ -734,7 +734,7 @@ class TestBasicsShiftedFileDates(TestBasics): clean_level='clean', ...
Corrected strict_time_flag=True calls in test_instrument
py
diff --git a/salt/utils/http.py b/salt/utils/http.py index <HASH>..<HASH> 100644 --- a/salt/utils/http.py +++ b/salt/utils/http.py @@ -404,7 +404,7 @@ def query(url, log.error('The client-side certificate path that was passed is ' 'not valid: {0}'.format(cert)) - if ...
Changed windows gate to check for verify_ssl option
py
diff --git a/requests_ntlm/__init__.py b/requests_ntlm/__init__.py index <HASH>..<HASH> 100644 --- a/requests_ntlm/__init__.py +++ b/requests_ntlm/__init__.py @@ -1,3 +1,3 @@ from .requests_ntlm import HttpNtlmAuth -__all__ = [HttpNtlmAuth] +__all__ = ('HttpNtlmAuth',)
__all__ should be a tuple of strings
py
diff --git a/publ/entry.py b/publ/entry.py index <HASH>..<HASH> 100644 --- a/publ/entry.py +++ b/publ/entry.py @@ -397,7 +397,7 @@ class Entry(caching.Memoizable): category = kwargs.get('category', self._record.category) return { 'category': category, - 'recurse': kwargs.get('r...
Correctly set the recursion default for previous/next
py
diff --git a/salt/states/file.py b/salt/states/file.py index <HASH>..<HASH> 100644 --- a/salt/states/file.py +++ b/salt/states/file.py @@ -26,6 +26,22 @@ which makes use of the jinja templating system would look like this: custom_var: "default value" other_var: 123 +The ``source`` parameter ...
Add info on specifying a list of file sources I was surprised to not find this described at all in the docs. It's an awesome feature, I think.
py
diff --git a/kconfiglib.py b/kconfiglib.py index <HASH>..<HASH> 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -2810,7 +2810,7 @@ class Symbol(object): # or has an out-of-range user value. use_defaults = True - if vis and self.user_value is not None: + if vis and sel...
Remove redundant int/hex user value 'is None' check A valid int/hex user value can never be an empty string, so they test can be simplified.
py
diff --git a/src/python/atomistica/io.py b/src/python/atomistica/io.py index <HASH>..<HASH> 100644 --- a/src/python/atomistica/io.py +++ b/src/python/atomistica/io.py @@ -58,9 +58,7 @@ def write(fn, a, **kwargs): Has support for writing LAMMPS data files. """ ext = fn[fn.rfind('.'):].split('@') - if e...
.dat format is not supported anymore.
py
diff --git a/src/classycode/directives.py b/src/classycode/directives.py index <HASH>..<HASH> 100644 --- a/src/classycode/directives.py +++ b/src/classycode/directives.py @@ -76,3 +76,18 @@ class LiteralInclude(LineClassesSupportMixin, """LiteralInclude directive with support for custom classes on lines. ""...
Restoring omitted options to literalinclude.
py
diff --git a/airflow/providers/samba/hooks/samba.py b/airflow/providers/samba/hooks/samba.py index <HASH>..<HASH> 100644 --- a/airflow/providers/samba/hooks/samba.py +++ b/airflow/providers/samba/hooks/samba.py @@ -19,9 +19,10 @@ import posixpath from functools import wraps from shutil import copyfileobj -from typin...
Fix MyPy Errors for Samba provider (#<I>)
py
diff --git a/contours/__init__.py b/contours/__init__.py index <HASH>..<HASH> 100644 --- a/contours/__init__.py +++ b/contours/__init__.py @@ -2,10 +2,7 @@ """Contour calculations.""" # Python 2 support -# pylint: disable=redefined-builtin,unused-wildcard-import,wildcard-import -from __future__ import (absolute_imp...
Remove unneeded Python <I> compatibility imports.
py
diff --git a/ratcave/utils/texture.py b/ratcave/utils/texture.py index <HASH>..<HASH> 100644 --- a/ratcave/utils/texture.py +++ b/ratcave/utils/texture.py @@ -58,7 +58,6 @@ class Texture(object): gl.glTexParameterf(self.target, gl.GL_TEXTURE_WRAP_T, gl.GL_CLAMP_TO_EDGE) - class TextureCube(Texture): ...
added more texture types, for (in theory) easier texture creation
py
diff --git a/python/dllib/test/dev/diff.py b/python/dllib/test/dev/diff.py index <HASH>..<HASH> 100755 --- a/python/dllib/test/dev/diff.py +++ b/python/dllib/test/dev/diff.py @@ -32,7 +32,8 @@ def extract_scala_class(class_path): "SplitAndSelect", "StrideSlice", "Scheduler", ...
[New feature] Add region proposal (#<I>) * add Regionproposal
py
diff --git a/flubber/core/hub.py b/flubber/core/hub.py index <HASH>..<HASH> 100644 --- a/flubber/core/hub.py +++ b/flubber/core/hub.py @@ -125,14 +125,19 @@ class Hub(object): if current is not self.greenlet.parent: raise RuntimeError('run() can only be called from MAIN greenlet') if self...
Raise RuntimeError in certain hub error conditions * IF hub greenlet is dead * If destroy() is called more than once
py
diff --git a/src/tdl/client.py b/src/tdl/client.py index <HASH>..<HASH> 100644 --- a/src/tdl/client.py +++ b/src/tdl/client.py @@ -1,4 +1,5 @@ __author__ = 'tdpreece' +__author__ = 'tdpreece' import logging import sys import stomp @@ -19,13 +20,16 @@ class Client(object): def go_live_with(self, implementatio...
Exit gracefully is broker not available.
py
diff --git a/src/rez/utils/resources.py b/src/rez/utils/resources.py index <HASH>..<HASH> 100644 --- a/src/rez/utils/resources.py +++ b/src/rez/utils/resources.py @@ -162,7 +162,10 @@ class ResourceHandle(object): return cls(**d) def _hashable_repr(self): - return (self.key, frozenset(self.variab...
fixed bug causing different resource hash in py2 vs py3
py
diff --git a/tests/test_comms.py b/tests/test_comms.py index <HASH>..<HASH> 100644 --- a/tests/test_comms.py +++ b/tests/test_comms.py @@ -34,7 +34,9 @@ class CommsTest(unittest.TestCase): #self.comms = mod_bias.Bias(test_metadata) cm = mod_comms.CommsManager() self.assertTrue('---- CommsMa...
test for comms checks for incorrect channel hash password
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -41,9 +41,12 @@ setup( # that you indicate whether you support Python 2, Python 3 or both. 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', + 'programming Langua...
Updated the setup.py file to give appropriate information to PyPI.
py
diff --git a/data_explorer/plotter.py b/data_explorer/plotter.py index <HASH>..<HASH> 100755 --- a/data_explorer/plotter.py +++ b/data_explorer/plotter.py @@ -104,7 +104,12 @@ def rolling_plot(opts, fh): data = np.zeros(opts.rolling) ax = pyplot.gca() ax.set_autoscale_on(True) - line2d, = ax.plot(data) + ax....
add support for axis labels and log plots
py
diff --git a/changelogs/changelogs.py b/changelogs/changelogs.py index <HASH>..<HASH> 100644 --- a/changelogs/changelogs.py +++ b/changelogs/changelogs.py @@ -21,7 +21,7 @@ def _load_custom_functions(vendor, name): :return: dict, functions """ functions = {} - filename = "{}.py".format(name) + file...
Make custom functions case insensitive. Some packages prefer different kind of casing in their name. For example `SQLAlchemy` instead of `sqlalchemy`.
py
diff --git a/spyder/app/mainwindow.py b/spyder/app/mainwindow.py index <HASH>..<HASH> 100644 --- a/spyder/app/mainwindow.py +++ b/spyder/app/mainwindow.py @@ -3518,7 +3518,7 @@ def main(options, args): set_opengl_implementation(option) app = create_application() - window = create_windo...
Main Window: Fix window creation for tests
py
diff --git a/thoth/solver/python/python.py b/thoth/solver/python/python.py index <HASH>..<HASH> 100644 --- a/thoth/solver/python/python.py +++ b/thoth/solver/python/python.py @@ -22,6 +22,7 @@ from contextlib import contextmanager import logging import os from shlex import quote +import sysconfig from urllib.parse ...
Propagate information about platform from solver run
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ install_requires=['fastcluster', 'dedupe-variable-datetime', 'future>=0.14', 'rlr>=2.4.3', - 'numpy>=1.12', + 'numpy>=1....
fastcluster requires at least numpy <I>
py
diff --git a/setuptools_rust/build.py b/setuptools_rust/build.py index <HASH>..<HASH> 100644 --- a/setuptools_rust/build.py +++ b/setuptools_rust/build.py @@ -92,10 +92,14 @@ class build_rust(Command): # If we are on a 64-bit machine, but running a 32-bit Python, then # we'll target a 32-bit Rust bu...
Use target CARGO_BUILD_TARGET if specified rust will pick up the environment variable anyway, but if we don't pick up on it, too, then we won't find the build artifacts.
py
diff --git a/docs/source/conf.py b/docs/source/conf.py index <HASH>..<HASH> 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -78,8 +78,10 @@ extensions = [ 'sphinx.ext.viewcode', 'sphinx.ext.autosummary', 'numpydoc', - 'ipython_directive', - 'ipython_console_highlighting', + # 'ipyt...
Change ipython directive source
py
diff --git a/pysat/instruments/methods/testing.py b/pysat/instruments/methods/testing.py index <HASH>..<HASH> 100644 --- a/pysat/instruments/methods/testing.py +++ b/pysat/instruments/methods/testing.py @@ -308,3 +308,34 @@ def define_range(): 'angle': [0.0, 2.0 * np.pi]} return def_range + + +...
MAINT: added testing function from <I> Added a deprecation testing function added in pysat <I> to reduce duplicate code.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -239,7 +239,7 @@ else: 'nose', ] if sys.version_info.major == 2: - metadata['install_requires'] += ['mock'] + metadata['install_requires']...
[setup] minor change (idention fixed)
py
diff --git a/example/speech-demo/lstm_bucketing.py b/example/speech-demo/lstm_bucketing.py index <HASH>..<HASH> 100644 --- a/example/speech-demo/lstm_bucketing.py +++ b/example/speech-demo/lstm_bucketing.py @@ -393,7 +393,7 @@ if __name__ == '__main__': assert name_vals[0][0] == 'Acc_exlude_padding' c...
enforce a lower bound for lr decaying
py
diff --git a/fontbakery-check-ttf.py b/fontbakery-check-ttf.py index <HASH>..<HASH> 100755 --- a/fontbakery-check-ttf.py +++ b/fontbakery-check-ttf.py @@ -1875,9 +1875,12 @@ def main(): rounded_string = round(float(v), 3) name_version = name.string.decode(name.getEncoding()) - ...
give up parsing effort when failing to parse version string issue #<I> Current code breaks with version strings such as "Version <I>" So here we fallback to failing the check (as the string is clearly different that what we're looging for in a successful check) instead of crashing the tool.
py
diff --git a/python_utils/plot_utils.py b/python_utils/plot_utils.py index <HASH>..<HASH> 100644 --- a/python_utils/plot_utils.py +++ b/python_utils/plot_utils.py @@ -8,6 +8,7 @@ def my_savefig(filename, dir=''): if filename is not None: full_filename = os.path.join(dir, filename) pylab.savefig(f...
close after save, else memory error can occur after too many plots
py
diff --git a/pymemcache/serde.py b/pymemcache/serde.py index <HASH>..<HASH> 100644 --- a/pymemcache/serde.py +++ b/pymemcache/serde.py @@ -12,8 +12,12 @@ # See the License for the specific language governing permissions and # limitations under the License. +try: + import cPickle as pickle +except ImportError: + ...
Use cPickle as pickle if available
py
diff --git a/tests/test_path_groups.py b/tests/test_path_groups.py index <HASH>..<HASH> 100644 --- a/tests/test_path_groups.py +++ b/tests/test_path_groups.py @@ -96,6 +96,17 @@ def test_fauxware(): yield run_fauxware, arch, None yield run_fauxware, arch, 2 +def test_find_to_middle(): + + # Test ...
Add a test case for PathGroup
py
diff --git a/test/test_examples.py b/test/test_examples.py index <HASH>..<HASH> 100644 --- a/test/test_examples.py +++ b/test/test_examples.py @@ -11,7 +11,7 @@ from examples.zerg_rush import ZergRushBot def run_example(race, bot): result = sc2.run_game(sc2.maps.get("Sequencer LE"), [ Bot(race, bot), - ...
Play against Terran instead of Zerg in examples
py
diff --git a/dronekit/__init__.py b/dronekit/__init__.py index <HASH>..<HASH> 100644 --- a/dronekit/__init__.py +++ b/dronekit/__init__.py @@ -2133,10 +2133,10 @@ class Vehicle(HasObservers): # Wait for these attributes to have been set. await = set(types) - start = time.time() + start...
use monotonic clock on wait_ready for attributes
py
diff --git a/tests/unit/test_queryset.py b/tests/unit/test_queryset.py index <HASH>..<HASH> 100644 --- a/tests/unit/test_queryset.py +++ b/tests/unit/test_queryset.py @@ -374,3 +374,29 @@ def test_create_queryset_with_only_block(): } compare(t._query, results) + + +def test_queryset_count(): + """ + G...
Add test for count and querying a string
py
diff --git a/tools/exampleparser.py b/tools/exampleparser.py index <HASH>..<HASH> 100755 --- a/tools/exampleparser.py +++ b/tools/exampleparser.py @@ -27,10 +27,10 @@ def getListOfOnlineExamples(baseUrl): def getListOfExamples(relPath): """ - returns list of .html filenames within a given path + r...
exclude example-list.html from list of examples - this is getting fragile git-svn-id: <URL>
py
diff --git a/test_settings.py b/test_settings.py index <HASH>..<HASH> 100644 --- a/test_settings.py +++ b/test_settings.py @@ -17,3 +17,27 @@ except ImportError: pass SITE_ID = 1 + +LOGGING = { + 'version': 1, + 'disable_existing_loggers': True, + 'formatters': { + 'simple': { + 'form...
Infrastructure for convenient logging during tests.
py
diff --git a/test/test_etcd.py b/test/test_etcd.py index <HASH>..<HASH> 100644 --- a/test/test_etcd.py +++ b/test/test_etcd.py @@ -102,9 +102,6 @@ def test_watching(): pyconfig.set('pyconfig.etcd.prefix', 'pyconfig_test/watching') pyconfig.reload() - if not pyconfig.etcd().watching: - raise SkipTe...
test: Drop skip test clause for watching.
py
diff --git a/term2048/board.py b/term2048/board.py index <HASH>..<HASH> 100644 --- a/term2048/board.py +++ b/term2048/board.py @@ -18,7 +18,7 @@ class Board(object): GOAL = 2048 SIZE = 4 - def __init__(self, goal=GOAL, size=SIZE): + def __init__(self, goal=GOAL, size=SIZE, **kws): self.__size...
fixing cli args passed to Board()
py
diff --git a/openquake/calculators/extract.py b/openquake/calculators/extract.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/extract.py +++ b/openquake/calculators/extract.py @@ -376,8 +376,8 @@ def extract_aggdamages(dstore, what): return _filter_agg(dstore['assetcol'], losses, tags) -@extract.add...
Small renaming [skip hazardlib]
py
diff --git a/ginga/misc/plugins/IIS_DataListener.py b/ginga/misc/plugins/IIS_DataListener.py index <HASH>..<HASH> 100644 --- a/ginga/misc/plugins/IIS_DataListener.py +++ b/ginga/misc/plugins/IIS_DataListener.py @@ -22,7 +22,7 @@ import array import re import string -import Bunch +from ginga.misc import Bunch # i...
Fixing import problem with IIS_DataListener to import the Bunch module correctly so the IRAF plugin will actually load.
py
diff --git a/ui/tests/conftest.py b/ui/tests/conftest.py index <HASH>..<HASH> 100644 --- a/ui/tests/conftest.py +++ b/ui/tests/conftest.py @@ -25,5 +25,5 @@ class MessageRecorder(): @pytest.fixture() def message_recorder(request): recorder = MessageRecorder() - request.addfinalizer(recorder.stop) - return ...
message_recorder: use latest pytest syntax Latest versions of pytest recommend using `yield` instead of `request.addfinalizer`
py
diff --git a/tests/test_mongo.py b/tests/test_mongo.py index <HASH>..<HASH> 100644 --- a/tests/test_mongo.py +++ b/tests/test_mongo.py @@ -46,7 +46,10 @@ from setup_cluster import (killMongoProc, startMongoProc, start_cluster, startSin...
Modified test_mongo to use updated imports.
py
diff --git a/sos/plugins/vdsm.py b/sos/plugins/vdsm.py index <HASH>..<HASH> 100644 --- a/sos/plugins/vdsm.py +++ b/sos/plugins/vdsm.py @@ -60,9 +60,9 @@ class Vdsm(Plugin, RedHatPlugin): plugin_name = 'vdsm' def setup(self): - self.add_forbidden_path('/etc/pki/vdsm/keys/*') + self.add_forbidde...
[vdsm] fix directory blacklist style Plugins must use 'path/to/exclude' rather than 'path/to/exclude/*' in order to omit a directory and all its content from the report.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,17 +1,17 @@ """Setup for Axis.""" -from setuptools import setup +from setuptools import find_packages, setup setup( name="axis", - packages=["axis"], - version="34", + packages=find_packages(include=["ax...
Bump to <I> Fix so applications are included in packages
py
diff --git a/plyfile.py b/plyfile.py index <HASH>..<HASH> 100644 --- a/plyfile.py +++ b/plyfile.py @@ -210,8 +210,8 @@ class PlyData(object): stream = open(stream, 'wb') must_close = True - stream.write(self.header) - stream.write('\r\n') + stream.wri...
Encode header as ASCII binary string.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -55,6 +55,6 @@ setup( packages=find_packages(exclude=['demo', 'tests', 'docs', 'contrib']), install_requires=['numpy', 'Quaternions'], - dependency_links=['git+https://github.com/bond-anton/...
Github link on Quaternions package in requirements.txt. Version <I>
py
diff --git a/gffutils/test/test_biopython_integration.py b/gffutils/test/test_biopython_integration.py index <HASH>..<HASH> 100644 --- a/gffutils/test/test_biopython_integration.py +++ b/gffutils/test/test_biopython_integration.py @@ -1,4 +1,4 @@ -from gffutils import example_filename, create, parser, feature +from gff...
add test for 0- and 1-based indexing
py
diff --git a/grimoire_elk/_version.py b/grimoire_elk/_version.py index <HASH>..<HASH> 100644 --- a/grimoire_elk/_version.py +++ b/grimoire_elk/_version.py @@ -1,2 +1,2 @@ # Versions compliant with PEP 440 https://www.python.org/dev/peps/pep-0440 -__version__ = "0.30.2" +__version__ = "0.30.3"
[version] Increase version number to <I> for pip package
py
diff --git a/cli/shinkenio/cli.py b/cli/shinkenio/cli.py index <HASH>..<HASH> 100644 --- a/cli/shinkenio/cli.py +++ b/cli/shinkenio/cli.py @@ -374,6 +374,9 @@ def grab_local(d): def install_package(pname, raw): logger.debug("Installing the package %s (size:%d)" % (pname, len(raw))) + if len(raw) == 0: + ...
fix: CLI isntallating missing package
py
diff --git a/prometheus_client/multiprocess.py b/prometheus_client/multiprocess.py index <HASH>..<HASH> 100644 --- a/prometheus_client/multiprocess.py +++ b/prometheus_client/multiprocess.py @@ -28,8 +28,12 @@ class MultiProcessCollector(object): d = core._MmapedDict(f) for key, value in d.rea...
Reduce unnecessary metric creation in loop (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ setup(name = "aiodns", description = "Simple DNS resolver for asyncio", long_description = codecs.open("README.rst", encoding="utf-8").read(), long_description_content_type ...
setup: typing exists since Python <I> Fix #<I>.
py
diff --git a/pew/pew.py b/pew/pew.py index <HASH>..<HASH> 100644 --- a/pew/pew.py +++ b/pew/pew.py @@ -1,5 +1,3 @@ -#! /usr/bin/env python - from __future__ import print_function, absolute_import, unicode_literals import os
Remove unnecessary shebang This file is not exectuable, and even if it were it doesn't do anything useful when executed on its own. This came up in the review to include pew in Fedora.
py
diff --git a/zxcvbn/feedback.py b/zxcvbn/feedback.py index <HASH>..<HASH> 100644 --- a/zxcvbn/feedback.py +++ b/zxcvbn/feedback.py @@ -67,7 +67,7 @@ def get_match_feedback(match, is_sole_match): } elif match['pattern'] == 'sequence': return { - 'warning': _("Sequences like abc or 6543 ...
Provide consistent feedback for example (#<I>) Always use quotes around examples in feedback.
py
diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py index <HASH>..<HASH> 100644 --- a/asv_bench/benchmarks/groupby.py +++ b/asv_bench/benchmarks/groupby.py @@ -461,6 +461,29 @@ class GroupByMethods: self.as_field_method() +class GroupByCythonAgg: + """ + Benchmarks specific...
ASV: add benchmarks for groupby cython aggregations (#<I>)
py
diff --git a/ec2/spark_ec2.py b/ec2/spark_ec2.py index <HASH>..<HASH> 100755 --- a/ec2/spark_ec2.py +++ b/ec2/spark_ec2.py @@ -189,7 +189,12 @@ def get_spark_ami(opts): "i2.xlarge": "hvm", "i2.2xlarge": "hvm", "i2.4xlarge": "hvm", - "i2.8xlarge": "hvm" + "i2.8xlarge": "hvm", + "c3.large": ...
Add c3 instance types to Spark EC2 The number of disks for the c3 instance types taken from here: <URL>
py
diff --git a/buildbot/steps/shell.py b/buildbot/steps/shell.py index <HASH>..<HASH> 100644 --- a/buildbot/steps/shell.py +++ b/buildbot/steps/shell.py @@ -491,6 +491,12 @@ class WarningCountingShellCommand(ShellCommand): return ShellCommand.start(self) def createSummary(self, log): + """ + ...
Add to description of WarningCountingShellCommand This should override the inherited documentation.
py
diff --git a/HTSeq/__init__.py b/HTSeq/__init__.py index <HASH>..<HASH> 100644 --- a/HTSeq/__init__.py +++ b/HTSeq/__init__.py @@ -695,8 +695,13 @@ class VCF_Reader( FileOrSequence ): def make_info_dict( self ): self.infodict = dict( ( key, _vcf_typemap[self.info[key]["Type"]] ) for key in self.info.keys(...
VCFReader can deal with separate header-files now
py
diff --git a/aiowebrtc/sctp.py b/aiowebrtc/sctp.py index <HASH>..<HASH> 100644 --- a/aiowebrtc/sctp.py +++ b/aiowebrtc/sctp.py @@ -313,7 +313,7 @@ class Endpoint: self.advertised_rwnd = 131072 self.outbound_streams = 256 self.inbound_streams = 2048 - self.stream_seq = 0 + self.s...
[sctp] use different sequence per stream
py
diff --git a/python/pyspark/sql/tests.py b/python/pyspark/sql/tests.py index <HASH>..<HASH> 100644 --- a/python/pyspark/sql/tests.py +++ b/python/pyspark/sql/tests.py @@ -3595,7 +3595,7 @@ class UDFInitializationTests(unittest.TestCase): SparkSession._instantiatedSession.stop() if SparkContext._...
[PYSPARK][TEST][MINOR] Fix UDFInitializationTests ## What changes were proposed in this pull request? Fix a typo in pyspark sql tests
py
diff --git a/txmongo/collection.py b/txmongo/collection.py index <HASH>..<HASH> 100644 --- a/txmongo/collection.py +++ b/txmongo/collection.py @@ -1171,6 +1171,9 @@ class Collection(object): all_responses.append(batch_result) if self.write_concern.acknowledged and not ordered: - ...
Fixed handling of connection errors in bulk_write
py
diff --git a/gwpy/spectrum/psd.py b/gwpy/spectrum/psd.py index <HASH>..<HASH> 100644 --- a/gwpy/spectrum/psd.py +++ b/gwpy/spectrum/psd.py @@ -51,7 +51,7 @@ def bartlett(timeseries, segmentlength, window=None): Spectrum Bartlett-averaged `Spectrum` """ - return welch(timeseries, segmentlength, 0, ...
spectrum.psd: more explicit setting of Quantities
py
diff --git a/imgaug/multicore.py b/imgaug/multicore.py index <HASH>..<HASH> 100644 --- a/imgaug/multicore.py +++ b/imgaug/multicore.py @@ -187,6 +187,8 @@ class Pool(object): datasets, this should be set to an integer value to avoid filling the whole RAM if loading+augmentation happens faster ...
Add version info for output_buffer_size in docstrings
py
diff --git a/cmd2/parsing.py b/cmd2/parsing.py index <HASH>..<HASH> 100644 --- a/cmd2/parsing.py +++ b/cmd2/parsing.py @@ -316,7 +316,8 @@ class StatementParser(): break return command - def _command_and_args(self, tokens: List[str]) -> Tuple[str, str]: + @staticmethod + def _co...
_command_and_args switched to static method
py
diff --git a/salt/master.py b/salt/master.py index <HASH>..<HASH> 100644 --- a/salt/master.py +++ b/salt/master.py @@ -119,7 +119,7 @@ class ReqServer(threading.Thread): self.__bind() -class LocalServer(ReqServer): +class LocalServer(threading.Thread): ''' Create the localhost communication inter...
I am lazy and killed the inheritance, it was getting messy
py
diff --git a/sslyze/plugins/hsts_plugin.py b/sslyze/plugins/hsts_plugin.py index <HASH>..<HASH> 100755 --- a/sslyze/plugins/hsts_plugin.py +++ b/sslyze/plugins/hsts_plugin.py @@ -75,7 +75,7 @@ class HstsPlugin(plugin_base.PluginBase): http_path = o.path if o.scheme == 'http': ...
Dot not raise an exception for an HTTP redirection
py
diff --git a/metrics.py b/metrics.py index <HASH>..<HASH> 100644 --- a/metrics.py +++ b/metrics.py @@ -30,7 +30,7 @@ def precision(run, k=None, p=None, masks=[], test=True, outcome='true', extrapol k = min(k, len(y_true)) - return precision_at_k(y_true.values, y_score.values, k, extrapolate) + return pre...
coerce dtypes in precision_at_k
py
diff --git a/xtuml/meta.py b/xtuml/meta.py index <HASH>..<HASH> 100644 --- a/xtuml/meta.py +++ b/xtuml/meta.py @@ -585,6 +585,9 @@ class MetaClass(object): else: referential_attributes[name] = value + if not referential_attributes: + return inst + ...
meta: do not attempt to associate new instances with referred to instances if no referential attributes are provided as arguments
py
diff --git a/bokeh/charts/chart_options.py b/bokeh/charts/chart_options.py index <HASH>..<HASH> 100644 --- a/bokeh/charts/chart_options.py +++ b/bokeh/charts/chart_options.py @@ -14,9 +14,10 @@ #----------------------------------------------------------------------------- from ..enums import enumeration, LegendLoca...
make ChartOptions Viewable so it can be used on docs autogeneration
py
diff --git a/bioio.py b/bioio.py index <HASH>..<HASH> 100644 --- a/bioio.py +++ b/bioio.py @@ -742,9 +742,16 @@ def fastaWrite(fileHandleOrFile, name, seq, mode="w"): """Writes out fasta file """ fileHandle = _getFileHandle(fileHandleOrFile, mode) - assert seq.__class__ == "".__class__ - for i in s...
updated fastaWrite to allow unicode strings. Also changed error checking logic to match previous rewrite of fastaRead.
py
diff --git a/indra/tests/test_cbio_client.py b/indra/tests/test_cbio_client.py index <HASH>..<HASH> 100644 --- a/indra/tests/test_cbio_client.py +++ b/indra/tests/test_cbio_client.py @@ -67,9 +67,14 @@ def test_get_profile_data(): assert profile_data['BT20_BREAST']['BRAF'] == 1 assert profile_data['LOXIMVI_SK...
Update tests for cbio_client
py
diff --git a/usb/core.py b/usb/core.py index <HASH>..<HASH> 100644 --- a/usb/core.py +++ b/usb/core.py @@ -977,7 +977,9 @@ class Device(_objfinalizer.AutoFinalizedObject): # Thanks to Johannes Stezenbach to point me out that we need to # claim the recipient interface recipient = bmRequestType...
Claim interface only for standard control transfer requests. wIndex is the interface number to be claimed only for standard request types. For example Silicon Labs cp<I> defines a vendor control transfer to set some GPIO pins though wIndex parameter (se AN<I> page <I>).
py
diff --git a/dialogs/grid_frame3.py b/dialogs/grid_frame3.py index <HASH>..<HASH> 100755 --- a/dialogs/grid_frame3.py +++ b/dialogs/grid_frame3.py @@ -790,8 +790,14 @@ You may then paste into a text document or spreadsheet! Set self.df_slice based on user's selection """ if self.grid.GetSelec...
fix it so that copy/paste works for grids again, fixes #<I>
py
diff --git a/polyaxon_cli/managers/deploy.py b/polyaxon_cli/managers/deploy.py index <HASH>..<HASH> 100644 --- a/polyaxon_cli/managers/deploy.py +++ b/polyaxon_cli/managers/deploy.py @@ -34,7 +34,9 @@ class DeployManager(object): @property def is_kubernetes(self): - return self.deployment_type == Dep...
Add minikube and microk8s deployment
py
diff --git a/dvc/tree/base.py b/dvc/tree/base.py index <HASH>..<HASH> 100644 --- a/dvc/tree/base.py +++ b/dvc/tree/base.py @@ -3,7 +3,7 @@ import json import logging import tempfile from concurrent.futures import ThreadPoolExecutor, as_completed -from functools import partial, wraps +from functools import partial f...
tree: remove duplicated code (#<I>) Leftover from remote/tree separation.
py
diff --git a/invoice2data/date_parser.py b/invoice2data/date_parser.py index <HASH>..<HASH> 100644 --- a/invoice2data/date_parser.py +++ b/invoice2data/date_parser.py @@ -29,7 +29,7 @@ def str2date(date_string): date_string = re.sub(r'\s+', ' ', date_string) for fmt in dateformats(): try: - ...
Temporary workaround for bug #1
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,8 @@ setup( description='Python module to get stock data from the Alpha Vantage Api', long_description=open('README.md').read(), install_requires=[ - 'simplejson' + 'simplejson', + '...
test: Add nosetests to setup.py
py
diff --git a/aiocqhttp/__init__.py b/aiocqhttp/__init__.py index <HASH>..<HASH> 100644 --- a/aiocqhttp/__init__.py +++ b/aiocqhttp/__init__.py @@ -335,13 +335,13 @@ class CQHttp(AsyncApi): on_meta_event = _deco_maker('meta_event') __pdoc__['CQHttp.on_meta_event'] = "注册元事件处理函数,用作装饰器,用法同上。" - def on_startu...
rename on_startup to before_serving
py
diff --git a/ftw/ruleset.py b/ftw/ruleset.py index <HASH>..<HASH> 100644 --- a/ftw/ruleset.py +++ b/ftw/ruleset.py @@ -1,7 +1,6 @@ import re -import urllib -from six.moves.urllib.parse import urlparse +from six.moves.urllib.parse import parse_qsl, unquote, urlencode, urlparse from . import errors @@ -117,10 +11...
parse_qsl(), unquote() and urlencode() moved
py
diff --git a/src/ossos-pipeline/ossos/gui/controllers.py b/src/ossos-pipeline/ossos/gui/controllers.py index <HASH>..<HASH> 100644 --- a/src/ossos-pipeline/ossos/gui/controllers.py +++ b/src/ossos-pipeline/ossos/gui/controllers.py @@ -86,10 +86,12 @@ class AbstractController(object): def on_use_singlet_view(self):...
Image loading dialog is displayed when switching between singlet and triplet mode if the image isn't already loaded.
py
diff --git a/pymzn/mzn/minizinc.py b/pymzn/mzn/minizinc.py index <HASH>..<HASH> 100644 --- a/pymzn/mzn/minizinc.py +++ b/pymzn/mzn/minizinc.py @@ -159,7 +159,7 @@ def _dzn_output_statement(output_vars, types): for enum_type in enum_types: enum_list.append(out_var.format(enum_type)) - output = ', '.jo...
minizinc: fix problem with arrays of enums Fixes #<I>.
py
diff --git a/pyWOA/woa.py b/pyWOA/woa.py index <HASH>..<HASH> 100644 --- a/pyWOA/woa.py +++ b/pyWOA/woa.py @@ -375,6 +375,8 @@ class WOA_var_nc(object): else: depth = self.dims['depth'][:] + assert np.all(depth >= 0), "Depth was supposed to be positive." + lat = np.atleast_1d(kwa...
An assert informing that depth must be positive.
py
diff --git a/lib/python/voltcli/environment.py b/lib/python/voltcli/environment.py index <HASH>..<HASH> 100644 --- a/lib/python/voltcli/environment.py +++ b/lib/python/voltcli/environment.py @@ -145,7 +145,7 @@ def initialize(command_name_arg, command_dir_arg, version_arg): # LOG4J configuration if 'LOG4J_CON...
ENG-<I> Fix crash in logic to find log4j.xml when run from clean environment.
py
diff --git a/tes/client.py b/tes/client.py index <HASH>..<HASH> 100644 --- a/tes/client.py +++ b/tes/client.py @@ -53,11 +53,15 @@ class HTTPClient: response.raise_for_status() return - def list_tasks(self, req): - if req.isinstance(ListTasksRequest): - msg = req.as_dict() - ...
changed list_tasks args
py
diff --git a/qiskit/_quantumprogram.py b/qiskit/_quantumprogram.py index <HASH>..<HASH> 100644 --- a/qiskit/_quantumprogram.py +++ b/qiskit/_quantumprogram.py @@ -581,7 +581,7 @@ class QuantumProgram(object): if isinstance(i, str): # WHY DO WE NEED THIS pass else: - if 'result'...
fix missing ":" in QuantumProgram.
py
diff --git a/openquake/commonlib/readinput.py b/openquake/commonlib/readinput.py index <HASH>..<HASH> 100644 --- a/openquake/commonlib/readinput.py +++ b/openquake/commonlib/readinput.py @@ -403,12 +403,12 @@ def get_source_models(oqparam, gsim_lt, source_model_lt, in_memory=True): else: # just collect the TR...
Added comments [skip CI]
py
diff --git a/src/saml2/server.py b/src/saml2/server.py index <HASH>..<HASH> 100644 --- a/src/saml2/server.py +++ b/src/saml2/server.py @@ -24,7 +24,7 @@ import shelve import sys import memcache -from saml2 import saml +from saml2 import saml, BINDING_HTTP_POST from saml2 import class_name from saml2 import soap ...
Assertion consumer service binding is POST if request is a HTTP-Redirect
py
diff --git a/btb/bandit.py b/btb/bandit.py index <HASH>..<HASH> 100644 --- a/btb/bandit.py +++ b/btb/bandit.py @@ -13,14 +13,24 @@ def ucb1_bandit(arms): arms: maps choice IDs to lists of rewards. {choice -> list[float]} """ - # total_pulls is capped below at 1, so that log() will not fail + # ...
add some comments to clarify ucb1_bandit; randomly shuffle choices
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,9 @@ setup(name="wormhole-sync", license="MIT", url="https://github.com/warner/wormhole-sync", package_dir={"": "src"}, - packages=["wormhole"], + packages=["wormhole", + ...
setup.py: include all packages= , I always forget that
py
diff --git a/albumentations/core/composition.py b/albumentations/core/composition.py index <HASH>..<HASH> 100644 --- a/albumentations/core/composition.py +++ b/albumentations/core/composition.py @@ -467,7 +467,7 @@ class BboxParams(Params): `[x_min, y_min, x_max, y_max]`, e.g. [97, 12, 247, 212]. ...
Fix typo in BboxParams docstring (#<I>) An opening backtick was missing in the description of the Albumentations format.
py
diff --git a/alignak/graph.py b/alignak/graph.py index <HASH>..<HASH> 100644 --- a/alignak/graph.py +++ b/alignak/graph.py @@ -95,7 +95,7 @@ class Graph: try: self.nodes[from_node].append(to_node) # If from_node does not exist, add it with its son - except KeyError, exp: + e...
Enh: - Pylint W<I> in graph.py
py
diff --git a/anycast_healthchecker/healthchecker.py b/anycast_healthchecker/healthchecker.py index <HASH>..<HASH> 100644 --- a/anycast_healthchecker/healthchecker.py +++ b/anycast_healthchecker/healthchecker.py @@ -145,6 +145,11 @@ class HealthChecker(object): self.log.critical(error) self.log...
exit when parsing bird configuration results to an empty list of IP prefixes This is to catch the case where bird configuration doesn't contain meaningful data.
py
diff --git a/allennlp/training/tensorboard_writer.py b/allennlp/training/tensorboard_writer.py index <HASH>..<HASH> 100644 --- a/allennlp/training/tensorboard_writer.py +++ b/allennlp/training/tensorboard_writer.py @@ -268,7 +268,7 @@ class TensorboardWriter(FromParams): name_length = max(len(x) for x in m...
log metrics in alphabetical order (#<I>)
py
diff --git a/openpnm/models/physics/multiphase.py b/openpnm/models/physics/multiphase.py index <HASH>..<HASH> 100644 --- a/openpnm/models/physics/multiphase.py +++ b/openpnm/models/physics/multiphase.py @@ -104,6 +104,7 @@ def late_filling(target, pressure='pore.pressure', """ element = pressure.split('.')[...
Fix bug in LPF model when physics doesn't span network
py
diff --git a/examples/personality_insights_v3.py b/examples/personality_insights_v3.py index <HASH>..<HASH> 100755 --- a/examples/personality_insights_v3.py +++ b/examples/personality_insights_v3.py @@ -37,7 +37,7 @@ with open(join(os.getcwd(), 'resources/personality-v3.json')) as \ # Profile with CSV output # ######...
chore(pi): correct typo
py
diff --git a/lackey/RegionMatching.py b/lackey/RegionMatching.py index <HASH>..<HASH> 100644 --- a/lackey/RegionMatching.py +++ b/lackey/RegionMatching.py @@ -27,7 +27,7 @@ class Pattern(object): def __init__(self, path): ## Loop through image paths to find the image found = False - for image_path in [Settings...
Added CWD to image paths Ran into this with some of my scripts - Pattern did not check current directory for images to load
py