diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/nodeshot/scripts/read_topology_hna.py b/nodeshot/scripts/read_topology_hna.py
index <HASH>..<HASH> 100755
--- a/nodeshot/scripts/read_topology_hna.py
+++ b/nodeshot/scripts/read_topology_hna.py
@@ -106,7 +106,7 @@ class TopologyParser(object):
while not line.isspace():
... | small but critical fix in read topology script | py |
diff --git a/xmantissa/signup.py b/xmantissa/signup.py
index <HASH>..<HASH> 100644
--- a/xmantissa/signup.py
+++ b/xmantissa/signup.py
@@ -210,13 +210,6 @@ class FreeTicketSignup(Item, PrefixURLMixin):
booth = reference()
benefactor = reference()
- issuedTicketCount = integer(default=0)
-
- claimedTic... | Various minor fixes. Make q2q addresses slightly more tolerant of unicode (find a good way to do this later); document 'register' command slightly; remove useless stuff from signup that was preventing arbitrary items in the 'issuer' field. | py |
diff --git a/semantic_release/helpers.py b/semantic_release/helpers.py
index <HASH>..<HASH> 100644
--- a/semantic_release/helpers.py
+++ b/semantic_release/helpers.py
@@ -1,4 +1,6 @@
import configparser
+import os
+import re
import semver
from invoke import run
@@ -17,7 +19,20 @@ def get_new_version(current_versio... | :sparkles: Implement setting of new version | py |
diff --git a/noxfile.py b/noxfile.py
index <HASH>..<HASH> 100644
--- a/noxfile.py
+++ b/noxfile.py
@@ -17,9 +17,9 @@ import shutil
import nox
_PY_VERSIONS = ('2.7', '3.7', '3.8', '3.9', '3.10', 'pypy', 'pypy3')
-_PY_DEFAULT_VERSION = '3.7'
+_PY_DEFAULT_VERSION = '3.9'
-nox.options.sessions = ['test-2.7', 'test-3.... | Switched to Py <I> by default. Updated Travis instructions | py |
diff --git a/scarlet/versioning/models.py b/scarlet/versioning/models.py
index <HASH>..<HASH> 100644
--- a/scarlet/versioning/models.py
+++ b/scarlet/versioning/models.py
@@ -144,6 +144,7 @@ class Cloneable(models.Model):
# Do the clone
self.prep_for_clone()
+ self.validate_unique... | Validate uniqueness before cloning | py |
diff --git a/keepkeylib/transport_hid.py b/keepkeylib/transport_hid.py
index <HASH>..<HASH> 100644
--- a/keepkeylib/transport_hid.py
+++ b/keepkeylib/transport_hid.py
@@ -44,11 +44,9 @@ class HidTransport(Transport):
if (vendor_id, product_id) in DEVICE_IDS:
devices.setdefault(serial_num... | Make transport work with python3 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,6 @@ setup(
"microcosm>=2.12.0",
"microcosm-logging>=1.5.0",
"psycopg2-binary>=2.7.5",
- "python-dateutil<2.8.1",
"pytz>=2018.5",
"SQLAlchemy>=1.2.11",
"SQ... | drop python-dateutil<<I> pin as upstream changes to boto-core now allow it | py |
diff --git a/app/actions/prottable/create_empty.py b/app/actions/prottable/create_empty.py
index <HASH>..<HASH> 100644
--- a/app/actions/prottable/create_empty.py
+++ b/app/actions/prottable/create_empty.py
@@ -13,5 +13,9 @@ def generate_master_proteins(psms, protcol):
if ';' in protacc:
continue
... | No empty proteins when building protein table from PSMs. Sometimes certain fields are empty (e.g. associated gene IDs). | py |
diff --git a/spyder/widgets/tests/test_pathmanager.py b/spyder/widgets/tests/test_pathmanager.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/tests/test_pathmanager.py
+++ b/spyder/widgets/tests/test_pathmanager.py
@@ -36,6 +36,10 @@ def test_pathmanager(qtbot):
def test_check_uncheck_path(qtbot):
+ """
+ ... | Added a description for the test | py |
diff --git a/tests/test_dates.py b/tests/test_dates.py
index <HASH>..<HASH> 100644
--- a/tests/test_dates.py
+++ b/tests/test_dates.py
@@ -60,3 +60,9 @@ class TestFormatIsoDate:
check_fmt = '2015-03-12T06:45:34.987Z'
fmt_date = dates.format_iso_datetime(date)
assert fmt_date == check_fmt
+
+ ... | `format_iso_datetime()` should be able to handle a very early date | py |
diff --git a/tensorpack/tfutils/sessinit.py b/tensorpack/tfutils/sessinit.py
index <HASH>..<HASH> 100644
--- a/tensorpack/tfutils/sessinit.py
+++ b/tensorpack/tfutils/sessinit.py
@@ -171,6 +171,10 @@ class SaverRestoreRelaxed(SaverRestore):
Another advantage is that it doesn't add any new ops to the graph.
... | skip creating a unused saver | py |
diff --git a/salt/runners/winrepo.py b/salt/runners/winrepo.py
index <HASH>..<HASH> 100644
--- a/salt/runners/winrepo.py
+++ b/salt/runners/winrepo.py
@@ -207,7 +207,7 @@ def update_git_repos(opts=None, clean=False, masterless=False):
if isinstance(result, list):
# Errors w... | Update salt/runners/winrepo.py | py |
diff --git a/django_autoconfig/tests/__init__.py b/django_autoconfig/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/django_autoconfig/tests/__init__.py
+++ b/django_autoconfig/tests/__init__.py
@@ -255,5 +255,4 @@ class IndexViewTestCase(test.TestCase):
#resolve('/django-autoconfig.tests.app-urls/index/',... | Use a better way of checking response contents. | py |
diff --git a/odinweb/_compat.py b/odinweb/_compat.py
index <HASH>..<HASH> 100644
--- a/odinweb/_compat.py
+++ b/odinweb/_compat.py
@@ -8,8 +8,6 @@ Like odin this library will support Python 2.7 through to version 2.0.
From this point onwards Python 3.5+ will be required.
"""
-from __future__ import unicode_literals... | Remove unicode_literals future support This causes an issue with the creation of a meta type as unicode strings are not supported. | py |
diff --git a/parler/tests/test_utils.py b/parler/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/parler/tests/test_utils.py
+++ b/parler/tests/test_utils.py
@@ -97,7 +97,7 @@ class UtilTestCase(TestCase):
"""Test get_language patch function, no fallback"""
with override(None):
- sel... | Use assertEqual instead of assertEquals for Python <I> compatibility. | py |
diff --git a/openid/association.py b/openid/association.py
index <HASH>..<HASH> 100644
--- a/openid/association.py
+++ b/openid/association.py
@@ -1,10 +1,14 @@
-import datetime
import random
import urllib
import time
-from openid.constants import *
-from openid.util import *
+from openid.constants import default_... | [project @ Made imports explicit in association.py] | py |
diff --git a/googlemaps/directions.py b/googlemaps/directions.py
index <HASH>..<HASH> 100644
--- a/googlemaps/directions.py
+++ b/googlemaps/directions.py
@@ -32,7 +32,8 @@ def directions(client, origin, destination,
:type origin: string, dict, list, or tuple
:param destination: The address or latitude/long... | Use place_id as destination Make clear that using a place_id as a destination is possible. | py |
diff --git a/squad/core/notification.py b/squad/core/notification.py
index <HASH>..<HASH> 100644
--- a/squad/core/notification.py
+++ b/squad/core/notification.py
@@ -112,7 +112,6 @@ class Notification(object):
'squad/notification/diff.txt',
context=context,
)
- ... | core/notification: remove pointless statement | py |
diff --git a/elasticstack/utils.py b/elasticstack/utils.py
index <HASH>..<HASH> 100644
--- a/elasticstack/utils.py
+++ b/elasticstack/utils.py
@@ -23,7 +23,6 @@
from haystack import connections
from importlib import import_module
-from django.apps import apps
def prepare_object(obj, using='default'):
@@ -45,13... | Import old get_model for older Django Includes compulsive docstring formatting | py |
diff --git a/listparser/__init__.py b/listparser/__init__.py
index <HASH>..<HASH> 100644
--- a/listparser/__init__.py
+++ b/listparser/__init__.py
@@ -128,7 +128,8 @@ def parse(parse_obj, agent=None, etag=None, modified=None, inject=False):
err = sys.exc_info()[1]
handler.harvest.bozo = 1
han... | Use a `finally` clause to ensure the file-like object is always closed | py |
diff --git a/num2words/lang_FR_DZ.py b/num2words/lang_FR_DZ.py
index <HASH>..<HASH> 100644
--- a/num2words/lang_FR_DZ.py
+++ b/num2words/lang_FR_DZ.py
@@ -40,8 +40,8 @@ def main():
n2w.test(132532543606787680176870010760100101221213214321047320754032705732095703297503297509327509327509327095732905732097509327295... | Minor fix to make code Python 3 compatible | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -3,6 +3,18 @@
# pylint: disable=bad-whitespace, attribute-defined-outside-init, invalid-name
""" rituals – Common tasks for 'Invoke' that are needed again and again.
+ This setuptools script follows the DRY principle an... | :arrow_upper_right: copied improvements from pilot project | py |
diff --git a/billing/integrations/pay_pal_integration.py b/billing/integrations/pay_pal_integration.py
index <HASH>..<HASH> 100644
--- a/billing/integrations/pay_pal_integration.py
+++ b/billing/integrations/pay_pal_integration.py
@@ -2,6 +2,8 @@ from billing import Integration
from django.conf import settings
from p... | Added the transaction_was_successful and transaction_was_unsuccessful in the PayPal integration. Fixes #9. | py |
diff --git a/normandy/recipes/api/serializers.py b/normandy/recipes/api/serializers.py
index <HASH>..<HASH> 100644
--- a/normandy/recipes/api/serializers.py
+++ b/normandy/recipes/api/serializers.py
@@ -114,6 +114,10 @@ class RecipeSerializer(serializers.ModelSerializer):
errorResponse = {}
errors = s... | Comment shape of error data in serializer | py |
diff --git a/fc/__init__.py b/fc/__init__.py
index <HASH>..<HASH> 100644
--- a/fc/__init__.py
+++ b/fc/__init__.py
@@ -1,4 +1,4 @@
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_... | Increased version number to <I>. | py |
diff --git a/faker/utils/distribution.py b/faker/utils/distribution.py
index <HASH>..<HASH> 100644
--- a/faker/utils/distribution.py
+++ b/faker/utils/distribution.py
@@ -1,6 +1,7 @@
# coding=utf-8
import bisect
+from sys import version_info
from faker.generator import random
def random_sample():
@@ -17,10 +18,... | Use random.choices when available for better performance | py |
diff --git a/blargg/models.py b/blargg/models.py
index <HASH>..<HASH> 100644
--- a/blargg/models.py
+++ b/blargg/models.py
@@ -149,7 +149,7 @@ class Entry(models.Model):
appear "Published", and send the ``entry_published`` signal."""
self.published = True
self.published_on = utc_now()
- ... | need an id prior to sending signals | py |
diff --git a/salt/modules/mysql.py b/salt/modules/mysql.py
index <HASH>..<HASH> 100644
--- a/salt/modules/mysql.py
+++ b/salt/modules/mysql.py
@@ -1080,9 +1080,9 @@ def user_exists(user,
host='localhost',
password=None,
password_hash=None,
- password_col... | move password_column to the end of kwargs | py |
diff --git a/reppy/parser.py b/reppy/parser.py
index <HASH>..<HASH> 100644
--- a/reppy/parser.py
+++ b/reppy/parser.py
@@ -228,7 +228,10 @@ class Rules(object):
cur.allowances.append(
(len(val), self._regex_rule(val), True))
elif cur and key == 'crawl-delay':
- ... | Passing test about not parsing malformed crawl delays. | py |
diff --git a/marketorestpython/client.py b/marketorestpython/client.py
index <HASH>..<HASH> 100644
--- a/marketorestpython/client.py
+++ b/marketorestpython/client.py
@@ -35,7 +35,8 @@ class MarketoClient:
result = getattr(request, method)(endpoint, *args, **kwargs)
self.API_CALLS_MADE += 1
i... | clarified error message for # of API call exceeded | py |
diff --git a/troposphere/emr.py b/troposphere/emr.py
index <HASH>..<HASH> 100644
--- a/troposphere/emr.py
+++ b/troposphere/emr.py
@@ -316,17 +316,19 @@ class Cluster(AWSObject):
props = {
'AdditionalInfo': (dict, False),
'Applications': ([Application], False),
+ 'AutoScalingRole': (basest... | Add RootVolumeSize and caleDownBehavior to EMR::Cluster | py |
diff --git a/mdp.py b/mdp.py
index <HASH>..<HASH> 100644
--- a/mdp.py
+++ b/mdp.py
@@ -6,19 +6,16 @@ as a dictionary of {state:action} pairs, and a Utility function as a
dictionary of {state:number} pairs. We then define the value_iteration
and policy_iteration algorithms."""
-# (Written for the second edition of ... | Convert mdp.py to third edition. | py |
diff --git a/tests/test_alldiff.py b/tests/test_alldiff.py
index <HASH>..<HASH> 100644
--- a/tests/test_alldiff.py
+++ b/tests/test_alldiff.py
@@ -129,8 +129,7 @@ class ALLDIFFconshdlr(Conshdlr):
G.remove_edges_from(visited_edges)
# compute strongly connected components of D and mark edges on th... | update networkx call to get connected components | py |
diff --git a/uvicorn/protocols/http/httptools.py b/uvicorn/protocols/http/httptools.py
index <HASH>..<HASH> 100644
--- a/uvicorn/protocols/http/httptools.py
+++ b/uvicorn/protocols/http/httptools.py
@@ -93,6 +93,10 @@ class HttpToolsProtocol(asyncio.Protocol):
def data_received(self, data):
try:
... | Catch invalid http requests (#<I>) | py |
diff --git a/fuzzyhashlib/__init__.py b/fuzzyhashlib/__init__.py
index <HASH>..<HASH> 100644
--- a/fuzzyhashlib/__init__.py
+++ b/fuzzyhashlib/__init__.py
@@ -1,3 +1,5 @@
+from __future__ import print_function
+import inspect
import libssdeep_wrapper
import sdhash_wrapper
@@ -69,7 +71,13 @@ class ssdeep(object):
... | updated: tests now work with 'python -m setup test' | py |
diff --git a/compliance_checker/cf/util.py b/compliance_checker/cf/util.py
index <HASH>..<HASH> 100644
--- a/compliance_checker/cf/util.py
+++ b/compliance_checker/cf/util.py
@@ -265,6 +265,9 @@ class StandardNameTable(object):
if cached_location:
with io.open(cached_location, 'r', encoding='utf-8... | Allow StandardNameTable to optionally load CF standard name table from a local path defined by an environment variable | py |
diff --git a/mythril/laser/ethereum/svm.py b/mythril/laser/ethereum/svm.py
index <HASH>..<HASH> 100644
--- a/mythril/laser/ethereum/svm.py
+++ b/mythril/laser/ethereum/svm.py
@@ -372,6 +372,8 @@ class LaserEVM:
# First execute the post hook for the transaction ending instruction
self._... | add todo relating to dependency on plugin from the svm | py |
diff --git a/post_office/models.py b/post_office/models.py
index <HASH>..<HASH> 100644
--- a/post_office/models.py
+++ b/post_office/models.py
@@ -120,11 +120,12 @@ class Email(models.Model):
status = STATUS.sent
message = ''
exception_type = ''
-
except:
sta... | close the backend connection after Email send successfully | py |
diff --git a/pyvista/core/composite.py b/pyvista/core/composite.py
index <HASH>..<HASH> 100644
--- a/pyvista/core/composite.py
+++ b/pyvista/core/composite.py
@@ -61,8 +61,8 @@ class MultiBlock(vtkMultiBlockDataSet, CompositeFilters, DataObject):
# Bind pyvista.plotting.plot to the object
plot = pyvista.plo... | Add .case reader to other _READERS directly. (#<I>) | py |
diff --git a/src/meshio/nastran/_nastran.py b/src/meshio/nastran/_nastran.py
index <HASH>..<HASH> 100644
--- a/src/meshio/nastran/_nastran.py
+++ b/src/meshio/nastran/_nastran.py
@@ -160,12 +160,15 @@ def read_buffer(f):
cell_ref = chunks[2].strip()
cell_ref = int(cell_ref) if len(cell_ref) > ... | Deal with orientation nodes of nastran 1D elements | py |
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index <HASH>..<HASH> 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -44,6 +44,7 @@ class Mastodon:
Returns client_id and client_secret.
"""
+ api_base_url = Mastodon.__protocolize(api_base_url)
reques... | Auto-add protocol to URLs that do not have one. Fixes #<I> | py |
diff --git a/rest_framework_json_api/utils.py b/rest_framework_json_api/utils.py
index <HASH>..<HASH> 100644
--- a/rest_framework_json_api/utils.py
+++ b/rest_framework_json_api/utils.py
@@ -178,7 +178,30 @@ def extract_relationships(fields, resource):
continue
# Skip fields without relations
- ... | Added support for RelatedFields and their variants | py |
diff --git a/master/buildbot/test/fake/fakeprotocol.py b/master/buildbot/test/fake/fakeprotocol.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/fake/fakeprotocol.py
+++ b/master/buildbot/test/fake/fakeprotocol.py
@@ -16,28 +16,15 @@
from twisted.internet import defer
-from buildbot.util import subscripti... | fake: Reuse base Connection in FakeTrivialConnection | py |
diff --git a/request_logging/middleware.py b/request_logging/middleware.py
index <HASH>..<HASH> 100644
--- a/request_logging/middleware.py
+++ b/request_logging/middleware.py
@@ -8,7 +8,7 @@ request_logger = logging.getLogger('django.request')
class LoggingMiddleware(object):
def process_request(self, request):... | Log full uri path including query strings | py |
diff --git a/fred/core.py b/fred/core.py
index <HASH>..<HASH> 100644
--- a/fred/core.py
+++ b/fred/core.py
@@ -8,14 +8,14 @@ import os
import requests
try:
- from itertools import ifilter as filter
+ from itertools import ifilter as filter
except ImportError:
- pass
+ pass
try:
- import simplejson as json... | A little bit disgusted that I had tabs in my code | py |
diff --git a/denovonear/gene_plot/diagram_plotter.py b/denovonear/gene_plot/diagram_plotter.py
index <HASH>..<HASH> 100755
--- a/denovonear/gene_plot/diagram_plotter.py
+++ b/denovonear/gene_plot/diagram_plotter.py
@@ -235,5 +235,3 @@ class DiagramPlotter(GenomicPlot, TranscriptPlot, DomainPlot, Consequences):
... | don't save a test png image | py |
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index <HASH>..<HASH> 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -148,12 +148,9 @@ class easy_install(Command):
create_index = PackageIndex
def initialize_options(self):
- ... | Different treatment of --user option to easy_install (refs #<I>) | py |
diff --git a/src/toil/statsAndLogging.py b/src/toil/statsAndLogging.py
index <HASH>..<HASH> 100644
--- a/src/toil/statsAndLogging.py
+++ b/src/toil/statsAndLogging.py
@@ -90,7 +90,7 @@ class StatsAndLogging( object ):
return
fullName = createName(path, mainFileName, extension)
- with writ... | Make sure to get binary mode output files in all cases | py |
diff --git a/dice/elements.py b/dice/elements.py
index <HASH>..<HASH> 100644
--- a/dice/elements.py
+++ b/dice/elements.py
@@ -113,8 +113,14 @@ class Operator(Element):
classname(self), ', '.join(map(str, self.orginal_operands)))
def evaluate(self):
- self.operands = map(self.evaluate_object,... | Fix for issue #3 - TypeError raised when same arithmetic operator is used multiple times | py |
diff --git a/build/build_wheel.py b/build/build_wheel.py
index <HASH>..<HASH> 100644
--- a/build/build_wheel.py
+++ b/build/build_wheel.py
@@ -57,13 +57,19 @@ def _copy_so(src_file, dst_dir, dst_filename=None):
else:
dst_filename = src_filename
dst_file = os.path.join(dst_dir, dst_filename)
- shutil.cop... | use shutil.copyfile to avoid readonly pyd file | py |
diff --git a/lib/svtplay_dl/service/cmore.py b/lib/svtplay_dl/service/cmore.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/service/cmore.py
+++ b/lib/svtplay_dl/service/cmore.py
@@ -129,5 +129,5 @@ class Cmore(Service):
res.encoding = "utf-8"
match = re.findall('<option value="([^"]+)">([^"]+)</o... | cmore: remove dash from the operator name | py |
diff --git a/hm/__init__.py b/hm/__init__.py
index <HASH>..<HASH> 100644
--- a/hm/__init__.py
+++ b/hm/__init__.py
@@ -1,5 +1,5 @@
-# Copyright 2014 hm authors. All rights reserved.
+# Copyright 2015 hm authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in t... | hm: bump to <I> | py |
diff --git a/src/python/grpcio/grpc/_channel.py b/src/python/grpcio/grpc/_channel.py
index <HASH>..<HASH> 100644
--- a/src/python/grpcio/grpc/_channel.py
+++ b/src/python/grpcio/grpc/_channel.py
@@ -1126,9 +1126,8 @@ class _ChannelCallState(object):
try:
self.channel.close(cygrpc.StatusCode.cancel... | Further reduce the spam log by doing nothing if GC has error | py |
diff --git a/tests/integration_test.py b/tests/integration_test.py
index <HASH>..<HASH> 100755
--- a/tests/integration_test.py
+++ b/tests/integration_test.py
@@ -148,8 +148,8 @@ class IntegrationTest(unittest.TestCase):
configurator.save_updated_config(save_config_locally=True, dry_run=False)
- ... | Connor - take one at modernising the second integration test | py |
diff --git a/lancet/cli.py b/lancet/cli.py
index <HASH>..<HASH> 100644
--- a/lancet/cli.py
+++ b/lancet/cli.py
@@ -385,11 +385,8 @@ def pull_request(ctx, base_branch, open_pr):
p = giturlparse(remote.url)
gh_repo = lancet.github.repository(p.owner, p.repo)
- description = (
- issue... | Remove the issue description from the prepopulated PR text. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -20,6 +20,18 @@ import dragonlib
PACKAGE_ROOT = os.path.dirname(os.path.abspath(__file__))
+if "publish" in sys.argv:
+ import subprocess
+ args = [sys.executable or "python", "setup.py", "sdist", "bdist_wheel", "up... | add "publish" in setup.py | py |
diff --git a/h2o-py/tests/testdir_misc/pyunit_time_comparisons.py b/h2o-py/tests/testdir_misc/pyunit_time_comparisons.py
index <HASH>..<HASH> 100644
--- a/h2o-py/tests/testdir_misc/pyunit_time_comparisons.py
+++ b/h2o-py/tests/testdir_misc/pyunit_time_comparisons.py
@@ -25,7 +25,7 @@ def test_date_comparisons():
a... | [ITA-<I>] pyunit_time_comparisons - Wrap the value so we are comparing two Timestamps (#<I>) | py |
diff --git a/extra_views_tests/views.py b/extra_views_tests/views.py
index <HASH>..<HASH> 100644
--- a/extra_views_tests/views.py
+++ b/extra_views_tests/views.py
@@ -76,7 +76,7 @@ class OrderCreateView(CreateWithInlinesView):
template_name = 'extra_views/order_and_items.html'
def get_success_url(self):
- ... | Django <I> requires trailing slash on success url. | py |
diff --git a/bika/lims/upgrade/to1010.py b/bika/lims/upgrade/to1010.py
index <HASH>..<HASH> 100644
--- a/bika/lims/upgrade/to1010.py
+++ b/bika/lims/upgrade/to1010.py
@@ -33,11 +33,11 @@ def addBatches(tool):
# and place it after ClientFolder
portal.moveObjectToPosition('batches', portal.objectIds().index('cl... | Fix <I> upgrade step (setBatchID -> setBatch) | py |
diff --git a/pyes/models.py b/pyes/models.py
index <HASH>..<HASH> 100644
--- a/pyes/models.py
+++ b/pyes/models.py
@@ -211,6 +211,8 @@ class ListBulker(BaseBulker):
def _is_bulk_item_ok(item):
+ if "create" in item:
+ return "ok" in item["create"]
if "index" in item:
return "ok" in item["in... | Bulk create throws invalid BulkOperationException When using: ```python es.index(doc, ELASTICSEARCH_INDEX, document_type, bulk=True, force_insert=True) es.flush_bulk(forced=True) ``` This was throwing a invalid BulkOperationException exception. | py |
diff --git a/tests/examples/auctions/test_simple_open_auction.py b/tests/examples/auctions/test_simple_open_auction.py
index <HASH>..<HASH> 100644
--- a/tests/examples/auctions/test_simple_open_auction.py
+++ b/tests/examples/auctions/test_simple_open_auction.py
@@ -64,6 +64,7 @@ def test_bid(w3, tester, auction_contra... | add a blank line to satisfy flake8 | py |
diff --git a/openquake/engine/export/hazard.py b/openquake/engine/export/hazard.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/export/hazard.py
+++ b/openquake/engine/export/hazard.py
@@ -104,6 +104,10 @@ def _get_result_export_path(calc_id, target_dir, result):
core.makedirs(directory)
if output_typ... | export/hazard: Include "-poe_N.N-" in filenames for UHS and hazard maps. | py |
diff --git a/git_repo/services/bitbucket.py b/git_repo/services/bitbucket.py
index <HASH>..<HASH> 100644
--- a/git_repo/services/bitbucket.py
+++ b/git_repo/services/bitbucket.py
@@ -93,7 +93,7 @@ class BitbucketService(RepositoryService):
def connect(self):
username, password = self._privatekey.split(':'... | Fixed monkey_patch() method call in bitbucket | py |
diff --git a/zipline/pipeline/data/dataset.py b/zipline/pipeline/data/dataset.py
index <HASH>..<HASH> 100644
--- a/zipline/pipeline/data/dataset.py
+++ b/zipline/pipeline/data/dataset.py
@@ -115,11 +115,13 @@ class DataSetMeta(type):
def __new__(mcls, name, bases, dict_):
newtype = super(DataSetMeta, mc... | DOC: add comments about the column collection in DataSetMeta | py |
diff --git a/requirements.py b/requirements.py
index <HASH>..<HASH> 100644
--- a/requirements.py
+++ b/requirements.py
@@ -1,6 +1,5 @@
install_requires = [
'docker-py==1.2.2',
- 'watchdog==0.8.0',
'PyYAML==3.11',
'PrettyTable==0.7.0',
'GitPython==1.0.1', | Also we are no longer using watchdog | py |
diff --git a/source/rafcon/mvc/mygaphas/tools.py b/source/rafcon/mvc/mygaphas/tools.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/mvc/mygaphas/tools.py
+++ b/source/rafcon/mvc/mygaphas/tools.py
@@ -559,7 +559,8 @@ class ConnectionModificationTool(ConnectionTool):
if not self.grabbed_handle:
r... | ConnectionModificationTool: Fix temp connection Correctly set of_target parameter of handle_temporary_connection method when button is released | py |
diff --git a/cumulusci/core/tests/test_config.py b/cumulusci/core/tests/test_config.py
index <HASH>..<HASH> 100644
--- a/cumulusci/core/tests/test_config.py
+++ b/cumulusci/core/tests/test_config.py
@@ -229,8 +229,7 @@ class TestYamlProjectConfig(unittest.TestCase):
self.current_branch = 'master'
def te... | don't bother removing temp dirs in tests; avoids issue with files being open in other process | py |
diff --git a/feed/setup.py b/feed/setup.py
index <HASH>..<HASH> 100644
--- a/feed/setup.py
+++ b/feed/setup.py
@@ -3,7 +3,7 @@
from setuptools import setup, find_packages
long_desc = '''
-This package contains the ${name} Sphinx extension.
+This package contains the feed Sphinx extension.
It creates an RSS feed ... | setup.py should probably contain project name | py |
diff --git a/moto/core/models.py b/moto/core/models.py
index <HASH>..<HASH> 100644
--- a/moto/core/models.py
+++ b/moto/core/models.py
@@ -89,6 +89,17 @@ class BaseMockAWS(object):
if inspect.ismethod(attr_value) and attr_value.__self__ is klass:
continue
+ # Check if this is ... | Fix #<I>: skip patching staticmethods | py |
diff --git a/note/server.py b/note/server.py
index <HASH>..<HASH> 100644
--- a/note/server.py
+++ b/note/server.py
@@ -242,6 +242,11 @@ class Note_Server(object):
date = msg['object']['date']
tags = msg['object']['tags']
+ if done.lower() == 'no' or done.lower() == 'false':
+ done ... | interpret "no" or "false" in a todo as not done | py |
diff --git a/charmhelpers/core/hookenv.py b/charmhelpers/core/hookenv.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/core/hookenv.py
+++ b/charmhelpers/core/hookenv.py
@@ -746,7 +746,8 @@ def leader_get(attribute=None):
@translate_exc(from_exc=OSError, to_exc=NotImplementedError)
def leader_set(settings=None, **kw... | leader-set should not blindly log everything, including secrets | py |
diff --git a/bors/app/config.py b/bors/app/config.py
index <HASH>..<HASH> 100644
--- a/bors/app/config.py
+++ b/bors/app/config.py
@@ -25,10 +25,6 @@ class AppConf:
services_by_name = {} # type: dict
def __init__(self, config=None):
- # Bail if we've been loaded before
- if self.conf is not N... | Removed conf singleton logic | py |
diff --git a/ayrton/tests/test_ayrton.py b/ayrton/tests/test_ayrton.py
index <HASH>..<HASH> 100644
--- a/ayrton/tests/test_ayrton.py
+++ b/ayrton/tests/test_ayrton.py
@@ -44,6 +44,9 @@ class TildeExpansion (unittest.TestCase):
def test_tilde_user (self):
self.assertEqual (bash ('~root'), [ '/root' ])
+ ... | [*] test for ~user/more. | py |
diff --git a/tools/run_tests/run_xds_tests.py b/tools/run_tests/run_xds_tests.py
index <HASH>..<HASH> 100755
--- a/tools/run_tests/run_xds_tests.py
+++ b/tools/run_tests/run_xds_tests.py
@@ -1942,11 +1942,13 @@ try:
gcp_suffix = args.gcp_suffix
health_check_name = _BASE_HEALTH_CHECK_NAME + gcp_suffix
if ... | Do not try to generate unique suffix when keep_gcp_resources is set | py |
diff --git a/chempy/units.py b/chempy/units.py
index <HASH>..<HASH> 100644
--- a/chempy/units.py
+++ b/chempy/units.py
@@ -411,7 +411,7 @@ def _get_unit_from_registry(dimensionality, registry):
def default_unit_in_registry(value, registry):
- _dimensionality = get_physical_quantity(value)
+ _dimensionality =... | Don't use deprecated function internally | py |
diff --git a/openquake/risklib/riskmodels.py b/openquake/risklib/riskmodels.py
index <HASH>..<HASH> 100644
--- a/openquake/risklib/riskmodels.py
+++ b/openquake/risklib/riskmodels.py
@@ -179,8 +179,6 @@ def get_risk_functions(oqparam, kind='vulnerability fragility consequence '
return rlist
- sid = assets['... | Fixed leftover lines [ci skip] | py |
diff --git a/qiskit/result/distributions/quasi.py b/qiskit/result/distributions/quasi.py
index <HASH>..<HASH> 100644
--- a/qiskit/result/distributions/quasi.py
+++ b/qiskit/result/distributions/quasi.py
@@ -24,7 +24,7 @@ from .probability import ProbDistribution
# __setitem__ so overloading __setitem__ would not alway... | Fix typo: [qasi -> quasi]-probability (#<I>) | py |
diff --git a/sirtrevor/views.py b/sirtrevor/views.py
index <HASH>..<HASH> 100644
--- a/sirtrevor/views.py
+++ b/sirtrevor/views.py
@@ -47,6 +47,7 @@ def attachment(request):
data['path'] = default_storage.save(name, file_)
data['url'] = default_storage.url(data['path'])
+ data['name'] = os.pa... | Also return the file name for each attachment. | py |
diff --git a/dolo/misc/yamlfile.py b/dolo/misc/yamlfile.py
index <HASH>..<HASH> 100644
--- a/dolo/misc/yamlfile.py
+++ b/dolo/misc/yamlfile.py
@@ -41,10 +41,6 @@ Imports the content of a modfile into the current interpreter scope
context = dict(context)
from dolo.symbolic.symbolic import timeshift as TS
- ... | BUG: horrible hack now accepts usual functions | py |
diff --git a/app/drivers/pycolator/filters.py b/app/drivers/pycolator/filters.py
index <HASH>..<HASH> 100644
--- a/app/drivers/pycolator/filters.py
+++ b/app/drivers/pycolator/filters.py
@@ -36,7 +36,7 @@ class FilterUniquePeptides(base.PycolatorDriver):
def get_all_psms(self):
"""Override parent method... | Sloppy, forgot to return there as well | py |
diff --git a/pyathena/sqlalchemy_athena.py b/pyathena/sqlalchemy_athena.py
index <HASH>..<HASH> 100644
--- a/pyathena/sqlalchemy_athena.py
+++ b/pyathena/sqlalchemy_athena.py
@@ -276,6 +276,8 @@ class AthenaDialect(DefaultDialect):
supports_default_values = False
supports_empty_insert = False
supports_mu... | Supports native decimal boolean | py |
diff --git a/lol_scraper/data_types.py b/lol_scraper/data_types.py
index <HASH>..<HASH> 100644
--- a/lol_scraper/data_types.py
+++ b/lol_scraper/data_types.py
@@ -2,6 +2,7 @@ from collections import defaultdict, namedtuple
from enum import Enum, unique
import datetime
import math
+import time as _time
@unique
cl... | Addeda a basic implementation of a cache | py |
diff --git a/test/high_availability/ha_tools.py b/test/high_availability/ha_tools.py
index <HASH>..<HASH> 100644
--- a/test/high_availability/ha_tools.py
+++ b/test/high_availability/ha_tools.py
@@ -112,7 +112,7 @@ def start_replica_set(members, auth=False, fresh=True):
if auth:
key_file = os.path.join(db... | Fix another Python 3-compatibility mistake in ha_tools. | py |
diff --git a/nudibranch/diff_render.py b/nudibranch/diff_render.py
index <HASH>..<HASH> 100644
--- a/nudibranch/diff_render.py
+++ b/nudibranch/diff_render.py
@@ -105,7 +105,7 @@ class HTMLDiff(difflib.HtmlDiff):
"""\t<a href="javascript:void(0)" onclick="hideAll(""" + \
"""'difflib_chg_{0}_top');">Hi... | Include test group name in failed test case output. | py |
diff --git a/confuse.py b/confuse.py
index <HASH>..<HASH> 100644
--- a/confuse.py
+++ b/confuse.py
@@ -892,7 +892,10 @@ class Configuration(RootView):
# Resolve default source location. We do this ahead of time to
# avoid unexpected problems if the working directory changes.
- self._package_p... | Revert switch to appname in package_path | py |
diff --git a/src/sp_test/tests.py b/src/sp_test/tests.py
index <HASH>..<HASH> 100644
--- a/src/sp_test/tests.py
+++ b/src/sp_test/tests.py
@@ -604,7 +604,7 @@ StatusCode is not success""",
},
}
-#
+#
# SP should not accept a broken Recipient attribute in assertion
# SubjectConfirmationData/@Recipient
# SP s... | remove one more non-ascii character from comment | py |
diff --git a/textrankr/__init__.py b/textrankr/__init__.py
index <HASH>..<HASH> 100644
--- a/textrankr/__init__.py
+++ b/textrankr/__init__.py
@@ -36,7 +36,9 @@ def build_graph(sentences):
graph.add_nodes_from(sentences)
pairs = list(itertools.combinations(sentences, 2))
for pair in pairs:
- graph... | Update __init__.py If weight is zero in build_graph, adding edge has no meaning | py |
diff --git a/sieve/rules/actions.py b/sieve/rules/actions.py
index <HASH>..<HASH> 100644
--- a/sieve/rules/actions.py
+++ b/sieve/rules/actions.py
@@ -1,17 +1,14 @@
-class SieveActions(object):
+class SieveActions(list):
def __init__(self, implicit_keep=False):
- self.actions = []
+ super(SieveAc... | make SieveActions inherit from list. simple delegation doesn't work with new-style classes. | py |
diff --git a/backtrader/indicators/ma.py b/backtrader/indicators/ma.py
index <HASH>..<HASH> 100644
--- a/backtrader/indicators/ma.py
+++ b/backtrader/indicators/ma.py
@@ -74,7 +74,28 @@ class MovingAverageSmoothed(MovingAverageSmoothing):
self.smoothfactor = 1.0 / self.fperiod
-class MAType(object):
+class... | MASmoothedNan - Variation of MASmoothed that outputs NAN if data is NAN - Delay of feed value until enough non-NAN values have been accumulated for a MovingAverageSimple to create the feed - Renamed MAType to MAEnum | py |
diff --git a/cli/cumulusci.py b/cli/cumulusci.py
index <HASH>..<HASH> 100644
--- a/cli/cumulusci.py
+++ b/cli/cumulusci.py
@@ -161,7 +161,7 @@ def ci_deploy(config):
raise click.BadParameter('Could not determine commit or branch for ci deploy')
if config.build_type == 'feature':
- click.e... | echo out the target org suffix in feature builds | py |
diff --git a/porespy/tools/__funcs__.py b/porespy/tools/__funcs__.py
index <HASH>..<HASH> 100644
--- a/porespy/tools/__funcs__.py
+++ b/porespy/tools/__funcs__.py
@@ -86,6 +86,30 @@ def find_outer_region(im, r=0):
return outer_region
+def extract_cylinder(im, r=None):
+ r"""
+ Returns a cylinderical sect... | Added a little tool for making square images look like cylindrical cores | py |
diff --git a/moban/fs_openers.py b/moban/fs_openers.py
index <HASH>..<HASH> 100644
--- a/moban/fs_openers.py
+++ b/moban/fs_openers.py
@@ -5,7 +5,6 @@ from moban.plugins.library import LIBRARIES
import fs
import fs.path
-from fs.osfs import OSFS
from fs.opener import Opener
from fs.opener.registry import registry... | :sparkles: use EnhancedOSFS for custom pypi and repo | py |
diff --git a/src/holodeck/environments.py b/src/holodeck/environments.py
index <HASH>..<HASH> 100644
--- a/src/holodeck/environments.py
+++ b/src/holodeck/environments.py
@@ -26,7 +26,7 @@ from holodeck.command import (
from holodeck.exceptions import HolodeckException
from holodeck.holodeckclient import HolodeckClie... | Add message with log locations to engine errors | py |
diff --git a/ovirtlago/__init__.py b/ovirtlago/__init__.py
index <HASH>..<HASH> 100644
--- a/ovirtlago/__init__.py
+++ b/ovirtlago/__init__.py
@@ -499,6 +499,12 @@ class OvirtPrefix(Prefix):
for vm in self.virt_env.get_vms().values():
vm.wait_for_ssh()
+ with LogTask('Wait for eng... | ovirtlago:Added a wait for the engine to go up It was working before because we did not handle exceptions properly Change-Id: Ie<I>c3b<I>c<I>e1a9b<I>c4e9a<I>fa<I>a | py |
diff --git a/spinoff/actor/events.py b/spinoff/actor/events.py
index <HASH>..<HASH> 100644
--- a/spinoff/actor/events.py
+++ b/spinoff/actor/events.py
@@ -129,7 +129,7 @@ class Events(object):
except Exception: # pragma: no cover
err("Error in event handler:\n", traceback.... | Don't add the *** when logging an event | py |
diff --git a/bigquery/client.py b/bigquery/client.py
index <HASH>..<HASH> 100644
--- a/bigquery/client.py
+++ b/bigquery/client.py
@@ -460,7 +460,7 @@ class BigQueryClient(object):
}
try:
- logger.info("Creating load job %s" % body)
+ logger.debug("Creating load job %s" % body)... | Lower create load job logging level Change to debug level to be consistent with logging in query method. | py |
diff --git a/ykman/driver_ccid.py b/ykman/driver_ccid.py
index <HASH>..<HASH> 100644
--- a/ykman/driver_ccid.py
+++ b/ykman/driver_ccid.py
@@ -116,10 +116,7 @@ class CCIDDriver(AbstractDriver):
header = [cl, ins, p1, p2, len(data)]
body = list(six.iterbytes(data))
try:
- from binas... | Remove debug print for CCID commands. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -28,7 +28,7 @@ with open('LICENSE.md') as f:
license = f.read()
setup(name='pymap',
- version='0.24.0',
+ version='0.24.1',
author='Ian Good',
author_email='ian@icgood.net',
description='... | Update swim-protocol version for secret file | py |
diff --git a/tests/test_tokenization_auto.py b/tests/test_tokenization_auto.py
index <HASH>..<HASH> 100644
--- a/tests/test_tokenization_auto.py
+++ b/tests/test_tokenization_auto.py
@@ -101,5 +101,5 @@ class AutoTokenizerTest(unittest.TestCase):
self.assertFalse(issubclass(child_model_fast... | Test correct tokenizers after default switch (#<I>) | py |
diff --git a/mambustruct.py b/mambustruct.py
index <HASH>..<HASH> 100644
--- a/mambustruct.py
+++ b/mambustruct.py
@@ -18,6 +18,8 @@ class MambuStruct(object):
# Initializa a partir de un diccionario con los elementos de la cuenta
def init(self, attrs={}):
self.attrs = attrs
+ self.preprocess(... | preprocess and serial backup on init method | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.