diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/uni_form/helpers.py b/uni_form/helpers.py
index <HASH>..<HASH> 100644
--- a/uni_form/helpers.py
+++ b/uni_form/helpers.py
@@ -303,13 +303,13 @@ class FormHelper(object):
form_method = property(get_form_method, set_form_method)
def get_form_action(self):
- return self._form_action
- ... | Lazy reverse of helper.action Prevents ImproperlyConfigured exception when using direct_to_template and form with attached helper | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -51,7 +51,7 @@ if sys.version_info < (2, 7):
setup(
name='pysaml2',
- version='2.2.0',
+ version='2.2.1beta',
description='Python implementation of SAML Version 2 to be used in a WSGI environment',
# lo... | Just to mark that we start on the next version. | py |
diff --git a/bulbs/content/models.py b/bulbs/content/models.py
index <HASH>..<HASH> 100644
--- a/bulbs/content/models.py
+++ b/bulbs/content/models.py
@@ -4,23 +4,21 @@ that we want any piece of content to have."""
from django.conf import settings
from django.contrib.contenttypes.models import ContentType
from djang... | Updated import ordering + pep8 blank line | py |
diff --git a/test/test_torconfig.py b/test/test_torconfig.py
index <HASH>..<HASH> 100644
--- a/test/test_torconfig.py
+++ b/test/test_torconfig.py
@@ -1112,6 +1112,8 @@ class EndpointTests(unittest.TestCase):
self.protocol.answers.append('HiddenServiceOptions')
self.config.bootstrap()
self.as... | gratuitously call __repr__ method for more code-coverage | py |
diff --git a/ctypeslib/codegen/codegenerator.py b/ctypeslib/codegen/codegenerator.py
index <HASH>..<HASH> 100644
--- a/ctypeslib/codegen/codegenerator.py
+++ b/ctypeslib/codegen/codegenerator.py
@@ -42,7 +42,6 @@ class Generator(object):
self.output = output
self.stream = StringIO.StringIO()
... | cleaning pydoc a bit | py |
diff --git a/tests/ansible/tests/affinity_test.py b/tests/ansible/tests/affinity_test.py
index <HASH>..<HASH> 100644
--- a/tests/ansible/tests/affinity_test.py
+++ b/tests/ansible/tests/affinity_test.py
@@ -179,7 +179,8 @@ class LinuxPolicyTest(testlib.TestCase):
try:
for line in fp:
... | Support multi-word cpusets From cpuset(7): > For masks longer than one word, a comma separator is used between > words. Words are displayed in big-endian order, which has the most > significant bit first. The hex digits within a word are also in > big-endian order. | py |
diff --git a/src/virtual-wan/azext_vwan/custom.py b/src/virtual-wan/azext_vwan/custom.py
index <HASH>..<HASH> 100644
--- a/src/virtual-wan/azext_vwan/custom.py
+++ b/src/virtual-wan/azext_vwan/custom.py
@@ -395,9 +395,10 @@ def create_vpn_gateway(cmd, resource_group_name, gateway_name, virtual_hub,
client = networ... | Update custom.py (#<I>) | py |
diff --git a/heron/tools/cli/src/python/args.py b/heron/tools/cli/src/python/args.py
index <HASH>..<HASH> 100644
--- a/heron/tools/cli/src/python/args.py
+++ b/heron/tools/cli/src/python/args.py
@@ -14,6 +14,7 @@
''' args.py '''
import argparse
import os
+import sys
import heron.tools.common.src.python.utils.conf... | Colorful dry-run output when we output to TTY device. (#<I>) | py |
diff --git a/bookstore/clone.py b/bookstore/clone.py
index <HASH>..<HASH> 100644
--- a/bookstore/clone.py
+++ b/bookstore/clone.py
@@ -64,7 +64,14 @@ class BookstoreCloneHandler(IPythonHandler):
self.write(self.render_template('clone.html', **template_params))
def construct_template_params(self, s3_buck... | Update bookstore/clone.py | py |
diff --git a/bettercache/tests/test_objects.py b/bettercache/tests/test_objects.py
index <HASH>..<HASH> 100644
--- a/bettercache/tests/test_objects.py
+++ b/bettercache/tests/test_objects.py
@@ -17,6 +17,13 @@ class D(CacheModel):
a = Key()
b = Key()
+class E(CacheModel):
+ a = Key()
+ b = Field()
+
+... | [release/<I>] Verifying the recent CacheModel.from_miss() method with a new test case. | py |
diff --git a/test/unit/test_runner.py b/test/unit/test_runner.py
index <HASH>..<HASH> 100644
--- a/test/unit/test_runner.py
+++ b/test/unit/test_runner.py
@@ -29,6 +29,7 @@ def rc(request, tmpdir):
rc.job_timeout = .1
rc.idle_timeout = 0
rc.pexpect_timeout = .1
+ rc.pexpect_use_poll = True
return... | Set pexpect_use_poll for unittests This is a follow-up patch for issue/<I> which broke unittests. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ requirements = [
HERE = os.path.dirname(__file__)
try:
- long_description = open(os.path.join(HERE, 'README.rst')).read()
+ long_description = open(os.path.join(HERE, 'README.md')).read()
except:
... | Never had a README.rst so read from README.md | py |
diff --git a/fluent_contents/models/mixins.py b/fluent_contents/models/mixins.py
index <HASH>..<HASH> 100644
--- a/fluent_contents/models/mixins.py
+++ b/fluent_contents/models/mixins.py
@@ -17,12 +17,13 @@ class CachedModelMixin(object):
def delete(self, *args, **kwargs):
deleted_pk = self.pk
- ... | Make sure our CachedModelMixin.delete() also returns the collector results | py |
diff --git a/salt/crypt.py b/salt/crypt.py
index <HASH>..<HASH> 100644
--- a/salt/crypt.py
+++ b/salt/crypt.py
@@ -238,7 +238,7 @@ class Auth(object):
'minion.\nOr restart the Salt Master in open mode to '
'clean out the keys. The Salt Minion will now exit.'
... | Exit Salt Minion with return code 0 if its public key got rejected by Salt Master, so that Upstart will not respawn the Salt Minion service forever. | py |
diff --git a/tests/worksheet_test.py b/tests/worksheet_test.py
index <HASH>..<HASH> 100644
--- a/tests/worksheet_test.py
+++ b/tests/worksheet_test.py
@@ -752,6 +752,14 @@ class WorksheetTest(GspreadTest):
b3 = self.sheet.acell("B3", value_render_option=utils.ValueRenderOption.formula)
self.assertEqua... | Add tests for inherit_from_before Ensure that wrong combinations of the parameter and the row index cause exceptions to be raised. | py |
diff --git a/luigi/parameter.py b/luigi/parameter.py
index <HASH>..<HASH> 100644
--- a/luigi/parameter.py
+++ b/luigi/parameter.py
@@ -301,7 +301,6 @@ class Parameter(object):
f = parser.add_argument
f(flag,
help=' '.join(description),
- default=None,
action=action,
... | Trying to remove default=None for parameters Found some claims that a regression was introduced in Python <I> that might cause issues: - <URL> | py |
diff --git a/salt/states/pagerduty_escalation_policy.py b/salt/states/pagerduty_escalation_policy.py
index <HASH>..<HASH> 100644
--- a/salt/states/pagerduty_escalation_policy.py
+++ b/salt/states/pagerduty_escalation_policy.py
@@ -49,7 +49,7 @@ def present(profile='pagerduty', subdomain=None, api_key=None, **kwargs):
... | Fix typo additonal -> addition | py |
diff --git a/test/test_nested.py b/test/test_nested.py
index <HASH>..<HASH> 100644
--- a/test/test_nested.py
+++ b/test/test_nested.py
@@ -485,7 +485,6 @@ print('I am nested [nested] with seed [seed]')
[0]
reps = range(5)
input: for_each='reps'
-task: concurrent=True
import random
nested = _reps
seed = random.ran... | Fix test for running sos_run inside task | py |
diff --git a/salt/modules/boto_ec2.py b/salt/modules/boto_ec2.py
index <HASH>..<HASH> 100644
--- a/salt/modules/boto_ec2.py
+++ b/salt/modules/boto_ec2.py
@@ -153,7 +153,7 @@ def find_instances(instance_id=None, name=None, tags=None, region=None,
return False
-def create_image(ami_name, instance_id=None, n... | Rename name parameter to make a distinction between ami and instance name | py |
diff --git a/synapse/cores/common.py b/synapse/cores/common.py
index <HASH>..<HASH> 100644
--- a/synapse/cores/common.py
+++ b/synapse/cores/common.py
@@ -1748,8 +1748,6 @@ class Cortex(EventBus,DataModel):
self.fire('tufo:set', tufo=tufo, props=props)
self.fire('tufo:props:%s' % (form,), tufo... | removed vestigial cache lookup in set props | py |
diff --git a/test_howdoi.py b/test_howdoi.py
index <HASH>..<HASH> 100644
--- a/test_howdoi.py
+++ b/test_howdoi.py
@@ -195,8 +195,12 @@ class HowdoiTestCase(unittest.TestCase): # pylint: disable=too-many-public-meth
query = self.queries[0]
normal = howdoi.howdoi(query)
colorized = howdoi.how... | Disable colorization check in Github I tried a lot of different things to make it work ``` env: PY_COLORS: '1' ANSIBLE_FORCE_COLOR: '1' FORCE_COLOR: '1' ``` I also tried ``` export TERM=xterm-<I>color; ``` But Github refuses to colorize. Seems to be a problem with Github Actions not b... | py |
diff --git a/django_airavata/wagtailapps/base/blocks.py b/django_airavata/wagtailapps/base/blocks.py
index <HASH>..<HASH> 100644
--- a/django_airavata/wagtailapps/base/blocks.py
+++ b/django_airavata/wagtailapps/base/blocks.py
@@ -524,7 +524,8 @@ class BaseStreamBlock(StreamBlock):
bootstrap_embed_video = Bootstra... | AIRAVATA-<I> Update label and icon of CodeBlock | py |
diff --git a/toytree/__init__.py b/toytree/__init__.py
index <HASH>..<HASH> 100644
--- a/toytree/__init__.py
+++ b/toytree/__init__.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-__version__ = "devel-test"
+__version__ = "0.1.6"
__author__ = "Deren Eaton" | Updating toytree/__init__.py to version <I> | py |
diff --git a/telephus/client.py b/telephus/client.py
index <HASH>..<HASH> 100644
--- a/telephus/client.py
+++ b/telephus/client.py
@@ -168,7 +168,7 @@ class CassandraClient(object):
cp = self._getpath(column_family, column, super_column)
timestamp = timestamp or self._time()
consistency = con... | Use consistency instead of self.consistency remove() and remove_counter() both were using self.consistency instead of just 'consistency', which is calculated from the passed argument and self.consistency. | py |
diff --git a/tenant_schemas/template_loaders.py b/tenant_schemas/template_loaders.py
index <HASH>..<HASH> 100644
--- a/tenant_schemas/template_loaders.py
+++ b/tenant_schemas/template_loaders.py
@@ -108,9 +108,9 @@ class FilesystemLoader(BaseLoader):
for template_dir in template_dirs:
try:
... | Fix regression introduced in cb<I>d - path construction changed from domain_url to schema_name | py |
diff --git a/sos/plugins/puppet.py b/sos/plugins/puppet.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/puppet.py
+++ b/sos/plugins/puppet.py
@@ -16,6 +16,8 @@ class Puppet(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
plugin_name = 'puppet'
profiles = ('services',)
+ packages = ('puppet', 'puppet-... | [puppet] add package checks Previously this had no checks and would run for every sosreport, many of which don't have puppet installed. There have been several name changes so I included a lot of package names to try to cover all of the possible versions/distros. Resolves: #<I> | py |
diff --git a/spinoff/tests/actor_test.py b/spinoff/tests/actor_test.py
index <HASH>..<HASH> 100644
--- a/spinoff/tests/actor_test.py
+++ b/spinoff/tests/actor_test.py
@@ -2655,7 +2655,7 @@ def test_sending_to_a_remote_ref_that_points_to_a_local_ref_is_redirected(clock)
node = network.node('localhost:123')
m... | Slight semantic enhancement in a remoting test | py |
diff --git a/lib/svtplay_dl/service/qbrick.py b/lib/svtplay_dl/service/qbrick.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/service/qbrick.py
+++ b/lib/svtplay_dl/service/qbrick.py
@@ -82,6 +82,6 @@ class Qbrick(Service, OpenGraphThumbMixin):
path = select_quality(options, streams)
- options.o... | qbrick: they are using space in the path. | py |
diff --git a/anytemplate/tests/common.py b/anytemplate/tests/common.py
index <HASH>..<HASH> 100644
--- a/anytemplate/tests/common.py
+++ b/anytemplate/tests/common.py
@@ -2,7 +2,11 @@
# Copyright (C) 2015 Satoru SATOH <ssato at redhat.com>
# License: MIT
#
+# pylint: disable=missing-docstring
+from __future__ import... | refactor: add a context to setup dirs in .test.common | py |
diff --git a/ptpython/python_input.py b/ptpython/python_input.py
index <HASH>..<HASH> 100644
--- a/ptpython/python_input.py
+++ b/ptpython/python_input.py
@@ -222,6 +222,8 @@ class PythonInput(object):
# Use a KeyBindingManager for loading the key bindings.
self.key_bindings_manager = KeyBindingMana... | Enable search/abort/exit bindings again. (Disabled by default in new prompt-toolkit. | py |
diff --git a/invenio_records/api.py b/invenio_records/api.py
index <HASH>..<HASH> 100644
--- a/invenio_records/api.py
+++ b/invenio_records/api.py
@@ -46,6 +46,9 @@ class RecordBase(dict):
of the record.
"""
+ enable_jsonref = True
+ """Class-level attribute to control if JSONRef replacement is suppor... | api: add feature to disable JSONRef replacement | py |
diff --git a/kubespawner/utils.py b/kubespawner/utils.py
index <HASH>..<HASH> 100644
--- a/kubespawner/utils.py
+++ b/kubespawner/utils.py
@@ -118,7 +118,6 @@ def k8s_url(namespace, kind, name=None, label_selector=None):
if name is not None:
url_parts.append(name)
path = '/' + '/'.join(url_parts)
- ... | Remove stray print statement Debuggggingg | py |
diff --git a/test_isort.py b/test_isort.py
index <HASH>..<HASH> 100644
--- a/test_isort.py
+++ b/test_isort.py
@@ -1081,3 +1081,27 @@ def test_place_comments():
"# isort:imports-stdlib\n"
"import os\n"
"import sys\n")
+
+
+def test_plac... | Add test for placement control with shared package prefixes (issue #<I>) | py |
diff --git a/bcbio/rnaseq/variation.py b/bcbio/rnaseq/variation.py
index <HASH>..<HASH> 100644
--- a/bcbio/rnaseq/variation.py
+++ b/bcbio/rnaseq/variation.py
@@ -22,6 +22,10 @@ def gatk_splitreads(data):
deduped_bam = dd.get_deduped_bam(data)
base, ext = os.path.splitext(deduped_bam)
split_bam = base + ... | Allow SplitNCigarReads to handle Illumina <I>-<I> quality scores. | py |
diff --git a/niworkflows/interfaces/segmentation.py b/niworkflows/interfaces/segmentation.py
index <HASH>..<HASH> 100644
--- a/niworkflows/interfaces/segmentation.py
+++ b/niworkflows/interfaces/segmentation.py
@@ -112,6 +112,10 @@ class MELODICRPT(reporting.ReportCapableInterface, fsl.MELODIC):
def _generate_re... | FIX: Create empty report file on missing MELODIC mix | py |
diff --git a/pymatgen/analysis/elasticity/elastic.py b/pymatgen/analysis/elasticity/elastic.py
index <HASH>..<HASH> 100644
--- a/pymatgen/analysis/elasticity/elastic.py
+++ b/pymatgen/analysis/elasticity/elastic.py
@@ -962,6 +962,9 @@ def get_strain_state_dict(strains, stresses, eq_stress=None,
mode = (templat... | moved strain state determination to before add eq to prevent bug | py |
diff --git a/kaggle/api/kaggle_api_extended.py b/kaggle/api/kaggle_api_extended.py
index <HASH>..<HASH> 100644
--- a/kaggle/api/kaggle_api_extended.py
+++ b/kaggle/api/kaggle_api_extended.py
@@ -173,7 +173,7 @@ class KaggleApi(KaggleApi):
# Cert File
- if self.CONFIG_NAME_CA_CERTS in con... | fixed CONFIG_NAME_SSL_CA_CERT not being checked | py |
diff --git a/sentry/tests/tests.py b/sentry/tests/tests.py
index <HASH>..<HASH> 100644
--- a/sentry/tests/tests.py
+++ b/sentry/tests/tests.py
@@ -628,8 +628,10 @@ class SentryTestCase(TestCase):
last = Message.objects.get()
self.assertEquals(last.data['__sentry__']['versions']['sentry'], sentry.VERSI... | Ensure module is included in version tests | py |
diff --git a/synapse/tests/test_tools_csvtool.py b/synapse/tests/test_tools_csvtool.py
index <HASH>..<HASH> 100644
--- a/synapse/tests/test_tools_csvtool.py
+++ b/synapse/tests/test_tools_csvtool.py
@@ -41,7 +41,7 @@ class CsvToolTest(s_t_utils.SynTest):
podes = []
- argv = ['--csv-h... | Tweak exising csvtool to call cortex via named arg | py |
diff --git a/alarmdecoder/messages.py b/alarmdecoder/messages.py
index <HASH>..<HASH> 100644
--- a/alarmdecoder/messages.py
+++ b/alarmdecoder/messages.py
@@ -90,7 +90,7 @@ class Message(BaseMessage):
"""
BaseMessage.__init__(self)
- self._regex = re.compile('("(?:[^"]|"")*"|[^,]*),("(?:[^"]|... | Reworked regex so that it doesn't give me nightmares. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -85,7 +85,7 @@ install_requires = [
'Flask-BabelEx>=0.9.2',
'invenio-pidstore>=1.0.0',
'invenio-records>=1.0.0',
- 'invenio-rest>=1.1.1',
+ 'invenio-rest>=1.1.2',
'invenio-indexer>=1.1.0',
'pytho... | global: bump invenio-rest version (#<I>) | py |
diff --git a/tests/integration/integration_tests_plugin.py b/tests/integration/integration_tests_plugin.py
index <HASH>..<HASH> 100644
--- a/tests/integration/integration_tests_plugin.py
+++ b/tests/integration/integration_tests_plugin.py
@@ -43,7 +43,7 @@ def output_file_url(request, file_server):
@pytest.fixture(s... | Fix bug: default capability should be firefox Just a hangover from some local testing | py |
diff --git a/openstack_dashboard/dashboards/project/firewalls/tables.py b/openstack_dashboard/dashboards/project/firewalls/tables.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/dashboards/project/firewalls/tables.py
+++ b/openstack_dashboard/dashboards/project/firewalls/tables.py
@@ -195,6 +195,10 @@ def get_... | made action value translatable in firewall rules table In firewall rules table, the value of action column is not translatable In this patch, it is adding display choices tuple with translatable option. Change-Id: Id<I>bd4ed<I>e<I>bda<I>e5b3aebd<I>cd<I>c Closes-Bug: #<I> | py |
diff --git a/keyring/backends/kwallet.py b/keyring/backends/kwallet.py
index <HASH>..<HASH> 100644
--- a/keyring/backends/kwallet.py
+++ b/keyring/backends/kwallet.py
@@ -1,5 +1,6 @@
import sys
import os
+import contextlib
from ..backend import KeyringBackend
from ..errors import PasswordDeleteError
@@ -16,18 +17... | Extract _id_from_argv and also trap TypeError. Fixes #<I>. | py |
diff --git a/prob2020/python/sequence_context.py b/prob2020/python/sequence_context.py
index <HASH>..<HASH> 100644
--- a/prob2020/python/sequence_context.py
+++ b/prob2020/python/sequence_context.py
@@ -11,7 +11,11 @@ class SequenceContext(object):
def __init__(self, gene_seq, seed=None):
self._init_conte... | Major fix to bug where order of sequence context would alter the state of the pseudo random number generator | py |
diff --git a/textx/model.py b/textx/model.py
index <HASH>..<HASH> 100644
--- a/textx/model.py
+++ b/textx/model.py
@@ -268,10 +268,11 @@ def parse_tree_to_objgraph(parser, parse_tree):
# TODO: Classes must match
return metamodel.builtins[obj_ref.obj_name]
+ line, c... | Better reporting of bad object references. Reporting position if a object reference to unexisting named object has been made. | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -43,6 +43,7 @@ extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.coverage',
'sphinx.ext.imgmath',
+ 'sphinx.ext.napoleon',
'sphinx.ext.viewcode',
]
@@ -141,20 +142,13 @@ todo_include_to... | changed docs to sphinx_rtd_theme. | py |
diff --git a/test/test_thread_util.py b/test/test_thread_util.py
index <HASH>..<HASH> 100644
--- a/test/test_thread_util.py
+++ b/test/test_thread_util.py
@@ -54,6 +54,9 @@ class TestIdent(unittest.TestCase):
child's callback was not
"""
def _test_ident(self, use_greenlets):
+ if 'java' in sys.p... | Skip test_ident in Jython. | py |
diff --git a/glue_vispy_viewers/scatter/layer_state.py b/glue_vispy_viewers/scatter/layer_state.py
index <HASH>..<HASH> 100644
--- a/glue_vispy_viewers/scatter/layer_state.py
+++ b/glue_vispy_viewers/scatter/layer_state.py
@@ -70,7 +70,7 @@ class ScatterLayerState(VispyLayerState):
if self.layer is not None:... | Fix typo that caused color to not sync properly in 3D scatter viewer | py |
diff --git a/tests/ignite/engine/test_engine.py b/tests/ignite/engine/test_engine.py
index <HASH>..<HASH> 100644
--- a/tests/ignite/engine/test_engine.py
+++ b/tests/ignite/engine/test_engine.py
@@ -39,6 +39,9 @@ def test_terminate():
def test_invalid_process_raises_with_invalid_signature():
with pytest.raises(... | Improve test coverage (#<I>) | py |
diff --git a/shutit_global.py b/shutit_global.py
index <HASH>..<HASH> 100644
--- a/shutit_global.py
+++ b/shutit_global.py
@@ -1353,7 +1353,7 @@ class ShutIt(object):
# Set the cols value, as unpleasant escapes are put in the output if the
# input is > n chars wide.
self.send(
- ("SHUTIT_BACKUP_PS1_%s=$PS1 &... | reduce to reasonable value and multiple of <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,8 @@
from setuptools import setup
+
+with open('requirements.txt') as f:
+ requirements = [x.strip() for x in f.readlines()]
+
setup(
name='instabot',
packages=['instabot', 'instabot.bot', 'instabot.api'... | read 'requirements.txt' inside 'setup.py' | py |
diff --git a/py/test/session.py b/py/test/session.py
index <HASH>..<HASH> 100644
--- a/py/test/session.py
+++ b/py/test/session.py
@@ -52,6 +52,8 @@ def itemgen(session, colitems, reporter, keyword=None):
reporter(repevent.SkippedTryiter(excinfo, next))
else:
r... | [svn r<I>] also allow using pdb in failures of the collection process --HG-- branch : trunk | py |
diff --git a/munigeo/api.py b/munigeo/api.py
index <HASH>..<HASH> 100644
--- a/munigeo/api.py
+++ b/munigeo/api.py
@@ -79,6 +79,7 @@ class TranslatedModelSerializer(serializers.ModelSerializer):
self.translated_fields = trans_opts.fields.keys()
lang_codes = [x[0] for x in settings.LANGUAGES]
+ ... | Fix compatibility problem with Python <I> | py |
diff --git a/formats/base.py b/formats/base.py
index <HASH>..<HASH> 100644
--- a/formats/base.py
+++ b/formats/base.py
@@ -819,7 +819,7 @@ def split(args):
logging.debug("option -all override N")
N = fs.num_records
else:
- N = int(N)
+ N = min(fs.num_records, int(N))
assert... | [formats] base.split() check number of records first | py |
diff --git a/compliance_checker/cfutil.py b/compliance_checker/cfutil.py
index <HASH>..<HASH> 100644
--- a/compliance_checker/cfutil.py
+++ b/compliance_checker/cfutil.py
@@ -725,9 +725,8 @@ def get_axis_map(ds, variable):
# For example
# {'x': ['longitude'], 'y': ['latitude'], 't': ['time']}
- axis_map ... | Fixed issue with get_axis_map using sets instead of lists | py |
diff --git a/www/tests/test_math.py b/www/tests/test_math.py
index <HASH>..<HASH> 100644
--- a/www/tests/test_math.py
+++ b/www/tests/test_math.py
@@ -218,7 +218,7 @@ x = Angle(36.9, (1,2))
y = Angle(53.1, (3,4))
assert (x, x + y, x < y, x ** 0.5) == (36.9, 90.0, True, 6.074537019394976)
-assert abs(math.sin(x) + 0... | Use almost_equal in test_math | py |
diff --git a/sentinelsat/sentinel.py b/sentinelsat/sentinel.py
index <HASH>..<HASH> 100644
--- a/sentinelsat/sentinel.py
+++ b/sentinelsat/sentinel.py
@@ -569,7 +569,15 @@ class SentinelAPI:
If the MD5 checksum does not match the checksum on the server.
"""
product_info = self.get_product... | Fix filename for sentintel-5p This patch fixes the issue that sentinel-5p files are downloaded as *.zip files and not as *.nc files. Instead of hard-coding the filename, sentinelsat will now make an HTTP head request to determine the name. In case this request yields no result, the code will still fall back to the old... | py |
diff --git a/gns3server/modules/qemu/qemu_vm.py b/gns3server/modules/qemu/qemu_vm.py
index <HASH>..<HASH> 100644
--- a/gns3server/modules/qemu/qemu_vm.py
+++ b/gns3server/modules/qemu/qemu_vm.py
@@ -987,6 +987,7 @@ class QemuVM(BaseVM):
return options
+ @asyncio.coroutine
def _network_options(self)... | Fixes uncalled coroutine. | py |
diff --git a/dev.py b/dev.py
index <HASH>..<HASH> 100755
--- a/dev.py
+++ b/dev.py
@@ -201,7 +201,8 @@ elif args.command == 'code-quality':
subprocess.run(['flake8'] + files, check=True)
print('python -Wd manage.py check')
- subprocess.run(['python', '-Wd', 'manage.py', 'check'], cwd=CADIR, check=True)
+... | set secret key for manage.py check invocation | py |
diff --git a/peri/util.py b/peri/util.py
index <HASH>..<HASH> 100644
--- a/peri/util.py
+++ b/peri/util.py
@@ -231,7 +231,7 @@ class Tile(object):
pad : integer or ndarray [3]
anisotropic padding to apply in the contain test
"""
- o = ((items > self.l-pad) & (items < self.r+pad))
+... | Tile.contains now includes objects on the Left edge of tile. | py |
diff --git a/src/discoursegraphs/util.py b/src/discoursegraphs/util.py
index <HASH>..<HASH> 100644
--- a/src/discoursegraphs/util.py
+++ b/src/discoursegraphs/util.py
@@ -256,8 +256,10 @@ def sanitize_string(string_or_unicode):
"""
if isinstance(string_or_unicode, unicode):
return string_or_unicode.s... | minor: made sanitize_string() more robust | py |
diff --git a/jaraco/net/notification.py b/jaraco/net/notification.py
index <HASH>..<HASH> 100644
--- a/jaraco/net/notification.py
+++ b/jaraco/net/notification.py
@@ -18,6 +18,7 @@ import smtplib
import traceback
import itertools
import io
+import contextlib
import six
@@ -146,3 +147,14 @@ class Exceptio... | Demonstrate how the ExceptionNotifier could be implemented as a context manager. | py |
diff --git a/py3status/modules/imap.py b/py3status/modules/imap.py
index <HASH>..<HASH> 100644
--- a/py3status/modules/imap.py
+++ b/py3status/modules/imap.py
@@ -14,7 +14,7 @@ Configuration parameters:
security: login authentication method: 'ssl' or 'starttls'
(startssl needs python 3.2 or later) (defaul... | travis complains about a single misplaced space :| | py |
diff --git a/yowsup/structs/protocolentity.py b/yowsup/structs/protocolentity.py
index <HASH>..<HASH> 100644
--- a/yowsup/structs/protocolentity.py
+++ b/yowsup/structs/protocolentity.py
@@ -38,5 +38,11 @@ class ProtocolEntityTest(unittest.TestCase):
def test_generation(self):
entity = self.ProtocolEnti... | Print protocoltreenode on assertion failure | py |
diff --git a/pyrogram/__init__.py b/pyrogram/__init__.py
index <HASH>..<HASH> 100644
--- a/pyrogram/__init__.py
+++ b/pyrogram/__init__.py
@@ -16,7 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
-__version__ =... | Update Pyrogram to <I> | py |
diff --git a/pmxbot/core.py b/pmxbot/core.py
index <HASH>..<HASH> 100644
--- a/pmxbot/core.py
+++ b/pmxbot/core.py
@@ -251,7 +251,10 @@ class LoggingCommandBot(irc.bot.SingleServerIRCBot):
)
executor(howlong, self.background_runner, arguments)
for action in _at_registry:
- self._schedule_at(connection, *ac... | Log an exception when failing to schedule an action. | py |
diff --git a/src/oidcservice/oidc/add_on/pkce.py b/src/oidcservice/oidc/add_on/pkce.py
index <HASH>..<HASH> 100644
--- a/src/oidcservice/oidc/add_on/pkce.py
+++ b/src/oidcservice/oidc/add_on/pkce.py
@@ -70,7 +70,10 @@ def add_code_verifier(request_args, service, **kwargs):
:param request_args: Set of request argum... | If 'state' isn't in request_args look for it in kwargs, | py |
diff --git a/xclim/indices/_anuclim.py b/xclim/indices/_anuclim.py
index <HASH>..<HASH> 100644
--- a/xclim/indices/_anuclim.py
+++ b/xclim/indices/_anuclim.py
@@ -351,9 +351,6 @@ def prcptot_wetdry_quarter(
xarray.DataArray
Total precipitation values of the wettest/dryest quarter of each year.
- freq ... | Update xclim/indices/_anuclim.py | py |
diff --git a/holoviews/plotting/bokeh/tabular.py b/holoviews/plotting/bokeh/tabular.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/bokeh/tabular.py
+++ b/holoviews/plotting/bokeh/tabular.py
@@ -7,6 +7,8 @@ from ...core import Dataset
from ...element import ItemTable
from ..plot import GenericElementPlot
fro... | Disable reorderable option on bokeh TablePlot (#<I>) | py |
diff --git a/s3backup/sync.py b/s3backup/sync.py
index <HASH>..<HASH> 100644
--- a/s3backup/sync.py
+++ b/s3backup/sync.py
@@ -224,11 +224,11 @@ def get_deferred_function(key, action, to_client, from_client):
raise ValueError('Unknown action provided', action)
-def get_progress_bar(max_value, desc):
+def g... | Remove desc from progress bar and limit it to <I> columns | py |
diff --git a/sql_metadata/parser.py b/sql_metadata/parser.py
index <HASH>..<HASH> 100644
--- a/sql_metadata/parser.py
+++ b/sql_metadata/parser.py
@@ -861,7 +861,7 @@ class Parser: # pylint: disable=R0902
subparser = already_parsed.setdefault(sub_query, Parser(sub_query_definition))
# in subquery you... | added fix for #<I>, ignore case on column alias | py |
diff --git a/custodian/qchem/jobs.py b/custodian/qchem/jobs.py
index <HASH>..<HASH> 100644
--- a/custodian/qchem/jobs.py
+++ b/custodian/qchem/jobs.py
@@ -62,7 +62,7 @@ class QchemJob(Job):
"half_cpus": ["qchem", "-np", "12"]}
large_static_mem: use ultra large static memory
... | adopt command to correct form in the initializer | py |
diff --git a/spyder/utils/tests/test_dochelpers.py b/spyder/utils/tests/test_dochelpers.py
index <HASH>..<HASH> 100644
--- a/spyder/utils/tests/test_dochelpers.py
+++ b/spyder/utils/tests/test_dochelpers.py
@@ -19,18 +19,14 @@ from spyder.utils.dochelpers import getargtxt, getdoc, getobj, isdefined
from spyder.py3comp... | Testing: Skip a test in Python 3 | py |
diff --git a/secretballot/middleware.py b/secretballot/middleware.py
index <HASH>..<HASH> 100644
--- a/secretballot/middleware.py
+++ b/secretballot/middleware.py
@@ -4,7 +4,7 @@ from hashlib import md5
from django import VERSION
a, b = VERSION[:2]
-if a < 1 or a == 1 and b < 10:
+if (a < 1) or (a == 1 and b < 10):... | fix(condition): fixed version test condition. | py |
diff --git a/spinoff/actor/_actor.py b/spinoff/actor/_actor.py
index <HASH>..<HASH> 100644
--- a/spinoff/actor/_actor.py
+++ b/spinoff/actor/_actor.py
@@ -704,6 +704,12 @@ class Actor(object):
def stop(self):
self.ref.stop()
+ def __eq__(self, other):
+ return other is self or self.ref == othe... | Added Actor.{__eq__ and __ne__} | py |
diff --git a/tmtoolkit/corpus/_corpus.py b/tmtoolkit/corpus/_corpus.py
index <HASH>..<HASH> 100644
--- a/tmtoolkit/corpus/_corpus.py
+++ b/tmtoolkit/corpus/_corpus.py
@@ -529,14 +529,15 @@ class Corpus:
# processing (e.g. token transformation, filtering, etc.)
from ._corpusfuncs import doc_texts
- ... | minor fix in spacydocs property | py |
diff --git a/tools/py/writer/jsonld.py b/tools/py/writer/jsonld.py
index <HASH>..<HASH> 100644
--- a/tools/py/writer/jsonld.py
+++ b/tools/py/writer/jsonld.py
@@ -68,7 +68,7 @@ def bind(models, context=None, ignore_oftypes=None, logger=logging):
if typ in ignore_oftypes:
to_remove.append(oid)
... | Fixes to JSON-LD output | py |
diff --git a/heatmiserV3/connection.py b/heatmiserV3/connection.py
index <HASH>..<HASH> 100644
--- a/heatmiserV3/connection.py
+++ b/heatmiserV3/connection.py
@@ -17,9 +17,7 @@ class HeatmiserUH1(object):
def __init__(self, ipaddress, port):
self.thermostats = {}
- self._serport = serial.serial_f... | Updated heatmiser config to match next release | py |
diff --git a/djes/__init__.py b/djes/__init__.py
index <HASH>..<HASH> 100644
--- a/djes/__init__.py
+++ b/djes/__init__.py
@@ -1,3 +1,3 @@
-__version__ = "0.0.1a9"
+__version__ = "0.0.1a10"
default_app_config = "djes.apps.DJESConfig" | What the hell happened with the version? [ci skip] | py |
diff --git a/angr/analyses/cfg/cfg_fast.py b/angr/analyses/cfg/cfg_fast.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/cfg/cfg_fast.py
+++ b/angr/analyses/cfg/cfg_fast.py
@@ -1755,8 +1755,8 @@ class CFGFast(ForwardAnalysis, CFGBase): # pylint: disable=abstract-method
)
self... | CFGFast: Fix a stupid bug. Close #<I>. (#<I>) | py |
diff --git a/lspreader/flds.py b/lspreader/flds.py
index <HASH>..<HASH> 100644
--- a/lspreader/flds.py
+++ b/lspreader/flds.py
@@ -9,7 +9,7 @@ def rect(d,s=None):
if key not in dims ];
shape = [ len( np.unique(d[l]) )
for l in dims ];
- if not s:
+ if s is not None:
s ... | flds.py fix, we need testing | py |
diff --git a/fluent_contents/admin/contentitems.py b/fluent_contents/admin/contentitems.py
index <HASH>..<HASH> 100644
--- a/fluent_contents/admin/contentitems.py
+++ b/fluent_contents/admin/contentitems.py
@@ -44,6 +44,7 @@ class BaseContentItemFormSet(BaseGenericInlineFormSet):
)
f... | Fix orphaned content after layout switch. formset calls instance.save() directly, so also update the instance to be sure the change is applied. | py |
diff --git a/openquake/calculators/event_based_risk.py b/openquake/calculators/event_based_risk.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/event_based_risk.py
+++ b/openquake/calculators/event_based_risk.py
@@ -851,6 +851,7 @@ class EbriskCalculator(base.RiskCalculator):
num_events += res.n... | Storing the number of events as an attribute | py |
diff --git a/python_utils/data_utils.py b/python_utils/data_utils.py
index <HASH>..<HASH> 100644
--- a/python_utils/data_utils.py
+++ b/python_utils/data_utils.py
@@ -111,6 +111,7 @@ def convert_columns_to_multinomial(T, M_c, multinomial_indices):
T_array = numpy.array(T)
for multinomial_idx in multinomial_in... | don't include nan values in set of values present in multinomial columns | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -57,6 +57,5 @@ setup(name='fermipy',
'astropy >= 0.4',
'pyyaml',
'healpy',
- 'ez_setup',
'wcsaxes',
... | Remove dependency on ez_setup. | py |
diff --git a/src/livestreamer/packages/flashmedia/packet.py b/src/livestreamer/packages/flashmedia/packet.py
index <HASH>..<HASH> 100644
--- a/src/livestreamer/packages/flashmedia/packet.py
+++ b/src/livestreamer/packages/flashmedia/packet.py
@@ -344,7 +344,7 @@ class PacketIO(object):
val = self.read(length... | Sync packages.flashmedia with upstream. Fixes #<I>. | py |
diff --git a/girder/models/model_base.py b/girder/models/model_base.py
index <HASH>..<HASH> 100644
--- a/girder/models/model_base.py
+++ b/girder/models/model_base.py
@@ -798,11 +798,25 @@ class AccessControlledModel(Model):
:raises ValidationException: If an invalid ObjectId is passed.
:returns: The ... | Ensure we load 'access' and 'public' requireAccess(...) needs to use 'access' and 'public' so we need to ensure they are loaded. If they were not specified by user, remove them before returning the document. | py |
diff --git a/bcbio/utils.py b/bcbio/utils.py
index <HASH>..<HASH> 100644
--- a/bcbio/utils.py
+++ b/bcbio/utils.py
@@ -271,11 +271,14 @@ def symlink_plus(orig, new):
if os.path.exists(orig + ext) and (not os.path.lexists(new + ext) or not os.path.exists(new + ext)):
with chdir(os.path.dirname(new)... | Trigger symlink failover (copy) when exception is thrown. Attempt to provide a workaround for #<I>. | py |
diff --git a/compose_deploy/remote.py b/compose_deploy/remote.py
index <HASH>..<HASH> 100644
--- a/compose_deploy/remote.py
+++ b/compose_deploy/remote.py
@@ -65,6 +65,11 @@ def remote(server, command=None):
socket_forward_process.terminate()
socket_forward_process.wait()
+ try:
+ os.remove(DOCKER... | Ensure the socket file is cleaned up Apparently socat doesn't always do this. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,5 +14,8 @@ setup(name="livestreamer",
package_dir={'': 'src'},
entry_points={
"console_scripts": ['livestreamer=livestreamer.cli:main']
- }
+ },
+ install_requires=[
+ 'argp... | update setup.py for python<I> since it doesnt ship with argparse | py |
diff --git a/coolfig/test_config.py b/coolfig/test_config.py
index <HASH>..<HASH> 100644
--- a/coolfig/test_config.py
+++ b/coolfig/test_config.py
@@ -170,6 +170,11 @@ def test_list():
assert str_list('a,b,cd, e f g , h ') == ['a', 'b', 'cd', 'e f g', 'h']
+def test_dottedpath():
+ func = types.dottedpath('... | Added tests for the dottedpath type | py |
diff --git a/ipyrad/load/load.py b/ipyrad/load/load.py
index <HASH>..<HASH> 100644
--- a/ipyrad/load/load.py
+++ b/ipyrad/load/load.py
@@ -272,6 +272,12 @@ def load_json(path, quiet=False):
## Now, load in the Sample objects json dicts
sample_names = fullj["samples"].keys()
+ if not sample_names:
+ ... | Testing for empty samples in saved .json, if no samples in saved assembly then it raises an ipyradwarningexit. You can get into this situation somewhat easily, and it's better to handle explicitly bcz otherwise you get an index out of bounds error and it's ugly | py |
diff --git a/chardet/charsetprober.py b/chardet/charsetprober.py
index <HASH>..<HASH> 100644
--- a/chardet/charsetprober.py
+++ b/chardet/charsetprober.py
@@ -54,9 +54,33 @@ class CharSetProber:
return aBuf
def filter_without_english_letters(self, aBuf):
- aBuf = re.sub(b'([A-Za-z])+', b' ', aBuf... | modified the behavior of filter_english_with_letters to mimic the behavior of mozillas version | py |
diff --git a/mr/awsome_fabric/__init__.py b/mr/awsome_fabric/__init__.py
index <HASH>..<HASH> 100644
--- a/mr/awsome_fabric/__init__.py
+++ b/mr/awsome_fabric/__init__.py
@@ -157,6 +157,12 @@ def get_commands(aws):
('do', FabricDoCmd(aws))]
+def get_massagers():
+ from mr.awsome.config import PathMassag... | Add the fabfile massager for all sections. | py |
diff --git a/locksmith/hub/models.py b/locksmith/hub/models.py
index <HASH>..<HASH> 100644
--- a/locksmith/hub/models.py
+++ b/locksmith/hub/models.py
@@ -35,7 +35,7 @@ class Key(models.Model):
status = models.CharField(max_length=1, choices=KEY_STATUSES, default='U')
org_name = models.CharField('Organizati... | change org_url to a char field | py |
diff --git a/master/buildbot/test/integration/test_transfer.py b/master/buildbot/test/integration/test_transfer.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/integration/test_transfer.py
+++ b/master/buildbot/test/integration/test_transfer.py
@@ -115,6 +115,15 @@ def masterGlobConfig():
from buildbot.c... | integration test for getFileContentFromWorker | py |
diff --git a/Geometry/tests/test_point.py b/Geometry/tests/test_point.py
index <HASH>..<HASH> 100644
--- a/Geometry/tests/test_point.py
+++ b/Geometry/tests/test_point.py
@@ -5,7 +5,7 @@ import math
from .. import Point
from ..exceptions import *
-from .. import epsilon
+from ..constants import nearly_eq
class... | changed EpsilonEqual to use constant.nearly_eq | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -109,6 +109,7 @@ html_static_path = ['_static']
#
# This is required for the alabaster theme
# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars
+
html_sidebars = {
'**': [
... | disable css override, since it breaks RtD completely | py |
diff --git a/pyfolio/tests/test_timeseries.py b/pyfolio/tests/test_timeseries.py
index <HASH>..<HASH> 100644
--- a/pyfolio/tests/test_timeseries.py
+++ b/pyfolio/tests/test_timeseries.py
@@ -303,15 +303,14 @@ class TestStats(TestCase):
expected)
@parameterized.expand([
- (-simple_rets[:5], 'c... | TST Fix sortino ratio tests This changes the tests for the sortino ratio. It tests 3 cases 1. -simple_rets[:5], five negative elements 2. -simple_rets, entire array where elements[5:] are 0. this should have a higher sortino than the first case 3. simple_rets, all elements are >= 0, so infinity is the correct an... | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.