diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/shipane_sdk/base_manager.py b/shipane_sdk/base_manager.py index <HASH>..<HASH> 100644 --- a/shipane_sdk/base_manager.py +++ b/shipane_sdk/base_manager.py @@ -144,7 +144,7 @@ class StrategyTrader(object): self._shipane_client = Client(self._logger, **config['client']) self._order_id_map = ...
Fix sync not performed issue when portfolio becomes empty
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ install_requires = [ setup( name='arcgis-rest-query', - version='0.0.8', + version='0.0.9', description='A tool to download a layer from an ArcGIS web service as GeoJSON', author='Ken Schwe...
Bumped up version so we can stop installing wsgiref
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ setup( "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Libraries" ], - install_requires=["click", "jinja2", "six"], + install_requir...
Add missing dependancy to setup.py
py
diff --git a/peri/opt/addsubtract.py b/peri/opt/addsubtract.py index <HASH>..<HASH> 100644 --- a/peri/opt/addsubtract.py +++ b/peri/opt/addsubtract.py @@ -663,7 +663,7 @@ def add_subtract_misfeatured_tile(st, tile, rad='calc', max_iter=3, if len(ainds) > 0: _ = st.obj_remove_particle(ainds) ...
add_subtract_misfeatured_tile: reshaping rpos, rrad for zipping.
py
diff --git a/visidata/cmdlog.py b/visidata/cmdlog.py index <HASH>..<HASH> 100644 --- a/visidata/cmdlog.py +++ b/visidata/cmdlog.py @@ -302,7 +302,7 @@ def replayOne(vd, r): if vs: vd.push(vs) else: - vs = vd.activeSheet + vs = vd.activeSheet or vd...
[replay] init vd.cmdlog as starter sheet; only load activeSheet, if exists
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -16,4 +16,17 @@ setup(name='django-mailviews', test_suite='mailviews.tests.__main__.__main__', zip_safe=False, license='Apache License 2.0', + classifiers=[ + 'Development Status :: 5 - Production/Stab...
Add classifiers This makes it clear what Python versions are supported.
py
diff --git a/PyCIM/Test/CIM15Test.py b/PyCIM/Test/CIM15Test.py index <HASH>..<HASH> 100644 --- a/PyCIM/Test/CIM15Test.py +++ b/PyCIM/Test/CIM15Test.py @@ -20,6 +20,8 @@ import unittest +import pytest + from CIM15.IEC61970.Core import \ ConnectivityNode, Terminal @@ -228,7 +230,7 @@ class ACLineSegmentTests...
Use pytest.raises instead of self.assertRaises. The hope is that pytest's "raises" context manager will work in python <I>, which doesn't ship with unittest's assertRaises as a context manager.
py
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index <HASH>..<HASH> 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -10,6 +10,7 @@ import contextlib import textwrap import tarfile import logging +import itertools import ...
Slice the iterable rather than converting to a list and slicing that.
py
diff --git a/test/__init__.py b/test/__init__.py index <HASH>..<HASH> 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -153,7 +153,7 @@ class ClientContext(object): # May not have this if OperationFailure was raised earlier. self.cmd_line = self.client.admin.command('getCmdLin...
Fix require_test_commands decorator for unittests.
py
diff --git a/astromodels/functions/function.py b/astromodels/functions/function.py index <HASH>..<HASH> 100644 --- a/astromodels/functions/function.py +++ b/astromodels/functions/function.py @@ -1350,6 +1350,7 @@ class Function3D(Function): return np.squeeze(result).to(self.w_unit) + @memoize ...
Added memoization to 3d functions
py
diff --git a/nanoget/nanoget.py b/nanoget/nanoget.py index <HASH>..<HASH> 100644 --- a/nanoget/nanoget.py +++ b/nanoget/nanoget.py @@ -279,8 +279,11 @@ def get_pID(read): try: return 100 * (1 - read.get_tag("NM") / read.query_alignment_length) except KeyError: - return 100 * (1 - (parse_MD(rea...
return None if no MD tag is found
py
diff --git a/shinken/satellitelink.py b/shinken/satellitelink.py index <HASH>..<HASH> 100644 --- a/shinken/satellitelink.py +++ b/shinken/satellitelink.py @@ -45,7 +45,7 @@ class SatelliteLink(Item): properties = Item.properties.copy() properties.update({ - 'address': StringProp(fill_brok=['f...
Simplification: we can use localhost as the default address.
py
diff --git a/splinter/driver/__init__.py b/splinter/driver/__init__.py index <HASH>..<HASH> 100644 --- a/splinter/driver/__init__.py +++ b/splinter/driver/__init__.py @@ -58,6 +58,9 @@ class DriverAPI(object): def find_option_by_value(self, value): raise NotImplementedError + def find_option_by_text(...
added method find by option text in driver interface class
py
diff --git a/doc/sphinxext/gen_rst.py b/doc/sphinxext/gen_rst.py index <HASH>..<HASH> 100644 --- a/doc/sphinxext/gen_rst.py +++ b/doc/sphinxext/gen_rst.py @@ -19,6 +19,7 @@ import cPickle import urllib2 import gzip import posixpath +import subprocess try: from PIL import Image @@ -716,7 +717,7 @@ def make_th...
MAINT use subprocess.call, not os.system The former is safer and faster.
py
diff --git a/bfg9000/builtins/packages.py b/bfg9000/builtins/packages.py index <HASH>..<HASH> 100644 --- a/bfg9000/builtins/packages.py +++ b/bfg9000/builtins/packages.py @@ -25,7 +25,7 @@ def _find_library(env, name, search_dirs): for d in search_dirs: for i in linkers: candidate = i.output_...
Use the import lib when looking up libraries on Windows
py
diff --git a/python/ray/ray_logging.py b/python/ray/ray_logging.py index <HASH>..<HASH> 100644 --- a/python/ray/ray_logging.py +++ b/python/ray/ray_logging.py @@ -165,15 +165,17 @@ def get_worker_log_file_name(worker_type): "please report it to Ray's Github issue.") worker_name = "worker" els...
[Object Spilling] Remove job id from the io worker log name. (#<I>)
py
diff --git a/openquake/hazardlib/tests/geo/mesh_test.py b/openquake/hazardlib/tests/geo/mesh_test.py index <HASH>..<HASH> 100644 --- a/openquake/hazardlib/tests/geo/mesh_test.py +++ b/openquake/hazardlib/tests/geo/mesh_test.py @@ -427,10 +427,10 @@ class MeshJoynerBooreDistanceTestCase(unittest.TestCase): mesh...
Fixed the version test on the JoynerBoore distance
py
diff --git a/bot/action/core/command/throttler/shortlyrepeatedcommand.py b/bot/action/core/command/throttler/shortlyrepeatedcommand.py index <HASH>..<HASH> 100644 --- a/bot/action/core/command/throttler/shortlyrepeatedcommand.py +++ b/bot/action/core/command/throttler/shortlyrepeatedcommand.py @@ -12,12 +12,16 @@ LOG_T...
Use CommandKeyFactory in ShortlyRepeatedCommandThrottler
py
diff --git a/topydo/ui/Main.py b/topydo/ui/Main.py index <HASH>..<HASH> 100644 --- a/topydo/ui/Main.py +++ b/topydo/ui/Main.py @@ -14,6 +14,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +import shlex import urwid fr...
Split a command's arguments with shlex. This fixes the issue that `ls -F "%p %s"` doesn't work, because the double quotes weren't interpreted properly. Reported by @mruwek.
py
diff --git a/thinc/loss.py b/thinc/loss.py index <HASH>..<HASH> 100644 --- a/thinc/loss.py +++ b/thinc/loss.py @@ -1,8 +1,15 @@ import numpy +try: + from cupy import get_array_module +except ImportError: + def get_array_module(*a, **k): + return numpy + def categorical_crossentropy(scores, labels): -...
Use one-hot representation in categorical cross-entropy
py
diff --git a/pybotvac/account.py b/pybotvac/account.py index <HASH>..<HASH> 100644 --- a/pybotvac/account.py +++ b/pybotvac/account.py @@ -127,11 +127,9 @@ class Account: secret=robot['secret_key'], traits=robot['traits'], ...
Fix robot offline (#<I>)
py
diff --git a/src/gnupg.py b/src/gnupg.py index <HASH>..<HASH> 100644 --- a/src/gnupg.py +++ b/src/gnupg.py @@ -90,11 +90,9 @@ import codecs ## See https://code.patternsinthevoid.net/?p=android-locale-hack.git import encodings import locale -import logging import os import re import sys -import tempfile import th...
Remove unused logging and tempfile imports from gnupg.py.
py
diff --git a/tests/tests.py b/tests/tests.py index <HASH>..<HASH> 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -31,6 +31,11 @@ def test(func): def output_of_run_is_stored(shell): result = shell.run(["echo", "hello"]) assert_equal("hello\n", result.output) + +@test +def output_is_not_truncated_when...
Add test for output that doesn't end in a newline
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -73,7 +73,7 @@ pytest_runner = ['pytest-runner'] if 'ptr' in sys.argv else [] setup_params = dict( name = 'keyring', - version = "2.1", + version = "2.2", description = "Store and access your passwords safel...
Bumped to <I> in preparation for next release.
py
diff --git a/thumbor/__init__.py b/thumbor/__init__.py index <HASH>..<HASH> 100644 --- a/thumbor/__init__.py +++ b/thumbor/__init__.py @@ -10,4 +10,4 @@ '''This is the main module in thumbor''' -__version__ = "5.0.0-rc1" +__version__ = "5.0.0rc1"
renaming to <I>rc1
py
diff --git a/elastic/parcalc.py b/elastic/parcalc.py index <HASH>..<HASH> 100644 --- a/elastic/parcalc.py +++ b/elastic/parcalc.py @@ -177,12 +177,12 @@ def ParCalculate(systems,calc,cleanup=True,prefix="Calc_"): print len(sys), "Workers started" # Collect the results - res={} + res=[] whi...
Atoms objects are not hashable. Re-implement ordering results using ==.
py
diff --git a/bin/import_swb.py b/bin/import_swb.py index <HASH>..<HASH> 100755 --- a/bin/import_swb.py +++ b/bin/import_swb.py @@ -43,7 +43,7 @@ def maybe_download(archive_url, target_dir, ldc_dataset): ldc_path = archive_url + ldc_dataset if not os.path.exists(target_dir): print('No path "%s" - crea...
Added `os` import in front of `makedirs`
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,12 +2,12 @@ from distutils.core import setup setup( name = 'apiary2postman', packages = ['apiary2postman'], # this must be the same as the name above - version = '0.4.9', + version = '0.5.0', description = 'A to...
setup.py for <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,23 +2,14 @@ # http://docs.python.org/distutils/setupscript.html # http://docs.python.org/2/distutils/examples.html -import sys from setuptools import setup, find_packages -import ast +import re import os -name = '...
a little simpler setup.py
py
diff --git a/lavalink/websocket.py b/lavalink/websocket.py index <HASH>..<HASH> 100644 --- a/lavalink/websocket.py +++ b/lavalink/websocket.py @@ -41,9 +41,9 @@ class WebSocket: } try: - self._ws = await self.session.ws_connect('ws://{}:{}'.format(self._host, self._port), - ...
My disappointment is immeasureable, and my day is ruined
py
diff --git a/armstrong/dev/tasks/__init__.py b/armstrong/dev/tasks/__init__.py index <HASH>..<HASH> 100644 --- a/armstrong/dev/tasks/__init__.py +++ b/armstrong/dev/tasks/__init__.py @@ -41,8 +41,9 @@ def pip_install(func): def inner(*args, **kwargs): if getattr(fabfile, "pip_install_first", True): ...
Add ENV for turning off re-install
py
diff --git a/zencoder/core.py b/zencoder/core.py index <HASH>..<HASH> 100644 --- a/zencoder/core.py +++ b/zencoder/core.py @@ -2,6 +2,9 @@ import os import httplib2 from urllib import urlencode +# Library version. Should probably be rewritten to match the version in setup.py +lib_version = 0.5; + # Note: I've seen...
Added User-Agent to headers
py
diff --git a/billy/bin/update.py b/billy/bin/update.py index <HASH>..<HASH> 100755 --- a/billy/bin/update.py +++ b/billy/bin/update.py @@ -192,7 +192,7 @@ def _do_reports(abbrev, args): db.reports.save(report, safe=True) -def main(old_scrape_compat=False): +def main(): try: parser = argparse.Argu...
drop old billy-scrape
py
diff --git a/MAVProxy/modules/mavproxy_console.py b/MAVProxy/modules/mavproxy_console.py index <HASH>..<HASH> 100644 --- a/MAVProxy/modules/mavproxy_console.py +++ b/MAVProxy/modules/mavproxy_console.py @@ -88,7 +88,8 @@ class ConsoleModule(mp_module.MPModule): self.menu = MPMenuTop([]) self.a...
console: added "Show HUD" to console menu
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -124,8 +124,8 @@ def get_version_info(): vinfo = _version_helper.generate_git_version_info() except: vinfo = vdummy() - vinfo.version = '1.16.dev12' - vinfo.release = 'False' + vinfo...
Prepare for release (#<I>)
py
diff --git a/mortgagekit/calculator.py b/mortgagekit/calculator.py index <HASH>..<HASH> 100644 --- a/mortgagekit/calculator.py +++ b/mortgagekit/calculator.py @@ -84,7 +84,7 @@ class MortgageCalculator(object): # Calculate our loan princinple. loanAmount = loanPurchaseAmount - downPayment - a...
BUGFIX: Fixed the Money / Money exception in calculator.py file.
py
diff --git a/pyforms/gui/Controls/ControlCombo.py b/pyforms/gui/Controls/ControlCombo.py index <HASH>..<HASH> 100755 --- a/pyforms/gui/Controls/ControlCombo.py +++ b/pyforms/gui/Controls/ControlCombo.py @@ -38,17 +38,18 @@ class ControlCombo(ControlBase): self._addingItem = False def _currentIndexChange...
currentIndexChanged can now be extended by other classes
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,9 +11,9 @@ Another Python package with deals with interval arithmetic, this one hopes to be classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='interval range d...
Put license in setup.py and email
py
diff --git a/holoviews/core/dimension.py b/holoviews/core/dimension.py index <HASH>..<HASH> 100644 --- a/holoviews/core/dimension.py +++ b/holoviews/core/dimension.py @@ -134,6 +134,7 @@ class Dimensioned(param.Parameterized): 'deep_dimensions'] def __init__(self, **params): + self.dat...
Declared data attribute on Dimensioned for use by all subclasses
py
diff --git a/source/rafcon/statemachine/states/container_state.py b/source/rafcon/statemachine/states/container_state.py index <HASH>..<HASH> 100644 --- a/source/rafcon/statemachine/states/container_state.py +++ b/source/rafcon/statemachine/states/container_state.py @@ -1769,6 +1769,10 @@ class ContainerState(State): ...
fix transition checks omit transitions from an outcome of a container state to the same outcome
py
diff --git a/holoviews/core/tree.py b/holoviews/core/tree.py index <HASH>..<HASH> 100644 --- a/holoviews/core/tree.py +++ b/holoviews/core/tree.py @@ -202,6 +202,10 @@ class AttrTree(object): raise AttributeError("%s: Custom paths elements must be capitalized." % identifier) + def _node_repr(self, n...
Refactored AttrTree repr to support custom node repr
py
diff --git a/sos/report/plugins/subscription_manager.py b/sos/report/plugins/subscription_manager.py index <HASH>..<HASH> 100644 --- a/sos/report/plugins/subscription_manager.py +++ b/sos/report/plugins/subscription_manager.py @@ -45,8 +45,8 @@ class SubscriptionManager(Plugin, RedHatPlugin): self.add_cmd_outp...
[subscription_manager] scrub passwords on one line only Fix regexp to scrub proxy_password on one line and don't obfuscate subsequent line when the password is empty. Closes: #<I> Resolves: #<I>
py
diff --git a/km.py b/km.py index <HASH>..<HASH> 100755 --- a/km.py +++ b/km.py @@ -78,9 +78,18 @@ class KM: @classmethod def request(cls,type,data,update=True): query = [] - data.update({'_k': cls._key, '_t': cls.now().strftime('%s') }) + + # if user has defined their own _t, then include necessary _d ...
adding ability for user to override timestamp in python library
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -6,10 +6,7 @@ import os from pip.req import parse_requirements from pip.download import PipSession -try: - from setuptools import setup -except ImportError: - from distutils.core import setup +from setuptools import ...
Use find_packages() to determine packages to install
py
diff --git a/sos/plugins/networking.py b/sos/plugins/networking.py index <HASH>..<HASH> 100644 --- a/sos/plugins/networking.py +++ b/sos/plugins/networking.py @@ -108,7 +108,8 @@ class Networking(Plugin): "ip neigh show", "nmcli general status", "nmcli connection show", - ...
[networking] add biosdevname output Suggested by Bryan Quigley. Fixes #<I>.
py
diff --git a/dedupe/api.py b/dedupe/api.py index <HASH>..<HASH> 100644 --- a/dedupe/api.py +++ b/dedupe/api.py @@ -1032,6 +1032,9 @@ class ActiveMatching(Matching): Class for training a matcher. """ + active_learner: labeler.DisagreementLearner | None + training_pairs: TrainingData + def __init__...
Move type hints to class from __init__ I don't think they do anything when they're in the __init__? At least VSCode's syntax highlighting doesn't work.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,18 +1,18 @@ -from distutils.core import setup +from setuptools import setup with open('requirements.txt') as f: required = f.read().splitlines() setup( - name='WebUI', - version='0.2.0', - author='Nick Johnstone'...
updated import in setup.py from distutils.core to setuptools
py
diff --git a/api/symboltable.py b/api/symboltable.py index <HASH>..<HASH> 100644 --- a/api/symboltable.py +++ b/api/symboltable.py @@ -428,6 +428,8 @@ class SymbolTable(object): entry.type_ = type_ entry.scope = SCOPE.global_ if self.current_scope == self.global_scope else SCOPE.local + e...
Adds class and callable settings for variable declaration.
py
diff --git a/topydo/lib/TodoListBase.py b/topydo/lib/TodoListBase.py index <HASH>..<HASH> 100644 --- a/topydo/lib/TodoListBase.py +++ b/topydo/lib/TodoListBase.py @@ -173,6 +173,12 @@ class TodoListBase(object): self._todos = [] self.dirty = True + def replace(self, p_todos): + """ Replace...
Add "replace" method for TodoList objects This will be used to recreate TodoList from a list of Todo objects.
py
diff --git a/pyani/pyani_orm.py b/pyani/pyani_orm.py index <HASH>..<HASH> 100644 --- a/pyani/pyani_orm.py +++ b/pyani/pyani_orm.py @@ -42,8 +42,6 @@ This SQLAlchemy-based ORM replaces the previous SQL-based module """ -import os - from collections import namedtuple import numpy as np @@ -500,7 +498,7 @@ def add...
convert pyani/pyani_orm.py from os.path to Pathlib
py
diff --git a/incuna_auth/middleware/login_required.py b/incuna_auth/middleware/login_required.py index <HASH>..<HASH> 100644 --- a/incuna_auth/middleware/login_required.py +++ b/incuna_auth/middleware/login_required.py @@ -9,6 +9,7 @@ from django.utils.translation import ugettext_lazy as _ EXEMPT_URLS = [re.compile('^...
Allow the login required message to be disabled.
py
diff --git a/rest_framework_json_api/utils.py b/rest_framework_json_api/utils.py index <HASH>..<HASH> 100644 --- a/rest_framework_json_api/utils.py +++ b/rest_framework_json_api/utils.py @@ -2,6 +2,7 @@ Utils. """ import copy + import inflection from django.conf import settings from django.utils import six, encod...
Copy included_resources before removing items from it Fixes #<I>
py
diff --git a/codekit/cli/github_tag_version.py b/codekit/cli/github_tag_version.py index <HASH>..<HASH> 100755 --- a/codekit/cli/github_tag_version.py +++ b/codekit/cli/github_tag_version.py @@ -389,19 +389,31 @@ def tag_gh_repos( continue except github.RateLimitExceededException: ...
pedantically handle GitTagExistsError exceptions As they should be handled differently than Caught*Errors.
py
diff --git a/win32_event_log/datadog_checks/win32_event_log/check.py b/win32_event_log/datadog_checks/win32_event_log/check.py index <HASH>..<HASH> 100644 --- a/win32_event_log/datadog_checks/win32_event_log/check.py +++ b/win32_event_log/datadog_checks/win32_event_log/check.py @@ -288,6 +288,12 @@ class Win32EventLogC...
Clarifiying comment in code (#<I>)
py
diff --git a/dvc/version.py b/dvc/version.py index <HASH>..<HASH> 100644 --- a/dvc/version.py +++ b/dvc/version.py @@ -7,7 +7,7 @@ import os import subprocess -_BASE_VERSION = "0.54.0" +_BASE_VERSION = "0.54.1" def _generate_version(base_version):
dvc: bump to <I>
py
diff --git a/plenum/cli/cli.py b/plenum/cli/cli.py index <HASH>..<HASH> 100644 --- a/plenum/cli/cli.py +++ b/plenum/cli/cli.py @@ -96,6 +96,7 @@ class Cli: name = 'plenum' properName = 'Plenum' fullName = 'Plenum protocol' + githubUrl = 'https://github.com/evernym/plenum' NodeClass = Node ...
updating the message that appears when the code is missing the genesis file
py
diff --git a/f90nml/namelist.py b/f90nml/namelist.py index <HASH>..<HASH> 100644 --- a/f90nml/namelist.py +++ b/f90nml/namelist.py @@ -566,7 +566,7 @@ class Namelist(OrderedDict): # Strip metadata label for repeat groups if grp_name.startswith('_grp_'): - grp_name = grp_name.lstrip('_grp_...
Bugfix: Replace 'lstrip' with slice Incorrectly used `lstrip` to remove a leading string, when I should have explicitly removed the substring with an indexed slice.
py
diff --git a/tests/unit/states/npm_test.py b/tests/unit/states/npm_test.py index <HASH>..<HASH> 100644 --- a/tests/unit/states/npm_test.py +++ b/tests/unit/states/npm_test.py @@ -181,6 +181,7 @@ class NpmTestCase(TestCase): comt = ('Package {0} is not in the cache'.format(non_cached_pkg)) pkg_...
Reset the name to valid package in npm cache_cleaned unit test
py
diff --git a/fermipy/utils.py b/fermipy/utils.py index <HASH>..<HASH> 100644 --- a/fermipy/utils.py +++ b/fermipy/utils.py @@ -443,13 +443,19 @@ def apply_minmax_selection(val, val_minmax): return (min_cut and max_cut) -def create_source_name(skydir): +def create_source_name(skydir, floor=True, prefix='PS'): ...
Fix source naming to adhere to IAU convention.
py
diff --git a/photons/lights.py b/photons/lights.py index <HASH>..<HASH> 100644 --- a/photons/lights.py +++ b/photons/lights.py @@ -333,12 +333,17 @@ class Apa102Driver: import mraa self.spiDev = mraa.Spi(0) self.spiDev.frequency(freqs) + self.brightness = 0xff + + def setGlobalBrightness(self, brightness): + ...
add global brightness method to apa<I> driver
py
diff --git a/photutils/segmentation/properties.py b/photutils/segmentation/properties.py index <HASH>..<HASH> 100644 --- a/photutils/segmentation/properties.py +++ b/photutils/segmentation/properties.py @@ -1606,6 +1606,9 @@ class SourceProperties: return None # use circular aperture with ...
Fix Kron aperture for completely masked sources
py
diff --git a/h2o-py/tests/testdir_algos/deepwater/pyunit_custom_lenet_mnist_deepwater.py b/h2o-py/tests/testdir_algos/deepwater/pyunit_custom_lenet_mnist_deepwater.py index <HASH>..<HASH> 100644 --- a/h2o-py/tests/testdir_algos/deepwater/pyunit_custom_lenet_mnist_deepwater.py +++ b/h2o-py/tests/testdir_algos/deepwater/...
Update image shape for custom lenet mnist example (not yet working).
py
diff --git a/deployutils/__init__.py b/deployutils/__init__.py index <HASH>..<HASH> 100644 --- a/deployutils/__init__.py +++ b/deployutils/__init__.py @@ -22,4 +22,4 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -__version__ = '0.6.3-dev' +_...
releases <I> to pypi
py
diff --git a/tools/licensescheck.py b/tools/licensescheck.py index <HASH>..<HASH> 100644 --- a/tools/licensescheck.py +++ b/tools/licensescheck.py @@ -14,6 +14,9 @@ prunelist = ('hsqldb19b3', 'projectfile', 'xml') +# pro directories to skip +prolist = ('org/voltdb/management') + def verif...
Skip pro directories when doing license check.
py
diff --git a/ibis/expr/analysis.py b/ibis/expr/analysis.py index <HASH>..<HASH> 100644 --- a/ibis/expr/analysis.py +++ b/ibis/expr/analysis.py @@ -179,7 +179,11 @@ def substitute(fn, expr): except IbisTypeError: return expr else: - return new_node.to_expr() + # unfortunately we can't us...
chore: use type(node) and explain why in a comment
py
diff --git a/myawis/__init__.py b/myawis/__init__.py index <HASH>..<HASH> 100644 --- a/myawis/__init__.py +++ b/myawis/__init__.py @@ -12,6 +12,11 @@ try: except ImportError: from urllib.parse import quote, urlencode +URLINFO_RESPONSE_GROUPS = ",".join( + ["RelatedLinks", "Categories", "Rank", "ContactInfo",...
Add constant with UrlInfo response groups
py
diff --git a/drf_auto_endpoint/adapters.py b/drf_auto_endpoint/adapters.py index <HASH>..<HASH> 100644 --- a/drf_auto_endpoint/adapters.py +++ b/drf_auto_endpoint/adapters.py @@ -94,9 +94,9 @@ class EmberAdapter(BaseAdapter): config['fields'] = adapted for i, fs in enumerate(config['fieldsets']): ...
:bug: fix fieldsets for EmberAdpater
py
diff --git a/imgur-python/main.py b/imgur-python/main.py index <HASH>..<HASH> 100644 --- a/imgur-python/main.py +++ b/imgur-python/main.py @@ -219,11 +219,10 @@ def handle_unauthorized_commands(factory, action): req = factory.build_request(('album', id)) if action == 'get-comment': - ...
Fixing get-comment and removing extra variable
py
diff --git a/phy/gui/dock.py b/phy/gui/dock.py index <HASH>..<HASH> 100644 --- a/phy/gui/dock.py +++ b/phy/gui/dock.py @@ -130,12 +130,15 @@ class DockWindow(QtGui.QMainWindow): action.setShortcut(key) self.addAction(action) self._actions[name] = action + if callback: + ...
WIP: add_action() now sets the callback as attribute.
py
diff --git a/tests/test__implicitization.py b/tests/test__implicitization.py index <HASH>..<HASH> 100644 --- a/tests/test__implicitization.py +++ b/tests/test__implicitization.py @@ -18,7 +18,7 @@ from tests import utils FLOAT64 = np.float64 # pylint: disable=no-member -LOCAL_EPS = 0.5**26 # sqrt(machine precisi...
Increasing error threshold for implicitization unit tests. Succeeds on one machine but not on another: <URL>
py
diff --git a/km3pipe/io/aanet.py b/km3pipe/io/aanet.py index <HASH>..<HASH> 100644 --- a/km3pipe/io/aanet.py +++ b/km3pipe/io/aanet.py @@ -342,7 +342,9 @@ def get_aanet_header(event_file): fields, values = [s.split() for s in line.split(':')] for field in fields: for value in values: - ...
Omit physics-date, since it segfaults
py
diff --git a/tests/providers/test_easydns.py b/tests/providers/test_easydns.py index <HASH>..<HASH> 100644 --- a/tests/providers/test_easydns.py +++ b/tests/providers/test_easydns.py @@ -10,7 +10,7 @@ import pytest class EasyDnsProviderTests(TestCase, IntegrationTests): Provider = Provider - provider_name = ...
fix easydns provider name.
py
diff --git a/pytest_cov.py b/pytest_cov.py index <HASH>..<HASH> 100644 --- a/pytest_cov.py +++ b/pytest_cov.py @@ -79,6 +79,13 @@ class CovPlugin(object): # slave is started in pytest hook def start(self, controller_cls, config=None, nodeid=None): + if config is None: + # fake config o...
Fixed handling of coveragerc in DistMaster.
py
diff --git a/mutagen/id3.py b/mutagen/id3.py index <HASH>..<HASH> 100644 --- a/mutagen/id3.py +++ b/mutagen/id3.py @@ -1289,7 +1289,7 @@ class PRIV(Frame): def _pprint(self): isascii = ord(max(self.data)) < 128 if isascii: return "%s=%s" % (self.owner, self.data) - else: return "%s (%d byt...
PRIV#_pprint: Handle non-ASCII case more sanely.
py
diff --git a/spacy/compat.py b/spacy/compat.py index <HASH>..<HASH> 100644 --- a/spacy/compat.py +++ b/spacy/compat.py @@ -53,9 +53,9 @@ is_osx = sys.platform == 'darwin' if is_python2: import imp bytes_ = str - unicode_ = unicode - basestring_ = basestring - input_ = raw_input + unicode_ = unico...
Add noqa to Python 2 compat variables of built-ins (see #<I>)
py
diff --git a/pymatbridge/version.py b/pymatbridge/version.py index <HASH>..<HASH> 100644 --- a/pymatbridge/version.py +++ b/pymatbridge/version.py @@ -2,10 +2,10 @@ # Format expected by setup.py and doc/source/conf.py: string of form "X.Y.Z" _version_major = 0 -_version_minor = 5 -_version_micro = '' # use '' for ...
Fumbled that release. Oops. Here's another one: <I>.
py
diff --git a/spacy/tests/test_download.py b/spacy/tests/test_download.py index <HASH>..<HASH> 100644 --- a/spacy/tests/test_download.py +++ b/spacy/tests/test_download.py @@ -5,6 +5,7 @@ from ..download import download, get_compatibility, get_version, check_error_dep import pytest +@pytest.mark.slow def test_down...
Mark compatibility table test as slow (temporary) Prevent Travis from running test test until models repo is published
py
diff --git a/python/ray/monitor.py b/python/ray/monitor.py index <HASH>..<HASH> 100644 --- a/python/ray/monitor.py +++ b/python/ray/monitor.py @@ -461,7 +461,7 @@ class Monitor(object): result = pipe.hget(local_scheduler_id, "gpus_in_use") ...
Pass string into json.loads, not bytes object. (#<I>)
py
diff --git a/ethereum/blocks.py b/ethereum/blocks.py index <HASH>..<HASH> 100644 --- a/ethereum/blocks.py +++ b/ethereum/blocks.py @@ -426,6 +426,10 @@ class Block(rlp.Serializable): raise ValueError("Block's gaslimit is inconsistent with its parent's gaslimit") if self.difficulty != calc_...
Added two more header consistency checks to match YP
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -50,7 +50,7 @@ setup(name = "isochrones", ], install_requires=['pandas>=0.14','astropy>=0.3','emcee>=2.0', 'numpy>=1.9', 'tables>=3.0', - 'asciitree', 'corner', 'astroque...
removed numba requirement because it breaks shit to do it this way
py
diff --git a/utils/inertia.py b/utils/inertia.py index <HASH>..<HASH> 100644 --- a/utils/inertia.py +++ b/utils/inertia.py @@ -294,16 +294,16 @@ def principals(geom, masses, on_tol=_DEF.Orthonorm_Tol): top = ETT.Linear ## end if else: - if abs(moments[0] - moments[1]) < PRM.Equal_Momen...
utils.inertia: Corrected top checking to relative Accidentally implemented top type checking as a tolerance on the absolute values. This commit fixes it, by changing it to a tolerance on the relative deviation of the two moments being compared.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -2,6 +2,7 @@ import glob import sys from setuptools import setup, Extension +from distutils.command.build_ext import build_ext sources = ['pycrfsuite/_pycrfsuite.cpp', 'pycrfsuite/trainer_wrapper.cpp'] @@ -25,10 +26,17...
customize build_ext to check complier
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ setup(name='inflect', "Programming Language :: Python", "Development Status :: 3 - Alpha", "Intended Audience :: Developers", - "License :: OSI Approved :: GNU General Public Li...
had wrong licence in setup.py. fixed: now affero
py
diff --git a/tunic/core.py b/tunic/core.py index <HASH>..<HASH> 100644 --- a/tunic/core.py +++ b/tunic/core.py @@ -30,8 +30,8 @@ try: except ImportError as e: if os.getenv('READTHEDOCS', None) != 'True': raise - run = lambda: None - sudo = lambda: None + run = None + sudo = None PERMS_FILE...
Don't bother trying to make fake functions when fabric is not importable on RTD
py
diff --git a/tools/interop_matrix/client_matrix.py b/tools/interop_matrix/client_matrix.py index <HASH>..<HASH> 100644 --- a/tools/interop_matrix/client_matrix.py +++ b/tools/interop_matrix/client_matrix.py @@ -159,6 +159,10 @@ LANG_RELEASE_MATRIX = { ('v1.27.1', ReleaseInfo(runtimes=['go1.11'])), ...
Add <I> release of grpc-go to interop matrix Also add the missing old releases
py
diff --git a/src/python/turicreate/data_structures/sgraph.py b/src/python/turicreate/data_structures/sgraph.py index <HASH>..<HASH> 100644 --- a/src/python/turicreate/data_structures/sgraph.py +++ b/src/python/turicreate/data_structures/sgraph.py @@ -284,7 +284,7 @@ class SGraph(object): See Also --...
Fix "See Also" links for SGraph (#<I>)
py
diff --git a/svgpathtools/document.py b/svgpathtools/document.py index <HASH>..<HASH> 100644 --- a/svgpathtools/document.py +++ b/svgpathtools/document.py @@ -41,6 +41,7 @@ import xml.etree.ElementTree as etree from xml.etree.ElementTree import Element, SubElement, register_namespace from xml.dom.minidom import parse...
Add factory method for creating from string holding svg object
py
diff --git a/chatterbot/__init__.py b/chatterbot/__init__.py index <HASH>..<HASH> 100644 --- a/chatterbot/__init__.py +++ b/chatterbot/__init__.py @@ -3,7 +3,7 @@ ChatterBot is a machine learning, conversational dialog engine. """ from .chatterbot import ChatBot -__version__ = '0.8.6' +__version__ = '0.8.7' __auth...
Update package version to <I>
py
diff --git a/param/version.py b/param/version.py index <HASH>..<HASH> 100644 --- a/param/version.py +++ b/param/version.py @@ -128,9 +128,11 @@ class Version(object): def __init__(self, release=None, fpath=None, commit=None, reponame=None, commit_count=0): """ - :release: Release tuple (correspo...
Updated docstring of param.Version constructor
py
diff --git a/salt/runners/manage.py b/salt/runners/manage.py index <HASH>..<HASH> 100644 --- a/salt/runners/manage.py +++ b/salt/runners/manage.py @@ -41,6 +41,11 @@ def _ping(tgt, tgt_type, timeout, gather_job_timeout): if not pub_data: return pub_data + log.debug( + 'manage runner will ping ...
Add debug logging for manage.up/down This adds some debug logging which we can hopefully use to troubleshoot <URL>
py
diff --git a/threadedcomments/models.py b/threadedcomments/models.py index <HASH>..<HASH> 100644 --- a/threadedcomments/models.py +++ b/threadedcomments/models.py @@ -1,5 +1,6 @@ from django.db import models from django.contrib.comments.models import Comment +from django.contrib.comments.managers import CommentManage...
Have ThreadedComment use CommentManager
py
diff --git a/openquake/job/params.py b/openquake/job/params.py index <HASH>..<HASH> 100644 --- a/openquake/job/params.py +++ b/openquake/job/params.py @@ -39,6 +39,7 @@ CALCULATION_MODE = { 'Deterministic': 'deterministic', 'Event Based': 'event_based', 'Disaggregation': 'disaggregation', + 'UHS': 'uh...
added uhs_periods to param definition Former-commit-id: 6cd<I>e7f9aa<I>ecef<I>ad1ff<I>b
py
diff --git a/anycast_healthchecker/utils.py b/anycast_healthchecker/utils.py index <HASH>..<HASH> 100644 --- a/anycast_healthchecker/utils.py +++ b/anycast_healthchecker/utils.py @@ -925,7 +925,7 @@ def setup_logger(config): custom_format = log_format() json_formatter = CustomJsonFormatter(custom_format, - ...
Make the JSON formatted logs more compatible with syslog
py
diff --git a/examples/guestbook.py b/examples/guestbook.py index <HASH>..<HASH> 100644 --- a/examples/guestbook.py +++ b/examples/guestbook.py @@ -42,17 +42,17 @@ LAYOUT = """ <title>Guestbook</title> <body> <form method=post action=/add> - Name: <input type=text name=name><br> - Message: <textarea name=...
Fix indentation in Flask example.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from distutils.core import setup -setup(name='pytds', +setup(name='python-tds', version='0.1', description='Python DBAPI driver for MSSQL using pure Python TDS (Tabular Data Stream) protocol i...
changed name of package to be able to upload to pypi
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -51,7 +51,7 @@ data_files=[ ('cherrypy/scaffold', ['cherrypy/scaffold/example.conf', 'cherrypy/scaffold/site.conf', ]), - ('cherrypy/scaffold/static', ['made_with...
Oops. Buglet in setup.py.
py
diff --git a/c7n/policy.py b/c7n/policy.py index <HASH>..<HASH> 100644 --- a/c7n/policy.py +++ b/c7n/policy.py @@ -425,6 +425,13 @@ class LambdaMode(PolicyExecutionMode): TODO: better customization around execution context outputs TODO: support centralized lambda exec across accounts. """ + +...
policy lambda - allow removing lambda logging handler (#<I>)
py
diff --git a/nailgun/entities.py b/nailgun/entities.py index <HASH>..<HASH> 100644 --- a/nailgun/entities.py +++ b/nailgun/entities.py @@ -4982,7 +4982,7 @@ class CompliancePolicies(Entity, EntityReadMixin): unique=True ), 'organization': entity_fields.OneToManyField(Organizat...
Changed ListField() to OneToManyField(Host)
py
diff --git a/src/python/grpcio/commands.py b/src/python/grpcio/commands.py index <HASH>..<HASH> 100644 --- a/src/python/grpcio/commands.py +++ b/src/python/grpcio/commands.py @@ -286,10 +286,11 @@ class TestLite(setuptools.Command): runner = tests.Runner() result = runner.run(loader.suite) if not result....
Address comments and add a TODO.
py
diff --git a/testproject/testapp/tests/common.py b/testproject/testapp/tests/common.py index <HASH>..<HASH> 100644 --- a/testproject/testapp/tests/common.py +++ b/testproject/testapp/tests/common.py @@ -6,6 +6,8 @@ try: except ImportError: import mock +__all__ = ['get_user_model', 'IntegrityError', 'mock'] + ...
Fix tests common F<I> with __all__
py