diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/aegean.py b/aegean.py index <HASH>..<HASH> 100755 --- a/aegean.py +++ b/aegean.py @@ -2031,7 +2031,7 @@ if __name__ == "__main__": parser.add_option('--telescope', dest='telescope', type=str, default=None, help='The name of the telescope used to collect data. [MWA|VLA|ATCA|LOFAR...
fixed issue #<I> - spelling mistake
py
diff --git a/MAVProxy/modules/mavproxy_map/mp_elevation.py b/MAVProxy/modules/mavproxy_map/mp_elevation.py index <HASH>..<HASH> 100755 --- a/MAVProxy/modules/mavproxy_map/mp_elevation.py +++ b/MAVProxy/modules/mavproxy_map/mp_elevation.py @@ -23,7 +23,7 @@ TERRAIN_SERVICES = { class ElevationModel(): '''Elevation...
map: move offline to be first named argument backwards-compatability was broken when it moved
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,11 @@ setup( version='0.3.1', author='William Trevor Olson', author_email='wtolson@gmail.com', - packages=['pysis'], + packages=[ + 'pysis', + 'pysis.binning', + 'pysis.util' +...
Added sub packages to setup script so they install properly.
py
diff --git a/rig/type_casts.py b/rig/type_casts.py index <HASH>..<HASH> 100644 --- a/rig/type_casts.py +++ b/rig/type_casts.py @@ -385,8 +385,8 @@ class NumpyFixToFloatConverter(object): array([-1.]) >>> unsigned = np.array([0xf0], dtype=np.uint8) - >>> kbits(unsigned) - array([15.]) +...
Make doctest work under both new and old Numpies
py
diff --git a/src/requirementslib/__init__.py b/src/requirementslib/__init__.py index <HASH>..<HASH> 100644 --- a/src/requirementslib/__init__.py +++ b/src/requirementslib/__init__.py @@ -1,5 +1,5 @@ # -*- coding=utf-8 -*- -__version__ = '1.2.2' +__version__ = '1.2.3.dev0' import logging
Prebump to <I>.dev0
py
diff --git a/pywws/WeatherStation.py b/pywws/WeatherStation.py index <HASH>..<HASH> 100755 --- a/pywws/WeatherStation.py +++ b/pywws/WeatherStation.py @@ -452,9 +452,10 @@ class weather_station(object): for mempos in range(0x0000, hi, 0x0020): result += self._read_block(mempos) # check 'm...
Added another 'magic number'.
py
diff --git a/infoblox_client/objects.py b/infoblox_client/objects.py index <HASH>..<HASH> 100644 --- a/infoblox_client/objects.py +++ b/infoblox_client/objects.py @@ -884,6 +884,7 @@ class SRVRecord(InfobloxObject): 'name', 'port', 'priority', 'reclaimable', ...
add return fields to SRVRecord
py
diff --git a/ansi2html/style.py b/ansi2html/style.py index <HASH>..<HASH> 100644 --- a/ansi2html/style.py +++ b/ansi2html/style.py @@ -25,7 +25,8 @@ class Rule(object): def __init__(self, klass, **kw): self.klass = klass - self.kw = '; '.join([(k.replace('_', '-')+': '+v) for k, v in kw.items()])...
Remove reliance on dict ordering. Fixes #<I>.
py
diff --git a/ds4drv/backends/hidraw.py b/ds4drv/backends/hidraw.py index <HASH>..<HASH> 100644 --- a/ds4drv/backends/hidraw.py +++ b/ds4drv/backends/hidraw.py @@ -3,6 +3,7 @@ import itertools from evdev import InputDevice from pyudev import Context, Monitor +from time import sleep from ..backend import Backend ...
hidraw: Attempt to fix potential race with udev rules.
py
diff --git a/securesystemslib/gpg/functions.py b/securesystemslib/gpg/functions.py index <HASH>..<HASH> 100644 --- a/securesystemslib/gpg/functions.py +++ b/securesystemslib/gpg/functions.py @@ -171,7 +171,7 @@ def gpg_verify_signature(signature_object, pubkey_info, content): The content to be verified. (b...
Adopt new gpg errors in caller docstrings Recent changes modified gpg.functions.gpg_verify_signature and gpg.function.gpg_sign_object to raise new error types - in_toto.gpg.exceptions.CommandError - in_toto.gpg.exceptions.KeyExpirationError This commit adopts the docstrings of calling functions to mention that these ...
py
diff --git a/relationships/views.py b/relationships/views.py index <HASH>..<HASH> 100644 --- a/relationships/views.py +++ b/relationships/views.py @@ -80,5 +80,6 @@ def relationship_handler(request, user, status_slug, add=True, if request.GET.get('next'): return HttpResponseRedirect(request.GET['n...
Add context var showing whether the relationship is being added or removed
py
diff --git a/tests/lax_test.py b/tests/lax_test.py index <HASH>..<HASH> 100644 --- a/tests/lax_test.py +++ b/tests/lax_test.py @@ -2921,7 +2921,7 @@ class LaxVmapTest(jtu.JaxTestCase): rng = rng_factory(self.rng()) op = partial(lax.dot, precision=lax.Precision.HIGHEST) self._CheckBatching(op, 5, bdims, (...
Relax tolerance of LaxVmapTest.testDot for float<I> inputs. (#<I>)
py
diff --git a/kconfiglib.py b/kconfiglib.py index <HASH>..<HASH> 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -1554,6 +1554,10 @@ class Kconfig(object): self._parse_properties(node, visible_if_deps) + if node.is_menuconfig and not node.prompt: + self._warn("the...
Warn if menuconfig statement has no prompt Mirrors a warning in the C implementation.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ setup( "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", - "Programming Language :: Python :: ...
Updated classifiers to reflect Python <I> support ECOM-<I>
py
diff --git a/texttable.py b/texttable.py index <HASH>..<HASH> 100644 --- a/texttable.py +++ b/texttable.py @@ -444,12 +444,14 @@ class Texttable: def _fmt_auto(cls, x, **kw): """auto formatting class-method.""" f = cls._to_float(x) - if abs(f) > 1e8: - return cls._fmt_exp(x, *...
code made simpler by just making one call and one return point..
py
diff --git a/api/opentrons/server/main.py b/api/opentrons/server/main.py index <HASH>..<HASH> 100755 --- a/api/opentrons/server/main.py +++ b/api/opentrons/server/main.py @@ -6,7 +6,7 @@ import os import traceback import atexit from aiohttp import web -from opentrons import robot +from opentrons import robot, __vers...
feat(api): Log API server and Smoothie FW versions on API server boot (#<I>) Fixes #<I>
py
diff --git a/bench/poly.py b/bench/poly.py index <HASH>..<HASH> 100644 --- a/bench/poly.py +++ b/bench/poly.py @@ -22,7 +22,7 @@ import numpy as np import numexpr as ne -expr = ".25*x**3 + .75*x**2 - 1.5*x - 2" # the polynomial to compute +#expr = ".25*x**3 + .75*x**2 - 1.5*x - 2" # the polynomial to compute ex...
Comment explicitly the expression that is not used
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -5,9 +5,9 @@ setup( version='0.1.0', author='Giuseppe Pagliuca', author_email='giuseppe.pagliuca@gmail.com', - packages=['pyfas', 'pyfas.test'], - url='', + packages=['pyfas'], + url='https://github....
preparing for pypi
py
diff --git a/usb1.py b/usb1.py index <HASH>..<HASH> 100644 --- a/usb1.py +++ b/usb1.py @@ -184,7 +184,14 @@ EVENT_CALLBACK_SET = frozenset(( DEFAULT_ASYNC_TRANSFER_ERROR_CALLBACK = lambda x: False def create_binary_buffer(init_or_size): - # Prevent ctypes from adding a trailing null char. + """ + ctypes.cr...
Document create_binary_buffer better. For python-libusb1 maintenance.
py
diff --git a/hydpy/models/llake/llake_control.py b/hydpy/models/llake/llake_control.py index <HASH>..<HASH> 100644 --- a/hydpy/models/llake/llake_control.py +++ b/hydpy/models/llake/llake_control.py @@ -82,9 +82,9 @@ class Q(parametertools.SeasonalParameter): NDIM, TYPE, TIME, SPAN = 2, float, None, (0., None) ...
Let the `MaxDW` class inherit from `SeasonalParameter` instead of `SingleParameter`. Due to this change, abstractions from (or additions to) the calculated lake outflow can vary over time. A thought for later: Principally, this change could be applied on many model parameters, increasing their flexibilitly, but not r...
py
diff --git a/src/sp_test/tests.py b/src/sp_test/tests.py index <HASH>..<HASH> 100644 --- a/src/sp_test/tests.py +++ b/src/sp_test/tests.py @@ -620,14 +620,14 @@ OPERATIONS = { 'FL32': { "name": "Reject an IssueInstant far (24 hours) into the future", "sequence": [(Login, AuthnRequest, - ...
fixed issue #<I> in upstream master
py
diff --git a/source/rafcon/gui/shortcut_manager.py b/source/rafcon/gui/shortcut_manager.py index <HASH>..<HASH> 100644 --- a/source/rafcon/gui/shortcut_manager.py +++ b/source/rafcon/gui/shortcut_manager.py @@ -56,8 +56,8 @@ class ShortcutManager(object): self.accel_group.connect(keyval, modifier_mask,...
Update source/rafcon/gui/shortcut_manager.py style(shortcut_manager): increased code readability separated to lines, to improve code readability.
py
diff --git a/src/python/twitter/pants/tasks/scala_compile.py b/src/python/twitter/pants/tasks/scala_compile.py index <HASH>..<HASH> 100644 --- a/src/python/twitter/pants/tasks/scala_compile.py +++ b/src/python/twitter/pants/tasks/scala_compile.py @@ -23,7 +23,7 @@ import textwrap from collections import defaultdict ...
Use touch, per code review comments. (sapling split of 7b1ce<I>a5c3f4b<I>e<I>ea<I>fc3e<I>ae)
py
diff --git a/openquake/baselib/tests/datastore_test.py b/openquake/baselib/tests/datastore_test.py index <HASH>..<HASH> 100644 --- a/openquake/baselib/tests/datastore_test.py +++ b/openquake/baselib/tests/datastore_test.py @@ -99,7 +99,8 @@ class DataStoreTestCase(unittest.TestCase): print(self.dstore.get_file...
[skip CI]Added comment
py
diff --git a/tests/test_utils.py b/tests/test_utils.py index <HASH>..<HASH> 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -59,7 +59,6 @@ class TestDailyDownsampler: # assert the values of resampler and grouper are the same assert (np.allclose(x1.values, x2.values)) - @pyte...
remove pytest skip and it passes
py
diff --git a/airflow/providers/google/cloud/hooks/compute_ssh.py b/airflow/providers/google/cloud/hooks/compute_ssh.py index <HASH>..<HASH> 100644 --- a/airflow/providers/google/cloud/hooks/compute_ssh.py +++ b/airflow/providers/google/cloud/hooks/compute_ssh.py @@ -20,8 +20,6 @@ import time from io import StringIO f...
Change ComputeSSH to throw provider import error instead paramiko (#<I>) The paramiko import should be done after ssh provider to properly detect it as an optional Google Provider feature. Part of: #<I>
py
diff --git a/rollbar/__init__.py b/rollbar/__init__.py index <HASH>..<HASH> 100644 --- a/rollbar/__init__.py +++ b/rollbar/__init__.py @@ -61,7 +61,7 @@ else: del ImproperlyConfigured try: - from werkzeug.wrappers import Request as WerkzeugRequest + from werkzeug.wrappers import BaseRequest as WerkzeugReq...
werkzeug.wrappers.Request is a subclass of .BaseRequest and we only need the methods defined on BaseRequest so make werkzeug request handling more general (#<I>)
py
diff --git a/werkzeug/formparser.py b/werkzeug/formparser.py index <HASH>..<HASH> 100644 --- a/werkzeug/formparser.py +++ b/werkzeug/formparser.py @@ -413,7 +413,9 @@ class MultiPartParser(object): disposition, extra = parse_options_header(disposition) transfer_encoding = self.get_part_encodin...
Add support for non-ascii filenames when uploading files using multipart/form-data (#<I>)
py
diff --git a/knowledge_base/__init__.py b/knowledge_base/__init__.py index <HASH>..<HASH> 100755 --- a/knowledge_base/__init__.py +++ b/knowledge_base/__init__.py @@ -662,8 +662,10 @@ class KnowledgeBase(object): for event in author.efrbroo_P14i_performed: if event.efrbroo_R16_initiated.first.get_...
trying to fix kb.remove_work
py
diff --git a/py/testdir_multi_jvm/test_parse_10k_files.py b/py/testdir_multi_jvm/test_parse_10k_files.py index <HASH>..<HASH> 100644 --- a/py/testdir_multi_jvm/test_parse_10k_files.py +++ b/py/testdir_multi_jvm/test_parse_10k_files.py @@ -57,7 +57,10 @@ class Basic(unittest.TestCase): importFolderPath = os.pat...
reduce to <I> and <I> multi-file parse, to see if ec2 will pass
py
diff --git a/spyderlib/widgets/externalshell/namespacebrowser.py b/spyderlib/widgets/externalshell/namespacebrowser.py index <HASH>..<HASH> 100644 --- a/spyderlib/widgets/externalshell/namespacebrowser.py +++ b/spyderlib/widgets/externalshell/namespacebrowser.py @@ -249,14 +249,23 @@ class NamespaceBrowser(QWidget): ...
Variable Explorer: Don't refresh it after giving focus to it Fixes #<I>
py
diff --git a/txcelery/defer.py b/txcelery/defer.py index <HASH>..<HASH> 100644 --- a/txcelery/defer.py +++ b/txcelery/defer.py @@ -95,7 +95,7 @@ class CeleryClient(object): def __repr__(self): s = self._fn.__repr__().strip('<>') - return '<CeleryClient{s}>'.format(s=s) + return '<CeleryCli...
Fixed typo in __repr__
py
diff --git a/tests/test_bot_get.py b/tests/test_bot_get.py index <HASH>..<HASH> 100644 --- a/tests/test_bot_get.py +++ b/tests/test_bot_get.py @@ -47,6 +47,34 @@ class TestBotGet(TestBot): assert owner is False + + @responses.activate + def test_get_media_info(self): + media_id = 1234 + + ...
added test_get_media_info
py
diff --git a/utils/webcolors.py b/utils/webcolors.py index <HASH>..<HASH> 100755 --- a/utils/webcolors.py +++ b/utils/webcolors.py @@ -855,15 +855,14 @@ def color_diff(rgb1, rgb2): - for graphics arts use we recommend dE94 and perhaps dE-CMC 2:1 - for textiles use dE-CMC """ - from colormath.color_obj...
change deltaE implementation from colormath to skimage
py
diff --git a/yotta/lib/pack.py b/yotta/lib/pack.py index <HASH>..<HASH> 100644 --- a/yotta/lib/pack.py +++ b/yotta/lib/pack.py @@ -246,7 +246,7 @@ class Pack(object): ''' upload_archive = os.path.join(self.path, 'upload.tar.gz') fsutils.rmF(upload_archive) - fd = os.open(upload_archive...
Fix opening files in binary mode on Windows, again The .tar.gz file generated by 'yotta publish' was invalid because it was opened as text in Windows.
py
diff --git a/rebound/units.py b/rebound/units.py index <HASH>..<HASH> 100644 --- a/rebound/units.py +++ b/rebound/units.py @@ -26,6 +26,8 @@ lengths_SI = {'m':1., #What we measure accurately is GM, so set mass units such that G*M gives the value of GM in horizons.py (in the list at the end of horizons.py, the NAI...
Added centimeter to units.py so rebound supports CGS
py
diff --git a/solidity/python/CoveragePurchase.py b/solidity/python/CoveragePurchase.py index <HASH>..<HASH> 100644 --- a/solidity/python/CoveragePurchase.py +++ b/solidity/python/CoveragePurchase.py @@ -4,12 +4,12 @@ from decimal import getcontext from Formula import calculatePurchaseReturn -MINIMUM_VALUE_SUPPLY ...
Change min supply and reserve from 1 to <I>
py
diff --git a/pyhunter/pyhunter.py b/pyhunter/pyhunter.py index <HASH>..<HASH> 100644 --- a/pyhunter/pyhunter.py +++ b/pyhunter/pyhunter.py @@ -62,15 +62,14 @@ class PyHunter: :return: Full payload of the query as a dict, with email addresses found. """ - if not domain and not company: ...
Refactor, allows tooling to reason about the assignment of `params` Without this, you might get a warning like: > Local variable 'params' might be referenced before assignment
py
diff --git a/scripts/fastdupes.py b/scripts/fastdupes.py index <HASH>..<HASH> 100644 --- a/scripts/fastdupes.py +++ b/scripts/fastdupes.py @@ -586,7 +586,7 @@ if __name__ == '__main__': groups = groupBy(groups, hashClassifier, fun_desc='hashes') if opts.delete: - for pos, val in enumerate(groups)...
Fix `fastdupes.py --delete` now that 'groups' is a dict.
py
diff --git a/cellpy/_version.py b/cellpy/_version.py index <HASH>..<HASH> 100644 --- a/cellpy/_version.py +++ b/cellpy/_version.py @@ -1,2 +1,2 @@ -version_info = (0, 3, 0, "post2") +version_info = (0, 3, 1) __version__ = ".".join(map(str, version_info))
bump v to <I>
py
diff --git a/superset/jinja_context.py b/superset/jinja_context.py index <HASH>..<HASH> 100644 --- a/superset/jinja_context.py +++ b/superset/jinja_context.py @@ -297,7 +297,7 @@ class ExtraCache: for flt in form_data.get("adhoc_filters", []): val: Union[Any, List[Any]] = flt.get("comparator") -...
fix: ensure setting operator to `None` (#<I>) (#<I>)
py
diff --git a/custom_field/tests.py b/custom_field/tests.py index <HASH>..<HASH> 100755 --- a/custom_field/tests.py +++ b/custom_field/tests.py @@ -49,7 +49,7 @@ class CustomFieldTest(TestCase): def test_admin(self): from django.contrib import admin response = self.client.get('/admin/custom_field/...
Fixed unit test for python 2 and 3
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -67,6 +67,9 @@ setup( 'Programming Language :: Python', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Pro...
setup: mention python 3 support
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -23,6 +23,7 @@ import re from setuptools import setup # Links for documentation on how to build and use Python packages: +# http://python-packaging-user-guide.readthedocs.org/en/latest/ # http://gehrcke.de/2014/02/distrib...
add a helpful link to setup.py
py
diff --git a/phoebe/parameters/parameters.py b/phoebe/parameters/parameters.py index <HASH>..<HASH> 100644 --- a/phoebe/parameters/parameters.py +++ b/phoebe/parameters/parameters.py @@ -2234,9 +2234,16 @@ class ParameterSet(object): # since we'll be selecting from the time tag, we need a non-zero toleranc...
default to equal_aspect=False for mesh scatter plots even if x and y share the same unit. For example r or rprojs vs us: both are in solRad but defaulting to equal aspect isn't terribly convenient. However, for mesh or orbit plots, we'll let autofig default to equal aspect based on the units.
py
diff --git a/gluish/common.py b/gluish/common.py index <HASH>..<HASH> 100644 --- a/gluish/common.py +++ b/gluish/common.py @@ -31,36 +31,13 @@ import luigi import requests from gluish.parameter import ClosestDateParameter -from gluish.utils import shellout +from gluish.utils import shellout, which __all__ = ['Ex...
remove duplicate which, closed #<I>
py
diff --git a/phy/cluster/manual/views.py b/phy/cluster/manual/views.py index <HASH>..<HASH> 100644 --- a/phy/cluster/manual/views.py +++ b/phy/cluster/manual/views.py @@ -610,8 +610,8 @@ class TraceView(ManualClusteringView): 'go_right': 'alt+right', 'decrease': 'alt+down', 'increase': 'alt+u...
Change broken keyboard shortcuts in trace view
py
diff --git a/GPy/plotting/gpy_plot/plot_util.py b/GPy/plotting/gpy_plot/plot_util.py index <HASH>..<HASH> 100644 --- a/GPy/plotting/gpy_plot/plot_util.py +++ b/GPy/plotting/gpy_plot/plot_util.py @@ -356,7 +356,7 @@ def x_frame1D(X,plot_limits=None,resolution=None): else: raise ValueError("Bad limits for p...
fix the bug due to changes in Numpy (#<I>)
py
diff --git a/searx/engines/faroo.py b/searx/engines/faroo.py index <HASH>..<HASH> 100644 --- a/searx/engines/faroo.py +++ b/searx/engines/faroo.py @@ -1,4 +1,4 @@ -## Farro (Web, News) +## Faroo (Web, News) # # @website http://www.faroo.com # @provide-api yes (http://www.faroo.com/hp/api/api.html), require API-...
fix comment header of faroo engine
py
diff --git a/txaws/testing/base.py b/txaws/testing/base.py index <HASH>..<HASH> 100644 --- a/txaws/testing/base.py +++ b/txaws/testing/base.py @@ -50,14 +50,14 @@ class MemoryService(object): stateFactory = attr.ib() _state = attr.ib( - default=attr.Factory(WeakKeyDictionary), + default=attr.F...
Key the cache on credentials so state persists across multiple client objects.
py
diff --git a/utils/test/ex.py b/utils/test/ex.py index <HASH>..<HASH> 100644 --- a/utils/test/ex.py +++ b/utils/test/ex.py @@ -16,8 +16,20 @@ data = pd.read_csv(r'C:\Users\torkv\OneDrive - Norwegian University of Life ' r'\data\20160805_sic006_45_cc_01_ocvrlx_down.csv', sep=';') ...
stopped using pandas, cause I didn't get it. Instead ex now plots a list t and v (time and voltage).
py
diff --git a/salt/modules/cyg.py b/salt/modules/cyg.py index <HASH>..<HASH> 100644 --- a/salt/modules/cyg.py +++ b/salt/modules/cyg.py @@ -132,7 +132,7 @@ def _run_silent_cygwin(cyg_arch='x86_64', if mirrors is None: mirrors = {DEFAULT_MIRROR: DEFAULT_MIRROR_KEY} - for mirror, key in list(mirrors.ite...
List call not needed. Changing it back to what it was
py
diff --git a/usgs/api.py b/usgs/api.py index <HASH>..<HASH> 100644 --- a/usgs/api.py +++ b/usgs/api.py @@ -176,7 +176,7 @@ def item_basket(): raise NotImplementedError -def login(username, password): +def login(username, password, save=False): xml = soap.login(username, password) r = requests.post(US...
save api key to disk if requested
py
diff --git a/backtrader/lineiterator.py b/backtrader/lineiterator.py index <HASH>..<HASH> 100644 --- a/backtrader/lineiterator.py +++ b/backtrader/lineiterator.py @@ -170,7 +170,7 @@ class LineIterator(with_metaclass(MetaLineIterator, LineSeries)): def getindicators_lines(self): return [x for x in self....
Improvement of detection for objects that writers can support
py
diff --git a/Lib/ufo2fdk/makeotfParts.py b/Lib/ufo2fdk/makeotfParts.py index <HASH>..<HASH> 100644 --- a/Lib/ufo2fdk/makeotfParts.py +++ b/Lib/ufo2fdk/makeotfParts.py @@ -208,8 +208,12 @@ class MakeOTFPartsCompiler(object): in a different way if desired. """ # force absolute includes into the...
Font might not have a path.
py
diff --git a/bika/lims/exportimport/instruments/resultsimport.py b/bika/lims/exportimport/instruments/resultsimport.py index <HASH>..<HASH> 100644 --- a/bika/lims/exportimport/instruments/resultsimport.py +++ b/bika/lims/exportimport/instruments/resultsimport.py @@ -795,6 +795,11 @@ class AnalysisResultsImporter(Logger...
LIMS-<I>: Ensure submit transition is executed after results import
py
diff --git a/metpy/deprecation.py b/metpy/deprecation.py index <HASH>..<HASH> 100644 --- a/metpy/deprecation.py +++ b/metpy/deprecation.py @@ -119,7 +119,7 @@ class MetpyDeprecationWarning(UserWarning): pass -metpyDeprecation = MetpyDeprecationWarning +metpyDeprecation = MetpyDeprecationWarning # noqa: N816 ...
Mark noqa on case in metpy deprecations.
py
diff --git a/harpoon/option_spec/task_objs.py b/harpoon/option_spec/task_objs.py index <HASH>..<HASH> 100644 --- a/harpoon/option_spec/task_objs.py +++ b/harpoon/option_spec/task_objs.py @@ -45,11 +45,11 @@ class Task(dictobj): if not image: info = {} if available: - ...
Fix error output for task with no image
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,9 +2,9 @@ from setuptools import find_packages, setup setup( name='django-representatives-votes', - version='0.0.15', + version='0.0.16', description='Base app for government representative votes', - a...
Bumpt to <I>
py
diff --git a/ssbio/pipeline/gempro.py b/ssbio/pipeline/gempro.py index <HASH>..<HASH> 100644 --- a/ssbio/pipeline/gempro.py +++ b/ssbio/pipeline/gempro.py @@ -1066,7 +1066,10 @@ class GEMPRO(object): except StopIteration: log.debug('{}: Found representative PDB'.format(gene_id)) ...
Fix loop handling for finding good PDBs
py
diff --git a/andes/core/model.py b/andes/core/model.py index <HASH>..<HASH> 100644 --- a/andes/core/model.py +++ b/andes/core/model.py @@ -911,8 +911,8 @@ class Model(object): if callable(func): kwargs = self.get_inputs(refresh=True) # NOTE: use new assignment ...
Patched `s_update` for scalar initial value issue.
py
diff --git a/taskforce/task.py b/taskforce/task.py index <HASH>..<HASH> 100755 --- a/taskforce/task.py +++ b/taskforce/task.py @@ -1100,7 +1100,7 @@ Params are: if e.errno != errno.EINTR: raise e else: - log.info("%s Ignoring %s%s during poll", my(self), e.__class__.__name__, str(e)) + log....
soften info on EINTR to debug
py
diff --git a/palladium/fit.py b/palladium/fit.py index <HASH>..<HASH> 100644 --- a/palladium/fit.py +++ b/palladium/fit.py @@ -216,12 +216,12 @@ def grid_search(dataset_loader_train, model, grid_search, scoring=None, search_kwargs['cv'] = apply_kwargs(cv, n=len(y), X=X, y=y) if 'scoring' in sear...
grid_search script: move 'double scoring' warning to after exception It's a very small and cosmetic change, but the effect is that, if you specify 'scoring' both in 'grid_search' and on a global level, you will now see a ValueError without seeing a warning that tells you to move 'scoring' to the top level.
py
diff --git a/src/binwalk/__init__.py b/src/binwalk/__init__.py index <HASH>..<HASH> 100644 --- a/src/binwalk/__init__.py +++ b/src/binwalk/__init__.py @@ -1,13 +1,17 @@ -__all__ = ['execute', 'Modules', 'ModuleException'] +__all__ = ['scan', 'execute', 'Modules', 'ModuleException'] import sys import binwalk.core.co...
Added convenience binwalk.scan function
py
diff --git a/config.py b/config.py index <HASH>..<HASH> 100644 --- a/config.py +++ b/config.py @@ -70,6 +70,7 @@ PACKAGES_EXCLUDE = [ 'invenio.modules.communities', # remove with invenio/modules/communities 'invenio.modules.multimedia', 'invenio.modules.pages', + 'invenio.modules.tags', ] LEGACY_...
tags: module externalisation to new package * INCOMPATIBILITY Removes 'tags' module that has been externalised to separate Python package called 'invenio_tags'. Migration can be done by running `pip install invenio_tags` and adding 'invenio_tags' to PACKAGES.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ def get_packages(package): extras_require = { 'cryptography': ['cryptography'], 'pycrypto': ['pycrypto >=2.6.0, <2.7.0'], - 'pycryptodome': ['pycryptodome >=3.3.1, <3.4.0'], + 'pycryptodome': ['...
Bump pycrpytodome version
py
diff --git a/stix2patterns/test/test_helpers.py b/stix2patterns/test/test_helpers.py index <HASH>..<HASH> 100644 --- a/stix2patterns/test/test_helpers.py +++ b/stix2patterns/test/test_helpers.py @@ -20,5 +20,14 @@ def test_brackets_check(value): assert brackets_check(value) -def test_brackets_check_fail(): +@p...
Add some more failing cases to unit tests for the brackets checking. I had simply carried over what was there before, but it really seemed insufficient...
py
diff --git a/sendgrid/tests/__init__.py b/sendgrid/tests/__init__.py index <HASH>..<HASH> 100644 --- a/sendgrid/tests/__init__.py +++ b/sendgrid/tests/__init__.py @@ -0,0 +1,7 @@ +import django + +import unittest + +if django.VERSION[0] == 1 and django.VERSION[1] < 6: + def suite(): + return unittest.TestLoad...
add test loading for older django versions
py
diff --git a/lib/astutils.py b/lib/astutils.py index <HASH>..<HASH> 100644 --- a/lib/astutils.py +++ b/lib/astutils.py @@ -156,6 +156,8 @@ NUMPY_RENAMES = {'ln': 'log', 'asin': 'arcsin', 'acos': 'arccos', def _open(filename, mode='r', buffering=0): """read only version of open()""" umode = 'r' + if mode =...
support opening files with mode='r' or 'rb'
py
diff --git a/salt/modules/mac_brew_pkg.py b/salt/modules/mac_brew_pkg.py index <HASH>..<HASH> 100644 --- a/salt/modules/mac_brew_pkg.py +++ b/salt/modules/mac_brew_pkg.py @@ -180,7 +180,7 @@ def list_pkgs(versions_as_list=False, **kwargs): # Get cask namespace match = re.search( ...
`brew info cask <pkg>` is now disabled.
py
diff --git a/pyof/foundation/base.py b/pyof/foundation/base.py index <HASH>..<HASH> 100644 --- a/pyof/foundation/base.py +++ b/pyof/foundation/base.py @@ -80,7 +80,7 @@ class GenericType: return self._value >= other def __lt__(self, other): - return self._value <= other + return self._valu...
fix GenericType less_than operator
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 @@ -3518,8 +3518,7 @@ def append(name, text = _validate_str_list(text) with salt.utils.fopen(name, 'rb') as fp_: - slines = fp_.readlines() - slines = [item.rs...
switch to fpread().splitlines(), as per @lorengordon suggestion
py
diff --git a/LiSE/setup.py b/LiSE/setup.py index <HASH>..<HASH> 100644 --- a/LiSE/setup.py +++ b/LiSE/setup.py @@ -28,6 +28,6 @@ setup( 'LiSE': ['sqlite.json'] }, install_requires=[ - "gorm>=0.8.3", + "allegedb>=0.10.0", ], )
Require allegedb, rather than gorm
py
diff --git a/progress/progress.py b/progress/progress.py index <HASH>..<HASH> 100644 --- a/progress/progress.py +++ b/progress/progress.py @@ -1205,8 +1205,19 @@ def check_process_termination(proc, prefix, timeout, auto_kill_on_last_resort = else: log.warning("process (pid %s) is still running!",...
catch exception when reading answer for check_process_termination
py
diff --git a/ncclient/operations/rpc.py b/ncclient/operations/rpc.py index <HASH>..<HASH> 100644 --- a/ncclient/operations/rpc.py +++ b/ncclient/operations/rpc.py @@ -165,6 +165,7 @@ class RPCReply(object): @property def ok(self): "Boolean value indicating if there were no errors." + self.pars...
invoke self.parse() to ensure errors, if any, have been detetcted before check in ok() (#<I>)
py
diff --git a/airflow/jobs.py b/airflow/jobs.py index <HASH>..<HASH> 100644 --- a/airflow/jobs.py +++ b/airflow/jobs.py @@ -1810,7 +1810,8 @@ class SchedulerJob(BaseJob): # Also save this task instance to the DB. self.log.info("Creating / updating %s in ORM", ti) session.merge(ti) ...
[AIRFLOW-<I>] Speed up scheduling by committing in batch Newly scheduled task instances (state = None, up for retry) were committed per task instance instead of all at once. This isn't required as tasks cannot be picked up by another process in the mean time. Committing in batch significantly speeds up task scheduling...
py
diff --git a/src/pyiso/pyiso.py b/src/pyiso/pyiso.py index <HASH>..<HASH> 100644 --- a/src/pyiso/pyiso.py +++ b/src/pyiso/pyiso.py @@ -20,7 +20,6 @@ Main PyIso class and support classes and utilities. import struct import time -import bisect import collections import os
Remove bisect from pyiso.py We are no longer using it.
py
diff --git a/apio/__init__.py b/apio/__init__.py index <HASH>..<HASH> 100644 --- a/apio/__init__.py +++ b/apio/__init__.py @@ -9,7 +9,7 @@ # - Information for the Distribution package # -------------------------------------------- -VERSION = (0, 8, 1) +VERSION = (0, 8, 2) __version__ = ".".join([str(s) for s in VE...
Version bumped to <I>
py
diff --git a/peony/client.py b/peony/client.py index <HASH>..<HASH> 100644 --- a/peony/client.py +++ b/peony/client.py @@ -184,8 +184,6 @@ class BasePeonyClient(metaclass=MetaPeonyClient): logger.debug("Creating session") self._session = aiohttp.ClientSession() - self.setup.set_result...
don't call set_result in _setup
py
diff --git a/tornado/web.py b/tornado/web.py index <HASH>..<HASH> 100644 --- a/tornado/web.py +++ b/tornado/web.py @@ -114,6 +114,7 @@ class RequestHandler(object): _template_loaders = {} # {path: template.BaseLoader} _template_loader_lock = threading.Lock() + _remove_control_chars_regex = re.compile(r"...
Pre-compiling regex that removes control characters. Given that this regex might be used a lot in the lifetime of a given server (each request that uses get_argument for unicode strings) it seems sensible to store the compiled version of the regex.
py
diff --git a/src/humanize/time.py b/src/humanize/time.py index <HASH>..<HASH> 100644 --- a/src/humanize/time.py +++ b/src/humanize/time.py @@ -44,11 +44,12 @@ class _UnitMeta(EnumMeta): """Metaclass for an enum that emits deprecation warnings when accessed.""" def __getattribute__(self, name): - warn...
Temporarily comment out to avoid warning during 'import humanize'
py
diff --git a/expynent/patterns.py b/expynent/patterns.py index <HASH>..<HASH> 100644 --- a/expynent/patterns.py +++ b/expynent/patterns.py @@ -284,7 +284,7 @@ PHONE_NUMBER = { 'US': r'(?P<countrycode>1?)[\s\(-]{0,2}(?P<areadcode>\d{3})[\s\)-]{0,2}' r'(?P<phoneline0>\d{3})[\s-]?(?P<phoneline1>\d{4})', ...
fix syntex error by adding comma
py
diff --git a/datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/recommended_monitors.py b/datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/recommended_monitors.py index <HASH>..<HASH> 100644 --- a/datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/recommended_monitors.py +++ b/d...
Remove metric alert from recommended monitors (#<I>) * Convert monitors to query alert * Revert monitor changes * Revert monitor type update
py
diff --git a/tornado/httpserver.py b/tornado/httpserver.py index <HASH>..<HASH> 100644 --- a/tornado/httpserver.py +++ b/tornado/httpserver.py @@ -113,6 +113,7 @@ class HTTPServer(object): self.xheaders = xheaders self.ssl_options = ssl_options self._socket = None + self._started = Fal...
Add basic error checking so you can't add a server to the IOLoop twice
py
diff --git a/zendesk/zendesk.py b/zendesk/zendesk.py index <HASH>..<HASH> 100755 --- a/zendesk/zendesk.py +++ b/zendesk/zendesk.py @@ -51,6 +51,13 @@ class AuthenticationError(ZendeskError): return repr(self.msg) +re_identifier = re.compile(r".*/(?P<identifier>\d+)\.(json|xml)") +def get_id_from_url(url): ...
replaced my ugly regex with the one from the examples.
py
diff --git a/holoviews/core/data.py b/holoviews/core/data.py index <HASH>..<HASH> 100644 --- a/holoviews/core/data.py +++ b/holoviews/core/data.py @@ -73,9 +73,9 @@ class Columns(Element): """ self.__dict__ = state if isinstance(self.data, OrderedDict): - self.data = NdElement(self...
Columns now converts old pickle data to new formats
py
diff --git a/salt/modules/schedule.py b/salt/modules/schedule.py index <HASH>..<HASH> 100644 --- a/salt/modules/schedule.py +++ b/salt/modules/schedule.py @@ -43,6 +43,8 @@ SCHEDULE_CONF = [ 'hours', 'days', 'enabled', + 'return_job', + 'metadata', 'cron' ]
Do not delete return_job and metadata keys
py
diff --git a/examples/plotting/file/dynamic_map.py b/examples/plotting/file/dynamic_map.py index <HASH>..<HASH> 100644 --- a/examples/plotting/file/dynamic_map.py +++ b/examples/plotting/file/dynamic_map.py @@ -15,8 +15,17 @@ fig.background_fill = "black" fig.axis.visible = False # National Land Cover Dataset (http...
refactored service_url string
py
diff --git a/udata/settings.py b/udata/settings.py index <HASH>..<HASH> 100644 --- a/udata/settings.py +++ b/udata/settings.py @@ -67,6 +67,7 @@ class Defaults(object): 'br', 'blockquote', 'code', + 'dd', 'dl', 'dt', 'em',
Added <dd> as authorized markup in markdown by default
py
diff --git a/airflow/serialization/serialized_objects.py b/airflow/serialization/serialized_objects.py index <HASH>..<HASH> 100644 --- a/airflow/serialization/serialized_objects.py +++ b/airflow/serialization/serialized_objects.py @@ -73,15 +73,6 @@ _OPERATOR_EXTRA_LINKS: Set[str] = { "airflow.sensors.external_tas...
Remove unused constant in serialization code (#<I>) This was added back in by a PR that added links to Google DataProc operators, but this is not used anymore, instead the code looks at the provider registry for links.
py
diff --git a/cherrypy/lib/safemime.py b/cherrypy/lib/safemime.py index <HASH>..<HASH> 100644 --- a/cherrypy/lib/safemime.py +++ b/cherrypy/lib/safemime.py @@ -109,7 +109,7 @@ class MultipartWrapper(object): def safe_multipart(flash_only=False): """Wrap request.rfile in a reader that won't crash on no trailing CRL...
Fix for #<I> (Bug in safemime).
py
diff --git a/great_expectations/core/usage_statistics/schemas.py b/great_expectations/core/usage_statistics/schemas.py index <HASH>..<HASH> 100644 --- a/great_expectations/core/usage_statistics/schemas.py +++ b/great_expectations/core/usage_statistics/schemas.py @@ -521,7 +521,6 @@ usage_statistics_record_schema = { ...
remove cli.project.upgrade (only begin and end events are valid since this event is new) (#<I>)
py
diff --git a/django_js_reverse/core.py b/django_js_reverse/core.py index <HASH>..<HASH> 100755 --- a/django_js_reverse/core.py +++ b/django_js_reverse/core.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +import collections import json import re import sys @@ -105,10 +106,11 @@ def generate_json(default_urlresolver, scr...
Switch to using an OrderedDict for key ordering
py
diff --git a/potypo/check.py b/potypo/check.py index <HASH>..<HASH> 100644 --- a/potypo/check.py +++ b/potypo/check.py @@ -1,7 +1,7 @@ import os import polib -from enchant import DictWithPWL +from enchant import DictWithPWL, Dict, errors, Broker from enchant.checker import SpellChecker class Check:
fix imports in check.py
py
diff --git a/gin/resource_reader.py b/gin/resource_reader.py index <HASH>..<HASH> 100644 --- a/gin/resource_reader.py +++ b/gin/resource_reader.py @@ -15,7 +15,6 @@ """Module for reading gin configs in the python system path.""" from __future__ import absolute_import -from __future__ import google_type_annotations ...
Remove redundant import No tests statuses change, it was failing all the runs.
py
diff --git a/treeherder/webapp/api/jobs.py b/treeherder/webapp/api/jobs.py index <HASH>..<HASH> 100644 --- a/treeherder/webapp/api/jobs.py +++ b/treeherder/webapp/api/jobs.py @@ -75,6 +75,8 @@ class JobsViewSet(viewsets.ViewSet): option_collection_map = self._get_option_collection_map() job["p...
Bug <I> - Add `result_set_id` return value to job endpoint This mirrors the value of `push_id`, for backwards compatibility with tools which were depending on that value.
py
diff --git a/graypy/__init__.py b/graypy/__init__.py index <HASH>..<HASH> 100644 --- a/graypy/__init__.py +++ b/graypy/__init__.py @@ -1,4 +1,4 @@ -from handler import GELFHandler, WAN_CHUNK, LAN_CHUNK +from graypy.handler import GELFHandler, WAN_CHUNK, LAN_CHUNK try: from rabbitmq import GELFRabbitHandler, Exclu...
Prefix import with 'graypy.' needed for python3
py
diff --git a/fontaine/builder.py b/fontaine/builder.py index <HASH>..<HASH> 100644 --- a/fontaine/builder.py +++ b/fontaine/builder.py @@ -64,9 +64,11 @@ class Director(object): for cmap in cmaps: if self.charmaps: - if cmap.common_name not in self.charmaps: + cn = ...
usage getattr to see if attribute existing in charmap
py
diff --git a/visidata/loaders/csv.py b/visidata/loaders/csv.py index <HASH>..<HASH> 100644 --- a/visidata/loaders/csv.py +++ b/visidata/loaders/csv.py @@ -24,9 +24,6 @@ def removeNulls(fp): class CsvSheet(SequenceSheet): _rowtype = list # rowdef: list of values - def newRow(self): - return [None]*len...
[csv-] remove unecessary newRow - this newRow format does not work with Undo (as a result of how rowid plays with lists of Nones) - it was added in commit <I>b8bc<I>c<I>d4b<I>f1bf<I>c<I> to accomodate _coltype, which is a since removed feature - fixes undo for add-row on csv
py
diff --git a/django_jenkins/tasks/with_coverage.py b/django_jenkins/tasks/with_coverage.py index <HASH>..<HASH> 100644 --- a/django_jenkins/tasks/with_coverage.py +++ b/django_jenkins/tasks/with_coverage.py @@ -36,7 +36,7 @@ class Task(BaseTask): self.with_migrations = options.get('coverage_with_migrations', ...
Coverage report output setting to match name from django-coverage
py