diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/tests/valai_tests.py b/tests/valai_tests.py
index <HASH>..<HASH> 100644
--- a/tests/valai_tests.py
+++ b/tests/valai_tests.py
@@ -12,7 +12,10 @@ from valai import vaani
class TamilpesuTest(unittest.TestCase):
def test_basic(self):
tp = tamilpesu.SpellChecker()
- option... | network test fails depending on response rate of tamilpesu.us | py |
diff --git a/salt/output.py b/salt/output.py
index <HASH>..<HASH> 100644
--- a/salt/output.py
+++ b/salt/output.py
@@ -2,12 +2,8 @@
A simple way of setting the output format for data from modules
'''
+import json
import pprint
-try:
- import json
- JSON = True
-except ImportError:
- JSON = False
import... | json is part of the stl since <I>; no need to test anymore | py |
diff --git a/sacred/ingredient.py b/sacred/ingredient.py
index <HASH>..<HASH> 100644
--- a/sacred/ingredient.py
+++ b/sacred/ingredient.py
@@ -178,10 +178,10 @@ class Ingredient(object):
Note that they are not restricted to the local namespace of the
ingredient.
"""
- argspec = inspect... | removed usage of deprecated inspect.getargspec | py |
diff --git a/axiom/test/test_query.py b/axiom/test/test_query.py
index <HASH>..<HASH> 100644
--- a/axiom/test/test_query.py
+++ b/axiom/test/test_query.py
@@ -1251,17 +1251,17 @@ class WildcardQueries(QueryingTestCase):
def testStartsEndsWith(self):
self.assertQuery(
- D.one.startswith('foo')... | Replace instances of text matching with startswith/endswith on bytes with text attributes in the tests | py |
diff --git a/km3pipe/plot.py b/km3pipe/plot.py
index <HASH>..<HASH> 100644
--- a/km3pipe/plot.py
+++ b/km3pipe/plot.py
@@ -31,7 +31,7 @@ def bincenters(bins):
return 0.5 * (bins[1:] + bins[:-1])
-def hexbin(x, y, color, **kwargs):
+def hexbin(x, y, color="purple", **kwargs):
"""Seaborn-compatible hexbin p... | Hexbin: purple colormap as default | py |
diff --git a/compiler/js.py b/compiler/js.py
index <HASH>..<HASH> 100644
--- a/compiler/js.py
+++ b/compiler/js.py
@@ -149,7 +149,7 @@ class generator(object):
self.imports = {}
self.packages = {}
self.startup = []
- self.id_set = set()
+ self.id_set = set(['renderer'])
self.startup.append("qml._imports['... | explicitly market 'renderer' as public id | py |
diff --git a/demoproject/bookshelf/models.py b/demoproject/bookshelf/models.py
index <HASH>..<HASH> 100644
--- a/demoproject/bookshelf/models.py
+++ b/demoproject/bookshelf/models.py
@@ -14,7 +14,7 @@ class Author(models.Model):
class Book(models.Model):
title = I18nCharField(verbose_name='Book title', max_length... | allow demoproject to run in django <I>+ (#<I>) | py |
diff --git a/art/art_param.py b/art/art_param.py
index <HASH>..<HASH> 100644
--- a/art/art_param.py
+++ b/art/art_param.py
@@ -368,5 +368,5 @@ FONT_MAP = {"block": [block_dic, True], "banner": [banner_dic, False], # pragma
}
FONT_COUNTER = len(FONT_MAP) # pragma: no cover
-ART_COUNTER = len(art_dic)
+... | fix : ART_COUNTER cover minor edit | py |
diff --git a/_pydev_bundle/pydev_monkey.py b/_pydev_bundle/pydev_monkey.py
index <HASH>..<HASH> 100644
--- a/_pydev_bundle/pydev_monkey.py
+++ b/_pydev_bundle/pydev_monkey.py
@@ -66,8 +66,8 @@ def is_python(path):
def remove_quotes_from_args(args):
new_args = []
for x in args:
- if x.startswith('"') a... | Remove quotes without additional symbols (cherry picked from commit 4ca<I>) | py |
diff --git a/src/gordon_gcp/clients/gce.py b/src/gordon_gcp/clients/gce.py
index <HASH>..<HASH> 100644
--- a/src/gordon_gcp/clients/gce.py
+++ b/src/gordon_gcp/clients/gce.py
@@ -88,7 +88,7 @@ class GCEClient(http.AIOConnection, _utils.GPaginatorMixin):
async def list_instances(self,
... | Default max results to <I> when listing instances | py |
diff --git a/discord/utils.py b/discord/utils.py
index <HASH>..<HASH> 100644
--- a/discord/utils.py
+++ b/discord/utils.py
@@ -533,6 +533,12 @@ def escape_mentions(text):
This does not include channel mentions.
+ .. note::
+
+ For more granular control over what mentions should be escaped
+ ... | Add note pointing to discord.AllowedMentions | py |
diff --git a/salt/states/user.py b/salt/states/user.py
index <HASH>..<HASH> 100644
--- a/salt/states/user.py
+++ b/salt/states/user.py
@@ -187,6 +187,7 @@ def present(name,
home=None,
createhome=True,
password=None,
+ hash_password=False,
enforce_password=T... | added a faeture to hash a password if provided as clear text | py |
diff --git a/fierce.py b/fierce.py
index <HASH>..<HASH> 100755
--- a/fierce.py
+++ b/fierce.py
@@ -39,7 +39,23 @@ def concatenate_subdomains(domain, subdomains):
def query(resolver, domain, record_type='A'):
try:
- return resolver.query(domain, record_type)
+ resp = resolver.query(domain, record_t... | Attempt to re-query with nameservers returned by an authoritative answer | py |
diff --git a/SpiffWorkflow/bpmn/PythonScriptEngine.py b/SpiffWorkflow/bpmn/PythonScriptEngine.py
index <HASH>..<HASH> 100644
--- a/SpiffWorkflow/bpmn/PythonScriptEngine.py
+++ b/SpiffWorkflow/bpmn/PythonScriptEngine.py
@@ -109,13 +109,13 @@ class PythonScriptEngine(object):
def _eval(self, expression,externalM... | Undoing a previous commit. | py |
diff --git a/carrot/backends/queue.py b/carrot/backends/queue.py
index <HASH>..<HASH> 100644
--- a/carrot/backends/queue.py
+++ b/carrot/backends/queue.py
@@ -44,17 +44,24 @@ class Backend(BaseBackend):
content_type=content_type,
content_encoding=content_encoding)
+ ... | pyqueue: Support for drain_events | py |
diff --git a/proso_questions/models.py b/proso_questions/models.py
index <HASH>..<HASH> 100644
--- a/proso_questions/models.py
+++ b/proso_questions/models.py
@@ -233,7 +233,6 @@ class DecoratedAnswer(models.Model):
'question_item_id': self.general_answer.item_id,
'item_asked_id': self.general... | fix error with ip_address | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ def readme():
setup(name='zk_shell',
- version='0.92.2',
+ version='0.92.3',
description='A Python - Kazoo based - shell for ZooKeeper',
long_description=readme(),
classifiers=[ | Release version <I> with more Py3 related fixes | py |
diff --git a/Xlib/xobject/icccm.py b/Xlib/xobject/icccm.py
index <HASH>..<HASH> 100644
--- a/Xlib/xobject/icccm.py
+++ b/Xlib/xobject/icccm.py
@@ -1,4 +1,4 @@
-# $Id: icccm.py,v 1.2 2000-12-21 12:23:07 petli Exp $
+# $Id: icccm.py,v 1.3 2002-06-24 20:05:33 petli Exp $
#
# Xlib.xobject.icccm -- ICCCM structures
#
@@... | Add WithdrawnState to WMHints | py |
diff --git a/emannotationschemas/models.py b/emannotationschemas/models.py
index <HASH>..<HASH> 100644
--- a/emannotationschemas/models.py
+++ b/emannotationschemas/models.py
@@ -17,6 +17,7 @@ from typing import Sequence
import logging
Base = declarative_base()
+FlatBase = declarative_base()
field_column_map = {... | use seperate declarative base for flat models | py |
diff --git a/wasp_launcher/apps/kits/health.py b/wasp_launcher/apps/kits/health.py
index <HASH>..<HASH> 100644
--- a/wasp_launcher/apps/kits/health.py
+++ b/wasp_launcher/apps/kits/health.py
@@ -62,7 +62,7 @@ class WHealthCommandKit(WCommandKit):
@classmethod
def description(cls):
- return 'general or launcher-w... | wasp_launcher/apps/kits/health.py: help information updated | py |
diff --git a/docs/source/generate_commands.py b/docs/source/generate_commands.py
index <HASH>..<HASH> 100755
--- a/docs/source/generate_commands.py
+++ b/docs/source/generate_commands.py
@@ -100,7 +100,7 @@ def get_mode_docs():
if __name__ == "__main__":
modes = []
- for mode, modecommands in COMMANDS.items(... | docs: sort modes in generate_commands otherwise the output is non-deterministic and the order will change with different versions of python. | py |
diff --git a/pymzn/mzn/output.py b/pymzn/mzn/output.py
index <HASH>..<HASH> 100644
--- a/pymzn/mzn/output.py
+++ b/pymzn/mzn/output.py
@@ -33,13 +33,9 @@ class Solutions:
self._solns = [] if keep else None
self._n_solns = 0
self.status = Status.INCOMPLETE
- self.stats = None
+ s... | output: use statistics instead of stats | py |
diff --git a/subprocrunner/_subprocess_runner.py b/subprocrunner/_subprocess_runner.py
index <HASH>..<HASH> 100644
--- a/subprocrunner/_subprocess_runner.py
+++ b/subprocrunner/_subprocess_runner.py
@@ -106,7 +106,7 @@ class SubprocessRunner(object):
self.__command_history.append(command)
- def run(... | Add interface to passing a value to standard input | py |
diff --git a/script/bump-version.py b/script/bump-version.py
index <HASH>..<HASH> 100755
--- a/script/bump-version.py
+++ b/script/bump-version.py
@@ -48,6 +48,8 @@ def parse_version(version):
def increase_version(versions, index):
+ for i in range(index + 1, 4):
+ versions[i] = '0'
versions[index] = str(in... | Should set low version field to 0 in bump-version. | py |
diff --git a/pyecore/ecore.py b/pyecore/ecore.py
index <HASH>..<HASH> 100644
--- a/pyecore/ecore.py
+++ b/pyecore/ecore.py
@@ -300,6 +300,7 @@ class EList(ECollection, list):
self._update_container(value)
self._update_opposite(value, self._owner)
super().append(value)
+ self._o... | Fix badly recorded collections in the '_isset' set Collections were not recorded as they should in the '_isset' set causing sometimes a bad XMI serialization. | py |
diff --git a/theanets/feedforward.py b/theanets/feedforward.py
index <HASH>..<HASH> 100644
--- a/theanets/feedforward.py
+++ b/theanets/feedforward.py
@@ -316,7 +316,7 @@ class Network(object):
rho : float, in [0, 1]
Fraction of elements of x to set randomly to 0. If this is 0, then
n... | Correct a mistake in the docstring for adding noise. | py |
diff --git a/yotta/lib/fsutils.py b/yotta/lib/fsutils.py
index <HASH>..<HASH> 100644
--- a/yotta/lib/fsutils.py
+++ b/yotta/lib/fsutils.py
@@ -31,7 +31,9 @@ def _rmRfNoRetry(path):
# them, to do this
def fixPermissions(fn, path, excinfo):
if os.access(path, os.W_OK):
- raise
+ #... | supress inaccurate error reported by updated pylint | py |
diff --git a/tests/test_relative_imports.py b/tests/test_relative_imports.py
index <HASH>..<HASH> 100644
--- a/tests/test_relative_imports.py
+++ b/tests/test_relative_imports.py
@@ -69,7 +69,7 @@ def test_pydeps_colors():
from . import colors
"""
with create_files(files, cleanup=False) as wo... | Fix: enum is not a builtin module in py2 | py |
diff --git a/bids/layout/models.py b/bids/layout/models.py
index <HASH>..<HASH> 100644
--- a/bids/layout/models.py
+++ b/bids/layout/models.py
@@ -261,12 +261,17 @@ class BIDSFile(Base):
list
A list of BIDSFile instances.
"""
- if kind is None:
+ if kind is None and not incl... | fix get_associations so include_parents isn't ignored if kind is None | py |
diff --git a/plugins/phpapcstats.py b/plugins/phpapcstats.py
index <HASH>..<HASH> 100755
--- a/plugins/phpapcstats.py
+++ b/plugins/phpapcstats.py
@@ -1,5 +1,5 @@
#!/usr/bin/python
-"""phpapcstats - Munin Plugin to monitor stats for PHP APC Cache.
+"""phpapcstats - Munin Plugin for monitoring PHP APC Cache.
Require... | Trivial fix in docstrings. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ of configured sites.
from setuptools import setup
from pip.req import parse_requirements
-version_file = open(os.path.join(mypackage_root_dir, 'VERSION'))
+version_file = open('VERSION')
version = version_f... | Fix a minor bug in the setup.py so it finds the correct VERSION. | py |
diff --git a/examples/mnist/mnist.py b/examples/mnist/mnist.py
index <HASH>..<HASH> 100644
--- a/examples/mnist/mnist.py
+++ b/examples/mnist/mnist.py
@@ -10,6 +10,7 @@ from torchvision.datasets import MNIST
from ignite.engine import Events, create_supervised_trainer, create_supervised_evaluator
from ignite.metrics... | Added setup_logger to mnist example (#<I>) - distinguish trainer and evaluator engines | py |
diff --git a/djangoql/views.py b/djangoql/views.py
index <HASH>..<HASH> 100644
--- a/djangoql/views.py
+++ b/djangoql/views.py
@@ -1,7 +1,5 @@
import json
-from django.apps import apps
-from django.core.exceptions import FieldDoesNotExist
from django.core.paginator import EmptyPage, Paginator
from django.http impo... | remove unused imports from views.py | py |
diff --git a/backtrader/lineroot.py b/backtrader/lineroot.py
index <HASH>..<HASH> 100644
--- a/backtrader/lineroot.py
+++ b/backtrader/lineroot.py
@@ -235,6 +235,18 @@ class LineRoot(with_metaclass(MetaLineRoot, object)):
def __rmul__(self, other):
return self._roperation(other, operator.__mul__)
+ d... | Add div and floordiv operations support | py |
diff --git a/backtrader/metabase.py b/backtrader/metabase.py
index <HASH>..<HASH> 100644
--- a/backtrader/metabase.py
+++ b/backtrader/metabase.py
@@ -94,7 +94,20 @@ class Params(object):
@classmethod
def _derive(cls, name, params):
# Prepare the full param list newclass = (baseclass + subclass)
- ... | Derived overriden params full override - A param in a derived class now overrides the definition of the same param in the class and not only the value at creation time | py |
diff --git a/ckanutils/__init__.py b/ckanutils/__init__.py
index <HASH>..<HASH> 100755
--- a/ckanutils/__init__.py
+++ b/ckanutils/__init__.py
@@ -21,6 +21,6 @@ __package_name__ = 'ckanutils'
__author__ = 'Reuben Cummings'
__description__ = 'Miscellaneous CKAN utility scripts'
__email__ = 'reubano@gmail.com'
-__vers... | Bump to version <I> | py |
diff --git a/threepio/__init__.py b/threepio/__init__.py
index <HASH>..<HASH> 100644
--- a/threepio/__init__.py
+++ b/threepio/__init__.py
@@ -50,7 +50,7 @@ def initialize(logger_name=LOGGER_NAME,
# setup the logging format.
format = "%(asctime)s %(name)s-%(levelname)s "\
+ "[%(pathname)s %(line... | Pass formatter to handler, not the format string. modified: threepio/__init__.py | py |
diff --git a/plfit/plfit.py b/plfit/plfit.py
index <HASH>..<HASH> 100644
--- a/plfit/plfit.py
+++ b/plfit/plfit.py
@@ -95,7 +95,7 @@ class plfit:
return a
return alpha
- def kstest_(self,x):
+ def kstest_(self,x,unique=False,finite=False):
"""
Create a mappable function k... | attempted fix to issue #3. Not resolved. | py |
diff --git a/pbclient/__init__.py b/pbclient/__init__.py
index <HASH>..<HASH> 100644
--- a/pbclient/__init__.py
+++ b/pbclient/__init__.py
@@ -47,13 +47,10 @@ def _pybossa_req(method, domain, id=None, payload=None, params={},
r = requests.post(url, params=params, headers=headers,
... | Only POST can post a file. | py |
diff --git a/sphinx-jsonschema/__init__.py b/sphinx-jsonschema/__init__.py
index <HASH>..<HASH> 100644
--- a/sphinx-jsonschema/__init__.py
+++ b/sphinx-jsonschema/__init__.py
@@ -13,6 +13,7 @@
:licence: GPL v3, see LICENCE for details.
"""
+import os.path
import json
from docutils.parsers.rst import Directive... | Resolves #3, path relative to source path | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -45,8 +45,6 @@ setup(
'schema>=0.4.0',
'backports.csv < 1.07;python_version<"2.7"',
'backports.csv < 1.07;python_version<"3.4"',
- 'backports.csv;python_version>="2.7"',
- 'backports.cs... | remove backports requirement for newer python releases The backports.csv requirement makes no sense in Python releases after <I>: it's part of the standard library and works fine. Remove that requirement from <I> and later, as it breaks the install on Debian and probably other platforms. Closes: #<I> | py |
diff --git a/jaraco/util/string.py b/jaraco/util/string.py
index <HASH>..<HASH> 100644
--- a/jaraco/util/string.py
+++ b/jaraco/util/string.py
@@ -5,6 +5,7 @@ import re
import inspect
import itertools
import functools
+import textwrap
from .functools import compose
from .exceptions import throws_exception
... | fixed string.trim and added a test to validate its operation. | py |
diff --git a/dvc/version.py b/dvc/version.py
index <HASH>..<HASH> 100644
--- a/dvc/version.py
+++ b/dvc/version.py
@@ -6,7 +6,7 @@
import os
import subprocess
-_BASE_VERSION = "1.0.0a2"
+_BASE_VERSION = "1.0.0a3"
def _generate_version(base_version): | dvc: bump to <I>a3 | py |
diff --git a/pygsp/operators.py b/pygsp/operators.py
index <HASH>..<HASH> 100644
--- a/pygsp/operators.py
+++ b/pygsp/operators.py
@@ -291,9 +291,7 @@ def igft(G, f_hat):
if not hasattr(G, 'U'):
logger.info('analysis filter has to compute the eigenvalues and the eigenvectors.')
comput... | Fix error: Use computed values after building them | py |
diff --git a/angr/engines/vex/ccall.py b/angr/engines/vex/ccall.py
index <HASH>..<HASH> 100644
--- a/angr/engines/vex/ccall.py
+++ b/angr/engines/vex/ccall.py
@@ -992,7 +992,7 @@ def x86g_calculate_daa_das_aaa_aas(state, flags_and_AX, opcode):
r_C = state.se.If(condition, one, zero)
r_O = r_S = r_Z = ... | Don't assert out on DAA/DAS | py |
diff --git a/blockstack/lib/operations/update.py b/blockstack/lib/operations/update.py
index <HASH>..<HASH> 100644
--- a/blockstack/lib/operations/update.py
+++ b/blockstack/lib/operations/update.py
@@ -117,11 +117,16 @@ def check(state_engine, nameop, block_id, checked_ops ):
log.debug("Name '%s' is revoked" ... | don't allow update if we're in the renewal grace period | py |
diff --git a/ropetest/pycoretest.py b/ropetest/pycoretest.py
index <HASH>..<HASH> 100644
--- a/ropetest/pycoretest.py
+++ b/ropetest/pycoretest.py
@@ -58,7 +58,7 @@ class PyCoreTest(unittest.TestCase):
mod.write('class SampleClass(object):\n def sample_method(self):\n pass\n')
mod_element = ... | pycoretest: fixed a test | py |
diff --git a/slave/buildslave/test/unit/test_commands_transfer.py b/slave/buildslave/test/unit/test_commands_transfer.py
index <HASH>..<HASH> 100644
--- a/slave/buildslave/test/unit/test_commands_transfer.py
+++ b/slave/buildslave/test/unit/test_commands_transfer.py
@@ -42,7 +42,8 @@ class TestUploadFile(CommandTestMix... | use binary mode for testing the transfer upload | py |
diff --git a/src/plaster/exceptions.py b/src/plaster/exceptions.py
index <HASH>..<HASH> 100644
--- a/src/plaster/exceptions.py
+++ b/src/plaster/exceptions.py
@@ -11,7 +11,7 @@ class NoSectionError(PlasterError, ValueError):
:ivar section: The name of the section that does not exist.
"""
- def __init__(s... | do not require a section in the NoSectionError exception | py |
diff --git a/tests/common.py b/tests/common.py
index <HASH>..<HASH> 100644
--- a/tests/common.py
+++ b/tests/common.py
@@ -37,6 +37,7 @@ def get_context(require=330) -> moderngl.Context:
return None
entry['fbo'].use()
+ entry['fbo'].clear()
entry['ctx'].__enter__()
return entry['ctx']
... | Tests: Always clear fbo | py |
diff --git a/tests/test_prechecks.py b/tests/test_prechecks.py
index <HASH>..<HASH> 100644
--- a/tests/test_prechecks.py
+++ b/tests/test_prechecks.py
@@ -40,7 +40,6 @@ class PrecheckTest(BrokerTestCase):
self.assertEqual(response.status_code, http.HTTPStatus.PRECONDITION_FAILED)
- @skip('Skipped becaus... | Run test for <I> response bodies, which where empty because of a werkzeug issue | py |
diff --git a/pymatgen/io/xtb/__init__.py b/pymatgen/io/xtb/__init__.py
index <HASH>..<HASH> 100644
--- a/pymatgen/io/xtb/__init__.py
+++ b/pymatgen/io/xtb/__init__.py
@@ -0,0 +1,8 @@
+# coding: utf-8
+# Copyright (c) Pymatgen Development Team.
+# Distributed under the terms of the MIT License.
+
+
+"""
+This package im... | init docstring added docstring | py |
diff --git a/cppman/main.py b/cppman/main.py
index <HASH>..<HASH> 100644
--- a/cppman/main.py
+++ b/cppman/main.py
@@ -205,6 +205,10 @@ class Cppman(Crawler):
""" add with all keywords variations """
for k in keywords:
+ """ add std:: to typedef if original type is in std name... | fix: extracting typedefs for fstream, ifstream and ofstream | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -88,6 +88,7 @@ setup(
packages=find_packages(),
package_data={'foyer': ['foyer/tests/*.txt',
'foyer/tests/files/*.mol2',
+ 'foyer/tests/files/*.pdb',
... | Add pdb test files for appveyor setup | py |
diff --git a/paramz/caching.py b/paramz/caching.py
index <HASH>..<HASH> 100644
--- a/paramz/caching.py
+++ b/paramz/caching.py
@@ -259,7 +259,6 @@ class FunctionCache(dict):
for c in self.values():
c.reset()
-import decorator
class Cache_this(object):
"""
A decorator which can be appl... | [readthedocs] weirdnessssss | py |
diff --git a/rb/poll.py b/rb/poll.py
index <HASH>..<HASH> 100644
--- a/rb/poll.py
+++ b/rb/poll.py
@@ -117,6 +117,7 @@ class EpollPoller(BasePoller):
self.epoll.poll(timeout)]
-available_pollers = [poll for poll in [EpollPoller, KQueuePoller, PollPoller, SelectPoller]
+available_pollers = [poll for... | Deprioritize epoll poller | py |
diff --git a/liffylights.py b/liffylights.py
index <HASH>..<HASH> 100644
--- a/liffylights.py
+++ b/liffylights.py
@@ -161,7 +161,7 @@ class LiffyLights():
contents.extend(payload)
# get packet size
- size = pack("<H", len(contents) << 1)
+ size = pack("<H", len(contents) + 2)
... | Fix packet size calculation The correct size is the length of the contents plus 2 for the size itself. LIFX Generation 2 firmware version <I> has started checking this. | py |
diff --git a/PBB_Core.py b/PBB_Core.py
index <HASH>..<HASH> 100755
--- a/PBB_Core.py
+++ b/PBB_Core.py
@@ -1850,6 +1850,9 @@ class NonUniqueLabelDescriptionPairError(WDApiError):
return qid_string.split('|')[0][2:]
+ def __str__(self):
+ return repr(self.wd_error_msg)
+
class IDMissingError(Ex... | PBB_core error classes now consistently return error messages in double quotes | py |
diff --git a/account/views.py b/account/views.py
index <HASH>..<HASH> 100644
--- a/account/views.py
+++ b/account/views.py
@@ -201,7 +201,7 @@ class SignupView(FormView):
kwargs.setdefault("primary", True)
kwargs.setdefault("verified", False)
if self.signup_code:
- kwargs["verified... | Fixed conditional which broken Django <I> | py |
diff --git a/tgflow/TgFlow.py b/tgflow/TgFlow.py
index <HASH>..<HASH> 100644
--- a/tgflow/TgFlow.py
+++ b/tgflow/TgFlow.py
@@ -112,9 +112,11 @@ def get_actions(event, s, d, uid):
user_trigs = Triggers.get(uid,{})
trigs.update(user_trigs)
for trig_id, trigs_group in trigs.items():
+ _print("evalua... | added get_actions verbosity | py |
diff --git a/zsl/utils/string_helper.py b/zsl/utils/string_helper.py
index <HASH>..<HASH> 100644
--- a/zsl/utils/string_helper.py
+++ b/zsl/utils/string_helper.py
@@ -28,13 +28,8 @@ def underscore_to_camelcase(value):
>>> underscore_to_camelcase('camel_case')
'camelCase'
"""
- def camelcase():... | FIX underscore_to_camelcase in python 3 | py |
diff --git a/galpy/potential.py b/galpy/potential.py
index <HASH>..<HASH> 100644
--- a/galpy/potential.py
+++ b/galpy/potential.py
@@ -1,6 +1,4 @@
import warnings
-from galpy.util import galpyWarning
-warnings.warn("A major change in versions > 1.1 is that all galpy.potential functions and methods take the potential a... | remove warning about changed arguments for potential functions | py |
diff --git a/wsgidav/version.py b/wsgidav/version.py
index <HASH>..<HASH> 100644
--- a/wsgidav/version.py
+++ b/wsgidav/version.py
@@ -4,4 +4,4 @@ Current WsgiDAV version number.
http://peak.telecommunity.com/DevCenter/setuptools#specifying-your-project-s-version
http://peak.telecommunity.com/DevCenter/setuptools#ta... | Stay alpha, until I finished or dropped the current refactoring clone. | py |
diff --git a/devtools/bin/create-test-list.py b/devtools/bin/create-test-list.py
index <HASH>..<HASH> 100755
--- a/devtools/bin/create-test-list.py
+++ b/devtools/bin/create-test-list.py
@@ -96,7 +96,7 @@ def determine_files_to_test(product, commit):
if results:
results = set(results)
fh = open(o... | Fixes detecting names for the incremental builder (#<I>) Problem: The detector for files to incrementally test was busted Analysis: This fixes it Tests: | py |
diff --git a/bokeh/server/start.py b/bokeh/server/start.py
index <HASH>..<HASH> 100644
--- a/bokeh/server/start.py
+++ b/bokeh/server/start.py
@@ -46,8 +46,8 @@ def prepare_app(rhost='127.0.0.1', rport=6379):
def make_default_user(app):
docid = "defaultdoc"
bokehuser = user.new_user(app.model_redis, "default... | broke default non-wakari users doing wakari work | py |
diff --git a/recordlinkage/comparing.py b/recordlinkage/comparing.py
index <HASH>..<HASH> 100644
--- a/recordlinkage/comparing.py
+++ b/recordlinkage/comparing.py
@@ -315,18 +315,18 @@ def _numeric_sim(s1, s2, threshold=None, method='step', missing_value=0):
# numeric linear functions
elif method == 'linear':
- ... | Mistake: 1 is similar and 0 is not. Not vise verse | py |
diff --git a/src/pout.py b/src/pout.py
index <HASH>..<HASH> 100644
--- a/src/pout.py
+++ b/src/pout.py
@@ -5,6 +5,13 @@ print was too hard to read, pprint wasn't much better. I was getting sick of typ
print "var name: {}".format(var). This tries to print out variables with their name,
and where the print statement w... | I'm closing browser tabs, so I added links that helped me create the module to the module comments | py |
diff --git a/falafel/config/specs.py b/falafel/config/specs.py
index <HASH>..<HASH> 100644
--- a/falafel/config/specs.py
+++ b/falafel/config/specs.py
@@ -150,6 +150,7 @@ static_specs = {
"rpm_-V_packages" : CommandSpec("/bin/rpm -V coreutils procps procps-ng shadow-utils passwd sudo"),
"rsyslog.con... | Added satellite_version.rb for collection | py |
diff --git a/UserInterface.py b/UserInterface.py
index <HASH>..<HASH> 100644
--- a/UserInterface.py
+++ b/UserInterface.py
@@ -1390,6 +1390,7 @@ class QtCanvasWidget(QtWidget):
self.on_grabbed_mouse_position_changed = None
self.on_wheel_changed = None
self.on_key_pressed = None
+ self.... | Integrate keyReleased event into nionui. svn r<I> | py |
diff --git a/src/lewis/scripts/run.py b/src/lewis/scripts/run.py
index <HASH>..<HASH> 100644
--- a/src/lewis/scripts/run.py
+++ b/src/lewis/scripts/run.py
@@ -141,7 +141,7 @@ def parse_adapter_options(raw_adapter_options):
for option_string in raw_adapter_options:
try:
- adapter_options = yam... | Switched to yaml.safe_load instead of yaml.load | py |
diff --git a/pandas/core/common.py b/pandas/core/common.py
index <HASH>..<HASH> 100644
--- a/pandas/core/common.py
+++ b/pandas/core/common.py
@@ -1584,6 +1584,8 @@ def load(path):
with open(path,'rb') as fh:
return pickle.load(fh)
except:
+ if not py3compat.PY3:
+ raise
... | TST: properly raise the quoted exception when trying to unpickle on py2 | py |
diff --git a/drip/drips.py b/drip/drips.py
index <HASH>..<HASH> 100644
--- a/drip/drips.py
+++ b/drip/drips.py
@@ -156,8 +156,7 @@ class DripBase(object):
Then apply all filters at once, and all excludes at once.
"""
rule_kwargs = {}
- rules = self.drip_model.queryset_rules.order_by('m... | don't bother ordering queryset_rules since dict is unordered anyway. | py |
diff --git a/src/localshop/settings/defaults.py b/src/localshop/settings/defaults.py
index <HASH>..<HASH> 100644
--- a/src/localshop/settings/defaults.py
+++ b/src/localshop/settings/defaults.py
@@ -170,6 +170,7 @@ EMAIL = env.email_url('EMAIL', 'smtp://localhost:25/')
ALLOWED_HOSTS = ['*']
+DATA_UPLOAD_MAX_MEMORY... | Set DATA_UPLOAD_MAX_MEMORY_SIZE to <I>mb | py |
diff --git a/tensor2tensor/rl/trainer_model_based_test.py b/tensor2tensor/rl/trainer_model_based_test.py
index <HASH>..<HASH> 100644
--- a/tensor2tensor/rl/trainer_model_based_test.py
+++ b/tensor2tensor/rl/trainer_model_based_test.py
@@ -17,6 +17,9 @@ from __future__ import absolute_import
from __future__ import divi... | Add a test for the AE experiment | py |
diff --git a/sea/contrib/extensions/sentry.py b/sea/contrib/extensions/sentry.py
index <HASH>..<HASH> 100644
--- a/sea/contrib/extensions/sentry.py
+++ b/sea/contrib/extensions/sentry.py
@@ -9,14 +9,15 @@ class Sentry:
def init_app(self, app):
dsn = app.config.get('SENTRY_DSN')
if dsn:
- ... | Supporting setup sentry client in app config | py |
diff --git a/ramp/reporters.py b/ramp/reporters.py
index <HASH>..<HASH> 100644
--- a/ramp/reporters.py
+++ b/ramp/reporters.py
@@ -49,6 +49,10 @@ class Reporter(object):
self.summary.append(ret)
logging.debug("{name}.update returned {ret}".format(name=self.__class__.__name__, ret=ret))
+ def ... | Allow report to be generated by a list of results (useful for reporting after the fact) | py |
diff --git a/django_tenants/test/cases.py b/django_tenants/test/cases.py
index <HASH>..<HASH> 100644
--- a/django_tenants/test/cases.py
+++ b/django_tenants/test/cases.py
@@ -124,6 +124,7 @@ class FastTenantTestCase(TenantTestCase):
@classmethod
def setUpClass(cls):
+ cls.add_allowed_test_domain()
... | add test domain to allowed hosts for FastTenantTestCase | py |
diff --git a/tests/functional/language_specific_features/test_ptbr.py b/tests/functional/language_specific_features/test_ptbr.py
index <HASH>..<HASH> 100644
--- a/tests/functional/language_specific_features/test_ptbr.py
+++ b/tests/functional/language_specific_features/test_ptbr.py
@@ -49,7 +49,7 @@ def assert_stdout_l... | disabling pt-br functional test in order to make the rc1 | py |
diff --git a/indra/tests/make_mock_ontology.py b/indra/tests/make_mock_ontology.py
index <HASH>..<HASH> 100644
--- a/indra/tests/make_mock_ontology.py
+++ b/indra/tests/make_mock_ontology.py
@@ -76,11 +76,10 @@ if __name__ == '__main__':
bio_ontology._build_transitive_closure()
fname = os.path.join(CACHE_DIR,... | Fix pickle protocol to be backwards compatible | py |
diff --git a/openquake/commonlib/logictree.py b/openquake/commonlib/logictree.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/logictree.py
+++ b/openquake/commonlib/logictree.py
@@ -1464,7 +1464,7 @@ class GsimLogicTree(object):
gsim = valid.gsim(branch['uncertainty'])
for k, v in gsi... | Stripped the dirname in the case of GMPETables | py |
diff --git a/kconfiglib.py b/kconfiglib.py
index <HASH>..<HASH> 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -3549,14 +3549,13 @@ class Symbol(object):
return True
# Check if the value is valid for our type
- if not ((self.orig_type == BOOL and value in (0, 2, "n", "y") ) ... | Factor out isinstance(str) check in set_value() All types besides bool and tristate require the argument to be a string. | py |
diff --git a/fireplace/game.py b/fireplace/game.py
index <HASH>..<HASH> 100644
--- a/fireplace/game.py
+++ b/fireplace/game.py
@@ -164,13 +164,13 @@ class Game(Entity):
return ret
- def toss_coin(self):
- outcome = random.randint(0, 1)
- # player who wins the outcome is the index
- winner = self.players[outco... | Simplify Game.toss_coin() logic and rename it to pick_first_player() | py |
diff --git a/shinken/bin.py b/shinken/bin.py
index <HASH>..<HASH> 100644
--- a/shinken/bin.py
+++ b/shinken/bin.py
@@ -29,7 +29,7 @@ Shinken.
import sys
-VERSION = "0.6.5"
+VERSION = "0.6.5+"
# Make sure people are using Python 2.4 or higher
if sys.version_info < (2,4): | Add : tag the version as in dev. | py |
diff --git a/src/canari/tas/plume.py b/src/canari/tas/plume.py
index <HASH>..<HASH> 100644
--- a/src/canari/tas/plume.py
+++ b/src/canari/tas/plume.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python
from __future__ import print_function
from past.builtins import basestring
+from six import b
import sys
@@ -51,11 +52,11 @... | Made sure image path is bytes before hashing | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -211,16 +211,19 @@ class MarkdownExtensionTests(TestCase):
extensions=ext, render_flags=flags))
def test_custom_renderer(self, html):
- ext, flags = 0, 0
- app = None
- renderer = misak... | Updated test_custom_renderer to verify that the markup result matches the custom renderer's output | py |
diff --git a/mapchete/io/raster.py b/mapchete/io/raster.py
index <HASH>..<HASH> 100644
--- a/mapchete/io/raster.py
+++ b/mapchete/io/raster.py
@@ -547,7 +547,7 @@ def resample_from_array(
-------
resampled array : array
"""
- if nodataval is not None:
+ if nodataval is not None: # pragma: no cover... | exclude nodataval warning from test coverage | py |
diff --git a/kolekto/datasources/mediainfos.py b/kolekto/datasources/mediainfos.py
index <HASH>..<HASH> 100644
--- a/kolekto/datasources/mediainfos.py
+++ b/kolekto/datasources/mediainfos.py
@@ -1,8 +1,10 @@
import os
import logging
+import datetime
from kolekto.datasources import Datasource
from kolekto.helpers ... | Added size and modification time to MediaInfos datasource | py |
diff --git a/python/ccxt/base/exchange.py b/python/ccxt/base/exchange.py
index <HASH>..<HASH> 100644
--- a/python/ccxt/base/exchange.py
+++ b/python/ccxt/base/exchange.py
@@ -665,11 +665,20 @@ class Exchange(object):
return int(time.time() * 1000000)
@staticmethod
- def iso8601(timestamp):
+ def i... | Exchange.iso<I> sanitized input | py |
diff --git a/openstack_dashboard/dashboards/admin/volume_types/extras/forms.py b/openstack_dashboard/dashboards/admin/volume_types/extras/forms.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/dashboards/admin/volume_types/extras/forms.py
+++ b/openstack_dashboard/dashboards/admin/volume_types/extras/forms.py
@... | Input limit on key name server has checked the input parameters, Key names can only contain alphanumeric characters, underscores, periods, colons and hyphens Change-Id: Ie<I>b5cfbb<I>c7c<I>c<I>f<I>ad7d<I>d<I>eef9e | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -244,7 +244,7 @@ on_saltstack = 'SALT_ON_SALTSTACK' in os.environ
project = 'Salt'
version = salt.version.__version__
-latest_release = '2016.11.3' # latest release
+latest_release = '2016.11.4' # latest rele... | [develop] Bump latest release version to <I> | py |
diff --git a/benchexec/tools/esbmc.py b/benchexec/tools/esbmc.py
index <HASH>..<HASH> 100644
--- a/benchexec/tools/esbmc.py
+++ b/benchexec/tools/esbmc.py
@@ -49,6 +49,8 @@ class Tool(benchexec.tools.template.BaseTool2):
status = result.RESULT_FALSE_FREE
elif run.output.any_line_contains("FALSE_ME... | added support to memcleanup in esbmc | py |
diff --git a/autograd/numpy/numpy_extra.py b/autograd/numpy/numpy_extra.py
index <HASH>..<HASH> 100644
--- a/autograd/numpy/numpy_extra.py
+++ b/autograd/numpy/numpy_extra.py
@@ -119,7 +119,9 @@ else:
arraycast.defgrad(lambda ans, val: lambda g : g)
def _is_basic(idx):
- return isinstance(idx, (int, slice)) or i... | fixed failing tests (sorry about that) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@ extras_require = {
setup(
name='moto',
- version='1.1.8',
+ version='1.1.9',
description='A library that allows your python tests to easily'
' mock out the boto library',
... | bumping to version <I> | py |
diff --git a/pundler/core.py b/pundler/core.py
index <HASH>..<HASH> 100644
--- a/pundler/core.py
+++ b/pundler/core.py
@@ -111,12 +111,15 @@ class Pundler(object):
for requested_package in self.deps:
output.write("# requirement '%s' depends on:\n" % (requested_package,))
f... | dependency.lower() early to avoid duplicate reqs when req has uppercase letters in it. Fixes: GH-<I> | py |
diff --git a/flask_socketio/__init__.py b/flask_socketio/__init__.py
index <HASH>..<HASH> 100644
--- a/flask_socketio/__init__.py
+++ b/flask_socketio/__init__.py
@@ -153,6 +153,8 @@ class SocketIO(object):
if url:
if url.startswith('redis://'):
queue_class = socketio.... | add support for using zmq as the message queue transport | py |
diff --git a/command/__init__.py b/command/__init__.py
index <HASH>..<HASH> 100644
--- a/command/__init__.py
+++ b/command/__init__.py
@@ -21,5 +21,5 @@ __all__ = ['build',
'install',
'install_py',
'install_ext',
- 'dist',
+ 'sdist',
] | Changed 'dist' to 'sdist'. | py |
diff --git a/src/pyrocore/util/metafile.py b/src/pyrocore/util/metafile.py
index <HASH>..<HASH> 100644
--- a/src/pyrocore/util/metafile.py
+++ b/src/pyrocore/util/metafile.py
@@ -32,6 +32,8 @@ import fnmatch
import hashlib
import urlparse
+import six
+
from pyrobase import bencode
from pyrobase.parts import Bunch... | py2: fix decoding problem | py |
diff --git a/hamper/plugins/questions.py b/hamper/plugins/questions.py
index <HASH>..<HASH> 100644
--- a/hamper/plugins/questions.py
+++ b/hamper/plugins/questions.py
@@ -649,13 +649,14 @@ class YesNoPlugin(ChatPlugin):
resp = random.randint(-5, 100)
if resp > 80:
resp = random.randint(80... | stringify before trying to concatenate to string | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ def get_long_description():
setup(
name='alfred-workflow-packager',
- version='1.2.1',
+ version='2.0.0b1',
description='A CLI utility for packaging and exporting Alfred workflows',
long_... | Update setup.py with new beta version of next release | py |
diff --git a/scapy/tools/UTscapy.py b/scapy/tools/UTscapy.py
index <HASH>..<HASH> 100644
--- a/scapy/tools/UTscapy.py
+++ b/scapy/tools/UTscapy.py
@@ -785,7 +785,7 @@ def main(argv):
KW_KO = []
DUMP = 0
CRC = True
- BREAKFAILED = False
+ BREAKFAILED = True
ONLYFAILED = False
VERB = 3
... | UTscapy: breakfailed by default | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.