diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/satpy/tests/writer_tests/__init__.py b/satpy/tests/writer_tests/__init__.py
index <HASH>..<HASH> 100644
--- a/satpy/tests/writer_tests/__init__.py
+++ b/satpy/tests/writer_tests/__init__.py
@@ -37,7 +37,7 @@ else:
def suite():
"""Test suite for all writer tests"""
mysuite = unittest.TestSuite()
... | Run also the unittest for cf_writer | py |
diff --git a/pylint/checkers/spelling.py b/pylint/checkers/spelling.py
index <HASH>..<HASH> 100644
--- a/pylint/checkers/spelling.py
+++ b/pylint/checkers/spelling.py
@@ -291,7 +291,7 @@ class SpellingChecker(BaseTokenChecker):
initial_space = re.search(r"^[^\S]\s*", line).regs[0][1]
except (Index... | Fix spell-checker crash on docstring lines that look like # comments | py |
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index <HASH>..<HASH> 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -2714,7 +2714,7 @@ class ProjectPipelineJobManager(ListMixin, RESTManager):
_list_filters = ('scope',)
-class ProjectPipeline(RESTObject, RefreshMixin):
+class ProjectPi... | feat(GitLab Update): delete ProjectPipeline (#<I>) * feat(GitLab Update): delete ProjectPipeline As of Gitlab <I> it is now possible to delete a pipeline - <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -49,7 +49,6 @@ setup(name='blimpy',
description='Python utilities for Breakthrough Listen SETI observations',
long_description=long_description,
long_description_content_type='text/markdown',
- platfo... | Issue #<I> During the setup.py execution, the platform= parameter was diagnosed as UserWarning: Unknown distribution option: 'platform'". | py |
diff --git a/openstack_dashboard/dashboards/project/data_processing/clusters/tabs.py b/openstack_dashboard/dashboards/project/data_processing/clusters/tabs.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/dashboards/project/data_processing/clusters/tabs.py
+++ b/openstack_dashboard/dashboards/project/data_proce... | Add string for verbose name The verbose_name of InstancesTable is just a single space. This string has no meaning for translations. Make translatable by adding a suitable string Cluster Instances. Change-Id: Ic<I>ab5e2ab<I>b<I>a<I>ee<I>fbbd9df4 Closes-Bug: #<I> | py |
diff --git a/_pytest/skipping.py b/_pytest/skipping.py
index <HASH>..<HASH> 100644
--- a/_pytest/skipping.py
+++ b/_pytest/skipping.py
@@ -251,11 +251,13 @@ def pytest_runtest_makereport(item, call):
elif call.when == "call":
strict_default = item.config.getini('xfail_strict')
is_stri... | Set wasxfail only for xpass w/o strict and else set longrepr | py |
diff --git a/clonebuild.py b/clonebuild.py
index <HASH>..<HASH> 100644
--- a/clonebuild.py
+++ b/clonebuild.py
@@ -27,7 +27,8 @@ os.system('hg clone %s %s' % (name, version))
## Creating source distribution archive
tar = tarfile.open("%s.tar.gz" % version, "w|gz")
-tar.add(version, recursive=True)
+tar.add(vers... | Excluding mercurial repository from tarball source archive (debian package requirement) | py |
diff --git a/openquake/calculators/extract.py b/openquake/calculators/extract.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/extract.py
+++ b/openquake/calculators/extract.py
@@ -232,6 +232,27 @@ def extract_assets(dstore, what):
return ArrayWrapper(arr, dic)
+@extract.add('asset_risk')
+def extrac... | Added an extractor for asset_risk [skip CI] Former-commit-id: ce<I>ece<I>c3a<I>f<I>f<I>e5b<I>d<I>d | py |
diff --git a/tests/integ/test_basic.py b/tests/integ/test_basic.py
index <HASH>..<HASH> 100644
--- a/tests/integ/test_basic.py
+++ b/tests/integ/test_basic.py
@@ -24,13 +24,13 @@ def test_crud(engine):
same_user.profile = "second"
engine.save(same_user)
- engine.load(user)
+ engine.load(user, consiste... | Use consistent load for integ test stability | py |
diff --git a/extensions/gedit3-plugin/shoebotit/__init__.py b/extensions/gedit3-plugin/shoebotit/__init__.py
index <HASH>..<HASH> 100644
--- a/extensions/gedit3-plugin/shoebotit/__init__.py
+++ b/extensions/gedit3-plugin/shoebotit/__init__.py
@@ -383,9 +383,15 @@ class ShoebotWindowHelper:
self.started = T... | Output a message in the shoebot textbuffer if sbot cannot be found. | py |
diff --git a/geomdl/abstract.py b/geomdl/abstract.py
index <HASH>..<HASH> 100644
--- a/geomdl/abstract.py
+++ b/geomdl/abstract.py
@@ -1735,7 +1735,8 @@ class Surface(SplineGeometry):
degree=self._degree,
knotvector=self._knot_vector,
size=self._control_points_size,
- c... | Include surface trims with the data dict | py |
diff --git a/pyviews/tk/containers.py b/pyviews/tk/containers.py
index <HASH>..<HASH> 100644
--- a/pyviews/tk/containers.py
+++ b/pyviews/tk/containers.py
@@ -110,7 +110,7 @@ class For(Container):
self._rendered = True
self._child_count = len(self.xml_node.get_children())
self.destroy_childre... | refactoring: enumeration is replaced by list for _create_children call in For node | py |
diff --git a/simple_history/models.py b/simple_history/models.py
index <HASH>..<HASH> 100644
--- a/simple_history/models.py
+++ b/simple_history/models.py
@@ -265,7 +265,11 @@ class ForeignKeyMixin(object):
if isinstance(to_field, models.OneToOneField):
field = self.get_one_to_one_field(to_field, ... | Added support for django-nonrel string AutoField primary key. | py |
diff --git a/wagtailnews/views/frontend.py b/wagtailnews/views/frontend.py
index <HASH>..<HASH> 100644
--- a/wagtailnews/views/frontend.py
+++ b/wagtailnews/views/frontend.py
@@ -4,6 +4,7 @@ from django.shortcuts import render, get_object_or_404, redirect
from django.utils import timezone
from ..conf import paginat... | Fix infinite redirect when using multiple sites Fixes #1 | py |
diff --git a/zipline/pipeline/loaders/earnings_estimates.py b/zipline/pipeline/loaders/earnings_estimates.py
index <HASH>..<HASH> 100644
--- a/zipline/pipeline/loaders/earnings_estimates.py
+++ b/zipline/pipeline/loaders/earnings_estimates.py
@@ -424,6 +424,7 @@ class EarningsEstimatesLoader(PipelineLoader):
o... | BUG: create adjustments based on ordered assets instead of set | py |
diff --git a/packages/create-quip-app/bin/create-quip-app.py b/packages/create-quip-app/bin/create-quip-app.py
index <HASH>..<HASH> 100755
--- a/packages/create-quip-app/bin/create-quip-app.py
+++ b/packages/create-quip-app/bin/create-quip-app.py
@@ -13,6 +13,7 @@ import os
import shutil
import subprocess
import sys... | make ele files byte-identical if content is unchanged. fail on missing resources. | py |
diff --git a/lib/emir/dataproducts.py b/lib/emir/dataproducts.py
index <HASH>..<HASH> 100644
--- a/lib/emir/dataproducts.py
+++ b/lib/emir/dataproducts.py
@@ -23,7 +23,7 @@ import numpy
from numina.core import FrameDataProduct, DataProduct
from numina.core.requirements import InstrumentConfigurationType
-from numin... | Import ValidationrError from new location | py |
diff --git a/src/armet/connectors/flask/resources.py b/src/armet/connectors/flask/resources.py
index <HASH>..<HASH> 100644
--- a/src/armet/connectors/flask/resources.py
+++ b/src/armet/connectors/flask/resources.py
@@ -88,6 +88,10 @@ class Resource(object):
name = '{}.{}'.format(cls.__module__, cls.__name__)
... | Make use of app context in flask. | py |
diff --git a/starbound/sbbf02.py b/starbound/sbbf02.py
index <HASH>..<HASH> 100644
--- a/starbound/sbbf02.py
+++ b/starbound/sbbf02.py
@@ -86,8 +86,7 @@ class FileSBBF02(filebase.File):
super(FileSBBF02, self).initialize()
stream = self._stream
- header = stream.read(6)
- assert (heade... | Shorten SBBF<I>/<I> condition a little | py |
diff --git a/wafer/pages/models.py b/wafer/pages/models.py
index <HASH>..<HASH> 100644
--- a/wafer/pages/models.py
+++ b/wafer/pages/models.py
@@ -16,6 +16,9 @@ class File(models.Model):
description = models.TextField()
item = models.FileField(upload_to='pages_files')
+ def __unicode__(self):
+ re... | Add more legible name for page attachments. | py |
diff --git a/databench/datastore.py b/databench/datastore.py
index <HASH>..<HASH> 100644
--- a/databench/datastore.py
+++ b/databench/datastore.py
@@ -35,17 +35,8 @@ class Datastore(object):
"""Set value for given key.
Allows for assignments of the form ``d[key] = value``. The value is
- copi... | value comparisons are unreliable (e.g. for lists), so always call callbacks on datastore updates | py |
diff --git a/requests_kerberos/kerberos_.py b/requests_kerberos/kerberos_.py
index <HASH>..<HASH> 100644
--- a/requests_kerberos/kerberos_.py
+++ b/requests_kerberos/kerberos_.py
@@ -84,6 +84,7 @@ class HTTPKerberosAuth(AuthBase):
def __init__(self, mutual_authentication=REQUIRED):
self.context = {}
... | Fix hangs on streaming uploads After the server responds with a "<I> Unauthorized", requests_kerberos.HTTPKerberosAuth.handle_response() gets called and it resends the request with "Authorization" header. When doing streaming uploads, however, this gets stuck because the body data (a file-like object) is already cons... | py |
diff --git a/scheduler/admin.py b/scheduler/admin.py
index <HASH>..<HASH> 100644
--- a/scheduler/admin.py
+++ b/scheduler/admin.py
@@ -37,6 +37,7 @@ class ScheduledJobAdmin(QueueMixin, admin.ModelAdmin):
'fields': (
'scheduled_time',
'timeout',
+ 'result_ttl... | Display result_ttl field in admin | py |
diff --git a/goless/backends.py b/goless/backends.py
index <HASH>..<HASH> 100644
--- a/goless/backends.py
+++ b/goless/backends.py
@@ -3,6 +3,10 @@ import platform
class Backend(object):
+
+ def shortname(self):
+ return type(self).__name__
+
def start(self, func, *args, **kwargs):
"""Start... | Added shortname attribute to backends for better ID when benchmarking | py |
diff --git a/discord/team.py b/discord/team.py
index <HASH>..<HASH> 100644
--- a/discord/team.py
+++ b/discord/team.py
@@ -67,9 +67,8 @@ class Team:
@property
def owner(self):
- """Optional[:class:`User`]: The team's owner, if available from the cache."""
- return self._state.get_user(self.own... | Team.owner should return a TeamMember. Should always be available but who knows. | py |
diff --git a/example/neural-style/run.py b/example/neural-style/run.py
index <HASH>..<HASH> 100644
--- a/example/neural-style/run.py
+++ b/example/neural-style/run.py
@@ -162,7 +162,7 @@ for e in range(args.max_num_epochs):
gram_executor[i].data_grad[:] *= args.style_weight
# content gradient
- conte... | [example] = -> [:] = | py |
diff --git a/holoviews/core/util.py b/holoviews/core/util.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/util.py
+++ b/holoviews/core/util.py
@@ -187,7 +187,8 @@ class sanitize_identifier_fn(param.ParameterizedFunction):
prefix = 'A_'
- _lookup_table = {}
+ _lookup_table = param.Dict(default={}, doc... | Instances of sanitize functions were incorrectly sharing a cache | py |
diff --git a/kdcount/tests/test_correlate.py b/kdcount/tests/test_correlate.py
index <HASH>..<HASH> 100644
--- a/kdcount/tests/test_correlate.py
+++ b/kdcount/tests/test_correlate.py
@@ -89,4 +89,19 @@ def test_field():
assert_allclose(r.sum1, r.sum2)
+def test_channels():
+ numpy.random.seed(1234)
+ pos... | Add test case for multipole bincounts. | py |
diff --git a/scripts/bench_revisions.py b/scripts/bench_revisions.py
index <HASH>..<HASH> 100755
--- a/scripts/bench_revisions.py
+++ b/scripts/bench_revisions.py
@@ -217,11 +217,11 @@ class Benchmark(object):
self.run_cmd(('hg', 'pull'), cwd=self.src)
try:
- for branch in self.branch... | bench_revisions: test revisions before branches | py |
diff --git a/responses.py b/responses.py
index <HASH>..<HASH> 100644
--- a/responses.py
+++ b/responses.py
@@ -56,14 +56,12 @@ def get_wrapped(func, wrapper_template, evaldict):
# Preserve the argspec for the wrapped function so that testing
# tools such as pytest can continue to use their fixture injection.
... | Pass keyword arguments by position (simplify) | py |
diff --git a/pytextql/util.py b/pytextql/util.py
index <HASH>..<HASH> 100644
--- a/pytextql/util.py
+++ b/pytextql/util.py
@@ -48,3 +48,18 @@ class UnicodeCSVReader(object):
@property
def line_num(self):
return self.reader.line_num
+
+
+class UnicodeCSVWriter(object):
+ def __init__(self, *args, *... | Add a simple UnicodeCSVWriter, probably flawed. | py |
diff --git a/__init__.py b/__init__.py
index <HASH>..<HASH> 100644
--- a/__init__.py
+++ b/__init__.py
@@ -13,5 +13,5 @@ used from a setup script as
# Updated automatically by the Python release process.
#
#--start constants--
-__version__ = "3.4.0a3"
+__version__ = "3.4.0a4"
#--end constants-- | Version bump for <I>a4. | py |
diff --git a/pyinfra/api/connect.py b/pyinfra/api/connect.py
index <HASH>..<HASH> 100644
--- a/pyinfra/api/connect.py
+++ b/pyinfra/api/connect.py
@@ -17,6 +17,12 @@ def connect_all(state, progress=None):
greenlets = {}
for host in state.inventory:
+ # Don't connect to anything within our (top level,... | Don't connect to hosts in the initial limit. | py |
diff --git a/airflow/hooks/druid_hook.py b/airflow/hooks/druid_hook.py
index <HASH>..<HASH> 100644
--- a/airflow/hooks/druid_hook.py
+++ b/airflow/hooks/druid_hook.py
@@ -85,8 +85,6 @@ class DruidHook(BaseHook):
self.log.info("Job still running for %s seconds...", sec)
- sec = sec + 1
-
... | [AIRFLOW-<I>] DruidHook: time check is wrong (#<I>) | py |
diff --git a/geomet/wkt.py b/geomet/wkt.py
index <HASH>..<HASH> 100644
--- a/geomet/wkt.py
+++ b/geomet/wkt.py
@@ -133,19 +133,19 @@ def __dump_polygon(obj, fmt):
return poly
-def __dump_multipoint(obj, decimals):
+def __dump_multipoint(obj, fmt):
raise NotImplementedError
-def __dump_multilinestring(... | wkt: Renamed the second in each of the unimplemented __dump functions (to match the implemented ones). | py |
diff --git a/ftw/logchecker.py b/ftw/logchecker.py
index <HASH>..<HASH> 100644
--- a/ftw/logchecker.py
+++ b/ftw/logchecker.py
@@ -15,6 +15,20 @@ class LogChecker(ABC):
self.start = start
self.end = end
+ def mark_start(self, stage_id):
+ """
+ May be implemented to set up the log c... | Added mark_start() and mark_end() to give the log checker the chance to pre and post process runs | py |
diff --git a/src/pylexibank/dataset.py b/src/pylexibank/dataset.py
index <HASH>..<HASH> 100644
--- a/src/pylexibank/dataset.py
+++ b/src/pylexibank/dataset.py
@@ -162,8 +162,7 @@ class Metadata(object):
"dc:isVersionOf": "http://lexibank.clld.org/contributions/{0}".format(
self.derived_fro... | remove dataset patron from the write out to cldf | py |
diff --git a/tests/test_parser.py b/tests/test_parser.py
index <HASH>..<HASH> 100644
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -686,3 +686,11 @@ class TestDockerfileParser(object):
assert c[3].get_values(context_type="ENV") == {"key": "value"}
assert c[3].get_values(context_type="LABE... | tests: add test-case for concatenated variables inside label | py |
diff --git a/simuvex/plugins/posix.py b/simuvex/plugins/posix.py
index <HASH>..<HASH> 100644
--- a/simuvex/plugins/posix.py
+++ b/simuvex/plugins/posix.py
@@ -195,6 +195,7 @@ class SimStateSystem(SimStatePlugin):
f.set_state(self.state)
self.files[fd] = f
+ self.fs[name] = f
re... | Support for multi open of same file Use posix.fs as a filesystem to store modifications made to the file so that future opens will see these changes. | py |
diff --git a/nfc/tt3.py b/nfc/tt3.py
index <HASH>..<HASH> 100644
--- a/nfc/tt3.py
+++ b/nfc/tt3.py
@@ -93,7 +93,7 @@ class NDEF(object):
del blocks[0:nb_max]
offset += length
if len(blocks) > 0:
- data += (len(blocks)*16 - len(data)) * '\x00'
+ data += (len(block... | fixed tag type 3 write routine which did not correctly extend to <I> byte boundary | py |
diff --git a/sockjs/session.py b/sockjs/session.py
index <HASH>..<HASH> 100644
--- a/sockjs/session.py
+++ b/sockjs/session.py
@@ -134,6 +134,7 @@ class Session(object):
if not waiter.cancelled():
waiter.set_result(True)
+ @asyncio.coroutine
def _wait(self, pack=True):
i... | Add missing coroutine decorators and remove duplicate code. (#<I>) | py |
diff --git a/git/index/fun.py b/git/index/fun.py
index <HASH>..<HASH> 100644
--- a/git/index/fun.py
+++ b/git/index/fun.py
@@ -53,7 +53,7 @@ from .util import (
from typing import (Dict, IO, List, Sequence, TYPE_CHECKING, Tuple, Type, Union, cast)
-from git.types import PathLike
+from git.types import PathLike, Ty... | replace cast()s with asserts in fun.py | py |
diff --git a/forestci/calibration.py b/forestci/calibration.py
index <HASH>..<HASH> 100644
--- a/forestci/calibration.py
+++ b/forestci/calibration.py
@@ -4,8 +4,7 @@ Calibration based on empirical Bayes estimation [Efron2014]_.
This calibration procedure can be useful when the number of trees in the
random forest is... | Get rid of another non-ascii character. | py |
diff --git a/tests/__main__.py b/tests/__main__.py
index <HASH>..<HASH> 100644
--- a/tests/__main__.py
+++ b/tests/__main__.py
@@ -1,3 +1,3 @@
from pytest import main
-main()
+raise SystemExit(main()) | test(tests.__main__.py): raise SystemExit coverage tests on travis are not failing. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,8 +10,7 @@ setup(name='dispatch',
packages=['dispatch'],
scripts=['dispatch/bin/dispatch-admin'],
install_requires=[
- 'mysql-python == 1.2.5',
- 'django == 1.8.2',
+ 'django == 1.... | Remove mysql-python dependency, upgrade to django <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -32,6 +32,14 @@ setup(
author="Simon Willison",
license="Apache License, Version 2.0",
url="https://github.com/simonw/datasette",
+ project_urls={
+ "Documentation": "https://datasette.readthedocs.io/e... | Added project_urls, closes #<I> | py |
diff --git a/sdks/python/sdk_version.py b/sdks/python/sdk_version.py
index <HASH>..<HASH> 100755
--- a/sdks/python/sdk_version.py
+++ b/sdks/python/sdk_version.py
@@ -10,6 +10,7 @@ takes the major version, adds 3 to it, and prints to stdout the new version, whi
"""
import os
+import re
VERSION_PREFIX = 'v'
VERS... | fix: Handle release candidate versions in Python SDK version. Fixes #<I> (#<I>) | py |
diff --git a/auto_ml/predictor.py b/auto_ml/predictor.py
index <HASH>..<HASH> 100644
--- a/auto_ml/predictor.py
+++ b/auto_ml/predictor.py
@@ -885,10 +885,10 @@ class Predictor(object):
# Don't allocate memory for all jobs upfront. Instead, only allocate enough memory to handle the current jobs plus an... | changes EASCV settings even more drastically | py |
diff --git a/codemach/machine.py b/codemach/machine.py
index <HASH>..<HASH> 100644
--- a/codemach/machine.py
+++ b/codemach/machine.py
@@ -351,6 +351,8 @@ class Machine:
.. note: We might be able to bypass the call to ``builtins.__build_class__``
entirely and manually construct a class object.
+
... | link to python source | py |
diff --git a/csirtg_indicator/format/zzeek.py b/csirtg_indicator/format/zzeek.py
index <HASH>..<HASH> 100644
--- a/csirtg_indicator/format/zzeek.py
+++ b/csirtg_indicator/format/zzeek.py
@@ -12,6 +12,7 @@ from pprint import pprint
itype = {
'ipv4': 'ADDR',
+ 'cidr': 'SUBNET',
'ipv6': 'ADDR',
'url':... | fix zeek output for ipv4/cidr (#<I>) | py |
diff --git a/spyder/plugins/editor/lsp/tests/test_client.py b/spyder/plugins/editor/lsp/tests/test_client.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/editor/lsp/tests/test_client.py
+++ b/spyder/plugins/editor/lsp/tests/test_client.py
@@ -16,7 +16,7 @@ from spyder.plugins.editor.lsp import (
SERVER_CAPABIL... | Testing: Rename LSPSignalCapture to LSPEditor | py |
diff --git a/test_path.py b/test_path.py
index <HASH>..<HASH> 100644
--- a/test_path.py
+++ b/test_path.py
@@ -917,7 +917,7 @@ class TestInPlace(object):
with doc.in_place() as (reader, writer):
writer.write(self.alternate_content)
raise RuntimeError("some error")
- ... | Test more robust regardless of exception representation. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,13 +7,13 @@ setup(
packages=find_packages(),
install_requires=['h5py', 'matplotlib', 'numpy', 'python-dateutil', 'pytz', 'scipy'],
version='2.13.3',
- description='A package for processing multidimensional... | spelling (closes #<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,7 @@ def find_version(*file_paths):
raise RuntimeError("Unable to find version string.")
-readme = open('README.rst').read()
+readme = read('README.rst')
VERSION = find_version('ignite', '__init__.py') | Update setup.py (#<I>) Prevent crash during `python setup.py install` if `readme.rst` once contains a non ascii character | py |
diff --git a/moto/ecs/models.py b/moto/ecs/models.py
index <HASH>..<HASH> 100644
--- a/moto/ecs/models.py
+++ b/moto/ecs/models.py
@@ -108,10 +108,10 @@ class ContainerInstance(BaseObject):
return response_object
-class Failure(BaseObject):
- def __init__(self, reason, arn):
+class ContainerInstance... | rename class Failure to ContainerInstanceFailure | py |
diff --git a/atlassian/jira.py b/atlassian/jira.py
index <HASH>..<HASH> 100644
--- a/atlassian/jira.py
+++ b/atlassian/jira.py
@@ -589,6 +589,22 @@ class Jira(AtlassianRestAPI):
base_url = self.resource_url("filter")
url = "{base_url}/{id}".format(base_url=base_url, id=filter_id)
return self.... | [Jira] Update jira.py (#<I>) * Update jira.py added update filter method * fixed spaces * fixed spaces * added return in docstring | py |
diff --git a/splinter/driver/webdriver/__init__.py b/splinter/driver/webdriver/__init__.py
index <HASH>..<HASH> 100644
--- a/splinter/driver/webdriver/__init__.py
+++ b/splinter/driver/webdriver/__init__.py
@@ -12,6 +12,7 @@ from contextlib import contextmanager
from selenium.common.exceptions import NoSuchElementEx... | webdrive: wati for clear and send_key in fill method | py |
diff --git a/littletable.py b/littletable.py
index <HASH>..<HASH> 100644
--- a/littletable.py
+++ b/littletable.py
@@ -100,7 +100,7 @@ Here is a simple C{littletable} data storage/retrieval example::
"""
__version__ = "0.6"
-__versionTime__ = "28 Jan 2012 02:50"
+__versionTime__ = "28 Jan 2012 04:05"
__author... | Remove pdb.set_trace call | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,9 +16,6 @@ if not VERSION:
raise RuntimeError('No version defined in textx.__init__.py')
if sys.argv[-1].startswith('publish'):
- if os.system("pip list | grep wheel"):
- print("wheel not installed.\nUse ... | Remove check if wheel package is installed | py |
diff --git a/py/testdir_multi_jvm/test_rest_api.py b/py/testdir_multi_jvm/test_rest_api.py
index <HASH>..<HASH> 100644
--- a/py/testdir_multi_jvm/test_rest_api.py
+++ b/py/testdir_multi_jvm/test_rest_api.py
@@ -96,14 +96,14 @@ def validate_model_builder_result(result, original_params, model_name):
print 'FAIL:... | when looking at the model result. changed the if/if/if to if/elif/elif to protect against result is None (and other errors), so the detect of result is None doesn't also have odd looking python errors. | py |
diff --git a/panwid/datatable/datatable.py b/panwid/datatable/datatable.py
index <HASH>..<HASH> 100644
--- a/panwid/datatable/datatable.py
+++ b/panwid/datatable/datatable.py
@@ -178,6 +178,7 @@ class DataTable(urwid.WidgetWrap, urwid.listbox.ListWalker):
self._columns = list(intersperse_divider(self._colu... | Stash table reference in column object for calculaing width. | py |
diff --git a/vlcp/utils/webclient.py b/vlcp/utils/webclient.py
index <HASH>..<HASH> 100644
--- a/vlcp/utils/webclient.py
+++ b/vlcp/utils/webclient.py
@@ -26,6 +26,11 @@ from vlcp.utils import encoders
import re
# From Python 2.7 ssl library
+try:
+ unicode
+except Exception:
+ unicode = str
+
def _dnsname_m... | - Do not check against ASCII if already bytes | py |
diff --git a/pysat/_files.py b/pysat/_files.py
index <HASH>..<HASH> 100644
--- a/pysat/_files.py
+++ b/pysat/_files.py
@@ -495,8 +495,6 @@ class Files(object):
part of the name that need not be extracted.
'cnofs_cindi_ivm_500ms_{year:4d}{month:02d}{day:02d}_v??.cdf'
"""
-
- # from pysa... | Removed data path from search_local.... output | py |
diff --git a/peeweedbevolve.py b/peeweedbevolve.py
index <HASH>..<HASH> 100644
--- a/peeweedbevolve.py
+++ b/peeweedbevolve.py
@@ -11,7 +11,7 @@ import playhouse.migrate
DEBUG = False
-__version__ = '0.2.1'
+__version__ = '0.3.0'
try: | colorization == <I> | py |
diff --git a/openstack_dashboard/settings.py b/openstack_dashboard/settings.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/settings.py
+++ b/openstack_dashboard/settings.py
@@ -203,6 +203,7 @@ LANGUAGES = (
('en-gb', 'British English'),
('es', 'Spanish'),
('fr', 'French'),
+ ('it', 'Italian'... | add Italian localization Translation is near <I>% complete, well above the <I>% criteria for inclusion in the language list. Add it. Change-Id: I<I>c<I>c<I>d2f<I>e<I>e<I>ce<I>aead5 Closes-bug: #<I> | py |
diff --git a/elifetools/parseJATS.py b/elifetools/parseJATS.py
index <HASH>..<HASH> 100644
--- a/elifetools/parseJATS.py
+++ b/elifetools/parseJATS.py
@@ -2031,7 +2031,8 @@ def decision_letter(soup):
for tag in tags:
block_content = body_block_content_render(tag)
for tag_c... | Bug fix decision letter decision had an empty element. | py |
diff --git a/pyiso.py b/pyiso.py
index <HASH>..<HASH> 100644
--- a/pyiso.py
+++ b/pyiso.py
@@ -1351,14 +1351,18 @@ class PyIso(object):
while dirs:
dir_record = dirs.pop(0)
self._seek_to_extent(dir_record.original_extent_location())
- while True:
+ length = dir_r... | Improve directory walking. We'll continue across padding blocks now. | py |
diff --git a/aiohttp/web_urldispatcher.py b/aiohttp/web_urldispatcher.py
index <HASH>..<HASH> 100644
--- a/aiohttp/web_urldispatcher.py
+++ b/aiohttp/web_urldispatcher.py
@@ -694,12 +694,12 @@ class RoutesView(Sized, Iterable, Container):
class UrlDispatcher(AbstractRouter, collections.abc.Mapping):
- DYN = re.... | allow starting variables with an underscore (#<I>) Mongo ids are useful as a named resource in a route, but they are usually named `_id` and are excluded by the current regex | py |
diff --git a/vyper/parser/function_definitions/parse_function.py b/vyper/parser/function_definitions/parse_function.py
index <HASH>..<HASH> 100644
--- a/vyper/parser/function_definitions/parse_function.py
+++ b/vyper/parser/function_definitions/parse_function.py
@@ -1,6 +1,10 @@
from vyper.parser.context import Consta... | lint: Fix black/isort conflict | py |
diff --git a/caniusepython3/__init__.py b/caniusepython3/__init__.py
index <HASH>..<HASH> 100644
--- a/caniusepython3/__init__.py
+++ b/caniusepython3/__init__.py
@@ -67,8 +67,12 @@ def py3_classifiers():
url = 'https://pypi.python.org/pypi?%3Aaction=list_classifiers'
response = urllib_request.urlopen(url)
... | Python 2 doesn't use a status attribute for urllib responses | py |
diff --git a/great_expectations/dataset/base.py b/great_expectations/dataset/base.py
index <HASH>..<HASH> 100644
--- a/great_expectations/dataset/base.py
+++ b/great_expectations/dataset/base.py
@@ -674,7 +674,7 @@ If you wish to change this behavior, please set discard_failed_expectations, dis
filepath... | Ensure no nested formatting (whitespace required after formatting). | py |
diff --git a/curdling/services/downloader.py b/curdling/services/downloader.py
index <HASH>..<HASH> 100644
--- a/curdling/services/downloader.py
+++ b/curdling/services/downloader.py
@@ -276,7 +276,7 @@ class Downloader(Service):
# Remove the protocol prefix from the url before passing to the handler
... | Downloader was trying to download a url without authentication info | py |
diff --git a/src/doxy2swig.py b/src/doxy2swig.py
index <HASH>..<HASH> 100755
--- a/src/doxy2swig.py
+++ b/src/doxy2swig.py
@@ -121,6 +121,7 @@ class Doxy2SWIG:
# ignore pure whitespace
m = self.space_re.match(txt)
if m and len(m.group()) == len(txt):
+ # do nothing
pas... | doxy2swig.py: remove/explain 'do-nothing' blocks | py |
diff --git a/tools/licensescheck.py b/tools/licensescheck.py
index <HASH>..<HASH> 100755
--- a/tools/licensescheck.py
+++ b/tools/licensescheck.py
@@ -112,6 +112,13 @@ def verifyGetHostName(f, content):
else:
return 0
+ if f.endswith('/ConnectionUtil.java'):
+ if num != 1:
+ ... | For ENG-<I>, patch up license check | py |
diff --git a/psiturk/dashboard_server.py b/psiturk/dashboard_server.py
index <HASH>..<HASH> 100644
--- a/psiturk/dashboard_server.py
+++ b/psiturk/dashboard_server.py
@@ -213,13 +213,18 @@ def launch():
#app.run(debug=True, port=dashboard_port)
stopper = gevent.event.Event()
server = SocketIOServer(('', ... | Launch browser if dashboard server is already running | py |
diff --git a/tests/test_client.py b/tests/test_client.py
index <HASH>..<HASH> 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -7,7 +7,7 @@ from tests.setup import create_fixture
import urllib
-class IntegrationTestClient(object):
+class MockSession(object):
"""requests.session compatiability a... | rename to MockSession | py |
diff --git a/build.py b/build.py
index <HASH>..<HASH> 100755
--- a/build.py
+++ b/build.py
@@ -476,7 +476,7 @@ else:
@target('fixme', phony=True)
def find_fixme(t):
- regex = re.compile(".(FIXME|TODO).")
+ regex = re.compile('FIXME|TODO')
matches = dict()
totalcount = 0
for filename in SRC:
@@ ... | Clean up fixme target Correct regular expression Use single quotes consistently Use format strings Correct grammar | py |
diff --git a/tests/docker_mock.py b/tests/docker_mock.py
index <HASH>..<HASH> 100644
--- a/tests/docker_mock.py
+++ b/tests/docker_mock.py
@@ -193,6 +193,7 @@ mock_inspect_container = {
def _find_image(img, ignore_registry=False):
global mock_images
+ img = ImageName.parse(img).to_str(explicit_tag=True)
... | docker_mock: fix remember_tags functionality Previously tagging an image without an explicit tag would trick this stub into thinking the image was not present, as inspection always uses an explicit tag. | py |
diff --git a/treeherder/config/settings.py b/treeherder/config/settings.py
index <HASH>..<HASH> 100644
--- a/treeherder/config/settings.py
+++ b/treeherder/config/settings.py
@@ -179,7 +179,7 @@ LOGGING = {
},
'treeherder': {
'handlers': ['console'],
- 'level': 'ERROR',
+ ... | Bug <I> - Change production logging level from ERROR to WARNING | py |
diff --git a/openquake/db/models.py b/openquake/db/models.py
index <HASH>..<HASH> 100644
--- a/openquake/db/models.py
+++ b/openquake/db/models.py
@@ -474,6 +474,9 @@ class JobStats(models.Model):
# The number of total sites in job
num_sites = models.IntegerField()
+ class Meta: # pylint: disable=C0111,... | added meta for JobStats model | py |
diff --git a/enoslib/infra/configuration.py b/enoslib/infra/configuration.py
index <HASH>..<HASH> 100644
--- a/enoslib/infra/configuration.py
+++ b/enoslib/infra/configuration.py
@@ -3,7 +3,7 @@ import logging
import json
from typing import Dict, Optional, Any
import html
-from enoslib.html import dict_to_html, _loa... | infra/conf: adapt to the html api | py |
diff --git a/tests/tests.py b/tests/tests.py
index <HASH>..<HASH> 100755
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -1092,14 +1092,14 @@ class IssueTests(unittest.TestCase):
assert s.name == sprint_name
assert s.state == 'FUTURE'
- self.jira.add_issues_to_sprint(s.id, [self.issue_1.key])
+ ... | Update self.issue_1.key to self.issue_1 self.issue_1 is the issue key. self.issue_1_obj is the Issue object. | py |
diff --git a/tests/misc.py b/tests/misc.py
index <HASH>..<HASH> 100644
--- a/tests/misc.py
+++ b/tests/misc.py
@@ -39,8 +39,7 @@ class MiscCLI(unittest.TestCase):
ignore = ManHelpFormatter
except Exception:
e = sys.exc_info()[1]
- print("Skipping man page test: %s" % e)
- ... | tests: Use regular skipTest infrastructure | py |
diff --git a/schedula/utils/sol.py b/schedula/utils/sol.py
index <HASH>..<HASH> 100644
--- a/schedula/utils/sol.py
+++ b/schedula/utils/sol.py
@@ -685,6 +685,7 @@ class Solution(Base, collections.OrderedDict):
for f in node_attr.get('filters', ()):
res = f(res)
+ a... | feat(sol): Add function results to workflow node attr. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -34,16 +34,16 @@ class PyTest(TestCommand):
sys.exit(errcode)
-dependencies = ["aiohttp==0.14.4",
- "jsonschema==2.4.0",
- "Jinja2==2.7.3",
- "raven==5.2.0"]
+dependenc... | Allow less strict dependencies Fix #<I> | py |
diff --git a/rw/www.py b/rw/www.py
index <HASH>..<HASH> 100644
--- a/rw/www.py
+++ b/rw/www.py
@@ -402,7 +402,10 @@ class HandlerBase(tornado.web.RequestHandler, dict):
else:
ioloop = tornado.ioloop.IOLoop.instance()
ioloop.handle_callback_exception(None)
- ... | only call application for error message in debug mode | py |
diff --git a/usb1.py b/usb1.py
index <HASH>..<HASH> 100644
--- a/usb1.py
+++ b/usb1.py
@@ -1608,7 +1608,7 @@ class USBContext(object):
# doesn't copy pointer value (=pointed memory address) ? At
# least, it's not so convenient and forces using such weird
# code.
- ... | fixup! Allow ignoring inaccessible devices when listing/opening. | py |
diff --git a/lettuce_webdriver/webdriver.py b/lettuce_webdriver/webdriver.py
index <HASH>..<HASH> 100644
--- a/lettuce_webdriver/webdriver.py
+++ b/lettuce_webdriver/webdriver.py
@@ -519,3 +519,14 @@ def page_title(step, title):
with AssertContextManager(step):
assert_equals(world.browser.title, title)
... | Steps for controlling what frame you're looking at Useful for dealing with things like SSO iframes. | py |
diff --git a/salt/minion.py b/salt/minion.py
index <HASH>..<HASH> 100644
--- a/salt/minion.py
+++ b/salt/minion.py
@@ -1602,7 +1602,7 @@ class Matcher(object):
Takes the data passed to a top file environment and determines if the
data matches this minion
'''
- matcher = 'glob'
+ ... | Change the default matcher in the top file to compound This changes the default matcher in the top file to compound, th standard top files should not be affected and G@ syntax will now work | py |
diff --git a/c7n/resources/iam.py b/c7n/resources/iam.py
index <HASH>..<HASH> 100644
--- a/c7n/resources/iam.py
+++ b/c7n/resources/iam.py
@@ -537,6 +537,39 @@ class AllowAllIamPolicies(Filter):
len(results), len(resources))
return results
+
+@Policy.action_registry.register('delete')
+class Pol... | iam policy - delete action (#<I>) | py |
diff --git a/greg/greg.py b/greg/greg.py
index <HASH>..<HASH> 100755
--- a/greg/greg.py
+++ b/greg/greg.py
@@ -165,6 +165,7 @@ def check_directory(args, feed, podcast): # Find out, and create if needed, the
except:
print("You want me to use the feed title to name the directory in which this podca... | Using shlex in download_handler | py |
diff --git a/pymatgen/analysis/structure_matcher.py b/pymatgen/analysis/structure_matcher.py
index <HASH>..<HASH> 100644
--- a/pymatgen/analysis/structure_matcher.py
+++ b/pymatgen/analysis/structure_matcher.py
@@ -795,7 +795,7 @@ class StructureMatcher(MSONable):
transformed_structure = Structure(latt1, m... | changed sum to average (not actually important) Former-commit-id: f<I>f<I>b<I>bee<I>bde1ca<I> [formerly a<I>f<I>c<I>c<I>b<I>aa4] Former-commit-id: <I>df<I>b<I>a8ac<I>e5a1d<I>e1a<I>d1e7e<I>e | py |
diff --git a/tests/test_write_record.py b/tests/test_write_record.py
index <HASH>..<HASH> 100644
--- a/tests/test_write_record.py
+++ b/tests/test_write_record.py
@@ -134,6 +134,6 @@ def test_write_record_with_escaping(header_samples, tmpdir_factory):
# compare actual result with expected
RESULT = path.read()... | Fixing test for write record with FORMAT/FT | py |
diff --git a/warcio/recordloader.py b/warcio/recordloader.py
index <HASH>..<HASH> 100644
--- a/warcio/recordloader.py
+++ b/warcio/recordloader.py
@@ -131,9 +131,6 @@ class ArcWarcRecordLoader(object):
# err condition
if is_err:
length = 0
- # or status and headers are completely e... | recordloader: improve impossible condition check (rec_headers is never none, exception raised if eof or other error) | py |
diff --git a/holoviews/plotting/bokeh/chart.py b/holoviews/plotting/bokeh/chart.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/bokeh/chart.py
+++ b/holoviews/plotting/bokeh/chart.py
@@ -328,7 +328,7 @@ class HistogramPlot(ElementPlot):
def get_data(self, element, ranges, style):
if self.invert_... | Fixes hover on inverted Histogram (#<I>) | py |
diff --git a/synapse/axon.py b/synapse/axon.py
index <HASH>..<HASH> 100644
--- a/synapse/axon.py
+++ b/synapse/axon.py
@@ -112,7 +112,7 @@ class AxonHost(s_config.Config):
# Special case where the axonbus may update - we want to ensure
# we're passing the latest axonbus to the Axon so it can register
... | Fix axonbus reference. | py |
diff --git a/tests/test_backend.py b/tests/test_backend.py
index <HASH>..<HASH> 100644
--- a/tests/test_backend.py
+++ b/tests/test_backend.py
@@ -17,7 +17,7 @@ def get_backend(config, session_mock=None):
obj._session = session_mock
else:
obj._session = mock.Mock()
- obj._session.playlist_... | tests: Tweak mock session setup | py |
diff --git a/sos/plugins/systemd.py b/sos/plugins/systemd.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/systemd.py
+++ b/sos/plugins/systemd.py
@@ -29,7 +29,6 @@ class Systemd(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
"systemctl status --all",
"systemctl show --all",
"... | [systemd] List-jobs already added Removing the dupicate entry Resolves: #<I> | py |
diff --git a/py/selenium/webdriver/remote/remote_connection.py b/py/selenium/webdriver/remote/remote_connection.py
index <HASH>..<HASH> 100644
--- a/py/selenium/webdriver/remote/remote_connection.py
+++ b/py/selenium/webdriver/remote/remote_connection.py
@@ -166,7 +166,7 @@ class RemoteConnection(object):
# At... | Set hostname correctly when keep_alive=True and resolve_ip=False. | py |
diff --git a/src/python/pants/backend/android/targets/android_binary.py b/src/python/pants/backend/android/targets/android_binary.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/backend/android/targets/android_binary.py
+++ b/src/python/pants/backend/android/targets/android_binary.py
@@ -13,13 +13,7 @@ from pants... | Improve inheritance and kwargs passing between android_binary and target. Remove unused params from AndroidBinary __init__, as referencing them would prevent those kwargs from being passed in the super() call. Referenced from lahosken @ <URL> | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.