diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/cloudmesh/common/console.py b/cloudmesh/common/console.py index <HASH>..<HASH> 100644 --- a/cloudmesh/common/console.py +++ b/cloudmesh/common/console.py @@ -263,6 +263,22 @@ class Console(object): message + Console.theme['ENDC'])) + @staticmethod + def text(color='R...
add a function to collor a text and return it as string
py
diff --git a/proso_user/views.py b/proso_user/views.py index <HASH>..<HASH> 100644 --- a/proso_user/views.py +++ b/proso_user/views.py @@ -1,3 +1,4 @@ +from lazysignup.utils import is_lazy_user from proso.django.response import render, render_json import django.contrib.auth as auth from proso.django.request import g...
deny signup when user is logged in
py
diff --git a/autopep8.py b/autopep8.py index <HASH>..<HASH> 100755 --- a/autopep8.py +++ b/autopep8.py @@ -126,7 +126,7 @@ if sys.platform == 'win32': # pragma: no cover else: DEFAULT_CONFIG = os.path.join(os.getenv('XDG_CONFIG_HOME') or os.path.expanduser('~/.config'), 'pycode...
enable reading the settings from '.flake8' file
py
diff --git a/ec2/spark_ec2.py b/ec2/spark_ec2.py index <HASH>..<HASH> 100755 --- a/ec2/spark_ec2.py +++ b/ec2/spark_ec2.py @@ -70,7 +70,7 @@ def parse_args(): "slaves across multiple (an additional $0.01/Gb for bandwidth" + "between zones applies)") parser.add_option("-a", "--ami", help="Amaz...
Add Spark <I> to ec2 launch script and use it as the default Mainly ported from branch-<I>.
py
diff --git a/salt/cloud/clouds/linode.py b/salt/cloud/clouds/linode.py index <HASH>..<HASH> 100644 --- a/salt/cloud/clouds/linode.py +++ b/salt/cloud/clouds/linode.py @@ -345,6 +345,9 @@ def create(vm_): # to use driver: "driver: <provider-engine>" if 'provider' in vm_: vm_['driver'] = vm_.pop('provi...
Make sure we're calling _validate_name in the correct place in <I> Linode driver
py
diff --git a/pypot/_version.py b/pypot/_version.py index <HASH>..<HASH> 100644 --- a/pypot/_version.py +++ b/pypot/_version.py @@ -1 +1 @@ -__version__ = '2.0' +__version__ = '2.0.1'
Prepare for version <I> (Fix #<I>)
py
diff --git a/flap/__init__.py b/flap/__init__.py index <HASH>..<HASH> 100644 --- a/flap/__init__.py +++ b/flap/__init__.py @@ -15,5 +15,5 @@ # along with Flap. If not, see <http://www.gnu.org/licenses/>. # -__version__ = "0.2.5" +__version__ = "0.3.0"
Releasing version <I>
py
diff --git a/invenio_collections/recordext/functions/get_record_collections.py b/invenio_collections/recordext/functions/get_record_collections.py index <HASH>..<HASH> 100644 --- a/invenio_collections/recordext/functions/get_record_collections.py +++ b/invenio_collections/recordext/functions/get_record_collections.py @...
recordext: collections on update * BETTER Adds `_collections` key upon record update.
py
diff --git a/adnpy/api.py b/adnpy/api.py index <HASH>..<HASH> 100644 --- a/adnpy/api.py +++ b/adnpy/api.py @@ -29,19 +29,21 @@ class API(requests.Session): """ @classmethod - def build_api(cls, api_root='https://alpha-api.app.net/stream/0', access_token=None, verify=False): + def build_api(cls, api_ro...
For development purposes create ability to turn of verify for requests
py
diff --git a/bcbio/upload/__init__.py b/bcbio/upload/__init__.py index <HASH>..<HASH> 100644 --- a/bcbio/upload/__init__.py +++ b/bcbio/upload/__init__.py @@ -91,7 +91,7 @@ def _get_files_project(sample, upload_config): "type": "sqlite", "variantcaller": x["variantcalle...
Improve defensive code when validate information not present. Fixes #<I>
py
diff --git a/tests/pipeline/test_engine.py b/tests/pipeline/test_engine.py index <HASH>..<HASH> 100644 --- a/tests/pipeline/test_engine.py +++ b/tests/pipeline/test_engine.py @@ -1539,8 +1539,8 @@ class ChunkedPipelineTestCase(zf.WithEquityPricingPipelineEngine, self.assertTrue(chunked_result.equals(pipeline_r...
MAINT: Update aliases after rebase.
py
diff --git a/boatd_client/boatd_client.py b/boatd_client/boatd_client.py index <HASH>..<HASH> 100644 --- a/boatd_client/boatd_client.py +++ b/boatd_client/boatd_client.py @@ -63,10 +63,10 @@ class Boat(object): if __name__ == '__main__': boat = Boat() print(boat._get('')) - print(boat.version()) - prin...
Update the quick self-tests to use properties
py
diff --git a/virtenv.py b/virtenv.py index <HASH>..<HASH> 100644 --- a/virtenv.py +++ b/virtenv.py @@ -50,11 +50,11 @@ else: def _get_script(module=None): if module: - script = os.path.abspath(module.__file__) + script = os.path.realpath(module.__file__) else: - script = os.path.abspat...
Use realpath to get .py file more reliably
py
diff --git a/test/test_configloader.py b/test/test_configloader.py index <HASH>..<HASH> 100644 --- a/test/test_configloader.py +++ b/test/test_configloader.py @@ -10,6 +10,8 @@ TEST_CONFIG_VALUE = 'localhost' TEST_SITE_NAME = 'staples' EXPECTED_SITE_CONFIG = { "id": "staples", + "class": "supplies", + "tag...
Fix test to ensure test config expects class and tags.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -35,7 +35,7 @@ extras_require = { 'dev': [ "bumpversion", "flaky>=3.3.0", - "hypothesis>=3.31.2", + "hypothesis>=3.31.2,<6", "pytest>=4.4.0,<5.0.0", "pytest-asyncio>=0.10....
Pin hypothesis to less than 6 until we fix our deprecation warnings
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( packages=['vent', 'vent.core', 'vent.core.file_drop', 'vent.core.rq_worker', 'vent.core.rq_dashboard', 'vent.menus', 'vent.core.rmq_es_connector', 'vent.helpers', 'vent.ap...
remove netifaces from package dependencies
py
diff --git a/saltcloud/utils/nb_popen.py b/saltcloud/utils/nb_popen.py index <HASH>..<HASH> 100644 --- a/saltcloud/utils/nb_popen.py +++ b/saltcloud/utils/nb_popen.py @@ -37,9 +37,8 @@ log = logging.getLogger(__name__) class CloudNonBlockingPopen(subprocess.Popen): - #_stdin_logger_name_ = 'salt.utils.nb_popen....
Corrected the logger names.
py
diff --git a/playerRecord.py b/playerRecord.py index <HASH>..<HASH> 100644 --- a/playerRecord.py +++ b/playerRecord.py @@ -34,7 +34,7 @@ class PlayerRecord(object): self.type = c.PlayerDesigns(c.HUMAN) self.difficulty = c.ComputerDifficulties(None) # only matters if type ...
- use DEFAULT_RATING - migrated control() method from PlayerPreGame
py
diff --git a/tryp/anon.py b/tryp/anon.py index <HASH>..<HASH> 100644 --- a/tryp/anon.py +++ b/tryp/anon.py @@ -1,20 +1,34 @@ -from operator import methodcaller +class AnonFunc(object): + + def __init__(self, name, a, kw): + self.name = name + self.a = a + self.kw = kw + + def __call__(self, o...
provide own class to replace methodcaller
py
diff --git a/satpy/multiscene.py b/satpy/multiscene.py index <HASH>..<HASH> 100644 --- a/satpy/multiscene.py +++ b/satpy/multiscene.py @@ -408,7 +408,7 @@ class MultiScene(object): return this_fn, shape, fill_value @staticmethod - def _maybe_format_decoration(ds, decorate): + def _format_decoratio...
Remove _maybe from method name In the multiscene decoration, remove _maybe from the method name.
py
diff --git a/tests/integ/conftest.py b/tests/integ/conftest.py index <HASH>..<HASH> 100644 --- a/tests/integ/conftest.py +++ b/tests/integ/conftest.py @@ -22,6 +22,17 @@ LATEST_DYNAMODB_LOCAL_SHA = "70d9a92529782ac93713258fe69feb4ff6e007ae2c3319c7ffa DYNAMODB_LOCAL_SINGLETON = None +class PatchedDynamoDBClient: + ...
Patch the dynamodb client when using DynamoDBLocal since DescribeTTL is unsupported #<I>
py
diff --git a/cobra/core/summary/summary.py b/cobra/core/summary/summary.py index <HASH>..<HASH> 100644 --- a/cobra/core/summary/summary.py +++ b/cobra/core/summary/summary.py @@ -6,6 +6,8 @@ from __future__ import absolute_import, division from warnings import warn +from cobra.flux_analysis.helpers import normaliz...
refactor: introduce bound on threshold
py
diff --git a/juicer/utils/__init__.py b/juicer/utils/__init__.py index <HASH>..<HASH> 100644 --- a/juicer/utils/__init__.py +++ b/juicer/utils/__init__.py @@ -76,7 +76,6 @@ def _config_file(): config.set('stage', 'promotes_to', 'prod') config.add_section('prod') config.set('prod', 'requires_s...
Remove unnecessary promotes to in default config file generation.
py
diff --git a/MarkovText/MarkovText.py b/MarkovText/MarkovText.py index <HASH>..<HASH> 100644 --- a/MarkovText/MarkovText.py +++ b/MarkovText/MarkovText.py @@ -25,7 +25,8 @@ class Markov: sentences = re.split(r'(?<!\w\.\w.)(?<![A-Z][a-z]\.)(?<=\.|\?|!)\s', text) # '' is a special symbol for the start o...
Stop dealing with unicode for python 2
py
diff --git a/vaderSentiment/vaderSentiment.py b/vaderSentiment/vaderSentiment.py index <HASH>..<HASH> 100644 --- a/vaderSentiment/vaderSentiment.py +++ b/vaderSentiment/vaderSentiment.py @@ -284,7 +284,7 @@ class SentimentIntensityAnalyzer(object): valence = self.lexicon[item_lowercase] ...
Update vaderSentiment.py added check to line <I> to ensure negation "no" is not the last item in the token list (to prevent out of bounds error)
py
diff --git a/userena/utils.py b/userena/utils.py index <HASH>..<HASH> 100644 --- a/userena/utils.py +++ b/userena/utils.py @@ -46,7 +46,7 @@ def get_gravatar(email, size=80, default='identicon'): """ if userena_settings.USERENA_MUGSHOT_GRAVATAR_SECURE: base_url = 'https://secure.gravatar.com/avatar/'...
Use protocol-relative url for gravatar
py
diff --git a/tests/test_theme.py b/tests/test_theme.py index <HASH>..<HASH> 100644 --- a/tests/test_theme.py +++ b/tests/test_theme.py @@ -1,4 +1,4 @@ -"""Test cases for builtin theme""" +"""Test cases for builtin theme.""" import pytest from sphinx.testing.util import SphinxTestApp from testutils import soup_html
refactor: Fix for doc8
py
diff --git a/fluo/context_processors.py b/fluo/context_processors.py index <HASH>..<HASH> 100644 --- a/fluo/context_processors.py +++ b/fluo/context_processors.py @@ -22,16 +22,24 @@ from django.conf import settings +# media_url & static_url idea is taken from +# http://www.djangosnippets.org/snippets/1754/ +MEDIA...
rewrite media context_processor and create a static context_processor
py
diff --git a/master/buildbot/test/unit/steps/test_shell.py b/master/buildbot/test/unit/steps/test_shell.py index <HASH>..<HASH> 100644 --- a/master/buildbot/test/unit/steps/test_shell.py +++ b/master/buildbot/test/unit/steps/test_shell.py @@ -665,22 +665,14 @@ class WarningCountingShellCommand(TestBuildStepMixin, ...
test: Reuse upload_string() for file uploads in step tests
py
diff --git a/spyder/plugins/projects/utils/watcher.py b/spyder/plugins/projects/utils/watcher.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/projects/utils/watcher.py +++ b/spyder/plugins/projects/utils/watcher.py @@ -4,6 +4,8 @@ # Licensed under the terms of the MIT License # (see spyder/__init__.py for details...
Projects: Add docstring to watcher module
py
diff --git a/salt/modules/network.py b/salt/modules/network.py index <HASH>..<HASH> 100644 --- a/salt/modules/network.py +++ b/salt/modules/network.py @@ -345,7 +345,7 @@ def up(interface): else: return None -def ipaddr(interface): +def ipaddr(interface=None): ''' Returns the IP address for a ...
Allow network.ipaddr to be called with no args
py
diff --git a/tests/example_tests.py b/tests/example_tests.py index <HASH>..<HASH> 100644 --- a/tests/example_tests.py +++ b/tests/example_tests.py @@ -76,7 +76,7 @@ class PAES_Test(unittest.TestCase): def test(self): paes = examples.standard.paes_example.main(prng=prng) fitnesses = [a.fitness for...
Modify PAES test output to pass with PRNG
py
diff --git a/treeherder/log_parser/tasks.py b/treeherder/log_parser/tasks.py index <HASH>..<HASH> 100644 --- a/treeherder/log_parser/tasks.py +++ b/treeherder/log_parser/tasks.py @@ -96,7 +96,7 @@ def parse_log(project, job_log_url, job_guid, check_errors=False): if crash_signature: ...
Bug <I> - Use the correct search term for crash signature searches; r=mdoglio
py
diff --git a/c7n/actions/webhook.py b/c7n/actions/webhook.py index <HASH>..<HASH> 100644 --- a/c7n/actions/webhook.py +++ b/c7n/actions/webhook.py @@ -79,7 +79,8 @@ class Webhook(EventAction): 'region': self.manager.config.region, 'execution_id': self.manager.ctx.execution_id, 'ex...
core - webhook action - add event to payload (#<I>)
py
diff --git a/tests/test_ec2/test_amis.py b/tests/test_ec2/test_amis.py index <HASH>..<HASH> 100644 --- a/tests/test_ec2/test_amis.py +++ b/tests/test_ec2/test_amis.py @@ -9,6 +9,7 @@ from boto.exception import EC2ResponseError import sure # noqa from moto import mock_ec2 +from tests.helpers import requires_boto_gt...
AMI: Implement copy_image. (part 3, added boto version threshold)
py
diff --git a/fermipy/roi_model.py b/fermipy/roi_model.py index <HASH>..<HASH> 100644 --- a/fermipy/roi_model.py +++ b/fermipy/roi_model.py @@ -941,6 +941,10 @@ class Source(Model): return self['radec'] @property + def is_free(self): + return bool(np.array([int(value.get("free", False)) for key...
adding ds9 region file writer. addressing #<I>
py
diff --git a/src/quilt_lang/__init__.py b/src/quilt_lang/__init__.py index <HASH>..<HASH> 100644 --- a/src/quilt_lang/__init__.py +++ b/src/quilt_lang/__init__.py @@ -36,7 +36,6 @@ import webbrowser import urllib # External Modules -import loremipsum import colour import clipboard """ @@ -349,18 +348,6 @@ def py...
Remove loremipsum function due to license overlap
py
diff --git a/munigeo/api.py b/munigeo/api.py index <HASH>..<HASH> 100644 --- a/munigeo/api.py +++ b/munigeo/api.py @@ -5,7 +5,7 @@ from django.db.models import Q from django.contrib.gis.measure import D from django.contrib.gis.db import models from rest_framework import serializers, pagination, relations, viewsets, ...
Friendlier status code for non-matching request.
py
diff --git a/cumulusci/tasks/push/tests/test_push_api.py b/cumulusci/tasks/push/tests/test_push_api.py index <HASH>..<HASH> 100644 --- a/cumulusci/tasks/push/tests/test_push_api.py +++ b/cumulusci/tasks/push/tests/test_push_api.py @@ -142,4 +142,3 @@ class TestSalesforcePushApi: limit = 100 returned =...
remove extra newline at EOF
py
diff --git a/luigi/db_task_history.py b/luigi/db_task_history.py index <HASH>..<HASH> 100644 --- a/luigi/db_task_history.py +++ b/luigi/db_task_history.py @@ -263,7 +263,9 @@ def _upgrade_schema(engine): elif 'mssql' in engine.dialect.name: conn.execute('ALTER TABLE task_parameters ALTER COLUMN va...
Check type of column before migrating - fixes #<I> (#<I>)
py
diff --git a/yotta/test/cli/test.py b/yotta/test/cli/test.py index <HASH>..<HASH> 100644 --- a/yotta/test/cli/test.py +++ b/yotta/test/cli/test.py @@ -346,7 +346,7 @@ def generateTestMethod(**kwargs): self.assertEqual(statuscode, 0) tstart = time.time() - stdout, stderr, statuscode = cli.run(...
run test subprocess with debugging to debug Travis CI errors
py
diff --git a/losser/losser.py b/losser/losser.py index <HASH>..<HASH> 100644 --- a/losser/losser.py +++ b/losser/losser.py @@ -35,7 +35,7 @@ def table(dicts, columns, csv=False): """ # Optionally read columns from file. if isinstance(columns, basestring): - columns = read_columns_file(columns) + ...
Make read_columns_file() private
py
diff --git a/tests/ignite/engine/test_create_supervised.py b/tests/ignite/engine/test_create_supervised.py index <HASH>..<HASH> 100644 --- a/tests/ignite/engine/test_create_supervised.py +++ b/tests/ignite/engine/test_create_supervised.py @@ -83,7 +83,7 @@ def _test_create_supervised_trainer( else: if Loo...
Fix failures on GPU ci (#<I>) * Refactoring the CI-build parameters * Updated test fo CI * Updated test fo CI * Updated * fixed regex error
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -4,7 +4,6 @@ from setuptools import setup, find_packages setup( name='requests-http-signature', - version='0.2.0', url='https://github.com/pyauth/requests-http-signature', license='Apache Software License'...
Remove version since it is set by scm
py
diff --git a/graphistry/hyper_dask.py b/graphistry/hyper_dask.py index <HASH>..<HASH> 100644 --- a/graphistry/hyper_dask.py +++ b/graphistry/hyper_dask.py @@ -81,7 +81,7 @@ def coerce_col_safe(s, to_dtype): if to_dtype.name == 'int64': return s.fillna(0).astype('int64') if to_dtype.name == 'timedelta...
fix(hyper): disable timedelta support due to nans
py
diff --git a/troposphere/ssm.py b/troposphere/ssm.py index <HASH>..<HASH> 100644 --- a/troposphere/ssm.py +++ b/troposphere/ssm.py @@ -205,6 +205,7 @@ class Parameter(AWSObject): props = { 'AllowedPattern': (basestring, False), + 'DataType': (basestring, False), 'Description': (basestrin...
Update AWS::SSM::Parameter properties, per May <I>, <I> update
py
diff --git a/treeherder/model/search.py b/treeherder/model/search.py index <HASH>..<HASH> 100644 --- a/treeherder/model/search.py +++ b/treeherder/model/search.py @@ -1,5 +1,4 @@ import logging -import types from functools import wraps import certifi @@ -14,6 +13,7 @@ from elasticsearch_dsl import (Boolean, ...
Bug <I> - Replace types.StringTypes with six.string_types Since the former doesn't exist in Python 3. See: <URL>
py
diff --git a/discord/guild.py b/discord/guild.py index <HASH>..<HASH> 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -1204,7 +1204,7 @@ class Guild(Hashable): Forbidden You do not have access to the guild. HTTPException - Getting the guild failed. + Fetching...
fix HTTPException explanation in Guild.fetch_member docs
py
diff --git a/mock_django/models.py b/mock_django/models.py index <HASH>..<HASH> 100644 --- a/mock_django/models.py +++ b/mock_django/models.py @@ -13,6 +13,13 @@ __all__ = ('ModelMock',) # TODO: make foreignkey_id == foreignkey.id class _ModelMock(mock.MagicMock): + def __init__(self, *args, **kwargs): + ...
Support for Django ><I> orm changes fixes #<I> model._state flag holds information to make the router db works
py
diff --git a/filterpy/kalman/kalman_filter.py b/filterpy/kalman/kalman_filter.py index <HASH>..<HASH> 100644 --- a/filterpy/kalman/kalman_filter.py +++ b/filterpy/kalman/kalman_filter.py @@ -1273,7 +1273,7 @@ class KalmanFilter(object): self.dim_x, self.dim_x, P.shape) assert Q.shape == (...
Issue #<I> assert comment named P for a test of matrix
py
diff --git a/psyplot/data.py b/psyplot/data.py index <HASH>..<HASH> 100755 --- a/psyplot/data.py +++ b/psyplot/data.py @@ -917,6 +917,7 @@ class CFDecoder(object): if not coord_names: return ret = [] + matched = [] for coord in map(lambda dim: coords[dim], filter( ...
warn when dimension list matches multiples This commit treats matches with dimension lists (such as CFDecoder.x) different than the coordinates or axis attribute.
py
diff --git a/nefertari/utility_views.py b/nefertari/utility_views.py index <HASH>..<HASH> 100644 --- a/nefertari/utility_views.py +++ b/nefertari/utility_views.py @@ -42,7 +42,7 @@ class OptionsViewMixin(object): if 'Access-Control-Request-Method' in request.headers: response.headers['Access-Con...
Sort method names for OPTIONS headers
py
diff --git a/skosify.py b/skosify.py index <HASH>..<HASH> 100755 --- a/skosify.py +++ b/skosify.py @@ -177,6 +177,7 @@ def read_input(filenames, fmt): if filename.endswith('ttl'): fmt = 'n3' if filename.endswith('nt'): fmt = 'nt' + logging.debug("Parsing input file %s (format: %s)", filename, fmt) ...
better debug logging about input and output files
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ license: GNU-GPL2 from setuptools import setup setup(name='pyprofiler', - version='46', + version='47', description='Profiler utility for python, graphical and textual, whole program or segmen...
Ludwig Mies van der Rohe: God is in the details. Wednesday <I> June <I> (week:<I> day:<I>), <I>:<I>:<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -47,7 +47,7 @@ requirements = [ 'tokenizers==0.8.1', 'click>=7.0', # Dependency of youtokentome 'youtokentome>=1.0.6', - 'fasttext>=0.9.2' + 'fasttext>=0.9.1,!=0.9.2' # Fix to 0.9.1 due to https://github...
[Fix][SageMaker] Make sure that the installation works in SageMaker (#<I>) * Fasttext to <I> * Update setup.py
py
diff --git a/autofit/non_linear/nest/dynesty/abstract.py b/autofit/non_linear/nest/dynesty/abstract.py index <HASH>..<HASH> 100644 --- a/autofit/non_linear/nest/dynesty/abstract.py +++ b/autofit/non_linear/nest/dynesty/abstract.py @@ -219,25 +219,23 @@ class AbstractDynesty(AbstractNest, ABC): try: + ...
attempting to replace way samples are created
py
diff --git a/py/test/selenium/webdriver/common/executing_javascript_tests.py b/py/test/selenium/webdriver/common/executing_javascript_tests.py index <HASH>..<HASH> 100644 --- a/py/test/selenium/webdriver/common/executing_javascript_tests.py +++ b/py/test/selenium/webdriver/common/executing_javascript_tests.py @@ -295,6...
[py] Disable test for remote that is disabled for firefox. Issue is in Firefox
py
diff --git a/proso_user/models.py b/proso_user/models.py index <HASH>..<HASH> 100644 --- a/proso_user/models.py +++ b/proso_user/models.py @@ -225,8 +225,10 @@ def migrate_google_openid_user(user): new_user = new_social.user new_social.user = old_social.user new_social.save() - ...
do not lose data in case of already migrated users
py
diff --git a/asv_bench/benchmarks/io/csv.py b/asv_bench/benchmarks/io/csv.py index <HASH>..<HASH> 100644 --- a/asv_bench/benchmarks/io/csv.py +++ b/asv_bench/benchmarks/io/csv.py @@ -98,6 +98,9 @@ class ToCSVDatetimeIndex(BaseIO): def time_frame_date_formatting_index(self): self.data.to_csv(self.fname, da...
ASV: Add additional to_csv benchmark (#<I>)
py
diff --git a/ceph_deploy/cli.py b/ceph_deploy/cli.py index <HASH>..<HASH> 100644 --- a/ceph_deploy/cli.py +++ b/ceph_deploy/cli.py @@ -27,6 +27,14 @@ Full documentation can be found at: http://ceph.com/ceph-deploy/docs """ % ceph_deploy.__version__) +def log_flags(args, logger=None): + logger = logger or LOG + ...
[RM-<I>] nicely output the options and flags in use after overrides
py
diff --git a/kubespawner/spawner.py b/kubespawner/spawner.py index <HASH>..<HASH> 100644 --- a/kubespawner/spawner.py +++ b/kubespawner/spawner.py @@ -9,6 +9,7 @@ import json import time import string import threading +import sys from urllib.parse import urlparse, urlunparse from concurrent.futures import ThreadPo...
Import sys before using it
py
diff --git a/test_dj_email_url.py b/test_dj_email_url.py index <HASH>..<HASH> 100644 --- a/test_dj_email_url.py +++ b/test_dj_email_url.py @@ -77,5 +77,13 @@ class EmailTestSuite(unittest.TestCase): assert url['EMAIL_HOST_PASSWORD'] == 'pass%^&*()123' assert url['EMAIL_HOST_USER'] == 'user!@#$5678' ...
Added tests for file path (#9)
py
diff --git a/test/util/test_capped.py b/test/util/test_capped.py index <HASH>..<HASH> 100644 --- a/test/util/test_capped.py +++ b/test/util/test_capped.py @@ -82,7 +82,7 @@ class TestCappedQueries(object): delta = time() - start assert len(result) == capped.count() - assert 0.4 < delta < 0.6 + assert 0.25 <...
Expand time range fuzziness to account for slow start.
py
diff --git a/kafka/coordinator/base.py b/kafka/coordinator/base.py index <HASH>..<HASH> 100644 --- a/kafka/coordinator/base.py +++ b/kafka/coordinator/base.py @@ -200,7 +200,10 @@ class BaseCoordinator(object): self._client.poll(future=future) if future.failed(): - if future.r...
Dont need to refresh metadata on GroupCoordinatorNotAvailableErrors
py
diff --git a/alphatwirl/concurrently/TaskPackageDropbox.py b/alphatwirl/concurrently/TaskPackageDropbox.py index <HASH>..<HASH> 100644 --- a/alphatwirl/concurrently/TaskPackageDropbox.py +++ b/alphatwirl/concurrently/TaskPackageDropbox.py @@ -28,8 +28,8 @@ class TaskPackageDropbox(object): self.runid_package_i...
call dispatcher with workingArea and package_index
py
diff --git a/sphinxcontrib_django/docstrings.py b/sphinxcontrib_django/docstrings.py index <HASH>..<HASH> 100644 --- a/sphinxcontrib_django/docstrings.py +++ b/sphinxcontrib_django/docstrings.py @@ -188,7 +188,8 @@ def _resolve_model(field, to): if '.' in to: return apps.get_model(to) else: - ...
Correctly deal with circular ForeignKeys "self" is a special value in Django's ForeignKeys, documented here: <URL>
py
diff --git a/synapse/tests/test_cortex.py b/synapse/tests/test_cortex.py index <HASH>..<HASH> 100644 --- a/synapse/tests/test_cortex.py +++ b/synapse/tests/test_cortex.py @@ -1046,6 +1046,11 @@ class CortexTest(SynTest): core.setConfOpt('membranes', ((name, rules),)) run_tests(core, ms...
Adds test showing membrane config passed into cortex ctor
py
diff --git a/spyderlib/widgets/sourcecode/codeeditor.py b/spyderlib/widgets/sourcecode/codeeditor.py index <HASH>..<HASH> 100644 --- a/spyderlib/widgets/sourcecode/codeeditor.py +++ b/spyderlib/widgets/sourcecode/codeeditor.py @@ -1657,11 +1657,19 @@ class CodeEditor(TextEditBaseWidget): return c...
Account for unmatched parens in indentation
py
diff --git a/zinnia/management/commands/blogger2zinnia.py b/zinnia/management/commands/blogger2zinnia.py index <HASH>..<HASH> 100644 --- a/zinnia/management/commands/blogger2zinnia.py +++ b/zinnia/management/commands/blogger2zinnia.py @@ -137,13 +137,7 @@ class Command(NoArgsCommand): content = post.conten...
better check if entry is already imported
py
diff --git a/hairball/plugins/duplicate.py b/hairball/plugins/duplicate.py index <HASH>..<HASH> 100644 --- a/hairball/plugins/duplicate.py +++ b/hairball/plugins/duplicate.py @@ -24,13 +24,16 @@ class DuplicateScripts(HairballPlugin): Only takes into account scripts with more than 3 blocks""" scripts_...
add conditional statement so scripts defined by user are not considered
py
diff --git a/pgmpy/factors/continuous/CanonicalFactor.py b/pgmpy/factors/continuous/CanonicalFactor.py index <HASH>..<HASH> 100644 --- a/pgmpy/factors/continuous/CanonicalFactor.py +++ b/pgmpy/factors/continuous/CanonicalFactor.py @@ -89,6 +89,11 @@ class CanonicalFactor(ContinuousFactor): super(CanonicalFac...
added CanonicalFactor.assignment
py
diff --git a/numina/array/wavecalib/__main__.py b/numina/array/wavecalib/__main__.py index <HASH>..<HASH> 100644 --- a/numina/array/wavecalib/__main__.py +++ b/numina/array/wavecalib/__main__.py @@ -635,8 +635,16 @@ def main(args=None): # refine wavelength calibration when requested if args.refine: p...
Apply gaussian filtering before wavelength calibration refinement
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -93,6 +93,6 @@ texinfo_documents = [ ] intersphinx_mapping = { - 'https://docs.python.org/3.5': None, - 'https://docs.djangoproject.com/en/1.9/': 'http://docs.djangoproject.com/en/1.9/_objects/', + ...
Bump Python and Django versions in Sphinx configuration
py
diff --git a/utils/lang_update.py b/utils/lang_update.py index <HASH>..<HASH> 100644 --- a/utils/lang_update.py +++ b/utils/lang_update.py @@ -1,6 +1,6 @@ ## Photini - a simple photo metadata editor. ## http://github.com/jim-easterbrook/Photini -## Copyright (C) 2020 Jim Easterbrook jim@jim-easterbrook.me.uk +##...
Don't try to modify non-existing files
py
diff --git a/examples/lstm_chime.py b/examples/lstm_chime.py index <HASH>..<HASH> 100644 --- a/examples/lstm_chime.py +++ b/examples/lstm_chime.py @@ -52,7 +52,7 @@ def batches(dataset): e = theanets.Experiment( theanets.recurrent.Classifier, - layers=(39, ('lstm', 100), ('lstm', 200), ('lstm', 78), 51), + ...
Update LSTM example to match benchmark configuration.
py
diff --git a/py/checkers/checker.py b/py/checkers/checker.py index <HASH>..<HASH> 100755 --- a/py/checkers/checker.py +++ b/py/checkers/checker.py @@ -351,7 +351,7 @@ class Checker(object): %(columns)s from %(table_name)s use index (primary) where %(keyspace_sql)s - %(r...
Fixing a checker issue with the SQL.
py
diff --git a/utils.py b/utils.py index <HASH>..<HASH> 100644 --- a/utils.py +++ b/utils.py @@ -16,7 +16,11 @@ def mstack(vs, fs): def wget(url, dest_fname=None): - import urllib.request, urllib.error, urllib.parse + try: #python3 + from urllib.request import urlopen + except: #python2 + from...
Fix for python2/3 compatibility issue with urllib
py
diff --git a/pyarlo/camera.py b/pyarlo/camera.py index <HASH>..<HASH> 100644 --- a/pyarlo/camera.py +++ b/pyarlo/camera.py @@ -97,16 +97,24 @@ class ArloCamera(object): except IndexError: return None - @property - def captured_today(self): - """Return list of <ArloVideo> object cap...
Created function to allow searching for videos per camera and date range
py
diff --git a/slacker/__init__.py b/slacker/__init__.py index <HASH>..<HASH> 100644 --- a/slacker/__init__.py +++ b/slacker/__init__.py @@ -42,6 +42,7 @@ class Response(object): self.body = json.loads(body) self.successful = self.body['ok'] self.error = self.body.get('error') + def __str_...
Fix PEP 8: expected 1 blank line, found 0
py
diff --git a/ls/joyous/models/events.py b/ls/joyous/models/events.py index <HASH>..<HASH> 100644 --- a/ls/joyous/models/events.py +++ b/ls/joyous/models/events.py @@ -937,15 +937,11 @@ class RecurringEventPage(Page, EventBase): """ myNow = timezone.localtime(timezone=self.tz) daysDelta = dt.t...
postponements can be created after the until date so ignore that for working out the status of a recurring event
py
diff --git a/python_modules/dagster/dagster/core/storage/event_log/migration.py b/python_modules/dagster/dagster/core/storage/event_log/migration.py index <HASH>..<HASH> 100644 --- a/python_modules/dagster/dagster/core/storage/event_log/migration.py +++ b/python_modules/dagster/dagster/core/storage/event_log/migration....
[easy] run make isort to greenify master Summary: See title Test Plan: BK Reviewers: prha, alangenfeld, johann, max Reviewed By: alangenfeld Differential Revision: <URL>
py
diff --git a/src/p4p/client/raw.py b/src/p4p/client/raw.py index <HASH>..<HASH> 100644 --- a/src/p4p/client/raw.py +++ b/src/p4p/client/raw.py @@ -178,11 +178,6 @@ class Context(object): _all_contexts.discard(self) - def __del__(self): - if self._ctxt is not None: - warnings.warn("%s c...
drop "collected without close()" warning Should no longer be relevant.
py
diff --git a/salt/modules/alternatives.py b/salt/modules/alternatives.py index <HASH>..<HASH> 100644 --- a/salt/modules/alternatives.py +++ b/salt/modules/alternatives.py @@ -59,7 +59,7 @@ def display(name): salt '*' alternatives.display editor """ cmd = [_get_cmd(), "--display", name] - out = __s...
alternatives: Don't log error when running alternatives --display... on nonexistant target. These functions are used for information gathering and can result in a lot of noise for something that is not an error condition.
py
diff --git a/pandasdmx/reader/sdmxml.py b/pandasdmx/reader/sdmxml.py index <HASH>..<HASH> 100644 --- a/pandasdmx/reader/sdmxml.py +++ b/pandasdmx/reader/sdmxml.py @@ -125,6 +125,7 @@ METHOD = { 'AnnotationTitle': 'text', 'AnnotationURL': 'text', 'Email': 'text', + 'None': 'text', 'Telephone':...
Parse 'None' AttributeRelationship in SDMX-ML
py
diff --git a/psamm/commands/psammotate.py b/psamm/commands/psammotate.py index <HASH>..<HASH> 100644 --- a/psamm/commands/psammotate.py +++ b/psamm/commands/psammotate.py @@ -72,6 +72,23 @@ class PsammotateCommand(Command): def run(self): """Run psammotate command""" + + # check the maximum colum...
check the maximum column of RBH file in psammotate, print error if column doesn't meet requirment
py
diff --git a/lark/tools/nearley.py b/lark/tools/nearley.py index <HASH>..<HASH> 100644 --- a/lark/tools/nearley.py +++ b/lark/tools/nearley.py @@ -111,17 +111,9 @@ def _nearley_to_lark(g, builtin_path, n2l, js_code, folder_path, includes=None): for statement in tree.children: if statement.data == 'directi...
Refactor nearley builtin and include
py
diff --git a/src/collectors/elasticsearch/elasticsearch.py b/src/collectors/elasticsearch/elasticsearch.py index <HASH>..<HASH> 100755 --- a/src/collectors/elasticsearch/elasticsearch.py +++ b/src/collectors/elasticsearch/elasticsearch.py @@ -356,7 +356,8 @@ class ElasticSearchCollector(diamond.collector.Collector): ...
Avoid crash when network data isn't there (ES <I>)
py
diff --git a/photon.py b/photon.py index <HASH>..<HASH> 100644 --- a/photon.py +++ b/photon.py @@ -9,6 +9,7 @@ import random import warnings import argparse import threading +from math import log from re import search, findall from requests import get, post @@ -81,7 +82,7 @@ args = parser.parse_args() def upd...
Evaluate entropy of found keys to avoid false positives
py
diff --git a/cassandra/cqlengine/query.py b/cassandra/cqlengine/query.py index <HASH>..<HASH> 100644 --- a/cassandra/cqlengine/query.py +++ b/cassandra/cqlengine/query.py @@ -1178,7 +1178,7 @@ class ModelQuerySet(AbstractQuerySet): self._execute(us) null_conditional = [condition for condition in...
handle None conditional PYTHON-<I>
py
diff --git a/tests/testapp/test_helpers.py b/tests/testapp/test_helpers.py index <HASH>..<HASH> 100644 --- a/tests/testapp/test_helpers.py +++ b/tests/testapp/test_helpers.py @@ -4,11 +4,32 @@ from django.test.utils import get_runner from django.utils import six from django_performance_testing import context from dj...
prefactoring: make NameValue orderable in py<I> by turning it into an object from namedtuple
py
diff --git a/src/satosa/frontends/saml2.py b/src/satosa/frontends/saml2.py index <HASH>..<HASH> 100644 --- a/src/satosa/frontends/saml2.py +++ b/src/satosa/frontends/saml2.py @@ -3,6 +3,7 @@ A pysaml2 frontend module for the satosa proxy """ import copy +import json import logging from urllib.parse import urlparse...
Log returned attributes in SAML frontend.
py
diff --git a/quart/serving/h2.py b/quart/serving/h2.py index <HASH>..<HASH> 100644 --- a/quart/serving/h2.py +++ b/quart/serving/h2.py @@ -88,7 +88,7 @@ class H2Server(HTTPProtocol): elif isinstance(event, h2.events.DataReceived): self.streams[event.stream_id].append(event.data) ...
HTTP/2 bug fix on Stream Reset The task need only be cancelled on this event as the _after_request method will cleanup.
py
diff --git a/billy/web/public/urls.py b/billy/web/public/urls.py index <HASH>..<HASH> 100644 --- a/billy/web/public/urls.py +++ b/billy/web/public/urls.py @@ -48,6 +48,9 @@ urlpatterns += patterns( url(r'^favorites/set_notification_preference/$', 'billy.web.public.views.favorites.set_notification_preferen...
Added fave bills CSV download url
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -83,9 +83,13 @@ def runSetup(): if sys.platform != 'linux' or 'linux2': all_reqs.remove(htcondor) + if not sys.version_info[0] == 2: + raise RuntimeError("Toil currently requires Python 2, but we're w...
Fail installation if not running Python<I> (#<I>) This makes Toil consistent with the documentation, which specifies that Toil currently only supports Python <I>.
py
diff --git a/AWSScout2/utils_ec2.py b/AWSScout2/utils_ec2.py index <HASH>..<HASH> 100644 --- a/AWSScout2/utils_ec2.py +++ b/AWSScout2/utils_ec2.py @@ -197,6 +197,7 @@ def get_instance_info(ec2_connection, q, paramas): vpc_info = region_info['vpcs'] vpc_id = i.vpc_id if i.vpc_id else 'no-vpc' ...
Set the VPC ID when instances are found too (EC2 classic)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,14 +11,14 @@ import logging import platform import subprocess from codecs import open as cd_open # useless in py 3.x +from distutils.command.clean import clean as Clean import Cython as cth from Cython.Distutils impo...
[linetrace] modifying setup
py
diff --git a/mayalauncher.py b/mayalauncher.py index <HASH>..<HASH> 100755 --- a/mayalauncher.py +++ b/mayalauncher.py @@ -22,11 +22,8 @@ import collections from pathlib import Path +logging.basicConfig(stream=sys.stdout, level=logging.INFO) logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO)...
Fixed logging handler, removed hardcodewd debug
py
diff --git a/azure-kusto-ingest/azure/kusto/ingest/_descriptors.py b/azure-kusto-ingest/azure/kusto/ingest/_descriptors.py index <HASH>..<HASH> 100644 --- a/azure-kusto-ingest/azure/kusto/ingest/_descriptors.py +++ b/azure-kusto-ingest/azure/kusto/ingest/_descriptors.py @@ -87,7 +87,6 @@ class StreamDescriptor(object):...
Update _descriptors.py
py
diff --git a/mbed/mbed.py b/mbed/mbed.py index <HASH>..<HASH> 100644 --- a/mbed/mbed.py +++ b/mbed/mbed.py @@ -1251,14 +1251,16 @@ def test(list=False): # Gather remaining arguments and prepare environment variables args = remainder repo = Repo.fromrepo() - file = os.path.join(repo.scm...
Wrapping popen call for 'mbed test --list' in try/except
py
diff --git a/git_pull_request/__init__.py b/git_pull_request/__init__.py index <HASH>..<HASH> 100644 --- a/git_pull_request/__init__.py +++ b/git_pull_request/__init__.py @@ -178,15 +178,23 @@ def git_pull_request(remote_branch=None): "$EDITOR is unset, you will not be able to edit the " ...
Set title as log if log len is 1
py