diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/py/_io/terminalwriter.py b/py/_io/terminalwriter.py index <HASH>..<HASH> 100644 --- a/py/_io/terminalwriter.py +++ b/py/_io/terminalwriter.py @@ -134,7 +134,7 @@ def ansi_print(text, esc, file=None, newline=True, flush=False): def should_do_markup(file): return hasattr(file, 'isatty') and file.isatty...
fix check to work when there is no jython --HG-- branch : trunk
py
diff --git a/identifier/identify.py b/identifier/identify.py index <HASH>..<HASH> 100644 --- a/identifier/identify.py +++ b/identifier/identify.py @@ -13,8 +13,6 @@ l.setLevel("DEBUG") NUM_TESTS = 5 -# FIXME CFGFAST?? - class FuncInfo(object): def __init__(self): self.stack_vars = None @@ -35,11 +33...
Catch exceptions in special case function mapper
py
diff --git a/pandas/tests/categorical/test_dtypes.py b/pandas/tests/categorical/test_dtypes.py index <HASH>..<HASH> 100644 --- a/pandas/tests/categorical/test_dtypes.py +++ b/pandas/tests/categorical/test_dtypes.py @@ -6,7 +6,7 @@ import numpy as np import pandas.util.testing as tm from pandas.core.dtypes.dtypes im...
TST: Add tests for Categorical.is_dtype_equal against Series (#<I>)
py
diff --git a/simplefix/constants.py b/simplefix/constants.py index <HASH>..<HASH> 100644 --- a/simplefix/constants.py +++ b/simplefix/constants.py @@ -872,6 +872,9 @@ EXECTYPE_PENDING_REPLACE = b'E' # Tag 151 TAG_LEAVESQTY = b'151' +# Tag 152 +TAG_CASHORDERQTY = b'152' + # Tag 167 TAG_SECURITYTYPE = b'167' SECUR...
Add tag <I>, cash order quantity.
py
diff --git a/src/werkzeug/wsgi.py b/src/werkzeug/wsgi.py index <HASH>..<HASH> 100644 --- a/src/werkzeug/wsgi.py +++ b/src/werkzeug/wsgi.py @@ -964,7 +964,7 @@ class LimitedStream(io.IOBase): def readlines(self, size=None): """Reads a file into a list of strings. It calls :meth:`readline` until t...
Fix simple typo: underlaying -> underlying
py
diff --git a/tests/test_hep_bd2xx.py b/tests/test_hep_bd2xx.py index <HASH>..<HASH> 100644 --- a/tests/test_hep_bd2xx.py +++ b/tests/test_hep_bd2xx.py @@ -257,3 +257,27 @@ def test_imprints_from_260__a_b_c(): result = hep2marc.do(result) assert expected == result['260'] + + +def test_preprint_date_from_269_...
tests: add test for preprint_date in hep
py
diff --git a/aiohttp/__init__.py b/aiohttp/__init__.py index <HASH>..<HASH> 100644 --- a/aiohttp/__init__.py +++ b/aiohttp/__init__.py @@ -1,4 +1,4 @@ -__version__ = '2.3.0a2' +__version__ = '2.3.0a3' # This relies on each of the submodules having an __all__ variable.
Bump to <I>a3
py
diff --git a/jarn/mkrelease/confparser.py b/jarn/mkrelease/confparser.py index <HASH>..<HASH> 100644 --- a/jarn/mkrelease/confparser.py +++ b/jarn/mkrelease/confparser.py @@ -15,15 +15,15 @@ class MultipleValueError(Error): class errors2warnings(object): """Turn ConfigParser.Errors into warnings.""" - def __...
Fix badly choosen name: context -> parser.
py
diff --git a/capidup/tests/test_round_up.py b/capidup/tests/test_round_up.py index <HASH>..<HASH> 100644 --- a/capidup/tests/test_round_up.py +++ b/capidup/tests/test_round_up.py @@ -1,9 +1,5 @@ -import sys - -print sys.path - -import capidup +import capidup.capidup def test_stuff(): - assert capidup.MD5_CHUNK_SI...
Fix sample test, import capidup properly. We're a package now. capidup module is inside the capidup package. Should rethink this in the future (have capidup/__init__.py do a from capidup import *?).
py
diff --git a/test/test_sampling.py b/test/test_sampling.py index <HASH>..<HASH> 100644 --- a/test/test_sampling.py +++ b/test/test_sampling.py @@ -17,7 +17,7 @@ def spin_500ms(): spin(0.5) -@pytest.mark.flaky(reruns=5) +@pytest.mark.flaky(reruns=10) def test_profiler(): profiler = SamplingProfiler(top_fr...
Increase re-running limit of test_profiler
py
diff --git a/src/ansiblelint/__main__.py b/src/ansiblelint/__main__.py index <HASH>..<HASH> 100755 --- a/src/ansiblelint/__main__.py +++ b/src/ansiblelint/__main__.py @@ -256,10 +256,15 @@ def _previous_revision() -> Iterator[None]: ).stdout path = pathlib.Path(worktree_dir) path.mkdir(parents=True, exis...
Replacing os.system with subprocess functions (#<I>) Two `os.system` calls in '_previous_revision' were replaced with `subprocess.run` in order to harmonize the function with rest of the project and to keep up with recommendations.[0] [0] <URL>
py
diff --git a/setuptools/command/build_ext.py b/setuptools/command/build_ext.py index <HASH>..<HASH> 100644 --- a/setuptools/command/build_ext.py +++ b/setuptools/command/build_ext.py @@ -208,7 +208,7 @@ class build_ext(_build_ext): ) # pair each base with the extension pairs = itertools.produ...
Force list type for easy concatenation.
py
diff --git a/benchmarks/benchmarks.py b/benchmarks/benchmarks.py index <HASH>..<HASH> 100644 --- a/benchmarks/benchmarks.py +++ b/benchmarks/benchmarks.py @@ -1,5 +1,6 @@ #from fluids import * from fluids import isothermal_gas +import fluids.numba class TimeCompressibleSuite: @@ -29,10 +30,14 @@ class TimeContro...
Attempt to add numba to benchmarks
py
diff --git a/ibis/backends/pyspark/compiler.py b/ibis/backends/pyspark/compiler.py index <HASH>..<HASH> 100644 --- a/ibis/backends/pyspark/compiler.py +++ b/ibis/backends/pyspark/compiler.py @@ -379,6 +379,8 @@ def compile_literal(t, expr, scope, timecontext, raw=False, **kwargs): elif isinstance(value, tuple): ...
fix(pyspark): prevent spark from trying to convert timezone of naive timestamps
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -43,8 +43,14 @@ master_doc = "index" # General information about the project. project = "Adafruit PCA9685 Library" +creation_year = "2016" current_year = str(datetime.datetime.now().year) -copyright = curr...
Use year duration range for copyright attribution
py
diff --git a/src/feat/test/common.py b/src/feat/test/common.py index <HASH>..<HASH> 100644 --- a/src/feat/test/common.py +++ b/src/feat/test/common.py @@ -8,7 +8,8 @@ from twisted.trial import unittest from feat.agencies.emu import agency from feat.agents import message, recipient -from feat.common import log, dela...
Fix FIXME: change to support time scaling like in Agency in feat.test.common
py
diff --git a/alot/completion.py b/alot/completion.py index <HASH>..<HASH> 100644 --- a/alot/completion.py +++ b/alot/completion.py @@ -30,7 +30,7 @@ class QueryCompleter(Completer): def __init__(self, dbman): self.dbman = dbman - self.keywords = ['tag', 'subject', 'attachment', + self.keyw...
added to/from keywords to query completion
py
diff --git a/symfit/tests/tests.py b/symfit/tests/tests.py index <HASH>..<HASH> 100644 --- a/symfit/tests/tests.py +++ b/symfit/tests/tests.py @@ -144,6 +144,7 @@ class Tests(unittest.TestCase): self.assertAlmostEqual(fit_none_result.params.b, fit_result.params.b, 4) self.assertAlmostEqual(fit_none_re...
Skipping tests which are known failures.
py
diff --git a/dataviews/views.py b/dataviews/views.py index <HASH>..<HASH> 100644 --- a/dataviews/views.py +++ b/dataviews/views.py @@ -19,7 +19,7 @@ class View(param.Parameterized): GridLayout using the addition operator. """ - label = param.String(default=None, allow_None=True, doc=""" + label = para...
Label parameter of View objects has been declared constant
py
diff --git a/le_social/registration/tests/__init__.py b/le_social/registration/tests/__init__.py index <HASH>..<HASH> 100644 --- a/le_social/registration/tests/__init__.py +++ b/le_social/registration/tests/__init__.py @@ -46,6 +46,19 @@ class RegistrationTest(TestCase): self.assertEqual(len(mail.outbox), 1) ...
Added a failing test for #4
py
diff --git a/bitfield/types.py b/bitfield/types.py index <HASH>..<HASH> 100644 --- a/bitfield/types.py +++ b/bitfield/types.py @@ -21,9 +21,11 @@ class Bit(object): def __int__(self): return self.mask - def __nonzero__(self): + def __bool__(self): return self.is_set + __nonzero__ = _...
Provide __bool__, which is the Python3 version of __nonzero__
py
diff --git a/salt/state.py b/salt/state.py index <HASH>..<HASH> 100644 --- a/salt/state.py +++ b/salt/state.py @@ -143,7 +143,11 @@ class State(object): self.functions) if funcs: for func in funcs: - se...
cleaned up a some code from the previous commit
py
diff --git a/ipyleaflet/leaflet.py b/ipyleaflet/leaflet.py index <HASH>..<HASH> 100644 --- a/ipyleaflet/leaflet.py +++ b/ipyleaflet/leaflet.py @@ -919,7 +919,6 @@ class Map(DOMWidget, InteractMixin): def __init__(self, **kwargs): super(Map, self).__init__(**kwargs) - self.on_displayed(self._fire_...
Remove on_displayed event listener
py
diff --git a/yala/main.py b/yala/main.py index <HASH>..<HASH> 100644 --- a/yala/main.py +++ b/yala/main.py @@ -41,8 +41,9 @@ class LinterRunner: self._linter = linter_class() @classmethod - def run(cls, linter_class): + def run(cls, linter_cfg_tgts): """Run a linter and return the results...
Fix Windows runtime issue In Windows, class attributes are not shared with multiprocessing
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,15 +1,25 @@ -from distutils.core import setup +from setuptools import setup, find_packages setup( - name='PhotoHash', - version='0.3.1', author='Chris Pickett', author_email='chris.pickett@gmail.com', - ...
Add classifiers to setup.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -53,6 +53,7 @@ setuptools.setup( 'django-model-utils<2.4', # See: https://github.com/jp74/django-model-publisher/pull/26 'django-mptt<0.8', # 0.8 requires Django 1.8. See: https://github.com/django-mptt/dja...
Pin django-polymorphic to <<I> to avoid incompatible API changes
py
diff --git a/clients/python/girder_client/__init__.py b/clients/python/girder_client/__init__.py index <HASH>..<HASH> 100644 --- a/clients/python/girder_client/__init__.py +++ b/clients/python/girder_client/__init__.py @@ -1401,7 +1401,7 @@ class GirderClient(object): try: with open(os.path.join(d...
Do not catch redundant exception types in Python 3 As of Python <I>, IOError is an alias of OSError.
py
diff --git a/yamale/command_line.py b/yamale/command_line.py index <HASH>..<HASH> 100644 --- a/yamale/command_line.py +++ b/yamale/command_line.py @@ -14,6 +14,7 @@ import os from multiprocessing import Pool from .yamale_error import YamaleError from .schema.validationresults import Result +from .version import __ve...
Enbable 'yamale -v' for version. (#<I>) * Enbable 'yamale -v' for version. * Respond to comment by @mechie
py
diff --git a/raiden/waiting.py b/raiden/waiting.py index <HASH>..<HASH> 100644 --- a/raiden/waiting.py +++ b/raiden/waiting.py @@ -163,6 +163,7 @@ def wait_single_channel_deposit( total_deposit: TokenAmount, retry_timeout: float, ) -> None: + """ Wait until a deposit of `total_deposit` for app_deposit is ...
Add docstrings to the wait for deposit functions
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -123,8 +123,8 @@ def get_version_info(): vinfo = _version_helper.generate_git_version_info() except: vinfo = vdummy() - vinfo.version = '1.14.2' - vinfo.release = 'True' + vinfo.vers...
Update setup.py (#<I>)
py
diff --git a/sovrin_node/test/upgrade/test_pool_upgrade_through_catchup.py b/sovrin_node/test/upgrade/test_pool_upgrade_through_catchup.py index <HASH>..<HASH> 100644 --- a/sovrin_node/test/upgrade/test_pool_upgrade_through_catchup.py +++ b/sovrin_node/test/upgrade/test_pool_upgrade_through_catchup.py @@ -24,7 +24,7 @@...
commenting test, jira #SOV-<I>
py
diff --git a/Xlib/protocol/rq.py b/Xlib/protocol/rq.py index <HASH>..<HASH> 100644 --- a/Xlib/protocol/rq.py +++ b/Xlib/protocol/rq.py @@ -536,7 +536,7 @@ class List(ValueField): for v in val: data.append(self.type.pack_value(v)) - data = b''.join(data) + data = ''....
TestListFonts tests from test_requests_le.py were fixed for Py3
py
diff --git a/nion/instrumentation/test/ScanControl_test.py b/nion/instrumentation/test/ScanControl_test.py index <HASH>..<HASH> 100644 --- a/nion/instrumentation/test/ScanControl_test.py +++ b/nion/instrumentation/test/ScanControl_test.py @@ -1181,8 +1181,8 @@ class TestScanControlClass(unittest.TestCase): ...
Minor test change to avoid deprecation warning.
py
diff --git a/backtrader/order.py b/backtrader/order.py index <HASH>..<HASH> 100644 --- a/backtrader/order.py +++ b/backtrader/order.py @@ -203,7 +203,7 @@ class Order(six.with_metaclass(MetaParams, object)): if self.valid and self.data.datetime[0] > self.valid: self.status = Order.Expired - ...
Correct correction of date assignment to order execution when expired
py
diff --git a/claripy/backend.py b/claripy/backend.py index <HASH>..<HASH> 100644 --- a/claripy/backend.py +++ b/claripy/backend.py @@ -149,6 +149,10 @@ class Backend(object): try: return self._object_cache[expr._cache_key] except KeyError: pass + # if we've errroed on this in the ...
actually use AST's _errored property
py
diff --git a/tilequeue/wof.py b/tilequeue/wof.py index <HASH>..<HASH> 100644 --- a/tilequeue/wof.py +++ b/tilequeue/wof.py @@ -333,7 +333,7 @@ def create_neighbourhood_from_json(json_data, neighbourhood_meta): edtf_deprecated.latest_date()) # grab any names in other languages - lang_suffi...
Make removing _preferred suffix clearer
py
diff --git a/intranet/apps/dashboard/views.py b/intranet/apps/dashboard/views.py index <HASH>..<HASH> 100644 --- a/intranet/apps/dashboard/views.py +++ b/intranet/apps/dashboard/views.py @@ -304,6 +304,10 @@ def get_announcements_list(request, context): else: announcements = Announcement.objects.v...
perf(dashboard): fetch user information when listing announcements
py
diff --git a/python/ccxt/async_support/base/exchange.py b/python/ccxt/async_support/base/exchange.py index <HASH>..<HASH> 100644 --- a/python/ccxt/async_support/base/exchange.py +++ b/python/ccxt/async_support/base/exchange.py @@ -263,6 +263,9 @@ class Exchange(BaseExchange): await self.cancel_order(id, symbol...
async_support/base/exchange.py async create_order stub fix #<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ setup( version=__version__, packages=find_packages(), python_requires='>=3.6', - install_requires=['h5py', 'numpy', 'scipy', 'setuptools'], + install_requires=['h5py', 'numpy', 'scipy', 'setuptools', 'pand...
FIXED loompy started to use pandas without requiring it explicitly this was breaking velocyto
py
diff --git a/tools/mpremote/mpremote/pyboardextended.py b/tools/mpremote/mpremote/pyboardextended.py index <HASH>..<HASH> 100644 --- a/tools/mpremote/mpremote/pyboardextended.py +++ b/tools/mpremote/mpremote/pyboardextended.py @@ -26,6 +26,7 @@ fs_hook_cmds = { fs_hook_code = """\ import uos, uio, ustruct, micropytho...
tools/mpremote: Add seek whence for mounted files. Fixes issue #<I>.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -26,5 +26,6 @@ setup( license = 'GNU GPL v3', keywords = ['waze', 'route', 'calculator'], packages = ['WazeRouteCalculator'], + install_requires = ['requests'], long_description = read('readme.md') )
Add install_requires to setup.py So that requests will be installed automatically
py
diff --git a/www/src/Lib/turtle.py b/www/src/Lib/turtle.py index <HASH>..<HASH> 100644 --- a/www/src/Lib/turtle.py +++ b/www/src/Lib/turtle.py @@ -1170,7 +1170,7 @@ class Turtle(TPen, TNavigator): def _rotate(self, angle): """Turns pen clockwise by angle. """ - self._angle += angle ##FIXM...
fixed bug with _rotate for special world mode
py
diff --git a/fedmsg/consumers/gateway.py b/fedmsg/consumers/gateway.py index <HASH>..<HASH> 100644 --- a/fedmsg/consumers/gateway.py +++ b/fedmsg/consumers/gateway.py @@ -35,6 +35,13 @@ class GatewayConsumer(FedmsgConsumer): def __init__(self, hub): super(GatewayConsumer, self).__init__(hub) + + ...
Crucial bugfix to fedmsg-gateway. * Don't setup special zmq machinery if consumer disabled.
py
diff --git a/acceptable/_build_doubles.py b/acceptable/_build_doubles.py index <HASH>..<HASH> 100644 --- a/acceptable/_build_doubles.py +++ b/acceptable/_build_doubles.py @@ -66,8 +66,9 @@ def build_service_doubles(args): for service_name in service_config['services']: service = service_config['se...
Allow building service doubles from a branch.
py
diff --git a/zendesk/endpoints_v2.py b/zendesk/endpoints_v2.py index <HASH>..<HASH> 100644 --- a/zendesk/endpoints_v2.py +++ b/zendesk/endpoints_v2.py @@ -136,6 +136,11 @@ mapping_table = { 'path': '/users/{{user_id}}.json', 'method': 'GET', }, + 'show_many_users': { + 'path': '/users/s...
Add undocumented show_many_users resource.
py
diff --git a/openquake/risklib/asset.py b/openquake/risklib/asset.py index <HASH>..<HASH> 100644 --- a/openquake/risklib/asset.py +++ b/openquake/risklib/asset.py @@ -749,8 +749,13 @@ class Exposure(object): fnames = [os.path.join(dirname, f) for f in csvnames.split()] for fname in fnames: ...
Added a check against duplicated fields [skip CI]
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -37,6 +37,8 @@ install_requires=[ "cheroot", "beaker", "packaging", + "pylibmc", + "diskcache" ] # get version string from __init__.py
Add pylibmc and diskcache to the install_requires in setup.py
py
diff --git a/kmodes/kmodes.py b/kmodes/kmodes.py index <HASH>..<HASH> 100644 --- a/kmodes/kmodes.py +++ b/kmodes/kmodes.py @@ -24,16 +24,13 @@ def init_huang(X, n_clusters, dissim, random_state): centroids = np.empty((n_clusters, n_attrs), dtype='object') # determine frequencies of attributes for iattr i...
init_huang method changed Frequency of each category of each attribute is counted to just populate each category as frequency number of times. Instead, we can just sort the attribute and then choose as many values as we want.
py
diff --git a/tests/inspectdb/tests.py b/tests/inspectdb/tests.py index <HASH>..<HASH> 100644 --- a/tests/inspectdb/tests.py +++ b/tests/inspectdb/tests.py @@ -51,12 +51,12 @@ class ExportedModelTest(unittest.TestCase): """Test the typical nice class name 'Test'.""" self.assertTrue('AccountContactRole' in classes_...
Updated tests.inspectdb.tests to current 'django_Test__c'
py
diff --git a/animal/urls/breeding.py b/animal/urls/breeding.py index <HASH>..<HASH> 100644 --- a/animal/urls/breeding.py +++ b/animal/urls/breeding.py @@ -27,7 +27,7 @@ urlpatterns = patterns('', url(r'^all/$', 'mousedb.animal.views.breeding_all', name="breeding-list-all"), url(r'^(?P<breeding_id>\d*)/$', 'mousedb....
Fixed typo in named url for urls/breeding.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -56,6 +56,7 @@ setup( 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', ...
Add <I> support to package metadata
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -26,6 +26,7 @@ requirements = [ "html5lib", "cachecontrol==0.12.0", "lockfile==0.12.2", + "css-html-js-minify==2.2.2", ] test_requirements = [
Documenting dependency on css-html-js-minify
py
diff --git a/circuit/circuit.py b/circuit/circuit.py index <HASH>..<HASH> 100644 --- a/circuit/circuit.py +++ b/circuit/circuit.py @@ -678,10 +678,10 @@ class circuit(): if outputs is None or len(outputs) == 0: return 0 else: - return 1 + max([ # pylint: disable...
Resolve Pylint-R<I>: pass generator to `max(`
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -414,7 +414,7 @@ if build_c_extension != 'disabled': ['hotdoc/parsers/c_comment_scanner/scanner.l', 'hotdoc/parsers/c_comment_scanner/scanner.h'])] INSTALL_REQ...
remove unneeded pin on python-pkgconfig version The current pin is for a version from <I>, and it hasn't broken in 7 years of backwards-compatible releases. Out of a bunch of dependencies in this project, this should not be a high priority to pin!
py
diff --git a/quail/__init__.py b/quail/__init__.py index <HASH>..<HASH> 100644 --- a/quail/__init__.py +++ b/quail/__init__.py @@ -10,5 +10,5 @@ from .fingerprint import Fingerprint, OptimalPresenter from .distance import * -__version__ = get_distribution('quail') +__version__ = get_distribution('quail').version
assign to version attr of pkg_resources.Distribution object -- whoops!
py
diff --git a/host/scan_fei4_self_trigger_gdac.py b/host/scan_fei4_self_trigger_gdac.py index <HASH>..<HASH> 100644 --- a/host/scan_fei4_self_trigger_gdac.py +++ b/host/scan_fei4_self_trigger_gdac.py @@ -20,7 +20,7 @@ scan_configuration = { "threshold_range": range(30, 600, 1), # if set to None the GDAC values are...
MAINT: deactivate time out was an option, lastr comit reverted
py
diff --git a/tests/test_app/tests.py b/tests/test_app/tests.py index <HASH>..<HASH> 100644 --- a/tests/test_app/tests.py +++ b/tests/test_app/tests.py @@ -421,7 +421,7 @@ class DummyTestCase(unittest.TestCase): response = client.get('/thumbnail-dummy/111x666/') engine = get_module_class(settings.THUMB...
fixed tests since new dummy generation
py
diff --git a/multigtfs/models/shape.py b/multigtfs/models/shape.py index <HASH>..<HASH> 100644 --- a/multigtfs/models/shape.py +++ b/multigtfs/models/shape.py @@ -86,7 +86,7 @@ from django.db import models from multigtfs.models.base import Base -class Shape(models.Model): +class Shape(Base): """The path the v...
Switch Shape to Base class (fixes #9)
py
diff --git a/airflow/contrib/operators/dataproc_operator.py b/airflow/contrib/operators/dataproc_operator.py index <HASH>..<HASH> 100644 --- a/airflow/contrib/operators/dataproc_operator.py +++ b/airflow/contrib/operators/dataproc_operator.py @@ -1031,8 +1031,6 @@ class DataProcPySparkOperator(BaseOperator): class...
[AIRFLOW-<I>] assign template_fields for Dataproc Workflow Template sub-classes, not base class Closes #<I> from mchalek/mchalek-fix-inline- workflow-template-operator
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ #!/usr/bin/env python from setuptools import setup, find_packages -version = '0.4.0' +version = '0.4.1' author = 'David-Leon Pohl' author_email = 'pohl@physik.uni-bonn.de'
PRJ: increase version <I> -> <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,8 @@ setup( 'urllib3', 'pyopenssl', 'ndg-httpsclient', - 'pyasn1' + 'pyasn1', + 'pynacl' ], tests_require=['nose', 'mock', 'HTTPretty'],
add pynacl to dependencies
py
diff --git a/easy_thumbnails/processors.py b/easy_thumbnails/processors.py index <HASH>..<HASH> 100644 --- a/easy_thumbnails/processors.py +++ b/easy_thumbnails/processors.py @@ -43,7 +43,7 @@ def scale_and_crop(im, size, crop=False, upscale=False, **kwargs): if dx or dy: # Center cropping (defaul...
Fix the crop processor to avoid the output image not matching the requested crop size (due to integer division)
py
diff --git a/quantecon/lqcontrol.py b/quantecon/lqcontrol.py index <HASH>..<HASH> 100644 --- a/quantecon/lqcontrol.py +++ b/quantecon/lqcontrol.py @@ -298,7 +298,8 @@ class LQ: # == Preliminaries, infinite horizon case == # else: T = ts_length if ts_length else 100 - self.stati...
FIX: avoid solving stationary values for multiple times
py
diff --git a/securesystemslib/gpg/common.py b/securesystemslib/gpg/common.py index <HASH>..<HASH> 100644 --- a/securesystemslib/gpg/common.py +++ b/securesystemslib/gpg/common.py @@ -230,7 +230,7 @@ def parse_pubkey_bundle(data): # The remaining relevant packets are signatures, required to bind subkeys # ...
Fix typos in gpg subpackage comments
py
diff --git a/goatools/anno/annoreader_base.py b/goatools/anno/annoreader_base.py index <HASH>..<HASH> 100755 --- a/goatools/anno/annoreader_base.py +++ b/goatools/anno/annoreader_base.py @@ -49,6 +49,19 @@ class AnnoReaderBase(object): self.associations = self._init_associations(filename, **kws) # ass...
New functions to return population and IDs assc w/set of GO IDs
py
diff --git a/insights/core/specs.py b/insights/core/specs.py index <HASH>..<HASH> 100644 --- a/insights/core/specs.py +++ b/insights/core/specs.py @@ -22,9 +22,9 @@ class SpecMapper(object): logger.debug("SpecMapper.root: %s", self.root) self.data_spec_config = data_spec_config if data_spec_config els...
Fix SpecMapper initialization order of content_cache in __init__.
py
diff --git a/pmxbot/__init__.py b/pmxbot/__init__.py index <HASH>..<HASH> 100644 --- a/pmxbot/__init__.py +++ b/pmxbot/__init__.py @@ -4,7 +4,7 @@ from __future__ import absolute_import import socket -import logging +import logging as _logging from .dictlib import ConfigDict @@ -30,6 +30,6 @@ config = ConfigDi...
Fix issue with conflated pmxbot.logging
py
diff --git a/allauth/account/views.py b/allauth/account/views.py index <HASH>..<HASH> 100644 --- a/allauth/account/views.py +++ b/allauth/account/views.py @@ -255,9 +255,10 @@ def password_reset_from_key(request, uidb36, key, **kwargs): return render_to_response(template_name, RequestContext(request, ctx)) -de...
added **kwargs to allauth.account.views.logout to conform with django.contrib.auth.views.logout to allow more options upon account logout (next_page, template_name, redirect_field_name, current_app and extra_context)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -5,14 +5,32 @@ use_setuptools(version='0.6c9') import os from setuptools import setup, find_packages +def read(fname): + return open(os.path.join(os.path.dirname(__file__), fname)).read() + setup( name ...
classify setup.py for eventual cheeseshop submission
py
diff --git a/pysensu_yelp/__init__.py b/pysensu_yelp/__init__.py index <HASH>..<HASH> 100644 --- a/pysensu_yelp/__init__.py +++ b/pysensu_yelp/__init__.py @@ -109,9 +109,7 @@ def send_event(name, runbook, status, output, team, page=False, tip=None, notifi :param source: Allows "masquerading" the source value of th...
Try to fix long docstring for ttl
py
diff --git a/crust/api.py b/crust/api.py index <HASH>..<HASH> 100644 --- a/crust/api.py +++ b/crust/api.py @@ -1,9 +1,14 @@ import json -import urllib.parse +from . import six from . import requests from .exceptions import ResponseError +if six.PY3: + import urllib.parse as urllib_parse +else: + import url...
Fix a Python 2/3 inconsistency
py
diff --git a/openquakeserver/engine/v1/calc_urls.py b/openquakeserver/engine/v1/calc_urls.py index <HASH>..<HASH> 100644 --- a/openquakeserver/engine/v1/calc_urls.py +++ b/openquakeserver/engine/v1/calc_urls.py @@ -8,9 +8,11 @@ urlpatterns = patterns( url(r'^hazard/(\d+)$', 'calc_hazard_info'), url(r'^hazard/...
engine/v1/calc_urls: Added the url mappings for the `run calculation` views.
py
diff --git a/fabfile.py b/fabfile.py index <HASH>..<HASH> 100644 --- a/fabfile.py +++ b/fabfile.py @@ -2,6 +2,8 @@ # Fabric configuration - http://www.fabfile.org/ # +from __future__ import print_function + import errno import os @@ -69,7 +71,7 @@ def release(): """Release a new version""" release_che...
fabfile: Future-proof code by making it Python 3 compatible.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -7,7 +7,8 @@ setup( version = '1.300', install_requires=[ 'xmltodict', - 'beautifulsoup4' + 'beautifulsoup4', + 'requests' ], description = 'A Python wrapper for the RCSB Protein Data Bank ...
Fix for Requirements Missing 'Requests' Pkg
py
diff --git a/zenpy/lib/endpoint.py b/zenpy/lib/endpoint.py index <HASH>..<HASH> 100644 --- a/zenpy/lib/endpoint.py +++ b/zenpy/lib/endpoint.py @@ -89,7 +89,6 @@ class PrimaryEndpoint(BaseEndpoint): parameters[key] = ",".join(map(str, value)) elif key == 'update_many': path...
Fix broken batch update: Raised in #<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -5,6 +5,7 @@ from pyzabbix.version import __version__ setup(name='py-zabbix', version=__version__, description='Python module to work with zabbix.', + long_description_content_type="text/markdown", l...
update setup.py file to support modern pip
py
diff --git a/charmhelpers/contrib/openstack/utils.py b/charmhelpers/contrib/openstack/utils.py index <HASH>..<HASH> 100644 --- a/charmhelpers/contrib/openstack/utils.py +++ b/charmhelpers/contrib/openstack/utils.py @@ -182,7 +182,7 @@ SWIFT_CODENAMES = OrderedDict([ ('pike', ['2.13.0', '2.15.0']), ('...
Add <I> for queens swift versions (#<I>)
py
diff --git a/billy/site/browse/views.py b/billy/site/browse/views.py index <HASH>..<HASH> 100644 --- a/billy/site/browse/views.py +++ b/billy/site/browse/views.py @@ -15,7 +15,7 @@ import pymongo from django.http import Http404, HttpResponse from django.views.decorators.cache import never_cache -from django.shortcu...
fixing the issues introduced in <I>f<I>. Sorry for messing it up, @twneale
py
diff --git a/src/armet/query.py b/src/armet/query.py index <HASH>..<HASH> 100644 --- a/src/armet/query.py +++ b/src/armet/query.py @@ -66,7 +66,7 @@ class QueryList(list): """Sorts a queryset based on the query objects within """ # Gather all the sorting params - so = ((x.direction, x....
Query joining is no longer backwards
py
diff --git a/bingraphvis/annotator.py b/bingraphvis/annotator.py index <HASH>..<HASH> 100644 --- a/bingraphvis/annotator.py +++ b/bingraphvis/annotator.py @@ -1,14 +1,16 @@ from .base import * class ColorNodes(NodeAnnotator): - def __init__(self, nodes, fillcolor=None, color=None): + def __init__(self, nodes=...
Add filter support to ColorNodes annotator
py
diff --git a/detect_secrets/core/audit.py b/detect_secrets/core/audit.py index <HASH>..<HASH> 100644 --- a/detect_secrets/core/audit.py +++ b/detect_secrets/core/audit.py @@ -4,7 +4,6 @@ import json import os import subprocess import sys -import textwrap from builtins import input from collections import defaultdi...
include line number in SecretNotFoundOnSpecifiedLineError
py
diff --git a/salt/utils/thin.py b/salt/utils/thin.py index <HASH>..<HASH> 100644 --- a/salt/utils/thin.py +++ b/salt/utils/thin.py @@ -30,6 +30,12 @@ try: except ImportError: # Older jinja does not need markupsafe HAS_MARKUPSAFE = False + +try: + import xml + HAS_XML = True +except ImportError: + HA...
Add xml library to the thin
py
diff --git a/lokingyql/contrib/table/tests.py b/lokingyql/contrib/table/tests.py index <HASH>..<HASH> 100755 --- a/lokingyql/contrib/table/tests.py +++ b/lokingyql/contrib/table/tests.py @@ -160,6 +160,15 @@ class TestTable(unittest.TestCase): table.save(name='mytable', path='tests_data') self.assertE...
test_create_table_with_two_binders added and Ok
py
diff --git a/google/oauth2/credentials.py b/google/oauth2/credentials.py index <HASH>..<HASH> 100644 --- a/google/oauth2/credentials.py +++ b/google/oauth2/credentials.py @@ -300,8 +300,9 @@ class Credentials(credentials.ReadOnlyScoped, credentials.Credentials): generated JSON. ...
docs: update docstring of to_json() method (#<I>) from #<I>, this PR updated the docstring of ``to_json`` method in the credential so that it points user to ``from_authorized_user_info`` instead of the non-existent ``from_json``
py
diff --git a/alot/db/utils.py b/alot/db/utils.py index <HASH>..<HASH> 100644 --- a/alot/db/utils.py +++ b/alot/db/utils.py @@ -358,11 +358,16 @@ def extract_body(mail, types=None, field_key='copiousoutput'): enc = part.get_content_charset() or 'ascii' cte = str(part.get('content-transfer-encoding', '7...
db/utils: correctly handle 8bit encodings. Because python's mail will use raw-unicode-escape for anything that isn't ascii we need to encode back into the original raw bytes, then decode into the proper encoding.
py
diff --git a/crispy/gui/plot.py b/crispy/gui/plot.py index <HASH>..<HASH> 100644 --- a/crispy/gui/plot.py +++ b/crispy/gui/plot.py @@ -251,7 +251,7 @@ class MainPlotWidget(CustomPlotWidget): def addLegend(self): """Add the legend to the Matplotlib axis.""" - if self.isEmpty(): + if not sel...
Hide the legend for 2D plots
py
diff --git a/luminoso_api/client.py b/luminoso_api/client.py index <HASH>..<HASH> 100644 --- a/luminoso_api/client.py +++ b/luminoso_api/client.py @@ -332,7 +332,7 @@ class LuminosoClient(object): """ if base_path is None: base_path = 'jobs/id' - path = '%s%d' % (ensure_trailing_sl...
basepath -> base_path. Dammit pyflakes, yell louder next time.
py
diff --git a/telluric/features.py b/telluric/features.py index <HASH>..<HASH> 100644 --- a/telluric/features.py +++ b/telluric/features.py @@ -76,7 +76,6 @@ class GeoFeature(Mapping, NotebookPlottingMixin): """ self.geometry = geovector # type: GeoVector self._attributes = attributes - ...
Remove remaining raster-related capabilities from feature objects
py
diff --git a/preferences/models.py b/preferences/models.py index <HASH>..<HASH> 100644 --- a/preferences/models.py +++ b/preferences/models.py @@ -6,6 +6,7 @@ from preferences.managers import SingletonManager class Preferences(models.Model): + objects = models.Manager() singleton = SingletonManager() ...
default model manager added, Django <I> is deleting it
py
diff --git a/anycast_healthchecker/lib.py b/anycast_healthchecker/lib.py index <HASH>..<HASH> 100644 --- a/anycast_healthchecker/lib.py +++ b/anycast_healthchecker/lib.py @@ -116,12 +116,13 @@ def open_files_from_loggers(loggers): class LoggerExt(object): - """Builds a logging.Logger class with extended faction...
Rewrite docstring of LoggerExt class
py
diff --git a/gui/component.py b/gui/component.py index <HASH>..<HASH> 100644 --- a/gui/component.py +++ b/gui/component.py @@ -338,6 +338,9 @@ class Component(object): del self._children_list[self._children_list.index(self._children_dict[name])] del self._children_dict[name] + def __contains__...
Implement membership test in components (in operator)
py
diff --git a/test_thingy.py b/test_thingy.py index <HASH>..<HASH> 100644 --- a/test_thingy.py +++ b/test_thingy.py @@ -12,13 +12,7 @@ def test_classproperty(): def foo(cls): return cls._foo - @foo.setter - def set_foo(cls, value): - cls._foo = value - assert Test.fo...
Remove misleading test Here we're not testing classproperty setters (they don't work, actually), we're just testing that Python knows how to override a class method, lulz.
py
diff --git a/rshell/main.py b/rshell/main.py index <HASH>..<HASH> 100755 --- a/rshell/main.py +++ b/rshell/main.py @@ -591,7 +591,7 @@ def board_name(default): try: import board name = board.name - except ImportError: + except (ImportError, AttributeError): name = default retu...
Don't crash if board.py is missing the name attribute
py
diff --git a/tools/run_tests/artifact_targets.py b/tools/run_tests/artifact_targets.py index <HASH>..<HASH> 100644 --- a/tools/run_tests/artifact_targets.py +++ b/tools/run_tests/artifact_targets.py @@ -228,4 +228,5 @@ def targets(): [PythonArtifact('linux', 'x86'), PythonArtifact('linux', 'x64')...
Enable Ruby Mac artifact build
py
diff --git a/test/test_environment.py b/test/test_environment.py index <HASH>..<HASH> 100644 --- a/test/test_environment.py +++ b/test/test_environment.py @@ -112,11 +112,6 @@ def test_large_environment_matrix(tmpdir): @pytest.mark.skipif(not (HAS_PYTHON_27 or HAS_CONDA), reason="Requires Python...
TST: remove xfail, as the test usually passes It occurred on Appveyor, but this was resolved by setting always_copy=true in conda
py
diff --git a/salt/grains/core.py b/salt/grains/core.py index <HASH>..<HASH> 100644 --- a/salt/grains/core.py +++ b/salt/grains/core.py @@ -776,7 +776,9 @@ def _linux_bin_exists(binary): ''' Does a binary exist in linux (depends on which) ''' - return __salt__['cmd.run']('which {0} > /dev/null; echo $?...
Use cmd.retcode with _linux_bin_exists instead of cmd.run and echo $?
py
diff --git a/sysconfig.py b/sysconfig.py index <HASH>..<HASH> 100644 --- a/sysconfig.py +++ b/sysconfig.py @@ -137,8 +137,13 @@ def _init_nt(): os.path.join(sys.exec_prefix, "include", "config.h")), g) # set basic install directories g['LIBDEST']=os.path.join(sys.exec_prefix, "Lib") - g['BINLI...
Patch from Perry Stoll: tweaks to Windows support.
py
diff --git a/scripts/constants.py b/scripts/constants.py index <HASH>..<HASH> 100644 --- a/scripts/constants.py +++ b/scripts/constants.py @@ -15,15 +15,15 @@ import sys # Kubernetes branch to get the OpenAPI spec from. -KUBERNETES_BRANCH = "release-1.5" +KUBERNETES_BRANCH = "release-1.6" # Spec version will be ...
Promote OpenAPI spec version to kubernetes <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ # coding: utf-8 from distutils.core import setup setup(name='gherkin-official', - packages=['gherkin', 'gherkin.pickles'], + packages=['gherkin', 'gherkin.pickles', 'gherkin.stream'], version='...
gherkin-python: Fix for #<I>
py
diff --git a/terms/forms.py b/terms/forms.py index <HASH>..<HASH> 100644 --- a/terms/forms.py +++ b/terms/forms.py @@ -4,15 +4,12 @@ from django.forms import ModelForm, CharField, Textarea, ValidationError from .models import Term from django.utils.translation import ugettext as _ try: - from ckeditor.widgets imp...
Fixes "definition" in admin form.
py