diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/vlcp/service/kvdb/objectdb.py b/vlcp/service/kvdb/objectdb.py index <HASH>..<HASH> 100644 --- a/vlcp/service/kvdb/objectdb.py +++ b/vlcp/service/kvdb/objectdb.py @@ -353,7 +353,7 @@ class ObjectDB(Module): # from this value new_retrieve_keys...
bug fix: should use walk_new instead of walk
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -33,7 +33,6 @@ install_requires = [ "boto3>=1.9.86", "botocore>=1.12.86", "cryptography>=2.3.0", - "datetime", "requests>=2.5", "xmltodict", "six>1.9",
setup.py: remove unnecessary 'datetime' entry This entry is added in [1]. New statements in [1] use the built-in datetime module, which is available since Python <I> [2]. On the other hand, when running `pip install moto`, pip installs Zope Datetime module [3], which is unnecessary. [1] <URL>
py
diff --git a/openupgradelib/__init__.py b/openupgradelib/__init__.py index <HASH>..<HASH> 100755 --- a/openupgradelib/__init__.py +++ b/openupgradelib/__init__.py @@ -2,7 +2,7 @@ __author__ = 'Odoo Community Association (OCA)' __email__ = 'support@odoo-community.org' -__version__ = '1.3.0' +__version__ = '1.3.2' _...
[REF] bumpversion <I> signing commit with '-s'
py
diff --git a/salt/states/supervisord.py b/salt/states/supervisord.py index <HASH>..<HASH> 100644 --- a/salt/states/supervisord.py +++ b/salt/states/supervisord.py @@ -332,6 +332,7 @@ def dead(name, bin_env=bin_env )} ret.update(_check_error(result, comment)) + ret['...
return changes if supervisord stopped process
py
diff --git a/socialregistration/contrib/openid/models.py b/socialregistration/contrib/openid/models.py index <HASH>..<HASH> 100644 --- a/socialregistration/contrib/openid/models.py +++ b/socialregistration/contrib/openid/models.py @@ -7,7 +7,7 @@ from django.contrib.auth import authenticate class OpenIDProfile(models....
Remove unique constaint as described in issue <I> of django-socialregistration.
py
diff --git a/rgcompare.py b/rgcompare.py index <HASH>..<HASH> 100644 --- a/rgcompare.py +++ b/rgcompare.py @@ -353,7 +353,7 @@ class RobotComparison(Tk.Tk): def run(self,ignore=False): - if not ignore and not tkMessageBox.askokcancel("Run?", "This currently blocks user interaction."): + if not ig...
Fixed derpy message when Run is clicked in window
py
diff --git a/python/src/cm_api/endpoints/clusters.py b/python/src/cm_api/endpoints/clusters.py index <HASH>..<HASH> 100644 --- a/python/src/cm_api/endpoints/clusters.py +++ b/python/src/cm_api/endpoints/clusters.py @@ -21,15 +21,21 @@ __docformat__ = "epytext" CLUSTERS_PATH = "/clusters" -def create_cluster(resour...
[cm-api] OPSAPS-<I>: Allow fullVersion in create_cluster Allow clusters to be created with a fully specified CDH version.
py
diff --git a/salt/client/mixins.py b/salt/client/mixins.py index <HASH>..<HASH> 100644 --- a/salt/client/mixins.py +++ b/salt/client/mixins.py @@ -285,7 +285,9 @@ class SyncClientMixin(object): # Inject some useful globals to *all* the funciton's global # namespace only once per module-- not p...
Backporting fix for issue #<I> on <I> branch
py
diff --git a/allauth/facebook/views.py b/allauth/facebook/views.py index <HASH>..<HASH> 100644 --- a/allauth/facebook/views.py +++ b/allauth/facebook/views.py @@ -26,19 +26,21 @@ def login(request): if form.is_valid(): token = form.cleaned_data['access_token'] g = GraphAPI(token) - ...
Cherry-picked CharityBlossom: Unalias data and facebook_me, pass username, first_name last_name when they exist in facebook_me
py
diff --git a/hip2slack_emoji/__init__.py b/hip2slack_emoji/__init__.py index <HASH>..<HASH> 100644 --- a/hip2slack_emoji/__init__.py +++ b/hip2slack_emoji/__init__.py @@ -1 +1 @@ -__version__ = '0.2.0' +__version__ = '0.2.1'
bumped version to <I>
py
diff --git a/sharq/queue.py b/sharq/queue.py index <HASH>..<HASH> 100644 --- a/sharq/queue.py +++ b/sharq/queue.py @@ -447,12 +447,12 @@ class SharQ(object): return response - def ping(self): + def deep_status(self): """ To check the availability of redis. If redis is down get will ...
rename function ping to deep_status
py
diff --git a/dataviews/ipython.py b/dataviews/ipython.py index <HASH>..<HASH> 100644 --- a/dataviews/ipython.py +++ b/dataviews/ipython.py @@ -4,7 +4,11 @@ except: animation = None from IPython.core.pylabtools import print_figure from IPython.core import page -from IPython.core.magic import Magics, magics_class, li...
Fixed unit tests ImportError for IPython version <<I>
py
diff --git a/soco/discovery.py b/soco/discovery.py index <HASH>..<HASH> 100644 --- a/soco/discovery.py +++ b/soco/discovery.py @@ -112,14 +112,16 @@ def discover(timeout=5, include_invisible=False, interface_addr=None): except socket.error: pass for address in addresses: - _soc...
Catch discovery socket exceptions, fixes #<I>. Depending on DNS configuration, gethostbyname() might return an address that's not actually associated with the current host. In that case, just log a warning and move on since the system default address will probably work fine. This fixes a regression introduced by dfda...
py
diff --git a/zipline/finance/slippage.py b/zipline/finance/slippage.py index <HASH>..<HASH> 100644 --- a/zipline/finance/slippage.py +++ b/zipline/finance/slippage.py @@ -506,26 +506,29 @@ class VolatilityVolumeShare(MarketImpactBase): class FixedBasisPointsSlippage(SlippageModel): """ - Model slippage as a ...
MAINT: store percentage in slippage model
py
diff --git a/examples/app.py b/examples/app.py index <HASH>..<HASH> 100644 --- a/examples/app.py +++ b/examples/app.py @@ -37,11 +37,11 @@ if __name__ == "__main__": def database_write(order_nr, status): order_nr = int(order_nr) - database = open(os.path.dirname(__file__) + "/orders/order-%s.txt" % order_nr,...
Get examples to work with the Windows filesystem (fixes issue #6)
py
diff --git a/maya/core.py b/maya/core.py index <HASH>..<HASH> 100644 --- a/maya/core.py +++ b/maya/core.py @@ -277,7 +277,7 @@ class MayaDT(object): def rfc3339(self): """Returns an RFC 3339 representation of the MayaDT.""" - return self.datetime().strftime("%Y-%m-%dT%H:%M:%S.%f")[:-4] + "Z" + ...
Fix RFC<I> representation Must be at most 1-digit millisecond.
py
diff --git a/demcoreg/apply_dem_translation.py b/demcoreg/apply_dem_translation.py index <HASH>..<HASH> 100755 --- a/demcoreg/apply_dem_translation.py +++ b/demcoreg/apply_dem_translation.py @@ -125,15 +125,13 @@ def main(): if out_fmt == "VRT": print("Writing vrt with scaled values") dst_fn = o...
apply_dem_translation: use drivers in pygeotools/iolib
py
diff --git a/tests/test_graphql.py b/tests/test_graphql.py index <HASH>..<HASH> 100644 --- a/tests/test_graphql.py +++ b/tests/test_graphql.py @@ -1,4 +1,5 @@ import graphene +import pytest from graphql.execution.executors.asyncio import AsyncioExecutor from starlette.applications import Starlette @@ -149,10 +150,...
Fix hanging graphql tests (#<I>) * Use pytest-asyncio event loop when creating AsyncioExecutor in tests * Reformatting line width
py
diff --git a/openquake/calculators/tests/__init__.py b/openquake/calculators/tests/__init__.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/tests/__init__.py +++ b/openquake/calculators/tests/__init__.py @@ -64,8 +64,8 @@ def columns(line): class CalculatorTestCase(unittest.TestCase): OVERWRITE_EXPEC...
Added two comments [skip CI]
py
diff --git a/marshmallow/fields.py b/marshmallow/fields.py index <HASH>..<HASH> 100755 --- a/marshmallow/fields.py +++ b/marshmallow/fields.py @@ -1205,6 +1205,10 @@ class QuerySelect(Field): keygetter = 'id' field = fields.QuerySelect(query, keygetter) + .. warning:: + (De)serializing ths...
Add warnings in docs for QuerySelect and QuerySelectList see #<I>
py
diff --git a/pycanlib/CAN.py b/pycanlib/CAN.py index <HASH>..<HASH> 100644 --- a/pycanlib/CAN.py +++ b/pycanlib/CAN.py @@ -377,11 +377,7 @@ class MessageList(XMLObject): Class representing a list of messages. This class is used to define the filter criteria applied to a given section of a CAN traffic log. ...
Removed incorrect comments about the parent class of MessageList
py
diff --git a/ros_buildfarm/common.py b/ros_buildfarm/common.py index <HASH>..<HASH> 100644 --- a/ros_buildfarm/common.py +++ b/ros_buildfarm/common.py @@ -477,7 +477,13 @@ def topological_order_packages(packages): decorator.package.build_depends + decorator.package.buildtool_depends + \ decora...
improve performance to collect recursive dependencies
py
diff --git a/example.py b/example.py index <HASH>..<HASH> 100755 --- a/example.py +++ b/example.py @@ -6,7 +6,9 @@ log = logging.getLogger() log.setLevel('DEBUG') log.addHandler(logging.StreamHandler()) +from cassandra import ConsistencyLevel from cassandra.cluster import Cluster +from cassandra.query import Query...
Include ConsistencyLevel usage in example.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -36,7 +36,7 @@ requires = ['numpy >=1.13', 'pillow', 'pyresample >=1.11.0', 'trollsift', 'dask[array] >=0.17.1', 'pyproj'] test_requires = ['behave', 'h5py', 'netCDF4', 'pyhdf', 'imageio', 'libtiff', - ...
Add trollimage to test requirements
py
diff --git a/sseclient.py b/sseclient.py index <HASH>..<HASH> 100644 --- a/sseclient.py +++ b/sseclient.py @@ -131,6 +131,7 @@ class Event(object): sse_line_pattern = re.compile('(?P<name>[^:]*):?( ?(?P<value>.*))?') def __init__(self, data='', event='message', id=None, retry=None): + assert isinstan...
Declare and enforce that data must be text. (#<I>)
py
diff --git a/pymatgen/command_line/mcsqs_caller.py b/pymatgen/command_line/mcsqs_caller.py index <HASH>..<HASH> 100644 --- a/pymatgen/command_line/mcsqs_caller.py +++ b/pymatgen/command_line/mcsqs_caller.py @@ -199,7 +199,7 @@ def _parse_sqs_path(path) -> Sqs: with warnings.catch_warnings(): warnings.si...
Parse structure from .out file
py
diff --git a/tests/test_singularity.py b/tests/test_singularity.py index <HASH>..<HASH> 100644 --- a/tests/test_singularity.py +++ b/tests/test_singularity.py @@ -78,11 +78,15 @@ def test_singularity_local(tmp_path): os.chdir(str(workdir)) result_code, stdout, stderr = get_main_output( ['--singularit...
using first call to generate debian image and second to use image in cwltool.
py
diff --git a/indra/tests/test_trips_ekbs.py b/indra/tests/test_trips_ekbs.py index <HASH>..<HASH> 100644 --- a/indra/tests/test_trips_ekbs.py +++ b/indra/tests/test_trips_ekbs.py @@ -731,8 +731,8 @@ def test_57(): assert sel.db_refs.get('PUBCHEM') == '10127622' agents = tp.get_agents() - assert agents[0]...
Don't rely on order in test
py
diff --git a/openquake/commands/nrml_to.py b/openquake/commands/nrml_to.py index <HASH>..<HASH> 100644 --- a/openquake/commands/nrml_to.py +++ b/openquake/commands/nrml_to.py @@ -162,4 +162,4 @@ nrml_to.arg('what', 'csv or gpkg', choices=['csv', 'gpkg'] if fiona else ['csv']) nrml_to.arg('fnames', 'source...
Fixed usage [skip CI]
py
diff --git a/src/OpenAccess_EPUB/ops/opsplos.py b/src/OpenAccess_EPUB/ops/opsplos.py index <HASH>..<HASH> 100644 --- a/src/OpenAccess_EPUB/ops/opsplos.py +++ b/src/OpenAccess_EPUB/ops/opsplos.py @@ -1156,6 +1156,10 @@ class OPSPLoS(OPSMeta): #TODO: prefix-words, one possible solution would be to have this meth...
Provided the ability to elevate list elements when improperly placed below paragraphs, might be a theme...
py
diff --git a/daemonocle/daemon.py b/daemonocle/daemon.py index <HASH>..<HASH> 100644 --- a/daemonocle/daemon.py +++ b/daemonocle/daemon.py @@ -107,9 +107,13 @@ class Daemon(object): # Read the PID file with open(self.pidfile, 'r') as fp: - pid = int(fp.read()) + try : + ...
Fixed empty pidfile issue with python 3. Also removes empty or broken pidfiles upon starting.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ def long_desc(): setup( name='shellish', - version='3', + version='3.1', description='A framework for CLI/shell programs.', author='Justin Mayfield', author_email='tooker@gmail.com',
Rev to <I> (dev)
py
diff --git a/pendulum/exceptions.py b/pendulum/exceptions.py index <HASH>..<HASH> 100644 --- a/pendulum/exceptions.py +++ b/pendulum/exceptions.py @@ -1,6 +1,6 @@ from .parsing.exceptions import ParserError -class PendulumException(BaseException): +class PendulumException(Exception): pass
Make "PendulumException" a subclass of "Exception" (#<I>) (#<I>)
py
diff --git a/tests/test_dynamodb2/test_dynamodb.py b/tests/test_dynamodb2/test_dynamodb.py index <HASH>..<HASH> 100644 --- a/tests/test_dynamodb2/test_dynamodb.py +++ b/tests/test_dynamodb2/test_dynamodb.py @@ -6,7 +6,6 @@ import boto3 from boto3.dynamodb.conditions import Attr import sure # noqa import requests -f...
These tests do not use pytest
py
diff --git a/tests/test_performance.py b/tests/test_performance.py index <HASH>..<HASH> 100644 --- a/tests/test_performance.py +++ b/tests/test_performance.py @@ -1,6 +1,7 @@ import time from mrq.queue import Queue import pytest +import subprocess @pytest.mark.parametrize(["p_max_latency", "p_min_observed_laten...
Properly stop worker in performance test
py
diff --git a/ffn/core.py b/ffn/core.py index <HASH>..<HASH> 100644 --- a/ffn/core.py +++ b/ffn/core.py @@ -1973,8 +1973,8 @@ def _winsorize_wrapper(x, limits): """ Wraps scipy winsorize function to drop na's """ - if hasattr(x, 'dropna'): - if len(x.dropna()) == 0: + if isinstance(x, pd.Seri...
REF: series.count is faster than len(series.dropna())
py
diff --git a/tests/mfd_test.py b/tests/mfd_test.py index <HASH>..<HASH> 100644 --- a/tests/mfd_test.py +++ b/tests/mfd_test.py @@ -69,6 +69,17 @@ class BaseMFDModificationsTestCase(BaseMFDTestCase): self.assertEqual(mfd.foo_calls, [{'a': 1, 'b': '2', 'c': True}]) self.assertEqual(mfd.check_constraints...
mfd/base: tested reset()
py
diff --git a/mopidy_youtube/backend.py b/mopidy_youtube/backend.py index <HASH>..<HASH> 100644 --- a/mopidy_youtube/backend.py +++ b/mopidy_youtube/backend.py @@ -277,6 +277,9 @@ class YouTubeLibraryProvider(backend.LibraryProvider): class YouTubePlaybackProvider(backend.PlaybackProvider): + def should_download...
Enable download buffering to improve playback performance
py
diff --git a/lib/fileutil.py b/lib/fileutil.py index <HASH>..<HASH> 100644 --- a/lib/fileutil.py +++ b/lib/fileutil.py @@ -780,7 +780,7 @@ def findFile(input): _extver = 1 f = openImage(_root) f.close() - if _extnum: + if _extnum i...
New Version of fileutil: This version corrects logic in 'findFile' which incorrectly judged '[0]' extension to be invalid. This addresses a problem with the shiftfile refimage being specified as [0] and not being picked up as valid. WJH git-svn-id: <URL>
py
diff --git a/netpyne/wrappers.py b/netpyne/wrappers.py index <HASH>..<HASH> 100644 --- a/netpyne/wrappers.py +++ b/netpyne/wrappers.py @@ -9,7 +9,7 @@ Contributors: salvadordura@gmail.com __all__ = [] __all__.extend(['create', 'simulate', 'analyze', 'createSimulate', 'createSimulateAnalyze', 'load', 'loadSimulate',...
put back neuroml line so no error
py
diff --git a/jsonschema/_validators.py b/jsonschema/_validators.py index <HASH>..<HASH> 100644 --- a/jsonschema/_validators.py +++ b/jsonschema/_validators.py @@ -77,10 +77,10 @@ def minimum(validator, minimum, instance, schema): return if schema.get("exclusiveMinimum", False): - failed = float(i...
All tests pass when adding `float()` conversion on `instance` and `maximum` and `minimum` in respective validators
py
diff --git a/molo/core/tests/test_views.py b/molo/core/tests/test_views.py index <HASH>..<HASH> 100644 --- a/molo/core/tests/test_views.py +++ b/molo/core/tests/test_views.py @@ -372,7 +372,7 @@ class TestPages(TestCase, MoloTestCaseMixin): responses.add( responses.GET, ( ...
changed molo.core version number in versions_comparison test
py
diff --git a/etcd3/locks.py b/etcd3/locks.py index <HASH>..<HASH> 100644 --- a/etcd3/locks.py +++ b/etcd3/locks.py @@ -2,6 +2,7 @@ import uuid import tenacity +from etcd3 import exceptions lock_prefix = '/locks/' @@ -42,9 +43,6 @@ class Lock(object): self.key = lock_prefix + self.name self.l...
locks: use watcher to wait before retry Rather than waiting a pre-defined amount of time, let's just use the etcd watch mechanism to be noticed when something happens.
py
diff --git a/plexapi/media.py b/plexapi/media.py index <HASH>..<HASH> 100644 --- a/plexapi/media.py +++ b/plexapi/media.py @@ -384,6 +384,15 @@ class Optimized(PlexObject): self.target = data.attrib.get('target') self.targetTagID = data.attrib.get('targetTagID') + def remove(self): + """ R...
Add remove and rename methods for Optimized items.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ CLASSIFIERS = [ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Intended Audience :: Developers', - 'License :: OSI Approved :: Apache License License', + 'License ...
Fixed category for Apache license in setup file.
py
diff --git a/insights/core/spec_factory.py b/insights/core/spec_factory.py index <HASH>..<HASH> 100644 --- a/insights/core/spec_factory.py +++ b/insights/core/spec_factory.py @@ -437,7 +437,7 @@ class first_file(object): self.kind = kind self.raw = kind is RawFileProvider self.__name__ = self...
Fix first_file not registering with the correct context.
py
diff --git a/tweepy/api.py b/tweepy/api.py index <HASH>..<HASH> 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -3160,11 +3160,14 @@ class API: user context provided. Other members of the conversation can still access the Direct Messages. - :param id: The ID of the Direct Message that shoul...
Update and improve documentation for API.destroy_direct_message
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,8 @@ here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() -install_requires = ['dask', 'distributed', 'numpy', 'pan...
Added scipy to setup.py (#<I>) * Added scipy to setup.py * flake8 now passing.
py
diff --git a/tests/test_arguments.py b/tests/test_arguments.py index <HASH>..<HASH> 100644 --- a/tests/test_arguments.py +++ b/tests/test_arguments.py @@ -1293,7 +1293,7 @@ class ArgumentsTestCase(TestCase): self.patched['wakatime.packages.requests.adapters.HTTPAdapter.send'].return_value = resp con...
enable verbose logging to see any errors when running tests
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -4,8 +4,8 @@ from distutils.core import setup setup ( name = 'simplebayes', - version = '1.3.0', - url = 'https://github.com/hickeroar/simplebayes', + version = '1.3.1', + url = 'http://hickeroar.github.io/...
Adding a more "friendly" homepage for the project.
py
diff --git a/ubersmith/api.py b/ubersmith/api.py index <HASH>..<HASH> 100644 --- a/ubersmith/api.py +++ b/ubersmith/api.py @@ -412,7 +412,7 @@ class IntResponse(BaseResponse): def __int__(self): return self.data - __index__ = __int__ + __index__ = __long__ = __trunc__ = __int__ def __float_...
Finish implementing magic methods for IntResponse.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,5 +11,5 @@ setup( download_url='https://github.com/erdc-cm/RAPIDpy/tarballs/1.1.3', license='MIT', packages=['RAPIDpy'], - install_requires=['netCDF4', 'numpy', 'requests'], + install_requires=['netCDF...
added dateutil to prereqs
py
diff --git a/src/python/grpcio_tests/tests/unit/_invocation_defects_test.py b/src/python/grpcio_tests/tests/unit/_invocation_defects_test.py index <HASH>..<HASH> 100644 --- a/src/python/grpcio_tests/tests/unit/_invocation_defects_test.py +++ b/src/python/grpcio_tests/tests/unit/_invocation_defects_test.py @@ -249,3 +24...
Add missing unittest.main call This should have been included in <I>a2f1f<I>b<I>e<I>c<I>e<I>aed9.
py
diff --git a/leeroy/github.py b/leeroy/github.py index <HASH>..<HASH> 100644 --- a/leeroy/github.py +++ b/leeroy/github.py @@ -8,7 +8,7 @@ import warnings github_status_url = "/repos/{repo_name}/statuses/{sha}" github_hooks_url = "/repos/{repo_name}/hooks" -github_commits_url = "/repos/{repo_name}/pulls/{number}/co...
fix previous commit, it wasn't right. I will test my commits before I push them. I will test my commits before I push them. I will test my commits before I push them. I will test...
py
diff --git a/pyjstat/pyjstat.py b/pyjstat/pyjstat.py index <HASH>..<HASH> 100644 --- a/pyjstat/pyjstat.py +++ b/pyjstat/pyjstat.py @@ -28,6 +28,7 @@ Example: """ import json +import sys import pandas as pd import numpy as np from collections import OrderedDict @@ -50,6 +51,13 @@ class NumpyEncoder(json.JSONEncod...
Fixed unicode problems with python versions
py
diff --git a/raven/transport/threaded.py b/raven/transport/threaded.py index <HASH>..<HASH> 100644 --- a/raven/transport/threaded.py +++ b/raven/transport/threaded.py @@ -94,8 +94,8 @@ class ThreadedHTTPTransport(AsyncTransport, HTTPTransport): scheme = ['http', 'https', 'threaded+http', 'threaded+https'] - ...
Handle timeout option in threaded transport
py
diff --git a/dwave/embedding/utils.py b/dwave/embedding/utils.py index <HASH>..<HASH> 100644 --- a/dwave/embedding/utils.py +++ b/dwave/embedding/utils.py @@ -154,7 +154,7 @@ def chain_break_frequency(samples_like, embedding): """Determine the frequency of chain breaks in the given samples. Args: - s...
Fix typo in chain_break_frequency docstring
py
diff --git a/pandas/tests/frame/test_dtypes.py b/pandas/tests/frame/test_dtypes.py index <HASH>..<HASH> 100644 --- a/pandas/tests/frame/test_dtypes.py +++ b/pandas/tests/frame/test_dtypes.py @@ -4,7 +4,7 @@ from datetime import timedelta import numpy as np import pytest -from pandas.core.dtypes.dtypes import Catego...
CLN: some imports in pandas/tests/frame/test_dtypes.py (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -162,7 +162,6 @@ PACKAGES = [ 'pystache', 'pystache.commands', # The following packages are only for testing. - 'examples', 'pystache.tests', 'pystache.tests.data', 'pystache.tests.data.locator...
Updated PACKAGES in setup.py to reflect the examples/ move.
py
diff --git a/fabric/runners.py b/fabric/runners.py index <HASH>..<HASH> 100644 --- a/fabric/runners.py +++ b/fabric/runners.py @@ -58,7 +58,7 @@ class Remote(Runner): self.channel.exec_command(command) def run(self, command, **kwargs): - kwargs['replace_env'] = True + kwargs.setdefault...
Feedback: the kwarg override should be "gentle" and use kwargs.setdefault in case a user is explicitly giving it for some reason
py
diff --git a/kitty/data/data_manager.py b/kitty/data/data_manager.py index <HASH>..<HASH> 100644 --- a/kitty/data/data_manager.py +++ b/kitty/data/data_manager.py @@ -42,6 +42,7 @@ class DataManagerTask(object): self._result = None self._task = task self._args = args + self._exception ...
handle exceptions in tasks - catch and rethrow in get_result
py
diff --git a/tests_tf/test_mnist_tutorial_tf.py b/tests_tf/test_mnist_tutorial_tf.py index <HASH>..<HASH> 100644 --- a/tests_tf/test_mnist_tutorial_tf.py +++ b/tests_tf/test_mnist_tutorial_tf.py @@ -39,7 +39,7 @@ class TestMNISTTutorialTF(CleverHansTest): atol=atol_fac * 5e-3) self.as...
Loose the check for mnist tutorial test so that the test can pass.
py
diff --git a/cpp_coveralls/coverage.py b/cpp_coveralls/coverage.py index <HASH>..<HASH> 100644 --- a/cpp_coveralls/coverage.py +++ b/cpp_coveralls/coverage.py @@ -230,13 +230,13 @@ def parse_gcov_file(fobj, filename): coverage = [] ignoring = False for line in fobj: - report_fields = line.split(':...
Simplify fix for getting the whole source line
py
diff --git a/mcex/step_methods/quadpotential.py b/mcex/step_methods/quadpotential.py index <HASH>..<HASH> 100644 --- a/mcex/step_methods/quadpotential.py +++ b/mcex/step_methods/quadpotential.py @@ -2,6 +2,7 @@ from utils import normal from numpy import dot from numpy.linalg import solve from scipy.linalg import cho...
added quadpotential for sparse hessians
py
diff --git a/intranet/apps/bus/consumers.py b/intranet/apps/bus/consumers.py index <HASH>..<HASH> 100644 --- a/intranet/apps/bus/consumers.py +++ b/intranet/apps/bus/consumers.py @@ -78,6 +78,6 @@ class BusConsumer(JsonWebsocketConsumer): def within_time_range(self, time): now_hour = timezone.localtime(...
fix(bus): fix changeover hour identification
py
diff --git a/photutils/aperture.py b/photutils/aperture.py index <HASH>..<HASH> 100644 --- a/photutils/aperture.py +++ b/photutils/aperture.py @@ -283,6 +283,7 @@ class EllipticalAperture(Aperture): xx * math.sin(self.theta)) in_aper = (((numerator1 / self.a) ** 2 + ...
Ensure that downsample.pyx preserves image flux
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (C) 2011 Chris Dekter
Added shebang to setup.py Fixes #<I> It is now possible to run setup.py directly from the shell using “./setup.py”, instead of “python3 setup.py”
py
diff --git a/fabfile.py b/fabfile.py index <HASH>..<HASH> 100644 --- a/fabfile.py +++ b/fabfile.py @@ -421,8 +421,8 @@ def reset(withPasswordReset=False): run('chmod -R 777 ' + env.config['filesFolder']) if 'deploymentModule' in settings: run_drush('en -y ' + settings['deploymentModule'...
drush updb before drush fra to make it possible to delete field instances
py
diff --git a/sos/report/plugins/foreman_proxy.py b/sos/report/plugins/foreman_proxy.py index <HASH>..<HASH> 100644 --- a/sos/report/plugins/foreman_proxy.py +++ b/sos/report/plugins/foreman_proxy.py @@ -38,6 +38,10 @@ class ForemanProxy(Plugin): self.apachepkg), "/var/log/{}*/katello-rever...
[foreman_proxy] Add new apache vhost logs These were added in puppet-foreman_proxy_content commit <I>e2a6
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -36,6 +36,7 @@ setup( classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', + 'Framework :: Pelican :: Plugins', 'Intended Audience :: Developers', ...
Add Framework :: Pelican :: Plugins classifer for PyPI
py
diff --git a/Lib/glyphs2ufo/builder_test.py b/Lib/glyphs2ufo/builder_test.py index <HASH>..<HASH> 100644 --- a/Lib/glyphs2ufo/builder_test.py +++ b/Lib/glyphs2ufo/builder_test.py @@ -53,6 +53,18 @@ class BuildStyleNameTest(unittest.TestCase): self.assertEquals( self._build({'weight': 'Thin'}, True...
More unit tests for builder/build_style_name
py
diff --git a/esridump/dumper.py b/esridump/dumper.py index <HASH>..<HASH> 100644 --- a/esridump/dumper.py +++ b/esridump/dumper.py @@ -36,9 +36,13 @@ class EsriDumper(object): return self._layer_url + url if url else self._layer_url def _build_query_args(self, query_args=None): - complete_args = ...
have extra args overwrite default args instead of the other way around
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ requirements = [str(ir.req) for ir in install_reqs] setup( name="nidmresults", - version="0.2.0", + version="0.1.0", author="Camille Maumet", author_email="c.m.j.maumet@warwick.ac.uk", ...
Version <I> (for main pypi site)
py
diff --git a/neomodel/relationship_manager.py b/neomodel/relationship_manager.py index <HASH>..<HASH> 100644 --- a/neomodel/relationship_manager.py +++ b/neomodel/relationship_manager.py @@ -140,6 +140,7 @@ class RelationshipManager(object): rel_instance._start_node_class = self.origin.__class__ ...
Add missing cypher call
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,8 +3,10 @@ import uuid from setuptools import setup, find_packages -from pip.req import parse_requirements - +try: + from pip._internal.req import parse_requirements +except ImportError: + from pip.req import pars...
Adjusted parse_requirements for PIP versions <I>>.
py
diff --git a/salt/modules/aptpkg.py b/salt/modules/aptpkg.py index <HASH>..<HASH> 100644 --- a/salt/modules/aptpkg.py +++ b/salt/modules/aptpkg.py @@ -1053,7 +1053,7 @@ def upgrade(refresh=True, dist_upgrade=False, **kwargs): download_only Only donwload the packages, don't unpack or install them - ...
Fix versionadded The develop branch is Oxygen currently, not Nitrogen.
py
diff --git a/tests/test_mpv.py b/tests/test_mpv.py index <HASH>..<HASH> 100755 --- a/tests/test_mpv.py +++ b/tests/test_mpv.py @@ -113,6 +113,9 @@ class TestProperties(MpvTestCase): # These may cause files to be created if name in ('external-file', 'heartbeat-cmd', 'wid', 'dump-stats', 'log-fi...
Fix segmentation fault in unit tests on wayland
py
diff --git a/steam/__init__.py b/steam/__init__.py index <HASH>..<HASH> 100644 --- a/steam/__init__.py +++ b/steam/__init__.py @@ -1,7 +1,7 @@ -__version__ = "0.6.9" +__version__ = "0.7.0" __author__ = "Rossen Georgiev" -version_info = (0, 6, 9) +version_info = (0, 7, 0) from steam.steamid import SteamID from st...
bump to <I>; derp
py
diff --git a/freshroastsr700/__init__.py b/freshroastsr700/__init__.py index <HASH>..<HASH> 100644 --- a/freshroastsr700/__init__.py +++ b/freshroastsr700/__init__.py @@ -220,6 +220,8 @@ class freshroastsr700(object): self.state_transition_func() else: ...
Put a small sleep in the timer function else case To prevent high CPU usage, adding a small sleep in the else logic. This should also alleviate some UI lag issues in Openroast once you plug the roaster in. I found that the tight loop in the timer thread was taking so much CPU that the UI responsiveness would drop t...
py
diff --git a/xray/dataset.py b/xray/dataset.py index <HASH>..<HASH> 100644 --- a/xray/dataset.py +++ b/xray/dataset.py @@ -995,9 +995,11 @@ class Dataset(Mapping): dimension. If not supplied, indexers is inferred from the length of each variable along the dimension, and the variables are stack...
Dataset.concat() can now automatically concat over non-equal variables. concat_over=True indicates that concat should concat over all variables that are not the same in the set of datasets that are to be concatenated.
py
diff --git a/build.py b/build.py index <HASH>..<HASH> 100755 --- a/build.py +++ b/build.py @@ -333,8 +333,7 @@ def examples_star_combined_js(name, match): return Target(name, action=action, dependencies=dependencies) -@target('serve', PLOVR_JAR, INTERNAL_SRC, 'build/test/requireall.js', - 'examples') +@...
Test dependencies in a common place
py
diff --git a/raiden/ui/cli.py b/raiden/ui/cli.py index <HASH>..<HASH> 100644 --- a/raiden/ui/cli.py +++ b/raiden/ui/cli.py @@ -655,7 +655,7 @@ def run(ctx: Context, **kwargs: Any) -> None: f"only user of the selected account", fg="red", ) - sys.exit(1) + sys.exit(ReturnC...
Replace remaining sys.exit(1) with specific return codes
py
diff --git a/tensor2tensor/envs/env_problem.py b/tensor2tensor/envs/env_problem.py index <HASH>..<HASH> 100644 --- a/tensor2tensor/envs/env_problem.py +++ b/tensor2tensor/envs/env_problem.py @@ -515,6 +515,24 @@ class EnvProblem(Env, problem.Problem): return processed_observations + def render(self, mode="hum...
Add `render` to EnvProblem, we can see the env locally with this function. PiperOrigin-RevId: <I>
py
diff --git a/src/discoursegraphs/readwrite/ptb.py b/src/discoursegraphs/readwrite/ptb.py index <HASH>..<HASH> 100644 --- a/src/discoursegraphs/readwrite/ptb.py +++ b/src/discoursegraphs/readwrite/ptb.py @@ -8,6 +8,8 @@ directed graph (``DiscourseDocumentGraph``). """ import os +import tempfile + import nltk # vers...
ptb: added .fromstring() classmethod
py
diff --git a/subliminal/languages.py b/subliminal/languages.py index <HASH>..<HASH> 100644 --- a/subliminal/languages.py +++ b/subliminal/languages.py @@ -31,6 +31,8 @@ def convert_language(language, to_iso, from_iso=None): from_iso = 2 else: raise ValueError('Invalid input language f...
Use utf-8 encoded strings for comparison
py
diff --git a/gosymbolsextractor.py b/gosymbolsextractor.py index <HASH>..<HASH> 100644 --- a/gosymbolsextractor.py +++ b/gosymbolsextractor.py @@ -367,10 +367,6 @@ class GoSymbolsExtractor(object): return False - # convention is to have dirname = packagename, but not necesary - if pname != os.path.basen...
gosymbolsextractor: package name and qualifier can differ, no need to log it explicitly
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ data = dict( ) if sys.version[:3] < '3.0': - data['install_requires'].append('python-dateutil == 1.5') + data['install_requires'].append('python-dateutil >= 1.4') else: data['install_requires'].a...
Reduce the requirements a little bit.
py
diff --git a/punch/cli.py b/punch/cli.py index <HASH>..<HASH> 100644 --- a/punch/cli.py +++ b/punch/cli.py @@ -244,6 +244,10 @@ def main(original_args=None): print("Options:", vcs_configuration.options) if not args.simulate: + files_to_commit = [f.path for f in config.files] + files_to...
Punch config and version files are added by default to the commit
py
diff --git a/bokeh/util/callback_manager.py b/bokeh/util/callback_manager.py index <HASH>..<HASH> 100644 --- a/bokeh/util/callback_manager.py +++ b/bokeh/util/callback_manager.py @@ -33,7 +33,9 @@ def _check_callback(callback, fargs): elif isinstance(callback, partial): expected_args = margs if ismethod...
handling issues where partial callback keywords and/or args are None
py
diff --git a/gwpy/cli/coherencegram.py b/gwpy/cli/coherencegram.py index <HASH>..<HASH> 100644 --- a/gwpy/cli/coherencegram.py +++ b/gwpy/cli/coherencegram.py @@ -95,6 +95,7 @@ class Coherencegram(CliProduct): stride = int(self.dur/(self.width * 0.8) ) stride = max(stride, secpfft+(1-ovlp_frac)*32) ...
cli/coherencegram.py: fix parameters for good looking result: Stride needs to be at least 2*secpfft (not sure why) Stride is calculated to have a minimum of <I> averages per column for good SNR. Renamed overlap variables for clear difference between fraction of fftlength and seconds.
py
diff --git a/astrobase/lcproc.py b/astrobase/lcproc.py index <HASH>..<HASH> 100644 --- a/astrobase/lcproc.py +++ b/astrobase/lcproc.py @@ -317,19 +317,12 @@ def lclist_parallel_worker(task): task[0] = lcf task[1] = columns - task[2] = lclistdict - task[3] = lcformat + task[3] = fileglob + task[4...
lcproc: simplify parallel task list for makelclist
py
diff --git a/carrot/messaging.py b/carrot/messaging.py index <HASH>..<HASH> 100644 --- a/carrot/messaging.py +++ b/carrot/messaging.py @@ -107,7 +107,7 @@ class Consumer(object): message_data = self.decoder(message.body) self.receive(message_data, message) - def _fetch(self): + def fetch(self)...
fetch is actually used publically by celery, so it can't be private.
py
diff --git a/backtrader/strategy.py b/backtrader/strategy.py index <HASH>..<HASH> 100644 --- a/backtrader/strategy.py +++ b/backtrader/strategy.py @@ -1215,7 +1215,6 @@ class Strategy(with_metaclass(MetaStrategy, StrategyBase)): kargs['transmit'] = True kargs['size'] = o.size olim...
Correct sell_bracket by removing old append code
py
diff --git a/moneyed/localization.py b/moneyed/localization.py index <HASH>..<HASH> 100644 --- a/moneyed/localization.py +++ b/moneyed/localization.py @@ -291,7 +291,7 @@ _sign(DEFAULT, moneyed.PLN, suffix=' zł') _sign(DEFAULT, moneyed.PYG, prefix='₲') _sign(DEFAULT, moneyed.QAR, prefix='ر.ق') _sign(DEFAULT, moneyed...
Russian Ruble format correction Abbreviation (руб.) always a suffix, never prefix, and it also separated by space. Paypal Russian page is example of cоrrect format: <URL>
py
diff --git a/waliki/__init__.py b/waliki/__init__.py index <HASH>..<HASH> 100644 --- a/waliki/__init__.py +++ b/waliki/__init__.py @@ -1 +1 @@ -__version__ = '0.3.3' \ No newline at end of file +__version__ = '0.4dev' \ No newline at end of file
back version to <I>dev
py
diff --git a/nptdms/tdms.py b/nptdms/tdms.py index <HASH>..<HASH> 100644 --- a/nptdms/tdms.py +++ b/nptdms/tdms.py @@ -243,12 +243,12 @@ class TdmsFile(object): h5file = h5py.File(filepath, 'w') # First right the properties at the root level - for property_name, property_value in self.Object(...
Tested the as_hdf on a simple TDMS file. Modifed it to work.
py
diff --git a/src/diamond/collector.py b/src/diamond/collector.py index <HASH>..<HASH> 100644 --- a/src/diamond/collector.py +++ b/src/diamond/collector.py @@ -148,10 +148,10 @@ class Collector(object): if new < old: old = old - max_value # Get Change in X (value) - ...
Fix code the match the documentation, no change to the result
py
diff --git a/ck/kernel.py b/ck/kernel.py index <HASH>..<HASH> 100644 --- a/ck/kernel.py +++ b/ck/kernel.py @@ -3437,10 +3437,12 @@ def access(i): if i.get('out','')=='': i['out']='con' # Default output is console # if called from CMD or with string - # ...
Fixing error with parsing CMD json files ...
py
diff --git a/lib/connection_strategy.py b/lib/connection_strategy.py index <HASH>..<HASH> 100644 --- a/lib/connection_strategy.py +++ b/lib/connection_strategy.py @@ -17,7 +17,7 @@ class ConnectionStrategy(object): designed to handle failover in a clustered environment. """ - def __init__(self, connection, add...
renamed reconnect_callback to reconnect_cb
py
diff --git a/dvc/repo/__init__.py b/dvc/repo/__init__.py index <HASH>..<HASH> 100644 --- a/dvc/repo/__init__.py +++ b/dvc/repo/__init__.py @@ -399,14 +399,13 @@ class Repo(object): abs_path = os.path.abspath(path) path_info = PathInfo(abs_path) - is_dir = self.tree.isdir(abs_path) ma...
dvc: do not check for isdir on recursive out collect The things is we create dirs as needed, so if outs are not checked out a directory contraining nothing but outs may be absent.
py