diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/fix_yahoo_finance/__init__.py b/fix_yahoo_finance/__init__.py
index <HASH>..<HASH> 100644
--- a/fix_yahoo_finance/__init__.py
+++ b/fix_yahoo_finance/__init__.py
@@ -22,7 +22,7 @@ from __future__ import print_function
__version__ = "0.0.18"
__author__ = "Ran Aroussi"
-__all__ = ['download', 'get_yahoo_... | added pdr_override to __all__ | py |
diff --git a/unittest/soco_unittest.py b/unittest/soco_unittest.py
index <HASH>..<HASH> 100644
--- a/unittest/soco_unittest.py
+++ b/unittest/soco_unittest.py
@@ -14,12 +14,15 @@ to its original state because those same developers will likely want to listen
to music while coding, without having it interrupted at every... | Make integration tests py.testable | py |
diff --git a/astrobase/cpserver/checkplotserver.py b/astrobase/cpserver/checkplotserver.py
index <HASH>..<HASH> 100644
--- a/astrobase/cpserver/checkplotserver.py
+++ b/astrobase/cpserver/checkplotserver.py
@@ -269,7 +269,7 @@ def main():
static_path=ASSETPATH,
template_path=ASSETPATH,
static... | cpserver: experimentally enable gzip for HTTP responses | py |
diff --git a/pelix/shell/remote.py b/pelix/shell/remote.py
index <HASH>..<HASH> 100644
--- a/pelix/shell/remote.py
+++ b/pelix/shell/remote.py
@@ -257,7 +257,8 @@ def _create_server(shell, server_address, port):
server.server_activate()
# Serve clients
- server_thread = threading.Thread(target=server.ser... | RemoteShell server thread named according to binding port | py |
diff --git a/pgpy/types.py b/pgpy/types.py
index <HASH>..<HASH> 100644
--- a/pgpy/types.py
+++ b/pgpy/types.py
@@ -53,7 +53,7 @@ class FileLoader(object):
return bool(re.match(r'^[ -~\n]+$', text, flags=re.ASCII))
if isinstance(text, (bytes, bytearray)):
- return bool(re.match(rb'^[ -... | fix for py<I> and hopefully py<I> | py |
diff --git a/tests/integration/utils/testprogram.py b/tests/integration/utils/testprogram.py
index <HASH>..<HASH> 100644
--- a/tests/integration/utils/testprogram.py
+++ b/tests/integration/utils/testprogram.py
@@ -598,7 +598,7 @@ class TestSaltProgram(six.with_metaclass(TestSaltProgramMeta, TestProgram)):
soc... | test: except for OSError only | py |
diff --git a/satpy/scene.py b/satpy/scene.py
index <HASH>..<HASH> 100644
--- a/satpy/scene.py
+++ b/satpy/scene.py
@@ -933,13 +933,16 @@ class Scene(MetadataObject):
LOG.debug("Resampling %s", ds_id)
source_area = dataset.attrs['area']
try:
- slice_x, slice_y = sour... | Make it possible to disable data reduction with a kwarg | py |
diff --git a/shop_stripe/modifiers.py b/shop_stripe/modifiers.py
index <HASH>..<HASH> 100644
--- a/shop_stripe/modifiers.py
+++ b/shop_stripe/modifiers.py
@@ -9,7 +9,7 @@ from .payment import StripePayment
class StripePaymentModifier(PaymentModifier):
identifier = StripePayment.namespace
payment_provider = S... | no commsion is the default | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -42,7 +42,7 @@ try:
version_words = git_describe.decode('utf-8').strip().split('-')
__version__ = version_words[0]
if len(version_words) > 1:
- __version__ += '.dev' + version_words[1]
+ __version_... | Fix suffix for unofficial development releases | py |
diff --git a/estnltk/estnltk/storage/postgres/collection.py b/estnltk/estnltk/storage/postgres/collection.py
index <HASH>..<HASH> 100755
--- a/estnltk/estnltk/storage/postgres/collection.py
+++ b/estnltk/estnltk/storage/postgres/collection.py
@@ -889,6 +889,7 @@ class PgCollection:
logger.info('block {} of {... | PgCollection: added a question | py |
diff --git a/raven/contrib/django/management/commands/raven.py b/raven/contrib/django/management/commands/raven.py
index <HASH>..<HASH> 100644
--- a/raven/contrib/django/management/commands/raven.py
+++ b/raven/contrib/django/management/commands/raven.py
@@ -39,6 +39,9 @@ class Command(BaseCommand):
else:
... | Correct support for test command in Django <I>+ | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -31,5 +31,5 @@ setup(
packages=find_packages(exclude=['tests']),
install_requires=['six', 'picklable_itertools', 'toolz', 'pyyaml', 'h5py',
'tables'],
- scripts=['bin/fuel-convert']
+ scr... | Add fuel-download to installed scripts | py |
diff --git a/easymode/admin/models/fields.py b/easymode/admin/models/fields.py
index <HASH>..<HASH> 100644
--- a/easymode/admin/models/fields.py
+++ b/easymode/admin/models/fields.py
@@ -180,7 +180,7 @@ class DiocoreCharField(CharField):
This charfield stores a font as well.
Also it will replace underscores i... | Small error in docstring corrected. | py |
diff --git a/tftpy/TftpServer.py b/tftpy/TftpServer.py
index <HASH>..<HASH> 100644
--- a/tftpy/TftpServer.py
+++ b/tftpy/TftpServer.py
@@ -72,6 +72,7 @@ class TftpServer(TftpSession):
# FIXME - sockets should be non-blocking
self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
... | Set listenport to the port chosen by bind() The server can be run with listenport=0, in which case bind() will select a port. In this case, it can be useful to inspect the port number, so we set self.listenport. | py |
diff --git a/raiden/tests/integration/transfer/test_mediatedtransfer.py b/raiden/tests/integration/transfer/test_mediatedtransfer.py
index <HASH>..<HASH> 100644
--- a/raiden/tests/integration/transfer/test_mediatedtransfer.py
+++ b/raiden/tests/integration/transfer/test_mediatedtransfer.py
@@ -72,6 +72,7 @@ def test_me... | Fix `test_mediated_transfer` | py |
diff --git a/collections_extended/__init__.py b/collections_extended/__init__.py
index <HASH>..<HASH> 100644
--- a/collections_extended/__init__.py
+++ b/collections_extended/__init__.py
@@ -19,27 +19,34 @@ __all__ = (
)
-def collection(it=(), mutable=True, ordered=False, unique=False):
- """Return a Collection w... | Better docstring for collection factory. | py |
diff --git a/tests/integration/spm/test_install.py b/tests/integration/spm/test_install.py
index <HASH>..<HASH> 100644
--- a/tests/integration/spm/test_install.py
+++ b/tests/integration/spm/test_install.py
@@ -1,8 +1,6 @@
-# -*- coding: utf-8 -*-
"""
Tests for the spm install utility
"""
-from __future__ import abs... | Drop Py2 and six on tests/integration/spm/test_install.py | py |
diff --git a/tilequeue/command.py b/tilequeue/command.py
index <HASH>..<HASH> 100755
--- a/tilequeue/command.py
+++ b/tilequeue/command.py
@@ -226,22 +226,23 @@ def tilequeue_intersect(cfg, peripherals):
def enqueue_coords():
buf = []
buf_size = 10
+
+ def _enqueue():
+ n_queued... | Factor some enqueue code slightly | py |
diff --git a/tests/spans/test_span.py b/tests/spans/test_span.py
index <HASH>..<HASH> 100644
--- a/tests/spans/test_span.py
+++ b/tests/spans/test_span.py
@@ -5,11 +5,11 @@ from spacy.en import English
import pytest
-EN = English()
@pytest.fixture
def doc():
+ EN = English()
return EN('This is a sent... | * Move nlp variable from global scope | py |
diff --git a/valley/mixins.py b/valley/mixins.py
index <HASH>..<HASH> 100644
--- a/valley/mixins.py
+++ b/valley/mixins.py
@@ -198,7 +198,7 @@ class BooleanMixin(VariableMixin):
self.validators = [BooleanValidator()]
def get_db_value(self, value):
- return bool(value)
+ return self.get_pyt... | fixed get_db_Value for BooleanMixin | py |
diff --git a/treeherder/webapp/api/bug.py b/treeherder/webapp/api/bug.py
index <HASH>..<HASH> 100644
--- a/treeherder/webapp/api/bug.py
+++ b/treeherder/webapp/api/bug.py
@@ -24,10 +24,10 @@ class BugJobMapViewSet(viewsets.ViewSet):
jm.insert_bug_job_map(job_id, bug_id, request.data['type'],
... | Bug <I> - Don't raise an error when providing a duplicate bug association on a job | py |
diff --git a/utilitybelt.py b/utilitybelt.py
index <HASH>..<HASH> 100644
--- a/utilitybelt.py
+++ b/utilitybelt.py
@@ -13,7 +13,9 @@ A library to make you a Python CND Batman
import GeoIP
import requests
-import json, re, socket
+import json
+import re
+import socket
gi = GeoIP.open("./data/GeoLiteCity.dat", Geo... | PEP8 and syntax fix in is_ipv4 | py |
diff --git a/pyaavso/formats/visual.py b/pyaavso/formats/visual.py
index <HASH>..<HASH> 100644
--- a/pyaavso/formats/visual.py
+++ b/pyaavso/formats/visual.py
@@ -20,7 +20,8 @@ class VisualFormatWriter(object):
To write your observations into the data file, you first need to create
the writer, passing to it... | Cross-referenced VisualFormatWriter docstring. | py |
diff --git a/python/tree/tree.py b/python/tree/tree.py
index <HASH>..<HASH> 100644
--- a/python/tree/tree.py
+++ b/python/tree/tree.py
@@ -6,7 +6,7 @@
# @Author: Brian Cherinka
# @Date: 2016-10-11 13:24:56
# @Last modified by: Brian Cherinka
-# @Last Modified time: 2016-10-11 21:38:29
+# @Last Modified time: 201... | bug fix, always adding general paths from tree into environ | py |
diff --git a/cmsplugin_cascade/bootstrap3/buttons.py b/cmsplugin_cascade/bootstrap3/buttons.py
index <HASH>..<HASH> 100644
--- a/cmsplugin_cascade/bootstrap3/buttons.py
+++ b/cmsplugin_cascade/bootstrap3/buttons.py
@@ -143,6 +143,7 @@ class BootstrapButtonPlugin(BootstrapButtonMixin, LinkPluginBase):
class Media:
... | added missing JS part for ButtonPlugin editor | py |
diff --git a/test/test_landmark.py b/test/test_landmark.py
index <HASH>..<HASH> 100644
--- a/test/test_landmark.py
+++ b/test/test_landmark.py
@@ -7,6 +7,7 @@ from load_tests import (
build_graph,
raises,
warns,
+ generate_swiss_roll
)
@@ -53,12 +54,12 @@ def test_landmark_knn_graph():
def tes... | make mnn landmark test faster | py |
diff --git a/pypet/storageservice.py b/pypet/storageservice.py
index <HASH>..<HASH> 100644
--- a/pypet/storageservice.py
+++ b/pypet/storageservice.py
@@ -112,13 +112,15 @@ class PipeStorageServiceSender(MultiprocWrapper):
def __init__(self, storage_connection=None, lock=None):
self.conn = storage_connect... | FIX: Pipes can be pickled on Windows if distributed to processes. | py |
diff --git a/src/python/pants/core/goals/test.py b/src/python/pants/core/goals/test.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/core/goals/test.py
+++ b/src/python/pants/core/goals/test.py
@@ -140,6 +140,9 @@ class EnrichedTestResult(TestResult, EngineAwareReturnType):
output = f"{output.rstrip()... | Add test address metadata (#<I>) Implement the `metadata` method for `EnrichedTestResult`, with an `address` key corresponding to the address of the targets tested in this test run. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -41,7 +41,7 @@ setup(name='curtsies',
install_requires = [
'blessings>=1.5',
'wcwidth>=0.1.4',
- 'typing',
+ 'typing; python_version<"3.5"',
],
tests_require = [
... | Fix install_requires typing is only required for Python <I> or below. | py |
diff --git a/grimoire/elk/git.py b/grimoire/elk/git.py
index <HASH>..<HASH> 100644
--- a/grimoire/elk/git.py
+++ b/grimoire/elk/git.py
@@ -283,6 +283,8 @@ class GitEnrich(Enrich):
# First, get the min and max commit date for all the authors
+ # Limit aggregations: https://github.com/elastic/elastics... | [git][demography] Use <I>K as the limit for number of people to include in the study | py |
diff --git a/xcs/problems.py b/xcs/problems.py
index <HASH>..<HASH> 100644
--- a/xcs/problems.py
+++ b/xcs/problems.py
@@ -166,10 +166,11 @@ class ObservedOnLineProblem(OnLineProblem):
if not self.steps % 100:
self.logger.info('Steps completed: %d', self.steps)
- if more:
+ sel... | Bug fix Fixed div by zero bug in changes to logging. | py |
diff --git a/tests/quality/test_pep8.py b/tests/quality/test_pep8.py
index <HASH>..<HASH> 100644
--- a/tests/quality/test_pep8.py
+++ b/tests/quality/test_pep8.py
@@ -21,7 +21,7 @@ except OSError:
class TPEP8(TestCase):
- IGNORE = ["E12", "W601"]
+ IGNORE = ["E12", "W601", "E402", "E731"]
def _run(sel... | pep8: disable some new warnings | py |
diff --git a/yowsup/env/env_s40.py b/yowsup/env/env_s40.py
index <HASH>..<HASH> 100644
--- a/yowsup/env/env_s40.py
+++ b/yowsup/env/env_s40.py
@@ -2,11 +2,11 @@ from .env import YowsupEnv
import base64
import hashlib
class S40YowsupEnv(YowsupEnv):
- _VERSION = "2.12.89"
+ _VERSION = "2.12.96"
_OS_NAME= "S... | Updated s<I> env to <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from setuptools import setup
setup(
name='zerotk.reraiseit',
- version='2.0.2',
+ use_scm_version=True,
author='Alexandre Andrade',
author_email='kaniabi@gmail.com',
@@ -45,6 +45,7 @@ set... | Using setuptools_scm to manage version numbers. | py |
diff --git a/src/colab/utils/highlighting.py b/src/colab/utils/highlighting.py
index <HASH>..<HASH> 100644
--- a/src/colab/utils/highlighting.py
+++ b/src/colab/utils/highlighting.py
@@ -1,8 +1,15 @@
from haystack.utils import Highlighter
from django.conf import settings
+from django.utils.html import escape, strip_t... | Forcing escape of text_block on highlights | py |
diff --git a/miura/tests/test_utils.py b/miura/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/miura/tests/test_utils.py
+++ b/miura/tests/test_utils.py
@@ -14,3 +14,16 @@ class TestSpecializeContent(object):
job_data
)
assert output == "foojob, hello world"
+
+
+def test_format_pat... | test_utils has <I>% coverage | py |
diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py
index <HASH>..<HASH> 100644
--- a/pandas/core/indexes/interval.py
+++ b/pandas/core/indexes/interval.py
@@ -1250,15 +1250,9 @@ class IntervalIndex(IntervalMixin, Index):
first_nan_loc = np.arange(len(self))[self.isna()][0]
... | PERF: speed up IntervalIndex._intersection_non_unique by ~<I>x (#<I>) | py |
diff --git a/tests/integration/states/test_file.py b/tests/integration/states/test_file.py
index <HASH>..<HASH> 100644
--- a/tests/integration/states/test_file.py
+++ b/tests/integration/states/test_file.py
@@ -284,12 +284,14 @@ class FileTest(ModuleCase, SaltReturnAssertsMixin):
self.assertEqual(oct(desired_m... | Skip tests which are not supposed to pass under windows. Previously, using `runtests.py`, we were just logging and ignoring the fact that `file.get_mode` was returning `None`. | py |
diff --git a/panwid/dialog/__init__.py b/panwid/dialog/__init__.py
index <HASH>..<HASH> 100644
--- a/panwid/dialog/__init__.py
+++ b/panwid/dialog/__init__.py
@@ -38,10 +38,11 @@ class PopUpOverlay(urwid.Overlay):
super(PopUpOverlay,self).__init__(*args, **kwargs)
def keypress(self, size, key):
+ ... | Call super keypress in dialog to allow esc/q to be caught by child wids | py |
diff --git a/isambard_dev/tools/isambard_warnings.py b/isambard_dev/tools/isambard_warnings.py
index <HASH>..<HASH> 100644
--- a/isambard_dev/tools/isambard_warnings.py
+++ b/isambard_dev/tools/isambard_warnings.py
@@ -1,6 +1,25 @@
+from functools import wraps
import warnings
+def check_availability(program, test_... | Added decorator for checking the availability of an external program. | py |
diff --git a/fitsio/fitslib.py b/fitsio/fitslib.py
index <HASH>..<HASH> 100644
--- a/fitsio/fitslib.py
+++ b/fitsio/fitslib.py
@@ -4527,14 +4527,14 @@ def check_comptype_img(comptype, dtype_str):
if comptype == NOCOMPRESS:
return
- if dtype_str == 'i8':
+ #if dtype_str == 'i8':
# no i8 al... | Only raise exception when PLIO u4/u8 is selected (now that u1/u2 is supported in cfitsio) | py |
diff --git a/bika/lims/browser/fields/uidreferencefield.py b/bika/lims/browser/fields/uidreferencefield.py
index <HASH>..<HASH> 100644
--- a/bika/lims/browser/fields/uidreferencefield.py
+++ b/bika/lims/browser/fields/uidreferencefield.py
@@ -47,6 +47,7 @@ class UIDReferenceField(StringField):
'type': 'uidrefe... | Add 'relationship' attribute to UIDReferenceField Some widgets that are backed by reference fields require a relationship attribute. I just set mine to an empty string in the field itself. (cherry picked from commit ade<I>a8d9c8bfe<I>ea<I>b1f<I>c<I>a<I>ae<I>) | py |
diff --git a/astroid/inference.py b/astroid/inference.py
index <HASH>..<HASH> 100644
--- a/astroid/inference.py
+++ b/astroid/inference.py
@@ -189,6 +189,7 @@ def infer_name(self, context=None):
context.lookupname = self.name
return bases._infer_stmts(stmts, context, frame)
+# pylint: disable=no-value-for-p... | Fix lint error pylint doesn't understand decorators | py |
diff --git a/pdb.py b/pdb.py
index <HASH>..<HASH> 100644
--- a/pdb.py
+++ b/pdb.py
@@ -170,7 +170,7 @@ class Pdb(pdb.Pdb, ConfigurableClass):
winid = int(os.getenv('WINDOWID'))
except (TypeError, ValueError):
return # cannot find WINDOWID of the terminal
- active_win = wmctrl.g... | implement a new, object-oriented API for wmctrl | py |
diff --git a/salt/utils/network.py b/salt/utils/network.py
index <HASH>..<HASH> 100644
--- a/salt/utils/network.py
+++ b/salt/utils/network.py
@@ -765,6 +765,7 @@ def ip_addrs(interface=None, include_loopback=False):
ignored, unless 'include_loopback=True' is indicated. If 'interface' is
provided, then only I... | Fixed bug in ip_addrs On OS X there is no 'label' field Cleaned up logic so more readable | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,5 +15,6 @@ setup(
'Framework :: Django',
],
include_package_data=True,
+ install_requires=['django-celery>=2.3.3'],
zip_safe=False,
) | Added django-celery as dependency to setup.py | py |
diff --git a/bika/lims/adapters/referencewidgetvocabulary.py b/bika/lims/adapters/referencewidgetvocabulary.py
index <HASH>..<HASH> 100644
--- a/bika/lims/adapters/referencewidgetvocabulary.py
+++ b/bika/lims/adapters/referencewidgetvocabulary.py
@@ -28,7 +28,12 @@ class DefaultReferenceWidgetVocabulary(object):
... | Better error logging for failed catalog queries | py |
diff --git a/cairocffi/ffi_build.py b/cairocffi/ffi_build.py
index <HASH>..<HASH> 100644
--- a/cairocffi/ffi_build.py
+++ b/cairocffi/ffi_build.py
@@ -9,15 +9,17 @@
"""
-import sys
from pathlib import Path
+from importlib.util import spec_from_file_location, module_from_spec
from cffi import FFI
# Path hack... | Import constants.py using spec_from_file_location This fixes an importing the wrong 'constants' module if you happen to have one with the same name accesible in the PYTHONPATH c.f <URL> | py |
diff --git a/ncclient/transport/session.py b/ncclient/transport/session.py
index <HASH>..<HASH> 100644
--- a/ncclient/transport/session.py
+++ b/ncclient/transport/session.py
@@ -12,11 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-# <<<<<<< HEAD
-# ... | Invoke device handler in case of exception in transport/session.py | py |
diff --git a/pyte/frontend/xml/elementtree.py b/pyte/frontend/xml/elementtree.py
index <HASH>..<HASH> 100644
--- a/pyte/frontend/xml/elementtree.py
+++ b/pyte/frontend/xml/elementtree.py
@@ -61,6 +61,12 @@ class Parser(ElementTree.XMLParser):
xml.parse(xmlfile, self)
return xml
+ # add sourcel... | add sourceline attribute to each ElementTree Element (like lxml does) | py |
diff --git a/openquake/server/db/actions.py b/openquake/server/db/actions.py
index <HASH>..<HASH> 100644
--- a/openquake/server/db/actions.py
+++ b/openquake/server/db/actions.py
@@ -187,7 +187,7 @@ def list_calculations(db, job_type, user_name):
status = 'failed'
start_time = job.star... | list_calculations was double encoding strings in utf-8 | py |
diff --git a/tests/models.py b/tests/models.py
index <HASH>..<HASH> 100644
--- a/tests/models.py
+++ b/tests/models.py
@@ -63,7 +63,7 @@ class Restaurant(Place):
class TaggedNonClusterPlace(TaggedItemBase):
- content_object = models.ForeignKey('NonClusterPlace', related_name='tagged_items')
+ content_object ... | Add mandatory on_delete argument to ForeignKey | py |
diff --git a/sqlalchemy_hana/dialect.py b/sqlalchemy_hana/dialect.py
index <HASH>..<HASH> 100644
--- a/sqlalchemy_hana/dialect.py
+++ b/sqlalchemy_hana/dialect.py
@@ -93,11 +93,23 @@ class HANADDLCompiler(compiler.DDLCompiler):
def visit_create_table(self, create):
table = create.element
- table_... | HANADDLCompiler: Remove appended table prefix after usage Since the table._prefixes list referes to the exact same object during the lifetime of the python process, multiple create table calls will result in multiple prefixes being appended. The result of this behavior are SQL statements like: "CREATE COLUMN COLUMN TA... | py |
diff --git a/salt/cli/__init__.py b/salt/cli/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/cli/__init__.py
+++ b/salt/cli/__init__.py
@@ -540,7 +540,6 @@ class SaltKey(object):
opts['delete'] = options.delete
opts['gen_keys'] = options.gen_keys
opts['gen_keys_dir'] = options.gen_keys_dir... | Cleaned up an old turd I found a turd in salt.cli related to key when I made the changes to logging in saltkey. It has now been cleaned it up. | py |
diff --git a/doc/source/conf.py b/doc/source/conf.py
index <HASH>..<HASH> 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -18,7 +18,7 @@ import os
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
... | Enh: Doc - Make compilation work on rtd | py |
diff --git a/glances/attribute.py b/glances/attribute.py
index <HASH>..<HASH> 100644
--- a/glances/attribute.py
+++ b/glances/attribute.py
@@ -21,7 +21,6 @@
from datetime import datetime
-
class GlancesAttribute(object):
def __init__(self, name, description='', history_max_size=None):
@@ -105,10 +104,10 @@... | Fix history_add, so it allows history_max_size to be zero It was trying to pop from an empty list when history_max_size was zero. | py |
diff --git a/salt/modules/sysrc.py b/salt/modules/sysrc.py
index <HASH>..<HASH> 100644
--- a/salt/modules/sysrc.py
+++ b/salt/modules/sysrc.py
@@ -4,6 +4,7 @@ sysrc module for FreeBSD
'''
from __future__ import absolute_import
+import salt.utils
from salt.exceptions import CommandExecutionError
@@ -11,7 +12,7 ... | Can't access __salt__ in __virtual__ because it isn't ready yet | py |
diff --git a/timed_mating/models.py b/timed_mating/models.py
index <HASH>..<HASH> 100644
--- a/timed_mating/models.py
+++ b/timed_mating/models.py
@@ -32,9 +32,9 @@ class PlugEvents(models.Model):
def get_absolute_url(self):
return "/timedmating/plug/%i" % self.id
def save(self):
- """Over-rides t... | Fixed typo in docstring for timed_mating/models.py | py |
diff --git a/plenum/test/conftest.py b/plenum/test/conftest.py
index <HASH>..<HASH> 100644
--- a/plenum/test/conftest.py
+++ b/plenum/test/conftest.py
@@ -221,7 +221,9 @@ overriddenConfigValues = {
"DefaultPluginPath": {
PLUGIN_BASE_DIR_PATH: testPluginBaseDirPath,
PLUGIN_TYPE_STATS_CONSUMER: "st... | INDY-<I>: Restore short viewchange timeouts in tests | py |
diff --git a/test/test_torconfig.py b/test/test_torconfig.py
index <HASH>..<HASH> 100644
--- a/test/test_torconfig.py
+++ b/test/test_torconfig.py
@@ -514,6 +514,13 @@ OK''')
conf.HiddenServices = [HiddenService(conf, '/fake/path', ['80 127.0.0.1:1234'])]
conf.save()
+ def test_two_hidden_service... | failing utest for multi-hiddenservices bug | py |
diff --git a/jnrbase/cmdline.py b/jnrbase/cmdline.py
index <HASH>..<HASH> 100644
--- a/jnrbase/cmdline.py
+++ b/jnrbase/cmdline.py
@@ -75,10 +75,22 @@ def fail(ctx: Context, text: str):
ctx.exit(1)
-for k in ['info', 'success', 'warn']:
- fn = getattr(colourise, 'p{}'.format(k))
- help = _(getattr(colour... | [QA] Fix .cmdline's messages support It turns out you need a second layer for closures with CPython. Who knew? | py |
diff --git a/oplogreplay/oplogreplayer.py b/oplogreplay/oplogreplayer.py
index <HASH>..<HASH> 100644
--- a/oplogreplay/oplogreplayer.py
+++ b/oplogreplay/oplogreplayer.py
@@ -1,7 +1,9 @@
import time
-import pymongo
import logging
+import pymongo
+from pymongo.errors import DuplicateKeyError
+
from oplogwatcher imp... | Catch DuplicateKeyErrors in OplogReplayer | py |
diff --git a/web/web.py b/web/web.py
index <HASH>..<HASH> 100644
--- a/web/web.py
+++ b/web/web.py
@@ -316,12 +316,13 @@ class HTTPResponse(object):
#Find an appropriate error handler, defaulting to HTTPErrorHandler
s_code = str(error.code)
- error_handler = HTTPErrorHandler(self.request.handler.request,... | Use for ... else construct for error handler as well | py |
diff --git a/fast/__init__.py b/fast/__init__.py
index <HASH>..<HASH> 100644
--- a/fast/__init__.py
+++ b/fast/__init__.py
@@ -40,6 +40,7 @@ from atomic_structure import (Atom, State, Transition,
split_fine_to_hyperfine, split_fine_to_magnetic,
split_hyperfi... | Added unperturbed_hamiltonian to import list. | py |
diff --git a/stacker/tests/hooks/test_lambda.py b/stacker/tests/hooks/test_lambda.py
index <HASH>..<HASH> 100644
--- a/stacker/tests/hooks/test_lambda.py
+++ b/stacker/tests/hooks/test_lambda.py
@@ -98,7 +98,7 @@ class TestLambdaHooks(unittest.TestCase):
self.assert_s3_bucket('custom')
@mock_s3
- def... | Swap the new reordered test names | py |
diff --git a/collectfast/settings.py b/collectfast/settings.py
index <HASH>..<HASH> 100644
--- a/collectfast/settings.py
+++ b/collectfast/settings.py
@@ -25,7 +25,7 @@ cache_key_prefix: Final = _get_setting(
str, "COLLECTFAST_CACHE_KEY_PREFIX", "collectfast06_asset_"
)
cache: Final = _get_setting(str, "COLLECTF... | :bug: Fix #<I> (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,23 +3,21 @@
import os
from setuptools import setup
-import pubchempy
-
if os.path.exists('README.rst'):
long_description = open('README.rst').read()
else:
long_description = '''PubChemPy is a wrapper aroun... | Remove pubchempy import from setup.py In general this isn't a good idea, primarily because an install will fail if imported dependencies haven't yet been installed. | py |
diff --git a/pypki2pip/wrapper.py b/pypki2pip/wrapper.py
index <HASH>..<HASH> 100644
--- a/pypki2pip/wrapper.py
+++ b/pypki2pip/wrapper.py
@@ -36,9 +36,18 @@ def pip(*args, **kwargs):
new_args = [ arg for arg in new_args if '--client-cert=' not in arg ]
new_args = [ arg for arg in new_args if '--cert=' not in... | Prevent PermissionError with pypki2pip A permission error is thrown when trying to use pypki2pip. The PermissionError is thrown because pip.main is unable to use the open NamedTemporaryFile. If the file is closed, pip.main can access the cert file and use it to connect. | py |
diff --git a/tests/test_statemanager.py b/tests/test_statemanager.py
index <HASH>..<HASH> 100644
--- a/tests/test_statemanager.py
+++ b/tests/test_statemanager.py
@@ -30,6 +30,7 @@ class MY_STATE(LabeledEnum):
__order__ = (DRAFT, PENDING, PUBLISHED)
UNPUBLISHED = {DRAFT, PENDING}
+ PUBLISHED_AND_AFTER = ... | Mutating the model won't reset after test; don't mutate | py |
diff --git a/src/transformers/configuration_utils.py b/src/transformers/configuration_utils.py
index <HASH>..<HASH> 100644
--- a/src/transformers/configuration_utils.py
+++ b/src/transformers/configuration_utils.py
@@ -89,6 +89,7 @@ class PretrainedConfig(object):
self.id2label = kwargs.pop("id2label", None)
... | [config] Ensure that id2label always takes precedence over num_labels Fixes bug reported in <URL> | py |
diff --git a/phy/cluster/manual/wizard.py b/phy/cluster/manual/wizard.py
index <HASH>..<HASH> 100644
--- a/phy/cluster/manual/wizard.py
+++ b/phy/cluster/manual/wizard.py
@@ -435,6 +435,9 @@ class Wizard(object):
self._add([clu], group, position)
# Delete old clusters.
self._delete(up.del... | Select last added cluster in wizard after clustering action. | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -102,7 +102,7 @@ pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
-html_theme = 'default'
+html_theme = 'sphinx_rtd_theme'
... | sphinx theme changed to read the docs | py |
diff --git a/raiden/tests/integration/api/test_restapi.py b/raiden/tests/integration/api/test_restapi.py
index <HASH>..<HASH> 100644
--- a/raiden/tests/integration/api/test_restapi.py
+++ b/raiden/tests/integration/api/test_restapi.py
@@ -2444,6 +2444,20 @@ def test_payment_events_endpoints(
},
)
+ #... | Add test that payment events are filtered by token address | py |
diff --git a/ryu/lib/packet/packet_base.py b/ryu/lib/packet/packet_base.py
index <HASH>..<HASH> 100644
--- a/ryu/lib/packet/packet_base.py
+++ b/ryu/lib/packet/packet_base.py
@@ -37,7 +37,10 @@ class PacketBase(object):
def __init__(self):
super(PacketBase, self).__init__()
self.length = 0
- ... | lib/packet: make protocol_name property instead of attributes Because it is read-only and to prevent accidental over-write. | py |
diff --git a/dataviews/styles.py b/dataviews/styles.py
index <HASH>..<HASH> 100644
--- a/dataviews/styles.py
+++ b/dataviews/styles.py
@@ -157,9 +157,7 @@ class StyleMap(object):
if isinstance(obj, str):
return self.fuzzy_match_style(obj)
else:
- if obj.name in self.items.keys(... | Simplified fuzzy matching Style access from StyleMap | py |
diff --git a/easyquotation/sina.py b/easyquotation/sina.py
index <HASH>..<HASH> 100644
--- a/easyquotation/sina.py
+++ b/easyquotation/sina.py
@@ -1,7 +1,7 @@
# coding:utf8
import random
import re
-
+import time
from . import basequotation
@@ -20,13 +20,8 @@ class Sina(basequotation.BaseQuotation):
@prop... | Update sina.py _random class property is surplus, int(time.time()*<I>) can get a int type with <I> length. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -30,7 +30,7 @@ install_requires = [
# External
"enum34==1.1.6",
"tornado>=5.1.1",
- "numpy==1.17.2",
+ "numpy==1.16.4",
"ruamel.yaml==0.15.97",
"h5py==2.9.0",
"p4p==3.3.2", | Revert numpy as we still want python<I> | py |
diff --git a/datacats/project.py b/datacats/project.py
index <HASH>..<HASH> 100644
--- a/datacats/project.py
+++ b/datacats/project.py
@@ -465,7 +465,10 @@ class Project(object):
info = inspect_container('datacats_web_' + self.name)
if info is None:
return None
- return info['Netwo... | info: show halted containers instead of crashing | py |
diff --git a/examples/animated_plot.py b/examples/animated_plot.py
index <HASH>..<HASH> 100755
--- a/examples/animated_plot.py
+++ b/examples/animated_plot.py
@@ -82,7 +82,9 @@ def init(): # Called twice on init, also called on each resize
time_plot_line.set_data([], []) # Clear
freq_plot_line.set_data([], [])
... | Fix animated_plot: avoid 1st plot being bg-frozen | py |
diff --git a/python/cmsis_svd/parser.py b/python/cmsis_svd/parser.py
index <HASH>..<HASH> 100644
--- a/python/cmsis_svd/parser.py
+++ b/python/cmsis_svd/parser.py
@@ -22,6 +22,7 @@ from cmsis_svd.model import SVDAddressBlock
from cmsis_svd.model import SVDRegister
from cmsis_svd.model import SVDField
from cmsis_svd.... | python: easier loading from SVDs included with package | py |
diff --git a/test/test_util_functions.py b/test/test_util_functions.py
index <HASH>..<HASH> 100644
--- a/test/test_util_functions.py
+++ b/test/test_util_functions.py
@@ -244,6 +244,18 @@ def test_check_argument_list2():
#test that no exception is raised
assert True
+def test_check_argument_list3():
+ ke... | Add a test for the mismatch between kernel arguments and NumPy parameters. | py |
diff --git a/memorious/operations/aleph.py b/memorious/operations/aleph.py
index <HASH>..<HASH> 100644
--- a/memorious/operations/aleph.py
+++ b/memorious/operations/aleph.py
@@ -61,7 +61,7 @@ def aleph_emit_document(context, data):
foreign_id = data.get("foreign_id", data.get("request_id", source_url))
# Fet... | Don't breake existing scrapers | py |
diff --git a/tests/test_scanf.py b/tests/test_scanf.py
index <HASH>..<HASH> 100644
--- a/tests/test_scanf.py
+++ b/tests/test_scanf.py
@@ -93,7 +93,7 @@ def run_scanf(threads):
# check that all of the outputs were seen
nose.tools.assert_equal(total_outputs, len(expected_outputs))
-def test_sscanf():
+def te... | A typo fix in test_scanf | py |
diff --git a/astropy_helpers/commands/build_sphinx.py b/astropy_helpers/commands/build_sphinx.py
index <HASH>..<HASH> 100644
--- a/astropy_helpers/commands/build_sphinx.py
+++ b/astropy_helpers/commands/build_sphinx.py
@@ -154,8 +154,13 @@ class AstropyBuildDocs(SphinxBuildDoc):
dist = Distribution()
... | Use sys.append instead of sys.insert to make sure that system-installed docs dependencies take precedence over auto-installed eggs. | py |
diff --git a/tests/test_quadcons.py b/tests/test_quadcons.py
index <HASH>..<HASH> 100644
--- a/tests/test_quadcons.py
+++ b/tests/test_quadcons.py
@@ -30,3 +30,7 @@ def test_niceqcqp():
assert round(s.getVal(y)) == 1.0
s.free()
+
+if __name__ == "__main__":
+ test_niceqp()
+ test_niceqcqp() | added main method to test_quadcons.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -95,7 +95,7 @@ setuptools.setup(
'django-forms-builder',
],
'project': [
- 'celery[redis]',
+ 'celery[redis]<4',
'ConcurrentLogHandler',
'django-ce... | Restrict Celery to a version prior to 4 Version 4 of celery brings with it kombu version 4, which removes the kombu.transport.django app, and we need to figure out how to adjust for that. Until we do, stick to a version 3 release. | py |
diff --git a/scout/adapter/mongo/case.py b/scout/adapter/mongo/case.py
index <HASH>..<HASH> 100644
--- a/scout/adapter/mongo/case.py
+++ b/scout/adapter/mongo/case.py
@@ -332,6 +332,30 @@ class CaseHandler(object):
return updated_case
##TODO Add event for updating case?
+ def replace_case(self, c... | Added method that completely replaces a case | py |
diff --git a/pullv/util.py b/pullv/util.py
index <HASH>..<HASH> 100644
--- a/pullv/util.py
+++ b/pullv/util.py
@@ -16,7 +16,7 @@ import sys
import errno
import logging
import fnmatch
-from . import exc
+from .exc import PullvException
PY2 = sys.version_info[0] == 2
@@ -129,7 +129,7 @@ def run(
try:
... | pullv: try to fix circular dep | py |
diff --git a/python/segyio/segy.py b/python/segyio/segy.py
index <HASH>..<HASH> 100644
--- a/python/segyio/segy.py
+++ b/python/segyio/segy.py
@@ -1117,7 +1117,7 @@ class TextHeader(object):
self.outer = outer
def __getitem__(self, index):
- if index > self.outer.ext_headers:
+ if not 0 <=... | Check full domain of text-header-index Insteading of silently passing garbage to the extension, check that the index of getitem is non-negative and within the external headers. | py |
diff --git a/playhouse/pool.py b/playhouse/pool.py
index <HASH>..<HASH> 100644
--- a/playhouse/pool.py
+++ b/playhouse/pool.py
@@ -102,21 +102,20 @@ class PooledDatabase(object):
class PooledMySQLDatabase(PooledDatabase, MySQLDatabase):
pass
-class PooledPostgresDatabase(PooledDatabase):
-
+class _PooledPostgre... | Some small renamings, refs #<I> | py |
diff --git a/python_jsonschema_objects/wrapper_types.py b/python_jsonschema_objects/wrapper_types.py
index <HASH>..<HASH> 100644
--- a/python_jsonschema_objects/wrapper_types.py
+++ b/python_jsonschema_objects/wrapper_types.py
@@ -125,7 +125,7 @@ class ArrayWrapper(collections.MutableSequence):
def validate_uniq... | Made uniqueItems explicitly look for TRUE and not any value | py |
diff --git a/rinoh/backend/pdf/cos.py b/rinoh/backend/pdf/cos.py
index <HASH>..<HASH> 100644
--- a/rinoh/backend/pdf/cos.py
+++ b/rinoh/backend/pdf/cos.py
@@ -335,6 +335,8 @@ class Dictionary(Container, OrderedDict):
__setitem__ = convert_key_to_name(OrderedDict.__setitem__)
+ __delitem__ = convert_key_to_n... | Dictionary.__delitem__ also needs wrapping | py |
diff --git a/build/check.py b/build/check.py
index <HASH>..<HASH> 100755
--- a/build/check.py
+++ b/build/check.py
@@ -55,8 +55,12 @@ def checkLint():
return (subprocess.call(cmdLine) == 0)
def checkHtmlLint():
- """Runs the HTML linter over the HTML files."""
+ """Runs the HTML linter over the HTML files.
+ S... | Do not require npm for build/all.py This makes htmlhint an optional lint step, so that build/all.py can run without npm. The buildbot will still install htmlhint and run these checks. Change-Id: I<I>f<I>a<I>a<I>b<I>b<I>a8ba<I> | py |
diff --git a/pwiz.py b/pwiz.py
index <HASH>..<HASH> 100755
--- a/pwiz.py
+++ b/pwiz.py
@@ -144,7 +144,9 @@ class PostgresqlIntrospector(Introspector):
SELECT column_name, is_nullable, data_type, character_maximum_length
FROM information_schema.columns
WHERE table_name=%s""", (tabl... | Fixes #<I> and #<I>, thanks @appetito for debugging this. | py |
diff --git a/openquake/logs.py b/openquake/logs.py
index <HASH>..<HASH> 100644
--- a/openquake/logs.py
+++ b/openquake/logs.py
@@ -118,6 +118,11 @@ class AMQPHandler(logging.Handler): # pylint: disable=R0902
by using the normal `%(job_key)s` Python syntax.
""" # pylint: disable=W0105
+ LEVELNAMES = {
+... | Add a levelname Python logging key that is consistent with Java level names. | py |
diff --git a/tacl/ngram.py b/tacl/ngram.py
index <HASH>..<HASH> 100644
--- a/tacl/ngram.py
+++ b/tacl/ngram.py
@@ -1,5 +1,7 @@
class NGram (object):
+ __slots__ = ['_initialised', '_ngram', '_refs']
+
_cache = {}
def __init__ (self, ngram): | Use __slots__ on NGram to save memory, since millions of these objects are created. | py |
diff --git a/tests/__init__.py b/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -4847,6 +4847,9 @@ class BaseItemTest(EWSTest):
if f.name == 'is_read':
# This is always true for item attachments?
continue
+ if f.... | Even more mime_content test exceptions | py |
diff --git a/fusionbox/templatetags/fusionbox_tags.py b/fusionbox/templatetags/fusionbox_tags.py
index <HASH>..<HASH> 100644
--- a/fusionbox/templatetags/fusionbox_tags.py
+++ b/fusionbox/templatetags/fusionbox_tags.py
@@ -104,7 +104,7 @@ class HighlightHereNode(HighlighterBase):
def elems_to_highlight(self, sou... | try to make a template Variable object first | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ def readme():
setup(name='pyad2',
version='0.5',
- description='Interface to the AD2 family of alarm devices.',
+ description='Python interface library for the AD2 family of alarm devices.',
lon... | More tweaks to setup.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,5 +21,6 @@ setup(
author='Roman Miroshnychenko',
author_email='roman1972@gmail.com',
description='Asynchronous WSGI and WebSocket server based on asyncore module',
- long_description=long_descr
+ long_... | Added zip_safe=False to setup.py | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.