diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -138,7 +138,8 @@ setup( 'pybind11>=1.7', 'psutil', 'nibabel', - 'joblib' + 'joblib', + 'wheel', # See https://github.com/astropy/astropy-helpers/issues/501 ], author='...
dev: Add wheel dependency (#<I>) Required by a change in Setuptools <I>. See also: <URL>
py
diff --git a/duct.py b/duct.py index <HASH>..<HASH> 100644 --- a/duct.py +++ b/duct.py @@ -174,13 +174,11 @@ class Subshell(Expression): return status if self._check else 0 -class CompoundExpression(Expression): +class Then(Expression): def __init__(self, left, right): self._left = left ...
get rid of CompoundExpression It wasn't doing much work, and now we have a totally flat class hierarchy, except for the abstract Expression base class.
py
diff --git a/ykman/driver_ccid.py b/ykman/driver_ccid.py index <HASH>..<HASH> 100644 --- a/ykman/driver_ccid.py +++ b/ykman/driver_ccid.py @@ -104,7 +104,10 @@ class CCIDDriver(AbstractDriver): _, sw = self.send_apdu(0, INS_YK2_REQ, SLOT_DEVICE_CONFIG, 0, data) def __del__(self): - self._conn...
Ignore disconnect errors for CCID in __del__.
py
diff --git a/src/foremast/utils/dns.py b/src/foremast/utils/dns.py index <HASH>..<HASH> 100644 --- a/src/foremast/utils/dns.py +++ b/src/foremast/utils/dns.py @@ -126,6 +126,7 @@ def delete_existing_cname(env, zone_id, dns_name): zone_id (str): Route53 zone id. dns_name (str): FQDN of application's dn...
added missing client for route<I> delete func
py
diff --git a/onnx/backend/test/case/model/__init__.py b/onnx/backend/test/case/model/__init__.py index <HASH>..<HASH> 100644 --- a/onnx/backend/test/case/model/__init__.py +++ b/onnx/backend/test/case/model/__init__.py @@ -35,8 +35,9 @@ def expect(model, # type: ModelProto )) +base_model_opset_version = 1...
Fix wrong model version, it's not <I> (the onnx_opset_version()), not <I> (the opset version of the latest stable), but <I> (#<I>)
py
diff --git a/plaso/engine/worker.py b/plaso/engine/worker.py index <HASH>..<HASH> 100644 --- a/plaso/engine/worker.py +++ b/plaso/engine/worker.py @@ -333,6 +333,14 @@ class EventExtractionWorker(object): 'hiberfil.sys', 'pagefile.sys', 'swapfile.sys'): return True + elif (len(path_segments) == 4 a...
Exclude Mac OS swap and sleep files from processing (#<I>)
py
diff --git a/pbxproj/PBXObjects.py b/pbxproj/PBXObjects.py index <HASH>..<HASH> 100644 --- a/pbxproj/PBXObjects.py +++ b/pbxproj/PBXObjects.py @@ -81,10 +81,11 @@ class objects(PBXGenericObject): return sum([section.__len__() for section in self._sections]) def get_objects_in_section(self, *sections): +...
wip: fix object in section to append the lists
py
diff --git a/haphilipsjs/__main__.py b/haphilipsjs/__main__.py index <HASH>..<HASH> 100644 --- a/haphilipsjs/__main__.py +++ b/haphilipsjs/__main__.py @@ -271,6 +271,7 @@ async def run(args, parser, tv: PhilipsTV): tv.ambilight_current_configuration ) ) + print("Ambilight+H...
Added AMbilight+Hue state to status info
py
diff --git a/utils/release.py b/utils/release.py index <HASH>..<HASH> 100644 --- a/utils/release.py +++ b/utils/release.py @@ -88,8 +88,8 @@ def clean_master_ref_in_model_list(): while not lines[index].startswith(_end_prompt): if lines[index].startswith("1."): lines[index] = lines[index].repl...
Fix doc links in release utils (#<I>)
py
diff --git a/featureflow/datawriter.py b/featureflow/datawriter.py index <HASH>..<HASH> 100644 --- a/featureflow/datawriter.py +++ b/featureflow/datawriter.py @@ -106,5 +106,8 @@ class StringIODataWriter(BaseDataWriter): self.content_type = needs.content_type self._stream = StringIO() + def __exi...
Remove reference to the stream, as this was the cause of a pretty severe memory leak
py
diff --git a/peewee.py b/peewee.py index <HASH>..<HASH> 100644 --- a/peewee.py +++ b/peewee.py @@ -853,7 +853,7 @@ class R(object): if len(self.params) == 2: return self.params else: - return ', '.join(self.params) + raise ValueError('Incorrect number of argument pro...
Fixing a couple bugs and tightening up syntax on R() for select queries
py
diff --git a/project_generator/project.py b/project_generator/project.py index <HASH>..<HASH> 100644 --- a/project_generator/project.py +++ b/project_generator/project.py @@ -216,7 +216,7 @@ class Project: if project_file_data['common']['output'][0] not in self.output_types: raise ...
Project - set common attributes typo fix
py
diff --git a/shap/explainers/tree.py b/shap/explainers/tree.py index <HASH>..<HASH> 100644 --- a/shap/explainers/tree.py +++ b/shap/explainers/tree.py @@ -333,7 +333,7 @@ class TreeExplainer(Explainer): assert str(type(X)).endswith("'numpy.ndarray'>"), "Unknown instance type: " + str(type(X)) assert l...
Fix issue #<I> removed redundant "len" function
py
diff --git a/tests/test_protocol.py b/tests/test_protocol.py index <HASH>..<HASH> 100644 --- a/tests/test_protocol.py +++ b/tests/test_protocol.py @@ -226,3 +226,31 @@ async def test_connectionerror_on_drain_writer( with pytest.raises(ConnectionError): await protocol._drain_writer(timeout=0.01) + + +asy...
Added test for partial line read.
py
diff --git a/greenhouse/io.py b/greenhouse/io.py index <HASH>..<HASH> 100644 --- a/greenhouse/io.py +++ b/greenhouse/io.py @@ -274,7 +274,12 @@ class File(object): greenhouse.mkfile(name) # open the file, get a descriptor - self._fileno = os.open(name, flags) + try: + se...
finicky libraries complaining that my OSError isn't good enough for them...
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ setup( description='Pythonic server orchestrating based on fabric / cuisine', long_description=open('README.md').read(), keywords=['fabric', 'cuisine', 'chef', 'puppet', 'ssh'], - install_requi...
setup.py: install_requires replaced with the new requires
py
diff --git a/uw_canvas/tests/test_grading_standards.py b/uw_canvas/tests/test_grading_standards.py index <HASH>..<HASH> 100644 --- a/uw_canvas/tests/test_grading_standards.py +++ b/uw_canvas/tests/test_grading_standards.py @@ -50,12 +50,10 @@ class CanvasTestGradingStandards(TestCase): def test_find_grading_standa...
fix account id settings name for test
py
diff --git a/src/toil_scripts/adam_pipeline/adam_preprocessing.py b/src/toil_scripts/adam_pipeline/adam_preprocessing.py index <HASH>..<HASH> 100644 --- a/src/toil_scripts/adam_pipeline/adam_preprocessing.py +++ b/src/toil_scripts/adam_pipeline/adam_preprocessing.py @@ -372,8 +372,8 @@ def main(): for arg in [...
ADAM pipeline was being ran in a loop (resolves #<I>).
py
diff --git a/watch.py b/watch.py index <HASH>..<HASH> 100755 --- a/watch.py +++ b/watch.py @@ -22,11 +22,14 @@ class KhepriMatchingEventHandler(PatternMatchingEventHandler): self.out = out self.other_args = other_args - def _compile(self, path): + def _out_path(self, path): rel = ...
Added delete generated file on delete event
py
diff --git a/pyannote/metrics/segmentation.py b/pyannote/metrics/segmentation.py index <HASH>..<HASH> 100755 --- a/pyannote/metrics/segmentation.py +++ b/pyannote/metrics/segmentation.py @@ -29,6 +29,7 @@ # Mamadou Doumbia from __future__ import unicode_literals +from __future__ import division import numpy as n...
fix: fix python 3 support
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -23,6 +23,7 @@ params = dict( packages=setuptools.find_packages(), include_package_data=True, namespace_packages=name.split('.')[:-1], + python_requires='>=2.7', install_requires=[ ], extras_require={
Add python_requires directive.
py
diff --git a/cherrypy/_cpdispatch.py b/cherrypy/_cpdispatch.py index <HASH>..<HASH> 100644 --- a/cherrypy/_cpdispatch.py +++ b/cherrypy/_cpdispatch.py @@ -124,7 +124,6 @@ def test_callable_spec(callable, callable_args, callable_kwargs): qs_params = set(callable_kwargs.keys()) - body_params if multiple_args:...
trunk - Cosmetic change to bring it up to par with python3
py
diff --git a/holoviews/view/sheetviews.py b/holoviews/view/sheetviews.py index <HASH>..<HASH> 100644 --- a/holoviews/view/sheetviews.py +++ b/holoviews/view/sheetviews.py @@ -105,7 +105,7 @@ class Raster(Layer): sample[sample_ind] = self._coord2matrix(coord_fn(sample_coord))[sample_ind] # Sa...
Fixed reduce and sample on Raster types
py
diff --git a/jax/core.py b/jax/core.py index <HASH>..<HASH> 100644 --- a/jax/core.py +++ b/jax/core.py @@ -71,6 +71,13 @@ class TypedJaxpr(object): def __iter__(self): return iter((self.jaxpr, self.literals, self.in_avals, self.out_aval)) + def __str__(self): + # TODO(mattjj): improve this with type annot...
add pretty-printing to TypedJaxpr
py
diff --git a/cloud-image/create_image.py b/cloud-image/create_image.py index <HASH>..<HASH> 100644 --- a/cloud-image/create_image.py +++ b/cloud-image/create_image.py @@ -101,8 +101,9 @@ def main(): startup_script) passwd = uuid.uuid4().hex instance.change_password(passwd) - ...
Increase sleep to work around Rackspace slowness
py
diff --git a/holoviews/ipython/magics.py b/holoviews/ipython/magics.py index <HASH>..<HASH> 100644 --- a/holoviews/ipython/magics.py +++ b/holoviews/ipython/magics.py @@ -408,8 +408,8 @@ class OutputMagic(OptionsMagic): if cell is not None: self.shell.run_cell(cell, store_history=STORE_HISTORY) ...
Implemented the correct fix to restore state after output cell magic
py
diff --git a/saltcloud/cloud.py b/saltcloud/cloud.py index <HASH>..<HASH> 100644 --- a/saltcloud/cloud.py +++ b/saltcloud/cloud.py @@ -783,6 +783,7 @@ class Cloud(object): self.opts['providers'][alias].pop(driver) if not self.opts['providers'][alias]: s...
In case of error, continue. Forgot to add it.
py
diff --git a/fusesoc/main.py b/fusesoc/main.py index <HASH>..<HASH> 100644 --- a/fusesoc/main.py +++ b/fusesoc/main.py @@ -198,7 +198,9 @@ def run_backend(tool_type, export, do_configure, do_build, do_run, flags, system except DependencyError as e: logger.error(e.msg + "\nFailed to resolve dependencies fo...
Catch SyntaxError from core parsing
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,13 +1,8 @@ """setup.py file.""" -import uuid - from setuptools import setup, find_packages -from pip.req import parse_requirements - - -install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1()) -reqs = [...
Fixing PIP<I> compatibility issue
py
diff --git a/geneparse/tests/__main__.py b/geneparse/tests/__main__.py index <HASH>..<HASH> 100644 --- a/geneparse/tests/__main__.py +++ b/geneparse/tests/__main__.py @@ -29,4 +29,4 @@ import unittest from . import test_suite -unittest.TextTestRunner(verbosity=1).run(test_suite) +unittest.TextTestRunner(verbosity=...
Verbosity change for travis
py
diff --git a/omrdatasettools/converters/ImageInverter.py b/omrdatasettools/converters/ImageInverter.py index <HASH>..<HASH> 100644 --- a/omrdatasettools/converters/ImageInverter.py +++ b/omrdatasettools/converters/ImageInverter.py @@ -19,13 +19,11 @@ class ImageInverter: :param image_directory: The directory, ...
Improved description while inverting and using splitext instead of manually splitting extension.
py
diff --git a/integration_tests/blockstack_integration_tests/scenarios/testlib.py b/integration_tests/blockstack_integration_tests/scenarios/testlib.py index <HASH>..<HASH> 100644 --- a/integration_tests/blockstack_integration_tests/scenarios/testlib.py +++ b/integration_tests/blockstack_integration_tests/scenarios/test...
if BLOCKSTACK_TEST_CLI_SLEEP_ON_FAILURE is set, then sleep <I> minutes after the CLI fails. It is not set by default
py
diff --git a/vyper/types/types.py b/vyper/types/types.py index <HASH>..<HASH> 100644 --- a/vyper/types/types.py +++ b/vyper/types/types.py @@ -268,7 +268,7 @@ def canonicalize_type(t, is_indexed=False): elif t == 'decimal': return 'fixed168x10' - raise InvalidTypeException("Invalid or unsupported typ...
Update vyper/types/types.py from Peer Review
py
diff --git a/pylint/__main__.py b/pylint/__main__.py index <HASH>..<HASH> 100644 --- a/pylint/__main__.py +++ b/pylint/__main__.py @@ -1,7 +1,8 @@ +#!/usr/bin/env python + # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/master/COPYIN...
Fix E<I> block comment should start with '# '
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -5,19 +5,10 @@ from __future__ import absolute_import, division, print_function from codecs import StreamReader, open -from sys import version_info from setuptools import find_packages, setup ## -# Check Python versi...
Cleaned up setup.py a bit. - Removed useless version check (only runs after the library is installed... d'oh!). - Added some keywords.
py
diff --git a/examples/soma_radius_fit.py b/examples/soma_radius_fit.py index <HASH>..<HASH> 100755 --- a/examples/soma_radius_fit.py +++ b/examples/soma_radius_fit.py @@ -28,7 +28,9 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUC...
Documentation fix in soma_radius_fit
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,7 @@ def load_requirements(*requirements_paths): setup( name='edx-submissions', - version='1.0.0', + version='1.1.0', author='edX', description='An API for creating submissions and scores.', ...
Bump to version <I> in setup.py
py
diff --git a/.ci/localhost_ansible_tests.py b/.ci/localhost_ansible_tests.py index <HASH>..<HASH> 100755 --- a/.ci/localhost_ansible_tests.py +++ b/.ci/localhost_ansible_tests.py @@ -24,7 +24,7 @@ with ci_lib.Fold('job_setup'): # NOTE: sshpass v1.06 causes errors so pegging to 1.05 -> "msg": "Error when changing p...
don't run sshpass install through run
py
diff --git a/tldr.py b/tldr.py index <HASH>..<HASH> 100755 --- a/tldr.py +++ b/tldr.py @@ -29,10 +29,21 @@ DOWNLOAD_CACHE_LOCATION = os.environ.get( 'https://tldr-pages.github.io/assets/tldr.zip' ) -DEFAULT_LANG = os.environ.get( - 'LANG', - 'C' -).split('_')[0] + +def get_language_code(language): + la...
Add filter for languages with ll_CC description (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -38,7 +38,7 @@ with codecs.open(readme_md, encoding='utf-8') as f: long_description = f.read() -version = '0.1.17' +version = '0.1.18' class TestCommand(TestClass):
Update version number to <I>
py
diff --git a/pcrypt.py b/pcrypt.py index <HASH>..<HASH> 100644 --- a/pcrypt.py +++ b/pcrypt.py @@ -266,7 +266,7 @@ def cli(argv=None): if not 1000 < args.rounds < 999999999: # limits fetched from crypt(3) source - print('Rounds must be between 1000 and 999999999.') + sys.stderr.write('Roun...
Write errors to stderr
py
diff --git a/src/com/dtmilano/android/adb/adbclient.py b/src/com/dtmilano/android/adb/adbclient.py index <HASH>..<HASH> 100644 --- a/src/com/dtmilano/android/adb/adbclient.py +++ b/src/com/dtmilano/android/adb/adbclient.py @@ -300,15 +300,15 @@ class AdbClient: if not sock: sock = self.socket ...
Script gets stuck on ViewClient(device, serial) #<I> - Moved timer in receive
py
diff --git a/pysat/__init__.py b/pysat/__init__.py index <HASH>..<HASH> 100644 --- a/pysat/__init__.py +++ b/pysat/__init__.py @@ -99,8 +99,8 @@ else: with open(os.path.join(pysat_dir, 'user_modules.txt'), 'w') as f: f.write('') -from datetime import datetime -from pandas import DataFrame +from ...
DOC: add comments to remove convenience methods before <I> release
py
diff --git a/tests/test_pytest_cov.py b/tests/test_pytest_cov.py index <HASH>..<HASH> 100644 --- a/tests/test_pytest_cov.py +++ b/tests/test_pytest_cov.py @@ -698,16 +698,16 @@ def test_invalid_coverage_source(testdir): '*10 passed*' ]) result.stderr.fnmatch_lines([ - 'Coverage.py warning: No ...
Whoops. Fix the right assertion and fix a typo.
py
diff --git a/psamm/lpsolver/lp.py b/psamm/lpsolver/lp.py index <HASH>..<HASH> 100644 --- a/psamm/lpsolver/lp.py +++ b/psamm/lpsolver/lp.py @@ -29,6 +29,7 @@ single variable. This allows many similar expressions to be represented by one constructed faster. """ +import math import numbers from collections import Co...
lp: Propagate infinity values into Expression Extends Expression such that adding or multiplying a normal expression with infinity produces an Expression with no variables and the offset set to the same infinity value. This means that the offset can be quickly checked to see if an Expression is at infinity.
py
diff --git a/angr/sim_options.py b/angr/sim_options.py index <HASH>..<HASH> 100644 --- a/angr/sim_options.py +++ b/angr/sim_options.py @@ -290,7 +290,7 @@ CGC_NON_BLOCKING_FDS = 'CGC_NON_BLOCKING_FDS' _g = globals().copy() for k, v in _g.items(): - if all([ char in string.uppercase + "_" for char in k ]) and typ...
Recognize options with number (#<I>)
py
diff --git a/moderator/models.py b/moderator/models.py index <HASH>..<HASH> 100644 --- a/moderator/models.py +++ b/moderator/models.py @@ -203,4 +203,4 @@ def realtime_comment_classifier(sender, instance, created, **kwargs): classify_comment(instance) # Enable voting on Comments (for negative votes/repo...
Disable secretballot - performance issues
py
diff --git a/koordinates/metadata.py b/koordinates/metadata.py index <HASH>..<HASH> 100644 --- a/koordinates/metadata.py +++ b/koordinates/metadata.py @@ -60,7 +60,9 @@ class Metadata(base.InnerModel): If you pass this function an open file-like object as the fp parameter, the function will not close ...
Add 'Accept: text/html' header to metadata get_xml requests to fetch correct type
py
diff --git a/salt/modules/freebsdpkg.py b/salt/modules/freebsdpkg.py index <HASH>..<HASH> 100644 --- a/salt/modules/freebsdpkg.py +++ b/salt/modules/freebsdpkg.py @@ -6,18 +6,10 @@ import os def _check_pkgng(): ''' - Looks to see if pkgng is being used if so sets global var. - ''' - make_file = "/etc/m...
Updating check so pkgng can be run without ports installed
py
diff --git a/mongo_orchestration/daemon.py b/mongo_orchestration/daemon.py index <HASH>..<HASH> 100644 --- a/mongo_orchestration/daemon.py +++ b/mongo_orchestration/daemon.py @@ -152,9 +152,7 @@ class Daemon(object): else: # Try killing the daemon process try: - while 1...
"mongo-orchestration stop" only tries once.
py
diff --git a/salt/modules/firewalld.py b/salt/modules/firewalld.py index <HASH>..<HASH> 100644 --- a/salt/modules/firewalld.py +++ b/salt/modules/firewalld.py @@ -230,7 +230,7 @@ def new_service(name, restart=True): else: return out - return __service_mgmt(name, 'service', 'new') + return ...
Fixing lint errors after a function rename
py
diff --git a/tcconfig/_common.py b/tcconfig/_common.py index <HASH>..<HASH> 100644 --- a/tcconfig/_common.py +++ b/tcconfig/_common.py @@ -18,6 +18,8 @@ from ._const import IPV6_OPTION_ERROR_MSG_FORMAT, Tc, TcCommandOutput from ._error import NetworkInterfaceNotFoundError from ._logger import logger +_bin_path_cach...
Add find_bin_path function for further enhancements
py
diff --git a/pointfree.py b/pointfree.py index <HASH>..<HASH> 100644 --- a/pointfree.py +++ b/pointfree.py @@ -92,7 +92,8 @@ class pointfree(partial): def __mul__(self, g): instance = self.__class__(lambda *a: self(g(*a))) - instance.argc = g.argc + if hasattr(g, 'argc'): + inst...
Check whether external object has argc attribute When composing a @pointfree function with another function, check whether the other function actually has the argc attribute before attempting to copy it to the resulting composite function.
py
diff --git a/OpenPNM/Geometry/models/pore_seed.py b/OpenPNM/Geometry/models/pore_seed.py index <HASH>..<HASH> 100644 --- a/OpenPNM/Geometry/models/pore_seed.py +++ b/OpenPNM/Geometry/models/pore_seed.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- r""" =====================================================================...
Added utf coding to the pore seed file Now it can run on Python 2 too.
py
diff --git a/openid/consumer/interface.py b/openid/consumer/interface.py index <HASH>..<HASH> 100644 --- a/openid/consumer/interface.py +++ b/openid/consumer/interface.py @@ -70,12 +70,15 @@ class OpenIDProxy(object): raise NotImplementedError def verifyReturnTo(self, return_to): - """This method...
[project @ Change interface to split verifyReturnTo and getToken]
py
diff --git a/photutils/aperture/core.py b/photutils/aperture/core.py index <HASH>..<HASH> 100644 --- a/photutils/aperture/core.py +++ b/photutils/aperture/core.py @@ -884,6 +884,13 @@ def aperture_photometry(data, apertures, error=None, pixelwise_error=True, thus supports `~astropy.nddata.NDData` objects as input....
Check that input apertures have identical positions
py
diff --git a/porespy/filters/_funcs.py b/porespy/filters/_funcs.py index <HASH>..<HASH> 100644 --- a/porespy/filters/_funcs.py +++ b/porespy/filters/_funcs.py @@ -341,7 +341,7 @@ def trim_floating_solid(im, conn=None): return im -def trim_nonpercolating_paths(im, inlets, outlets): +def trim_nonpercolating_path...
Adding an optional strel arg to trim_nonpercolating_path to work on skeletons
py
diff --git a/salt/modules/win_shortcut.py b/salt/modules/win_shortcut.py index <HASH>..<HASH> 100644 --- a/salt/modules/win_shortcut.py +++ b/salt/modules/win_shortcut.py @@ -1,5 +1,4 @@ """ -.. versionadded:: 3005 Execution module for creating shortcuts on Windows. Handles file shortcuts (`.lnk`) and url shortcuts ...
Fix docs issue... maybe...
py
diff --git a/satsearch/main.py b/satsearch/main.py index <HASH>..<HASH> 100644 --- a/satsearch/main.py +++ b/satsearch/main.py @@ -51,7 +51,7 @@ def cli(): cmd = args.pop('command', None) if cmd is not None: - main(**args) + return main(**args) if __name__ == "__main__":
return results from cli (primarily for testing
py
diff --git a/pychromecast/controllers/youtube.py b/pychromecast/controllers/youtube.py index <HASH>..<HASH> 100644 --- a/pychromecast/controllers/youtube.py +++ b/pychromecast/controllers/youtube.py @@ -2,6 +2,7 @@ Controller to interface with the YouTube-app. Use the media controller to play, pause etc. """ +import...
Avoid deadlock in Youtube controller (#<I>) * Avoid deadlock in Youtube controller * Format code
py
diff --git a/furious/processors.py b/furious/processors.py index <HASH>..<HASH> 100644 --- a/furious/processors.py +++ b/furious/processors.py @@ -122,8 +122,8 @@ def _process_results(): callback = callbacks.get('error') if not callback: - raise (async.result.payload.exception, None, - ...
Raise exception with correct traceback This corrects issue #<I> where exceptions are raised in the results processor with the incorrect traceback.
py
diff --git a/filetype/filetype.py b/filetype/filetype.py index <HASH>..<HASH> 100644 --- a/filetype/filetype.py +++ b/filetype/filetype.py @@ -40,7 +40,7 @@ def guess_mime(obj): Raises: TypeError: if obj is not a supported type. """ - kind = guess_type(obj) + kind = guess(obj) return kind....
fix(tests): call proper function
py
diff --git a/scrapy_dotpersistence.py b/scrapy_dotpersistence.py index <HASH>..<HASH> 100644 --- a/scrapy_dotpersistence.py +++ b/scrapy_dotpersistence.py @@ -37,8 +37,8 @@ class DotScrapyPersistence(object): 'AWS_ACCESS_KEY_ID': self.AWS_ACCESS_KEY_ID, 'AWS_SECRET_ACCESS_KEY': self.AWS_SECRET...
Don't sync data back unless it was loaded successfully Otherwise you risk corrupting stored data because of a temporary network glitch.
py
diff --git a/scripts/pa_autoconfigure_django.py b/scripts/pa_autoconfigure_django.py index <HASH>..<HASH> 100755 --- a/scripts/pa_autoconfigure_django.py +++ b/scripts/pa_autoconfigure_django.py @@ -12,7 +12,7 @@ Usage: Options: --domain=<domain> Domain name, eg www.mydomain.com [default: your-username....
another downgrade to <I>
py
diff --git a/__init__.py b/__init__.py index <HASH>..<HASH> 100644 --- a/__init__.py +++ b/__init__.py @@ -19,7 +19,7 @@ """ -Usage (via ``inveniomanage``): +Usage (via ``inveniomanage``). .. code-block:: console @@ -73,3 +73,15 @@ will be run respecting the dependency graph). The engine will detect cycles in...
fixtures: port to extension with signals usage * NOTE `inveniomanage demosite create` is obsolete. All actions are executed during `{post,pre}_command` signal handlers.
py
diff --git a/smartdc/machine.py b/smartdc/machine.py index <HASH>..<HASH> 100644 --- a/smartdc/machine.py +++ b/smartdc/machine.py @@ -1,5 +1,6 @@ import time from datetime import datetime +import uuid __all__ = ['Machine', 'Snapshot'] @@ -125,6 +126,9 @@ class Machine(object): def __ne__(self, other): ...
correct hash for Machine class. (h/t Michael Clemmons)
py
diff --git a/auto_ml/predictor.py b/auto_ml/predictor.py index <HASH>..<HASH> 100644 --- a/auto_ml/predictor.py +++ b/auto_ml/predictor.py @@ -30,6 +30,7 @@ from sklearn.metrics import mean_squared_error, brier_score_loss, make_scorer, a from sklearn.preprocessing import FunctionTransformer, StandardScaler +from a...
adds logging of version number to help with debugging
py
diff --git a/pandas/tests/groupby/test_timegrouper.py b/pandas/tests/groupby/test_timegrouper.py index <HASH>..<HASH> 100644 --- a/pandas/tests/groupby/test_timegrouper.py +++ b/pandas/tests/groupby/test_timegrouper.py @@ -769,3 +769,17 @@ class TestGroupBy: expected = grouped.count() tm.assert_fram...
Add test for #<I> (error with groupby on series with period index) (#<I>)
py
diff --git a/lib/svtplay_dl/utils/__init__.py b/lib/svtplay_dl/utils/__init__.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/utils/__init__.py +++ b/lib/svtplay_dl/utils/__init__.py @@ -19,11 +19,14 @@ is_py2_old = (sys.version_info < (2, 7)) # Used for UA spoofing in get_http_data() FIREFOX_UA = 'Mozilla/5.0 (W...
utils: show an error message if requests is not found
py
diff --git a/nodeconductor/iaas/tests/test_stats.py b/nodeconductor/iaas/tests/test_stats.py index <HASH>..<HASH> 100644 --- a/nodeconductor/iaas/tests/test_stats.py +++ b/nodeconductor/iaas/tests/test_stats.py @@ -379,6 +379,7 @@ class QuotaStatsTest(test.APITransactionTestCase): class QuotaTimelineStatsTest(test.API...
Add url field (NC-<I>)
py
diff --git a/tests/test_csp.py b/tests/test_csp.py index <HASH>..<HASH> 100644 --- a/tests/test_csp.py +++ b/tests/test_csp.py @@ -5,7 +5,8 @@ from simpleai.csp import (_find_conflicts, _count_conflicts, _most_constrained_variable_chooser, _highest_degree_variable_c...
Final tests for csp algorithms
py
diff --git a/blockstack/lib/nameset/virtualchain_hooks.py b/blockstack/lib/nameset/virtualchain_hooks.py index <HASH>..<HASH> 100644 --- a/blockstack/lib/nameset/virtualchain_hooks.py +++ b/blockstack/lib/nameset/virtualchain_hooks.py @@ -201,6 +201,10 @@ def db_parse( block_id, txid, vtxindex, op, data, senders, input...
refuse to process a transaction if it has a sender scriptpubkey we don't know how to parse
py
diff --git a/grab/response.py b/grab/response.py index <HASH>..<HASH> 100644 --- a/grab/response.py +++ b/grab/response.py @@ -10,6 +10,7 @@ from StringIO import StringIO from urllib2 import Request from hashlib import sha1 import os +import json RE_XML_DECLARATION = re.compile(r'^[\r\n\t]*<\?xml[^>]+\?>', re.I) ...
Add json property to response class
py
diff --git a/pandas/tseries/period.py b/pandas/tseries/period.py index <HASH>..<HASH> 100644 --- a/pandas/tseries/period.py +++ b/pandas/tseries/period.py @@ -1105,7 +1105,9 @@ class PeriodIndex(Int64Index): def __unicode__(self): output = self.__class__.__name__ output += u'(' - output +=...
fix for <I> which does not accept unicode literal prefix
py
diff --git a/topydo/ui/TodoWidget.py b/topydo/ui/TodoWidget.py index <HASH>..<HASH> 100644 --- a/topydo/ui/TodoWidget.py +++ b/topydo/ui/TodoWidget.py @@ -18,9 +18,11 @@ import urwid class TodoWidget(urwid.WidgetWrap): def __init__(self, p_todo): - priority = p_todo.priority() + self.todo = p_todo...
Associate Todo instance with the widget.
py
diff --git a/django_utils/serializers/__init__.py b/django_utils/serializers/__init__.py index <HASH>..<HASH> 100644 --- a/django_utils/serializers/__init__.py +++ b/django_utils/serializers/__init__.py @@ -1,4 +1,4 @@ from django.core.serializers import * -BUILTIN_SERIALIZERS["versioned-json"] = "utils.django_utils...
Fixing bug in serializer reference.
py
diff --git a/astroid/tests/unittest_brain.py b/astroid/tests/unittest_brain.py index <HASH>..<HASH> 100644 --- a/astroid/tests/unittest_brain.py +++ b/astroid/tests/unittest_brain.py @@ -26,6 +26,13 @@ from astroid import test_utils import astroid +try: + import nose + HAS_NOSE = True +except ImportError: + ...
Skip the nose tests if nose is unavailable.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -39,7 +39,7 @@ install_requires = [ 'Flask~=0.0,>=0.12.2', 'IDUtils~=0.0,>=0.2.4', 'dojson~=1.0,>=1.3.1', - 'inspire-schemas~=50.0,>=50.0.1', + 'inspire-schemas~=51.0,>=51.0.0', 'inspire-utils~=0.0,>=...
setup: bump inspire-schemas to version ~<I> Sem-Ver: breaks compatibility
py
diff --git a/atrcopy/segments.py b/atrcopy/segments.py index <HASH>..<HASH> 100644 --- a/atrcopy/segments.py +++ b/atrcopy/segments.py @@ -1,3 +1,5 @@ +import bisect + import numpy as np from errors import * @@ -340,6 +342,27 @@ class DefaultSegment(object): ranges.append((int(group[0]), int(group[...
added get next/previous change in style mask
py
diff --git a/airflow/contrib/operators/ssh_execute_operator.py b/airflow/contrib/operators/ssh_execute_operator.py index <HASH>..<HASH> 100644 --- a/airflow/contrib/operators/ssh_execute_operator.py +++ b/airflow/contrib/operators/ssh_execute_operator.py @@ -142,7 +142,7 @@ class SSHExecuteOperator(BaseOperator): ...
[AIRFLOW-<I>] use utf8 encoding for stdout line decode Closes #<I> from ming-wu/master
py
diff --git a/hwt/interfaces/std.py b/hwt/interfaces/std.py index <HASH>..<HASH> 100644 --- a/hwt/interfaces/std.py +++ b/hwt/interfaces/std.py @@ -58,6 +58,9 @@ class Clk(Signal): """ DEFAULT_FREQ = int(100e6) + def _config(self): + self.FREQ = Param(self.DEFAULT_FREQ) + def _getIpCoreIntfCla...
Clk: add FREQ as param
py
diff --git a/doc/conf.py b/doc/conf.py index <HASH>..<HASH> 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -78,7 +78,7 @@ html_style = 'sphinxdoc.css' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file...
sphinx doc config file: fix path to static files.
py
diff --git a/BAC0/core/io/Read.py b/BAC0/core/io/Read.py index <HASH>..<HASH> 100644 --- a/BAC0/core/io/Read.py +++ b/BAC0/core/io/Read.py @@ -162,12 +162,12 @@ class ReadProperty: return value else: if reason == "unknownProperty": - if "priorityArray" i...
When using ReadProperty on a description which is not implemented, we need to handle the exception and return something...sot an empty string that equals None... Now BAC0 will show Not Implemented in the description if it doesn't exist in the controller
py
diff --git a/odl/solvers/util/steplen.py b/odl/solvers/util/steplen.py index <HASH>..<HASH> 100644 --- a/odl/solvers/util/steplen.py +++ b/odl/solvers/util/steplen.py @@ -196,6 +196,9 @@ class BacktrackingLineSearch(LineSearch): raise ValueError('function returned invalid value {} in starting ' ...
ENH: Slight optimization to backtracking line search
py
diff --git a/tests/util.py b/tests/util.py index <HASH>..<HASH> 100644 --- a/tests/util.py +++ b/tests/util.py @@ -97,6 +97,9 @@ class FakeFact(object): def __unicode__(self): return self.data + def __eq__(self, other_thing): + return self.data == other_thing + def get(self, key, default=...
Allow equality checks with `FakeFact` objects.
py
diff --git a/hamster/db.py b/hamster/db.py index <HASH>..<HASH> 100644 --- a/hamster/db.py +++ b/hamster/db.py @@ -447,8 +447,10 @@ class Storage(storage.Storage): WHERE (a.end_time >= ? OR a.end_time IS NULL) AND a.start_time <= ? """ - if category_id: + if categor...
allow category_id to be a list
py
diff --git a/salt/states/ssh_known_hosts.py b/salt/states/ssh_known_hosts.py index <HASH>..<HASH> 100644 --- a/salt/states/ssh_known_hosts.py +++ b/salt/states/ssh_known_hosts.py @@ -37,7 +37,8 @@ def present( enc=None, config=None, hash_hostname=True, - hash_known_hosts=True): + ...
state.ssh_known_hosts: add support for add timeout Implements #<I>.
py
diff --git a/setup_libuv.py b/setup_libuv.py index <HASH>..<HASH> 100644 --- a/setup_libuv.py +++ b/setup_libuv.py @@ -73,7 +73,7 @@ def prepare_windows_env(env): env['GYP_MSVS_VERSION'] = '2010' if not env.get('PYTHON', '').endswith('.exe'): - env.pop('PYTHON') + env.pop('PYTHON', None) ...
build: fix build when PYTHON env var is not set Applies to Windows only. Thanks @mds<I> for the report. Ref: <URL>
py
diff --git a/filterpy/kalman/sigma_points.py b/filterpy/kalman/sigma_points.py index <HASH>..<HASH> 100644 --- a/filterpy/kalman/sigma_points.py +++ b/filterpy/kalman/sigma_points.py @@ -122,7 +122,7 @@ class MerweScaledSigmaPoints(object): Parameters ---------- - X An array-like object of th...
Provide default value for Kappa GitHub #<I>; JuliaSigmaPoints documentation stated that kappa had a default value, but the code did not do this.
py
diff --git a/user.py b/user.py index <HASH>..<HASH> 100644 --- a/user.py +++ b/user.py @@ -23,16 +23,16 @@ class User: @classmethod def trainer(cls, show_all=False): - profiles = cls.r['profiles'] - list = [] - for i in profiles: + _profiles = cls.r['profiles'] + profiles = [] + for i in _profiles...
Fixed using reference to built in function as variable name
py
diff --git a/s3conf/s3conf.py b/s3conf/s3conf.py index <HASH>..<HASH> 100644 --- a/s3conf/s3conf.py +++ b/s3conf/s3conf.py @@ -52,7 +52,9 @@ def unpack_list(files_list): def setup_environment(): try: conf = S3Conf() - conf.environment_file(os.environ.get('S3CONF'), set_environment=True) + e...
setup environment writing envs to stdout
py
diff --git a/abilian/services/security/service.py b/abilian/services/security/service.py index <HASH>..<HASH> 100644 --- a/abilian/services/security/service.py +++ b/abilian/services/security/service.py @@ -773,6 +773,9 @@ class SecurityService(Service): if pa: session.delete(pa) + if obj: + #...
fix successive add/delete permissions
py
diff --git a/salt/minion.py b/salt/minion.py index <HASH>..<HASH> 100644 --- a/salt/minion.py +++ b/salt/minion.py @@ -548,10 +548,12 @@ class Minion(object): continue load['return'][key] = value else: - load = {'return': ret['return'], - 'cmd...
Update minion to return extra key data to master
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -3,12 +3,12 @@ from distutils.core import setup setup( name='webexpy', - version='2.0.1', + version='2.0.2', description='Python WebEx Api Wrapper', author='Michael Prior', author_email='prior@crac...
bumping version number in hopes of fixing dependency issue
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,6 @@ setup( ], install_requires=[ 'cent', - 'django-vitevue', ], zip_safe=False )
Remove dependency for frontend in setup.py
py
diff --git a/hamper/plugins/karma.py b/hamper/plugins/karma.py index <HASH>..<HASH> 100644 --- a/hamper/plugins/karma.py +++ b/hamper/plugins/karma.py @@ -1,4 +1,5 @@ import re +from collections import defaultdict from hamper.interfaces import ChatCommandPlugin, Command @@ -84,7 +85,7 @@ class Karma(ChatCommandPl...
karma: allow for multiple karma changes on one user per line
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ setup( packages=['jsonrpcclient'], package_data={'jsonrpcclient': ['response-schema.json']}, include_package_data=True, - install_requires=['jsonschema', 'future', 'requests', 'pyzmq'], + in...
Remove requests and pyzmq from package dependencies These will now have to be installed separately by the user depending on the transport protocol required.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ setup( packages=find_packages(), include_package_data=True, description="Website for BSC houses.", - long_description=read_md(), + long_description=read_md("README.md"), install_requires=required + ["el...
Fixed the call to read_md
py
diff --git a/zipline/pipeline/factors/factor.py b/zipline/pipeline/factors/factor.py index <HASH>..<HASH> 100644 --- a/zipline/pipeline/factors/factor.py +++ b/zipline/pipeline/factors/factor.py @@ -489,7 +489,7 @@ class CustomFactor(RequiredWindowLengthMixin, CustomTermMixin, Factor): Examples -------- - ...
DOC: The double-colon is intentional.
py
diff --git a/src/experi/run.py b/src/experi/run.py index <HASH>..<HASH> 100644 --- a/src/experi/run.py +++ b/src/experi/run.py @@ -104,6 +104,7 @@ def process_file(filename: PathLike='experiment.yml') -> None: filename = Path(filename) # Read input file + logger.debug('Reading file %s', filename) st...
Log with logging module The logging module adds plenty of functionality to the logging, so this is what I am now using for the logging and debugging.
py