diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/vcs/nodes.py b/vcs/nodes.py
index <HASH>..<HASH> 100644
--- a/vcs/nodes.py
+++ b/vcs/nodes.py
@@ -249,7 +249,6 @@ class FileNode(Node):
self.changeset = changeset
self._content = content
self._mode = mode or 0100644
- self._binary_flag = None
@LazyProperty
def ... | reverted some earlier changes, this is best balance between speed memory usage and returning proper mimetypes | py |
diff --git a/semantic_release/pypi.py b/semantic_release/pypi.py
index <HASH>..<HASH> 100644
--- a/semantic_release/pypi.py
+++ b/semantic_release/pypi.py
@@ -1,6 +1,7 @@
"""PyPI
"""
from invoke import run
+from twine import settings
from twine.commands import upload as twine_upload
@@ -20,17 +21,11 @@ def uplo... | fix: Use new interface for twine | py |
diff --git a/tests/test_runner.py b/tests/test_runner.py
index <HASH>..<HASH> 100644
--- a/tests/test_runner.py
+++ b/tests/test_runner.py
@@ -31,14 +31,14 @@ def test_duration():
assert runner.duration(start) >= 0.5
def test_run_ids():
- res = runner._run_ids(TestRunner(conf={}), None)
+ res = runner._ru... | Fix py.test warning due to class name | py |
diff --git a/toytree/Randomtree.py b/toytree/Randomtree.py
index <HASH>..<HASH> 100644
--- a/toytree/Randomtree.py
+++ b/toytree/Randomtree.py
@@ -265,8 +265,6 @@ class RandomTree(object):
verbose (bool):
Print some useful information
"""
- assert b <= 1, "birth rate should be betw... | Removed asserts for b/d, rates are per unit time, not proportional, so that can take values greater than 1 | py |
diff --git a/web/ext/base.py b/web/ext/base.py
index <HASH>..<HASH> 100644
--- a/web/ext/base.py
+++ b/web/ext/base.py
@@ -5,10 +5,16 @@ try:
except ImportError:
IOBase = None
+try:
+ from collections import Generator
+except ImportError:
+ def _tmp():
+ yield None
+ Generator = type(_tmp())
+
from os.path impor... | Generator is, apparently, rather new. | py |
diff --git a/test/vtgatev2_test.py b/test/vtgatev2_test.py
index <HASH>..<HASH> 100755
--- a/test/vtgatev2_test.py
+++ b/test/vtgatev2_test.py
@@ -803,6 +803,10 @@ class TestFailures(unittest.TestCase):
# test timeout between vtgate and vttablet
# the timeout is set to 5 seconds
def test_tablet_timeout(self):
... | Comment out a testcase which is not valid under current design. | py |
diff --git a/_pydevd_bundle/pydevd_constants.py b/_pydevd_bundle/pydevd_constants.py
index <HASH>..<HASH> 100644
--- a/_pydevd_bundle/pydevd_constants.py
+++ b/_pydevd_bundle/pydevd_constants.py
@@ -187,9 +187,13 @@ if IS_PY3K:
return list(d.items())
else:
+ dict_keys = None
try:
dict_keys ... | Fix dict_keys in order to use it in Jython with f_locals dict (PY-<I>) (cherry picked from commit b8cb<I>d) | py |
diff --git a/kitnirc/client.py b/kitnirc/client.py
index <HASH>..<HASH> 100644
--- a/kitnirc/client.py
+++ b/kitnirc/client.py
@@ -118,6 +118,8 @@ class Client(object):
_log.warning("Disconnect requested from non-connected client (%s)",
self.server.host)
return
+
+ _log... | Add INFO log line for disconnects | py |
diff --git a/pyky040/pyky040.py b/pyky040/pyky040.py
index <HASH>..<HASH> 100644
--- a/pyky040/pyky040.py
+++ b/pyky040/pyky040.py
@@ -16,7 +16,7 @@ class Encoder:
sw = None
polling_interval = None # Polling interval (in ms)
- sw_debounce_time = 100 # Debounce time (for switch only)
+ sw_debounce_ti... | Changed default debounce time to <I>ms | py |
diff --git a/coupons/tests/test_use_cases.py b/coupons/tests/test_use_cases.py
index <HASH>..<HASH> 100644
--- a/coupons/tests/test_use_cases.py
+++ b/coupons/tests/test_use_cases.py
@@ -46,3 +46,23 @@ class DefaultCouponTestCase(TestCase):
self.assertIsNone(self.coupon.users.first().user)
# form shou... | add test case to redeem and to create coupon bound to a single user | py |
diff --git a/tests/jenkins.py b/tests/jenkins.py
index <HASH>..<HASH> 100644
--- a/tests/jenkins.py
+++ b/tests/jenkins.py
@@ -44,7 +44,7 @@ def run(platform, provider, commit, clean):
htag = hashlib.md5(str(random.randint(1, 100000000))).hexdigest()[:6]
vm_name = 'ZZZ-{0}-{1}'.format(platform, htag)
cmd... | Let's try to get the test suite output | py |
diff --git a/rest_framework_json_api/metadata.py b/rest_framework_json_api/metadata.py
index <HASH>..<HASH> 100644
--- a/rest_framework_json_api/metadata.py
+++ b/rest_framework_json_api/metadata.py
@@ -73,7 +73,7 @@ class JSONAPIMetadata(SimpleMetadata):
serializer = serializer.child
# Remove t... | Don't crash on missing URL field | py |
diff --git a/fusionbox/blog/models.py b/fusionbox/blog/models.py
index <HASH>..<HASH> 100644
--- a/fusionbox/blog/models.py
+++ b/fusionbox/blog/models.py
@@ -5,6 +5,7 @@ from fusionbox import behaviors
from django_extensions.db.fields import AutoSlugField
from south.modelsinspector import add_introspection_rules
im... | changed "author" column to be FK of django.contrib.auth.models.User | py |
diff --git a/testsuite/test_cim_obj.py b/testsuite/test_cim_obj.py
index <HASH>..<HASH> 100755
--- a/testsuite/test_cim_obj.py
+++ b/testsuite/test_cim_obj.py
@@ -6752,8 +6752,6 @@ TESTCASES_CIMINSTANCE_FROMCLASS = [
),
None, None, OK
),
- # TODO This test passes because of issue #1188 that do... | Removed TODOs in test_cim_obj.py related to issue <I> and re-enabled test | py |
diff --git a/marrow/mailer/__init__.py b/marrow/mailer/__init__.py
index <HASH>..<HASH> 100644
--- a/marrow/mailer/__init__.py
+++ b/marrow/mailer/__init__.py
@@ -9,13 +9,14 @@ import pkg_resources
from functools import partial
+from marrow.mailer.message import Message
from marrow.mailer.exc import MailerNotRunn... | Added __repr__ and import of Message class for easy combined imports. | py |
diff --git a/bindings/py/tests/network_test.py b/bindings/py/tests/network_test.py
index <HASH>..<HASH> 100644
--- a/bindings/py/tests/network_test.py
+++ b/bindings/py/tests/network_test.py
@@ -21,7 +21,7 @@
import unittest
-from nupic import engine
+import nupic.bindings.engine_internal as engine
@@ -35,8 ... | Use internal api, independent of higher-level nupic.engine api | py |
diff --git a/shutit_global.py b/shutit_global.py
index <HASH>..<HASH> 100644
--- a/shutit_global.py
+++ b/shutit_global.py
@@ -313,7 +313,8 @@ class ShutIt(object):
self.setup_prompt('reset_tmp_prompt', child=child)
self.revert_prompt('reset_tmp_prompt', expect,
... | get_output removes first line | py |
diff --git a/angr/simos.py b/angr/simos.py
index <HASH>..<HASH> 100644
--- a/angr/simos.py
+++ b/angr/simos.py
@@ -44,6 +44,21 @@ class SimOS(object):
def state_blank(self, addr=None, initial_prefix=None, **kwargs):
if kwargs.get('mode', None) is None:
kwargs['mode'] = self.proj._default_anal... | Pass in a permissions backer when creating a state for page permissions support | py |
diff --git a/slumber/__init__.py b/slumber/__init__.py
index <HASH>..<HASH> 100644
--- a/slumber/__init__.py
+++ b/slumber/__init__.py
@@ -109,10 +109,12 @@ class Resource(ResourceAttributesMixin, object):
resp = self._request("GET", params=kwargs)
if 200 <= resp.status_code <= 299:
- if ... | Don't assume on the format of the serialized, use content_type | py |
diff --git a/graphcommons.py b/graphcommons.py
index <HASH>..<HASH> 100644
--- a/graphcommons.py
+++ b/graphcommons.py
@@ -57,6 +57,10 @@ class Graph(Entity):
class GraphCommonsException(Exception):
def __init__(self, status_code, message):
self.status_code = status_code
+
+ if isinstance(message,... | small fix: Exceptions with unicode message can now be printed | py |
diff --git a/flask_github.py b/flask_github.py
index <HASH>..<HASH> 100644
--- a/flask_github.py
+++ b/flask_github.py
@@ -14,7 +14,7 @@ from functools import wraps
import requests
from flask import redirect, request, json
-__version__ = '0.3.1'
+__version__ = '0.3.2'
logger = logging.getLogger(__name__)
@@ -2... | add response property to GitHubError | py |
diff --git a/napalm_yang/parser.py b/napalm_yang/parser.py
index <HASH>..<HASH> 100644
--- a/napalm_yang/parser.py
+++ b/napalm_yang/parser.py
@@ -70,8 +70,10 @@ class Parser(object):
if isinstance(r, dict) and all([isinstance(x, (str, unicode)) for x in r.values()]):
# Some vendors like j... | Correctly append list of command results In the _execute_methods function, if the results are returned as a list they were being appended to the results list. So there would be a list inside the results list, which would later cause an error while trying to decode the results. This happens when parsing state against... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -58,6 +58,7 @@ setup(
'Framework :: Django :: 1.11',
'Framework :: Django :: 2.0',
'Framework :: Django :: 2.1',
+ 'Framework :: Django :: 2.2',
],
zip_safe=False,
tests_require... | Added support for Django <I> | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -38,7 +38,7 @@ exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
nitpicky = True
# We need a recent sphinx because of the last update format.
-needs_sphinx = '1.4'
+#needs_sphinx = '1.4'
html_last_up... | Relax sphinx requirements while we investigate install process. | py |
diff --git a/mpd/tests.py b/mpd/tests.py
index <HASH>..<HASH> 100755
--- a/mpd/tests.py
+++ b/mpd/tests.py
@@ -4,6 +4,7 @@
from __future__ import absolute_import
import itertools
import mpd
+import mpd.asyncio
import os
import socket
import sys
@@ -23,10 +24,7 @@ except ImportError:
)
TWISTED_MISSING = ... | tests: Remove old Python 2 workarounds The asyncio module is now available in all supported Python versions. | py |
diff --git a/autolens/model/profiles/mass_profiles.py b/autolens/model/profiles/mass_profiles.py
index <HASH>..<HASH> 100644
--- a/autolens/model/profiles/mass_profiles.py
+++ b/autolens/model/profiles/mass_profiles.py
@@ -955,9 +955,6 @@ class SphericalTruncatedNFW(AbstractEllipticalGeneralizedNFW):
def deflectio... | Convergence for truncated nfw worked so restored. | py |
diff --git a/hangups/channel.py b/hangups/channel.py
index <HASH>..<HASH> 100644
--- a/hangups/channel.py
+++ b/hangups/channel.py
@@ -1,7 +1,10 @@
"""Support for reading messages from the long-polling channel.
Hangouts receives events using a system that appears very close to an App
-Engine Channel.
+Engine Channe... | Add link to webchannel in closure-library | py |
diff --git a/openquake/engine/engine.py b/openquake/engine/engine.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/engine.py
+++ b/openquake/engine/engine.py
@@ -336,6 +336,7 @@ def run_calc(job_id, oqparam, exports, hazard_calculation_id=None, **kw):
logging.warning('Using %d cores on %s',
... | More logging [skip CI] | py |
diff --git a/pdblp/_version.py b/pdblp/_version.py
index <HASH>..<HASH> 100644
--- a/pdblp/_version.py
+++ b/pdblp/_version.py
@@ -1 +1 @@
-__version__ = "0.1.1"
+__version__ = "0.1.2" | version bump for release <I> | py |
diff --git a/holoviews/plotting/element.py b/holoviews/plotting/element.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/element.py
+++ b/holoviews/plotting/element.py
@@ -158,6 +158,11 @@ class ElementPlot(Plot):
if b == t: t += 1. # Arbitrary y-extent if zero range
... | Disabled legends for non-overlaid Plots | py |
diff --git a/ipyrad/assemble/rawedit.py b/ipyrad/assemble/rawedit.py
index <HASH>..<HASH> 100644
--- a/ipyrad/assemble/rawedit.py
+++ b/ipyrad/assemble/rawedit.py
@@ -174,8 +174,8 @@ def cutadaptit_single(data, sample):
mintrimlen. If filter=1, we add quality filters. If filter=2 we add
adapter filters.
... | forgot sname var in cutadaptit_single | py |
diff --git a/consul/base.py b/consul/base.py
index <HASH>..<HASH> 100644
--- a/consul/base.py
+++ b/consul/base.py
@@ -162,6 +162,8 @@ class Consul(object):
if os.getenv('CONSUL_HTTP_ADDR'):
host, port = os.getenv('CONSUL_HTTP_ADDR').split(':')
+ if os.getenv('CONSUL_HTTP_SSL') != None:
+... | CONSUL_HTTP_SSL can be used to override scheme | py |
diff --git a/holoviews/selection.py b/holoviews/selection.py
index <HASH>..<HASH> 100644
--- a/holoviews/selection.py
+++ b/holoviews/selection.py
@@ -10,6 +10,7 @@ from .core.dimension import OrderedDict
from .core.element import Element, Layout
from .core.options import CallbackError, Store
from .core.overlay impo... | add AdjointLayout to selection transform (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -139,7 +139,7 @@ setup(
license='MIT',
classifiers=classifiers,
keywords=keywords,
- packages=['moderngl'],
+ packages=['moderngl', 'moderngl.program_members'],
install_requires=install_requires,
... | Missing program_members package in release | py |
diff --git a/indy_common/test/auth/test_auth_rev_reg_def_with_new_auth_map.py b/indy_common/test/auth/test_auth_rev_reg_def_with_new_auth_map.py
index <HASH>..<HASH> 100644
--- a/indy_common/test/auth/test_auth_rev_reg_def_with_new_auth_map.py
+++ b/indy_common/test/auth/test_auth_rev_reg_def_with_new_auth_map.py
@@ -1... | [INDY-<I>] another flake8 fix for authmap tests | py |
diff --git a/canmatrix/xls.py b/canmatrix/xls.py
index <HASH>..<HASH> 100644
--- a/canmatrix/xls.py
+++ b/canmatrix/xls.py
@@ -412,9 +412,11 @@ def load(file, **options):
launchType = sh.cell(rownum, index['launchType']).value
dlc = 8
launchParam = sh.cell(rownum, index['launchPar... | fix cycleTime and launchType (which is not used) #<I> | py |
diff --git a/telethon_examples/assistant.py b/telethon_examples/assistant.py
index <HASH>..<HASH> 100644
--- a/telethon_examples/assistant.py
+++ b/telethon_examples/assistant.py
@@ -378,9 +378,18 @@ bot.start(bot_token=TOKEN)
# the now downloaded `plugins/` folder). We try importing them so
# that the ex... | Support importing plugins in assistant when ran as module | py |
diff --git a/currency_converter/currency_converter.py b/currency_converter/currency_converter.py
index <HASH>..<HASH> 100644
--- a/currency_converter/currency_converter.py
+++ b/currency_converter/currency_converter.py
@@ -205,7 +205,12 @@ class CurrencyConverter(object):
1 + (last_date - first_dat... | Expand docstring for CurrencyConverter._compute_missing_rates Make it explicit that linear interpolation, not 1-nearest-neighbour, is used. | py |
diff --git a/proso_questions/json_enrich.py b/proso_questions/json_enrich.py
index <HASH>..<HASH> 100644
--- a/proso_questions/json_enrich.py
+++ b/proso_questions/json_enrich.py
@@ -6,6 +6,8 @@ from proso.django.response import pass_get_parameters
import proso_models.models
import numpy
+IGNORE_GET = ['category']
... | ignore category in passing GET params | py |
diff --git a/test/spambl_test.py b/test/spambl_test.py
index <HASH>..<HASH> 100644
--- a/test/spambl_test.py
+++ b/test/spambl_test.py
@@ -11,8 +11,6 @@ from spambl import (UnknownCodeError, NXDOMAIN, HpHosts,
from mock import Mock, patch, MagicMock
from itertools import combinations, product, chain
-from collectio... | Remove spambl_test.Url named tuple | py |
diff --git a/test/deployment/rpm/test.py b/test/deployment/rpm/test.py
index <HASH>..<HASH> 100755
--- a/test/deployment/rpm/test.py
+++ b/test/deployment/rpm/test.py
@@ -104,7 +104,7 @@ try:
lprint('Copying grakn distribution from CircleCI job into "' + instance + '"')
sp.check_call(['cat', 'VERSION'])
- ... | Fix RPM deployment test (#<I>) ## What is the goal of this PR? RPM deployment test was broken because modified `VERSION` was not included into archive transferred to GCP which lead to testing a release version (e.g. `<I>`) instead of snapshot version (e.g. `<I>_snapshot`) ## What are the changes implemented in t... | py |
diff --git a/janome/lattice.py b/janome/lattice.py
index <HASH>..<HASH> 100644
--- a/janome/lattice.py
+++ b/janome/lattice.py
@@ -115,10 +115,8 @@ class Lattice:
node.pos = self.p
node.index = len(self.snodes[self.p])
self.snodes[self.p].append(node)
- try:
- self.enodes[se... | small fix in Lattice.add() | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -122,7 +122,7 @@ copyright = '2014 SaltStack, Inc.'
version = salt.version.__version__
#release = '.'.join(map(str, salt.version.__version_info__))
-release = '2014.1.3'
+release = '2014.1.4'
language = 'en'... | Update docs version to <I> | py |
diff --git a/salt/states/file.py b/salt/states/file.py
index <HASH>..<HASH> 100644
--- a/salt/states/file.py
+++ b/salt/states/file.py
@@ -4518,7 +4518,10 @@ def copy(
'The target directory {0} is not present'.format(dname))
# All tests pass, move the file into place
try:
- shutil.copy... | Made file.copy work for directories | py |
diff --git a/autolens/autofit/non_linear.py b/autolens/autofit/non_linear.py
index <HASH>..<HASH> 100644
--- a/autolens/autofit/non_linear.py
+++ b/autolens/autofit/non_linear.py
@@ -339,7 +339,7 @@ class MultiNest(NonLinearOptimizer):
fitness_function = Fitness(self.variable.instance_from_physical_vector, sel... | Changed directory structure of a phase / nl optiizer for easier access to results | py |
diff --git a/anthemav/protocol.py b/anthemav/protocol.py
index <HASH>..<HASH> 100755
--- a/anthemav/protocol.py
+++ b/anthemav/protocol.py
@@ -348,7 +348,7 @@ class AVR(asyncio.Protocol):
self.log.debug('> %s', command)
try:
self.transport.write(command)
- time.sleep(0.01)
+ ... | Add delay after command to avoid overruns | py |
diff --git a/src/peltak/cli/docs.py b/src/peltak/cli/docs.py
index <HASH>..<HASH> 100644
--- a/src/peltak/cli/docs.py
+++ b/src/peltak/cli/docs.py
@@ -7,7 +7,7 @@ from __future__ import absolute_import
from . import cli, click
-@cli.command('docs')
+@cli.group('docs', invoke_without_command=True)
@click.option(
... | Turn docs command into a command group More extendable by 3rd party code | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
from setuptools import setup
setup(name='conj',
- version='1.3',
+ version='1.4',
description='Python conjugation module for Turkish',
url='https://github.com/halilkaya/conj',
au... | Version upgrade to <I> on setup.py | py |
diff --git a/tasks.py b/tasks.py
index <HASH>..<HASH> 100644
--- a/tasks.py
+++ b/tasks.py
@@ -151,10 +151,10 @@ def update_doc(ctx):
@task
-def publish(ctx):
+def publish(ctx, pypi_username="Shyue.Ping.Ong"):
ctx.run("rm dist/*.*", warn=True)
ctx.run("python setup.py sdist bdist_wheel")
- ctx.run("tw... | Update tasks.py to take pypi username as a keyword arg | py |
diff --git a/argh/helpers.py b/argh/helpers.py
index <HASH>..<HASH> 100644
--- a/argh/helpers.py
+++ b/argh/helpers.py
@@ -17,7 +17,7 @@ import locale
import sys
from types import GeneratorType
-from argh.six import b, u, string_types, text_type, BytesIO
+from argh.six import b, u, string_types, text_type, BytesIO,... | Fixed helpers.confirm not working in python3. Fixes #<I>. | py |
diff --git a/symfit/core/fit.py b/symfit/core/fit.py
index <HASH>..<HASH> 100644
--- a/symfit/core/fit.py
+++ b/symfit/core/fit.py
@@ -8,8 +8,7 @@ import sympy
from sympy.core.relational import Relational
import numpy as np
from scipy.optimize import minimize
-from scipy.integrate import ode, odeint
-from scipy.inte... | Deleted some unused imports. | py |
diff --git a/docker/utils/utils.py b/docker/utils/utils.py
index <HASH>..<HASH> 100644
--- a/docker/utils/utils.py
+++ b/docker/utils/utils.py
@@ -620,7 +620,7 @@ def create_host_config(binds=None, port_bindings=None, lxc_conf=None,
device_write_bps=None, device_read_iops=None,
... | fix #<I>, support PidsLimit in host config | py |
diff --git a/yModel/mongo.py b/yModel/mongo.py
index <HASH>..<HASH> 100644
--- a/yModel/mongo.py
+++ b/yModel/mongo.py
@@ -175,7 +175,7 @@ class MongoTree(MongoSchema, Tree):
else:
ValidationError("Unexpected child model: {} vs {}".format(child.__name__, self.children_models[as_]))
- async def children(s... | exclude fields has moved to the rendering of the information of the model | py |
diff --git a/src/pymop/test/manual_inspection/context.py b/src/pymop/test/manual_inspection/context.py
index <HASH>..<HASH> 100644
--- a/src/pymop/test/manual_inspection/context.py
+++ b/src/pymop/test/manual_inspection/context.py
@@ -4,7 +4,7 @@ import os
import sys
root_test_dir = os.path.dirname(os.path.dirname(... | Added one directory higher to path in test context. | py |
diff --git a/openpnm/__init__.py b/openpnm/__init__.py
index <HASH>..<HASH> 100644
--- a/openpnm/__init__.py
+++ b/openpnm/__init__.py
@@ -54,20 +54,6 @@ It consists of the following submodules:
__version__ = '2.0.3'
-#try:
-# import os
-# from pathlib import Path
-# from git import Repo
-# path = Path... | removing version crud from init | py |
diff --git a/ropetest/testutils.py b/ropetest/testutils.py
index <HASH>..<HASH> 100644
--- a/ropetest/testutils.py
+++ b/ropetest/testutils.py
@@ -63,6 +63,18 @@ def run_only_for_25(func):
return do_nothing
+def only_for(version):
+ """Should be used as a decorator for a unittest.TestCase test method"""... | testutils: added only_for decorator | py |
diff --git a/holoviews/core/spaces.py b/holoviews/core/spaces.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/spaces.py
+++ b/holoviews/core/spaces.py
@@ -808,13 +808,13 @@ class DynamicMap(HoloMap):
"""
Collation allows collapsing DynamicMaps with invalid nesting
hierarchies. This is par... | Updated DynamicMap.collate docstring | py |
diff --git a/fatbotslim/handlers.py b/fatbotslim/handlers.py
index <HASH>..<HASH> 100644
--- a/fatbotslim/handlers.py
+++ b/fatbotslim/handlers.py
@@ -183,7 +183,6 @@ class CommandHandler(BaseHandler):
return
split_args = msg.args[0].split()
trigger = split_args[0].lstrip(self.trigger_cha... | no longer strip trigger from messages args - fixes #4 | py |
diff --git a/pyipmi/sel.py b/pyipmi/sel.py
index <HASH>..<HASH> 100644
--- a/pyipmi/sel.py
+++ b/pyipmi/sel.py
@@ -15,6 +15,8 @@
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+from array import array
+
from .err... | sel: fix python2/python2 issue | py |
diff --git a/datastorage/datastorage.py b/datastorage/datastorage.py
index <HASH>..<HASH> 100644
--- a/datastorage/datastorage.py
+++ b/datastorage/datastorage.py
@@ -70,7 +70,9 @@ def dictToH5Group(d, group, link_copy=True):
"""
global _array_cache
_array_cache = dict()
- for key, value in d.items():... | bugfix: super().__setitem__(key, value) was called twice when accessing via a["ciao"]=value | py |
diff --git a/datatableview/utils.py b/datatableview/utils.py
index <HASH>..<HASH> 100644
--- a/datatableview/utils.py
+++ b/datatableview/utils.py
@@ -316,11 +316,8 @@ def filter_real_fields(model, field_list, key=None):
names that can be queried in the ORM, and [1] the set of virtual names that can't be handled.
... | Simplify key mapping function Calling map(None, []) is a valid identity operation, so the if-else branch is removed. | py |
diff --git a/galpy/df_src/diskdf.py b/galpy/df_src/diskdf.py
index <HASH>..<HASH> 100644
--- a/galpy/df_src/diskdf.py
+++ b/galpy/df_src/diskdf.py
@@ -573,7 +573,7 @@ class diskdf(df):
if _APY_LOADED and isinstance(l,units.Quantity):
l= l.to(units.rad).value
if _APY_LOADED and isinsta... | Some fixes of Quantity input handling in sampling methods of diskdf | py |
diff --git a/taxtastic/taxtable.py b/taxtastic/taxtable.py
index <HASH>..<HASH> 100644
--- a/taxtastic/taxtable.py
+++ b/taxtastic/taxtable.py
@@ -46,6 +46,14 @@ class TaxNode(object):
if child.index is self.index:
child.index = None
+ # Remove child subtree from index
+ for n in c... | Remove subtree from index in TaxNode.remove_child A node's children are now removed along with the node. | py |
diff --git a/fluxanalysis.py b/fluxanalysis.py
index <HASH>..<HASH> 100644
--- a/fluxanalysis.py
+++ b/fluxanalysis.py
@@ -45,3 +45,23 @@ def flux_balance(model, reaction='Biomass', solver=lpsolver.CplexSolver()):
for rxnid in model.reaction_set:
yield rxnid, prob.solution.get_values('v_'+rxnid)
+
+def ... | fluxanalysis: Implement naive consistency check | py |
diff --git a/openfisca_country_template/entities.py b/openfisca_country_template/entities.py
index <HASH>..<HASH> 100644
--- a/openfisca_country_template/entities.py
+++ b/openfisca_country_template/entities.py
@@ -14,6 +14,15 @@ Household = build_entity(
Contains multiple natural persons with specific roles.
... | Add example and link to official documentation on every entity | py |
diff --git a/tweepy/models.py b/tweepy/models.py
index <HASH>..<HASH> 100644
--- a/tweepy/models.py
+++ b/tweepy/models.py
@@ -57,6 +57,7 @@ class Status(Model):
setattr(status, 'source_url', parse_a_href(v))
else:
setattr(status, k, v)
+ set... | Parser now sets source_url consistently. | py |
diff --git a/aiofiles/base.py b/aiofiles/base.py
index <HASH>..<HASH> 100644
--- a/aiofiles/base.py
+++ b/aiofiles/base.py
@@ -9,8 +9,6 @@ class AsyncBase:
self._loop = loop
self._executor = executor
-
- @asyncio.coroutine
def __aiter__(self):
"""We are our own iterator."""
... | Starting with Python <I>, __aiter__ must return an asynchronous iterator object. Returning anything else will result in a TypeError error. <URL> | py |
diff --git a/pyqode/core/modes/filewatcher.py b/pyqode/core/modes/filewatcher.py
index <HASH>..<HASH> 100644
--- a/pyqode/core/modes/filewatcher.py
+++ b/pyqode/core/modes/filewatcher.py
@@ -60,6 +60,7 @@ class FileWatcherMode(Mode, QtCore.QObject):
self.editor.new_text_set.connect(self._update_mtime)
... | Fix filewatcher notification when saving big files | py |
diff --git a/grimoire_elk/enriched/twitter.py b/grimoire_elk/enriched/twitter.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/enriched/twitter.py
+++ b/grimoire_elk/enriched/twitter.py
@@ -67,7 +67,7 @@ class TwitterEnrich(Enrich):
return "user"
def get_field_date(self):
- return "@timestamp"
+... | [twitter] Set field_date for twitter enricher This code changes the field_date to index twitter data from `@timestamp` to `created_at` | py |
diff --git a/suds/__init__.py b/suds/__init__.py
index <HASH>..<HASH> 100644
--- a/suds/__init__.py
+++ b/suds/__init__.py
@@ -27,7 +27,7 @@ import sys
#
__version__ = '0.4'
-__build__="(beta) R688-20100817"
+__build__="(beta) R690-20100824"
#
# Exceptions | plugin API - version 2 with bumped release info. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,7 @@
#!/usr/bin/env python
+from __future__ import print_function
+
import distutils.spawn
import shlex
import subprocess | Enable to work print func of setup.py in Python 2 | py |
diff --git a/tofu/tests/tests01_geom/test00_Laura/test_LOS_west_geom.py b/tofu/tests/tests01_geom/test00_Laura/test_LOS_west_geom.py
index <HASH>..<HASH> 100644
--- a/tofu/tests/tests01_geom/test00_Laura/test_LOS_west_geom.py
+++ b/tofu/tests/tests01_geom/test00_Laura/test_LOS_west_geom.py
@@ -186,11 +186,7 @@ def touc... | [LOS] small change in plot_touch test since now we can plot finer refinement | 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/ailment/expression.py b/ailment/expression.py
index <HASH>..<HASH> 100644
--- a/ailment/expression.py
+++ b/ailment/expression.py
@@ -307,6 +307,8 @@ class BasePointerOffset(Expression):
self.offset = offset
def __repr__(self):
+ if self.offset is None:
+ return "BaseOffse... | BasePointerOffset: Do not crash if offset is None. | py |
diff --git a/src/cr/cube/dimension.py b/src/cr/cube/dimension.py
index <HASH>..<HASH> 100644
--- a/src/cr/cube/dimension.py
+++ b/src/cr/cube/dimension.py
@@ -111,8 +111,10 @@ class Dimension(object):
return self._dim['type']['categories']
return self._dim['type']['elements']
- @lazyproperty
... | [#<I>]: Fix H&S indices in Dimension | py |
diff --git a/openquake/commonlib/riskmodels.py b/openquake/commonlib/riskmodels.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/riskmodels.py
+++ b/openquake/commonlib/riskmodels.py
@@ -134,14 +134,14 @@ def get_vulnerability_functions(fname):
imt = vfun.imls['imt']
imls = numpy.array... | initial logic for discrete vuln | py |
diff --git a/marathon/models/app.py b/marathon/models/app.py
index <HASH>..<HASH> 100644
--- a/marathon/models/app.py
+++ b/marathon/models/app.py
@@ -37,7 +37,9 @@ class MarathonApp(MarathonResource):
def __init__(self, cmd=None, constraints=None, container=None, cpus=None, env=None, executor=None,
... | Bug Fix: Cannot define constraints with a tuple of strings | py |
diff --git a/troposphere/autoscaling.py b/troposphere/autoscaling.py
index <HASH>..<HASH> 100644
--- a/troposphere/autoscaling.py
+++ b/troposphere/autoscaling.py
@@ -205,7 +205,7 @@ class AutoScalingGroup(AWSObject):
min_instances = rolling_update.properties.get(
"MinInsta... | Ignore If expression during validation on AutoScalingRollingUpdate min instances (#<I>) | py |
diff --git a/lib/retester/cloud_retester.py b/lib/retester/cloud_retester.py
index <HASH>..<HASH> 100644
--- a/lib/retester/cloud_retester.py
+++ b/lib/retester/cloud_retester.py
@@ -500,6 +500,7 @@ def copy_per_test_data_to_testing_node(node, test_reference):
def start_test_on_node(node, test_command, test_timeout ... | Import global variable into function scope before use. Closes #<I>. | py |
diff --git a/recipe-server/normandy/settings.py b/recipe-server/normandy/settings.py
index <HASH>..<HASH> 100644
--- a/recipe-server/normandy/settings.py
+++ b/recipe-server/normandy/settings.py
@@ -117,19 +117,17 @@ class Core(Configuration):
if self.CDN_URL:
srcs.append(self.CDN_URL)
re... | Do not treat http requests as https for CSP. | py |
diff --git a/BAC0/core/devices/Points.py b/BAC0/core/devices/Points.py
index <HASH>..<HASH> 100644
--- a/BAC0/core/devices/Points.py
+++ b/BAC0/core/devices/Points.py
@@ -411,7 +411,6 @@ class BooleanPoint(Point):
'Value must be boolean True, False or "active"/"inactive"')
def __repr__(self):
... | Added __eq__ function to Enum Point | py |
diff --git a/fabfile.py b/fabfile.py
index <HASH>..<HASH> 100644
--- a/fabfile.py
+++ b/fabfile.py
@@ -8,24 +8,6 @@ from prettyprint import pp
VERSION_PATTERN = r'^v\d+(\.\d+)+?$'
-@task(default=True)
-def docs(clean='no', browse_='no'):
- with lcd('docs'):
- local('make clean html')
- temp_path = "/t... | Remove unused docs task - using readthedocs.org. | py |
diff --git a/indra/explanation/model_checker.py b/indra/explanation/model_checker.py
index <HASH>..<HASH> 100644
--- a/indra/explanation/model_checker.py
+++ b/indra/explanation/model_checker.py
@@ -833,9 +833,10 @@ class PysbModelChecker(ModelChecker):
obs_names = self.stmt_to_obs[stmt]
if not obs_na... | Make input rules and observables have signs | py |
diff --git a/synapse/crypto.py b/synapse/crypto.py
index <HASH>..<HASH> 100644
--- a/synapse/crypto.py
+++ b/synapse/crypto.py
@@ -43,3 +43,19 @@ class Rc4Xform(s_socket.SockXform):
def rxform(self, byts):
return self.rxcrypt.update(byts)
+
+class Rc4Skey(s_socket.SockXform):
+
+ def __init__(self, r... | added Rc4Skey socket xform for static / shared keying | py |
diff --git a/hamlpy/elements.py b/hamlpy/elements.py
index <HASH>..<HASH> 100644
--- a/hamlpy/elements.py
+++ b/hamlpy/elements.py
@@ -67,7 +67,7 @@ class Element(object):
attributes_dict = eval(attribute_dict_string)
for k, v in attributes_dict.items():
if k != 'id' and k != ... | escaping single quotes when they are in attributes | py |
diff --git a/tools/run_tests/xds_k8s_test_driver/tests/failover_test.py b/tools/run_tests/xds_k8s_test_driver/tests/failover_test.py
index <HASH>..<HASH> 100644
--- a/tools/run_tests/xds_k8s_test_driver/tests/failover_test.py
+++ b/tools/run_tests/xds_k8s_test_driver/tests/failover_test.py
@@ -18,7 +18,6 @@ from absl i... | xds interop: resume failover tests on all branches (#<I>) Resume the failover test on all branches, now that the following PRs were backported to all branches: - <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,10 +9,6 @@ with open(os.path.join(base_dir, "meshio", "__about__.py"), "rb") as f:
exec(f.read(), about)
-def read(fname):
- return open(os.path.join(base_dir, fname), encoding="utf-8").read()
-
-
setup(
n... | Remove read function and use open directly Remove read function and replace it with open("README.md").read() | py |
diff --git a/pgtool/pgtool.py b/pgtool/pgtool.py
index <HASH>..<HASH> 100644
--- a/pgtool/pgtool.py
+++ b/pgtool/pgtool.py
@@ -35,7 +35,7 @@ class AbortWithHelp(Abort):
pass
-def connect(database=MAINT_DBNAME, async=False):
+def connect(database=MAINT_DBNAME, _async=False):
appname = APPNAME
if args ... | Fix Python <I> compatibility: avoid clashing with "async" keyword | py |
diff --git a/runway/module/staticsite.py b/runway/module/staticsite.py
index <HASH>..<HASH> 100644
--- a/runway/module/staticsite.py
+++ b/runway/module/staticsite.py
@@ -31,11 +31,6 @@ class StaticSite(RunwayModule):
"module %s in %s",
name,
module_dir)
- ... | <I>b1 remove unneeded environment file creation | py |
diff --git a/override_settings/tests.py b/override_settings/tests.py
index <HASH>..<HASH> 100644
--- a/override_settings/tests.py
+++ b/override_settings/tests.py
@@ -79,6 +79,19 @@ class TestAppModifiers(TestCase):
"""
self.assertFalse('django.contrib.sites' in settings.INSTALLED_APPS)
+ def tes... | Test with/without_apps as context managers | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -72,7 +72,8 @@ language = None
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
# The name of the Pygments (syntax highlighting) style to use.
-pygments_style = 'manni'
+# See: https://help.farbox.co... | Update conf.py pygments style=borland | py |
diff --git a/aquarius/events/metadata_updater.py b/aquarius/events/metadata_updater.py
index <HASH>..<HASH> 100644
--- a/aquarius/events/metadata_updater.py
+++ b/aquarius/events/metadata_updater.py
@@ -261,7 +261,7 @@ class MetadataUpdater:
ocn_reserve = pool.getBalance(self._checksum_ocean)
# pric... | Fix bug when dt reserve is <= 1 | py |
diff --git a/lmj/sim/base.py b/lmj/sim/base.py
index <HASH>..<HASH> 100644
--- a/lmj/sim/base.py
+++ b/lmj/sim/base.py
@@ -39,3 +39,7 @@ class World(object):
def step(self):
'''Advance the world simulation by one time step.'''
raise NotImplementedError
+
+ def on_key_press(self, key, keys):
+ ... | Allow for World to handle key presses. | py |
diff --git a/sc2gameLobby/__version__.py b/sc2gameLobby/__version__.py
index <HASH>..<HASH> 100644
--- a/sc2gameLobby/__version__.py
+++ b/sc2gameLobby/__version__.py
@@ -17,6 +17,6 @@ See the License for the specific language governing permissions and
limitations under the License.
"""
-VERSION = (0, 7, 1)
+VERSIO... | - bumped version to signify a version expected to work | py |
diff --git a/pymatgen/io/vasp/inputs.py b/pymatgen/io/vasp/inputs.py
index <HASH>..<HASH> 100644
--- a/pymatgen/io/vasp/inputs.py
+++ b/pymatgen/io/vasp/inputs.py
@@ -451,7 +451,7 @@ class Poscar(MSONable):
predictor_corrector_preamble=predictor_corrector_preamble,
)
- def get_string(self, di... | Changed the default number of significant digits to be used when writting the POSCAR file. Writting the POSCAR with such low precision by default causes all kinds of different nasty issues in VASP. | py |
diff --git a/limpyd/model.py b/limpyd/model.py
index <HASH>..<HASH> 100644
--- a/limpyd/model.py
+++ b/limpyd/model.py
@@ -315,15 +315,14 @@ class RedisModel(RedisProxyCommand):
# useless computations if not
for field_name in args:
field = getattr(self, field_name)
- ... | Simplify hmget by using continue (removing a variable, and a if) | py |
diff --git a/reana_db/models.py b/reana_db/models.py
index <HASH>..<HASH> 100644
--- a/reana_db/models.py
+++ b/reana_db/models.py
@@ -81,6 +81,7 @@ class Workflow(Base, Timestamp):
logs = Column(String)
run_started_at = Column(DateTime)
run_finished_at = Column(DateTime)
+ run_stopped_at = Column(Dat... | models: add missing time stamp for stop workflow | py |
diff --git a/pyphi/convert.py b/pyphi/convert.py
index <HASH>..<HASH> 100644
--- a/pyphi/convert.py
+++ b/pyphi/convert.py
@@ -189,6 +189,9 @@ def state_by_state2state_by_node(tpm):
return sbn_tpm
+sbs2sbn = state_by_state2state_by_node
+
+
# TODO support nondeterministic TPMs
def state_by_node2state_by_stat... | Add short aliases for TPM conversions - `sbs2sbn` for `state_by_state2state_by_node` - `sbn2sbs` for `state_by_node2state_by_state` | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -43,7 +43,7 @@ setup(
'MapGitConfig==1.1',
'progressbar2==3.37.1',
'public==1.0',
- 'pygithub',
+ 'pygithub==1.40a3',
'requests>=2.8.1,<3.0.0',
],
setup_requires=[ | bump pygithub to <I>a3 <I> has switched to using requests and appears to provide faster performance. | py |
diff --git a/src/feat/test/test_database_document.py b/src/feat/test/test_database_document.py
index <HASH>..<HASH> 100644
--- a/src/feat/test/test_database_document.py
+++ b/src/feat/test/test_database_document.py
@@ -26,7 +26,10 @@ class DocumentSerializationTest(common.TestCase):
# unsaved attachment should... | Update assertions for serializing the document. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.