diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,7 @@ setup(
url='https://github.com/cea-cosmic/ModOpt',
download_url='https://github.com/cea-cosmic/ModOpt',
packages=find_packages(),
- install_requires=['numpy>=1.14.1', 'future>=0.16.0', 'scipy==... | Retaining Python <I> support | py |
diff --git a/sphinx_markdown_builder/markdown_writer.py b/sphinx_markdown_builder/markdown_writer.py
index <HASH>..<HASH> 100644
--- a/sphinx_markdown_builder/markdown_writer.py
+++ b/sphinx_markdown_builder/markdown_writer.py
@@ -68,6 +68,9 @@ class MarkdownTranslator(Translator):
def visit_desc_name(self, node... | Escaping '__' coming from python methods Python specials methods like constructors starts with '__' which is a bold tag for markdown, so this tag is now escaped. | py |
diff --git a/stegano/slsbset.py b/stegano/slsbset.py
index <HASH>..<HASH> 100644
--- a/stegano/slsbset.py
+++ b/stegano/slsbset.py
@@ -47,7 +47,7 @@ def hide(input_image_file, message, generator_function):
npixels = width * height
if len(message_bits) > npixels * 3:
- return """Too long message (%s >... | Raise an exception if the message to hide is too long. closed #1 | py |
diff --git a/splinter/driver/webdriver/chrome.py b/splinter/driver/webdriver/chrome.py
index <HASH>..<HASH> 100644
--- a/splinter/driver/webdriver/chrome.py
+++ b/splinter/driver/webdriver/chrome.py
@@ -23,9 +23,3 @@ class WebDriver(BaseWebDriver):
self._cookie_manager = ChromeCookieManager(self.driver)
... | Recent versions of the chrome driver support the attach_file feature | py |
diff --git a/pyramid_webassets/__init__.py b/pyramid_webassets/__init__.py
index <HASH>..<HASH> 100644
--- a/pyramid_webassets/__init__.py
+++ b/pyramid_webassets/__init__.py
@@ -156,7 +156,6 @@ def includeme(config):
config.add_directive('add_webasset', add_webasset)
config.add_directive('get_webassets_env',... | Remove automatic addition of static view, because it potentially leaks source files. | py |
diff --git a/src/hamster/widgets/activityentry.py b/src/hamster/widgets/activityentry.py
index <HASH>..<HASH> 100644
--- a/src/hamster/widgets/activityentry.py
+++ b/src/hamster/widgets/activityentry.py
@@ -637,7 +637,7 @@ class CategoryEntry():
else:
# return whether the entered string is
... | Fix completion in categories TreeView Because `key` was being returned in lowercase, matching would fail. | py |
diff --git a/graphql_ws/base.py b/graphql_ws/base.py
index <HASH>..<HASH> 100644
--- a/graphql_ws/base.py
+++ b/graphql_ws/base.py
@@ -105,8 +105,7 @@ class BaseSubscriptionServer(object):
return connection_context.close(1011)
def get_graphql_params(self, connection_context, payload):
- context =... | Add request context directly to the payload rather than a request_context key | py |
diff --git a/jplephem/jplephem/test.py b/jplephem/jplephem/test.py
index <HASH>..<HASH> 100644
--- a/jplephem/jplephem/test.py
+++ b/jplephem/jplephem/test.py
@@ -11,7 +11,10 @@ smaller and more feature-oriented suite can be run with::
import numpy as np
from functools import partial
from jplephem import Ephemeris, ... | Try to make tests importable under Python <I> | py |
diff --git a/bootstrap.py b/bootstrap.py
index <HASH>..<HASH> 100755
--- a/bootstrap.py
+++ b/bootstrap.py
@@ -31,6 +31,7 @@ parser.add_option('--verbose', action='store_true',
help='enable verbose build',)
parser.add_option('--x64', action='store_true',
help='force 64-bit build (... | add a TODO from a pull request | py |
diff --git a/pyvisa/thirdparty/prettytable.py b/pyvisa/thirdparty/prettytable.py
index <HASH>..<HASH> 100644
--- a/pyvisa/thirdparty/prettytable.py
+++ b/pyvisa/thirdparty/prettytable.py
@@ -41,8 +41,6 @@ import sys
import textwrap
import unicodedata
-import pkg_resources
-
__version__ = "0.7.3.dev.43cdb910a6fbee3... | do not import pkg_resources in prettytable (it is unused !) | py |
diff --git a/MAVProxy/modules/mavproxy_battery.py b/MAVProxy/modules/mavproxy_battery.py
index <HASH>..<HASH> 100644
--- a/MAVProxy/modules/mavproxy_battery.py
+++ b/MAVProxy/modules/mavproxy_battery.py
@@ -32,7 +32,7 @@ class BatteryModule(mp_module.MPModule):
MPSetting('servowarn', float, 4.3, 'Servo vol... | battery: increase max numcells | py |
diff --git a/wallace/models.py b/wallace/models.py
index <HASH>..<HASH> 100644
--- a/wallace/models.py
+++ b/wallace/models.py
@@ -175,6 +175,8 @@ class Node(Base):
if isinstance(other_node, list):
for node in other_node:
self.connect_to(node)
+ elif self.has_connection_to(... | can't connect twice to the same node | py |
diff --git a/src/python/twitter/pants/targets/python_tests.py b/src/python/twitter/pants/targets/python_tests.py
index <HASH>..<HASH> 100644
--- a/src/python/twitter/pants/targets/python_tests.py
+++ b/src/python/twitter/pants/targets/python_tests.py
@@ -30,11 +30,11 @@ class PythonTests(PythonTarget):
soft_depe... | Allow annotations on thrift typedefs. I have made the corresponding change in the canonical thrift compiler: <URL> | py |
diff --git a/datajoint/version.py b/datajoint/version.py
index <HASH>..<HASH> 100644
--- a/datajoint/version.py
+++ b/datajoint/version.py
@@ -1 +1 @@
-__version__ = "0.12.dev3"
+__version__ = "0.12.dev4" | increment release version to <I>.dev4 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,7 +35,7 @@ setup(
maintainer_email="tribaal@gmail.com",
url="http://www.xhtml2pdf.com",
keywords="PDF, HTML, XHTML, XML, CSS",
- install_requires = ["html5lib", "pyPdf2", "Pillow", "reportlab"],
+ inst... | Quick fix to limit reportlab version range. Version <I>, if installed, will not be detected by xhtml2pdf, so define the reportlab dependency as a range (>=<I>, <<I>). | py |
diff --git a/spyder/utils/iofuncs.py b/spyder/utils/iofuncs.py
index <HASH>..<HASH> 100644
--- a/spyder/utils/iofuncs.py
+++ b/spyder/utils/iofuncs.py
@@ -1,6 +1,6 @@
# -*- coding:utf-8 -*-
#
-# Copyright © The Spyder Development Team
+# Copyright © Spyder Project Contributors
# Licensed under the terms of the MIT L... | Change copyright to the "Spyder Project Contributors" - This follows recent discussions about the same topic on the Jupyter project. | py |
diff --git a/pyemma/msm/estimators/maximum_likelihood_msm.py b/pyemma/msm/estimators/maximum_likelihood_msm.py
index <HASH>..<HASH> 100644
--- a/pyemma/msm/estimators/maximum_likelihood_msm.py
+++ b/pyemma/msm/estimators/maximum_likelihood_msm.py
@@ -187,8 +187,9 @@ class _MSMEstimator(_Estimator, _MSM):
... | [msm_estimator-base] pass show_progress attribute to count function defaults to False, in case there is no such attribute. | py |
diff --git a/engine/handler.py b/engine/handler.py
index <HASH>..<HASH> 100644
--- a/engine/handler.py
+++ b/engine/handler.py
@@ -14,14 +14,6 @@ import importlib
class Handler(tornado.web.RequestHandler):
- _instance = None
-
- def __new__(cls, *args, **kwargs):
- if not cls._instance:
- c... | Handler class does not suited for singleton object. | py |
diff --git a/dfttopif/parsers/abinit.py b/dfttopif/parsers/abinit.py
index <HASH>..<HASH> 100644
--- a/dfttopif/parsers/abinit.py
+++ b/dfttopif/parsers/abinit.py
@@ -4,6 +4,7 @@ import glob
from ase.calculators.abinit import Abinit
from pypif.obj.common import Value, Property, Scalar
+
class AbinitParser(DFTParse... | Fixed constructor for Abinit Missing call to superclass | py |
diff --git a/salt/modules/network.py b/salt/modules/network.py
index <HASH>..<HASH> 100644
--- a/salt/modules/network.py
+++ b/salt/modules/network.py
@@ -896,7 +896,7 @@ def ip_addrs6(interface=None, include_loopback=False, cidr=None):
addrs = salt.utils.network.ip_addrs6(interface=interface,
... | Fix the 'cidr' arg in salt.modules.network.ip_addrs6() The two arguments to ip_in_subnet() should be swapped around, but since ip_in_subnet() is being deprecated in favor of in_subnet(), removing three characters seemed like the most appropiate bugfix. This fixes #<I> | py |
diff --git a/openquake/nrml/__init__.py b/openquake/nrml/__init__.py
index <HASH>..<HASH> 100644
--- a/openquake/nrml/__init__.py
+++ b/openquake/nrml/__init__.py
@@ -28,4 +28,4 @@ def nrml_schema_file():
"""Returns the absolute path to the NRML schema file"""
return os.path.join(
os.path.abspath(os.... | Finished moving everything to the <I> folder (and all associated references) | py |
diff --git a/sphinxcontrib/openapi/openapi30.py b/sphinxcontrib/openapi/openapi30.py
index <HASH>..<HASH> 100644
--- a/sphinxcontrib/openapi/openapi30.py
+++ b/sphinxcontrib/openapi/openapi30.py
@@ -371,8 +371,9 @@ def openapihttpdomain(spec, **options):
# https://github.com/OAI/OpenAPI-Specification/blob/3.0.2/... | Fix losing the original order of tag definition | py |
diff --git a/haystack_panel/__init__.py b/haystack_panel/__init__.py
index <HASH>..<HASH> 100644
--- a/haystack_panel/__init__.py
+++ b/haystack_panel/__init__.py
@@ -4,7 +4,7 @@
haystack_panel
~~~~~~~~~~~~~~
-:copyright: (c) 2012 by Chris Streeter.
+:copyright: (c) 2014 by Chris Streeter.
:license: See LICENSE fo... | Update copyright date and fix my name | py |
diff --git a/adventure/__main__.py b/adventure/__main__.py
index <HASH>..<HASH> 100644
--- a/adventure/__main__.py
+++ b/adventure/__main__.py
@@ -14,12 +14,19 @@ def baudout(s):
stdout.write(c)
stdout.flush()
-game = Game()
-load_advent_dat(game)
-game.start()
-baudout(game.output)
-while not game.... | Made it possible to cleanly exit the custom prompt with control-D. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,8 @@ setup(name='pyinter',
description="An interval package which deals with open, closed or half open intervals.",
long_description="""\
Another Python package with deals with interval arithmetic, this ... | Add classifiers to the setup.cfg | py |
diff --git a/great_expectations/render/renderer/content_block/validation_results_table_content_block.py b/great_expectations/render/renderer/content_block/validation_results_table_content_block.py
index <HASH>..<HASH> 100644
--- a/great_expectations/render/renderer/content_block/validation_results_table_content_block.p... | [ENHANCEMENT] Show NaN when null percentage is undefined (#<I>) | py |
diff --git a/ldapdb/backends/ldap/base.py b/ldapdb/backends/ldap/base.py
index <HASH>..<HASH> 100644
--- a/ldapdb/backends/ldap/base.py
+++ b/ldapdb/backends/ldap/base.py
@@ -95,7 +95,7 @@ class DatabaseWrapper(BaseDatabaseWrapper):
if self.connection is None:
self.connection = ldap.initialize(sel... | CONNECTION_OPTIONS is a dict, not a list | py |
diff --git a/system_tests/test_default.py b/system_tests/test_default.py
index <HASH>..<HASH> 100644
--- a/system_tests/test_default.py
+++ b/system_tests/test_default.py
@@ -24,7 +24,5 @@ def test_application_default_credentials(verify_refresh):
if EXPECT_PROJECT_ID is not None:
assert project_id is no... | Fix system tests when running on GCE The new project ID logic for Cloud SDK invokes Cloud SDK directly. Cloud SDK helpfully falls back to the GCE project ID if the project ID is unset in the configuration. This breaks one of our previous expectations. | py |
diff --git a/pymux/key_mappings.py b/pymux/key_mappings.py
index <HASH>..<HASH> 100644
--- a/pymux/key_mappings.py
+++ b/pymux/key_mappings.py
@@ -57,6 +57,11 @@ def prompt_toolkit_key_to_vt100_key(key, application_mode=False):
Keys.Down: '\x1bOB',
}
+ if key == Keys.ControlJ:
+ # Required for... | Send \r instead of \n to the application when enter has been pressed. | py |
diff --git a/api.py b/api.py
index <HASH>..<HASH> 100644
--- a/api.py
+++ b/api.py
@@ -95,7 +95,7 @@ class Results(object):
body={
'size': 9999999,
'fields': ['control_number'],
- 'query': self.query
+ 'query': self.body.get("query")
... | search: response recids fix * Fixes an exception when calling `Results.recids`. (closes #<I>) | py |
diff --git a/telemetry/telemetry/core/platform/profiler/iprofiler_profiler.py b/telemetry/telemetry/core/platform/profiler/iprofiler_profiler.py
index <HASH>..<HASH> 100644
--- a/telemetry/telemetry/core/platform/profiler/iprofiler_profiler.py
+++ b/telemetry/telemetry/core/platform/profiler/iprofiler_profiler.py
@@ -1... | [Telemetry] Win build fix: try-except pexpect import This fixes an import error on windows. BUG=None TEST=moz page cycler on windows NOTRY=True TBR=<EMAIL> Review URL: <URL> | py |
diff --git a/cumulusci/core/keychain.py b/cumulusci/core/keychain.py
index <HASH>..<HASH> 100644
--- a/cumulusci/core/keychain.py
+++ b/cumulusci/core/keychain.py
@@ -63,11 +63,15 @@ class BaseProjectKeychain(BaseConfig):
def create_scratch_org(self, org_name, config_name, days=None):
""" Adds/Updates a s... | Fix bug in setting days in create_scratch_org | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,7 +35,7 @@ requirements = [
# Protocol and data packages
"pytmpdir >= 0.2.3", # A temporary directory, useful for extracting archives to
"txhttputil >= 0.2.7", # Utility class for http requests
- "vorte... | Updated to vortexpy==<I> | py |
diff --git a/frigg_worker/jobs.py b/frigg_worker/jobs.py
index <HASH>..<HASH> 100644
--- a/frigg_worker/jobs.py
+++ b/frigg_worker/jobs.py
@@ -90,9 +90,8 @@ class Build(object):
if not self.clone_repo():
return self.error('git clone', 'Access denied')
- self.start_services()
-
tr... | Move start_services within try catch block build_settings throws errors, that needs to be catched | py |
diff --git a/salt/renderers/yaml.py b/salt/renderers/yaml.py
index <HASH>..<HASH> 100644
--- a/salt/renderers/yaml.py
+++ b/salt/renderers/yaml.py
@@ -47,7 +47,7 @@ def render(yaml_data, saltenv='base', sls='', argline='', **kws):
try:
data = load(yaml_data, Loader=get_yaml_loader(argline))
... | Always let the real YAML error through The real message is always (probably) going to be more helpful than "Unknown". | py |
diff --git a/pyrax/clouddns.py b/pyrax/clouddns.py
index <HASH>..<HASH> 100644
--- a/pyrax/clouddns.py
+++ b/pyrax/clouddns.py
@@ -971,7 +971,7 @@ class CloudDNSManager(BaseManager):
class CloudDNSClient(BaseClient):
"""
- This is the primary class for interacting with Cloud Databases.
+ This is the prima... | Fixed a typo found by joeracker. Issue #<I>. | py |
diff --git a/django_bouncy/utils.py b/django_bouncy/utils.py
index <HASH>..<HASH> 100644
--- a/django_bouncy/utils.py
+++ b/django_bouncy/utils.py
@@ -1,8 +1,5 @@
# -*- coding: utf-8 -*-
"""Utility functions for the django_bouncy app"""
-from __future__ import absolute_import
-from __future__ import unicode_literals
... | do not use unicode_literals rather mark as unicode | py |
diff --git a/reservations/reservations.py b/reservations/reservations.py
index <HASH>..<HASH> 100755
--- a/reservations/reservations.py
+++ b/reservations/reservations.py
@@ -66,14 +66,13 @@ if res_posts:
try:
with open(resfile, 'r') as f:
local_data = f.read()
- except:
- ... | Ignore any local changes, not configurable as yet | py |
diff --git a/dbaas_zabbix/dbaas_api.py b/dbaas_zabbix/dbaas_api.py
index <HASH>..<HASH> 100644
--- a/dbaas_zabbix/dbaas_api.py
+++ b/dbaas_zabbix/dbaas_api.py
@@ -55,6 +55,8 @@ class DatabaseAsAServiceApi(object):
@property
def hosts(self):
+ if self.using_agent:
+ return []
retur... | do not list hosts when zabbix agent is enabled | py |
diff --git a/django_x509/base/admin.py b/django_x509/base/admin.py
index <HASH>..<HASH> 100644
--- a/django_x509/base/admin.py
+++ b/django_x509/base/admin.py
@@ -3,7 +3,6 @@ from django.conf.urls import url
from django.contrib.admin import ModelAdmin
from django.http import HttpResponse
from django.shortcuts import... | [fix] Removed static() call from admin media Related to <URL> | py |
diff --git a/cherry_picker/cherry_picker/cherry_picker.py b/cherry_picker/cherry_picker/cherry_picker.py
index <HASH>..<HASH> 100755
--- a/cherry_picker/cherry_picker/cherry_picker.py
+++ b/cherry_picker/cherry_picker/cherry_picker.py
@@ -202,7 +202,7 @@ Co-authored-by: {get_author_info_from_short_sha(self.commit_sha1)... | Explicit push location to ignore user git config (#<I>) Users can configure what strategy "git push" uses to determine which remote branch it should push to. Cherry-picker doesn't work with all of the git push strategies but we can make explicit what the remote branch should be which works around that problem. | py |
diff --git a/bigchaindb/commands/utils.py b/bigchaindb/commands/utils.py
index <HASH>..<HASH> 100644
--- a/bigchaindb/commands/utils.py
+++ b/bigchaindb/commands/utils.py
@@ -198,6 +198,7 @@ base_parser.add_argument('-c', '--config',
'(use "-" for stdout)')
base_parser.add_argument('-l... | Treat --log-level argument as case-insensitive | py |
diff --git a/gns3server/modules/vmware/vmware_vm.py b/gns3server/modules/vmware/vmware_vm.py
index <HASH>..<HASH> 100644
--- a/gns3server/modules/vmware/vmware_vm.py
+++ b/gns3server/modules/vmware/vmware_vm.py
@@ -437,7 +437,10 @@ class VMwareVM(BaseVM):
log.debug("enabling remaining adapter {}".f... | Catch Permission denied when writing to VMX file while closing VMware VM. Fixes #<I>. | py |
diff --git a/src/argcmdr.py b/src/argcmdr.py
index <HASH>..<HASH> 100644
--- a/src/argcmdr.py
+++ b/src/argcmdr.py
@@ -1,6 +1,7 @@
import argcomplete
import argparse
import collections
+import collections.abc
import enum
import functools
import importlib
@@ -254,7 +255,7 @@ class Command:
args.__parser__... | fix for Python <I>: Sequence moved: collections -> collections.abc (...and copied a while back!) | py |
diff --git a/tests/test_project.py b/tests/test_project.py
index <HASH>..<HASH> 100644
--- a/tests/test_project.py
+++ b/tests/test_project.py
@@ -151,7 +151,6 @@ class TestProject:
def test_delete(self, session, network_with_data):
net = network_with_data
- print session.dirty
project_i... | Fix print statement in tests causing failures | py |
diff --git a/hpOneView/metrics.py b/hpOneView/metrics.py
index <HASH>..<HASH> 100644
--- a/hpOneView/metrics.py
+++ b/hpOneView/metrics.py
@@ -53,7 +53,7 @@ class metrics(object):
self._con = con
self._activity = activity(con)
- def get_metrics_capabilty(self):
+ def get_metrics_capability(sel... | Update metrics.py Fix typo and variable casing. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,16 +2,19 @@
from setuptools import setup
+
+version = '0.4.5'
+
setup(
name='upcloud-api',
- version='0.4.5',
+ version=version,
description='UpCloud API Client',
author='Elias Nygren',
maint... | setup.py: move version to a variable | py |
diff --git a/polyaxon/scheduler/spawners/tensorboard_spawner.py b/polyaxon/scheduler/spawners/tensorboard_spawner.py
index <HASH>..<HASH> 100644
--- a/polyaxon/scheduler/spawners/tensorboard_spawner.py
+++ b/polyaxon/scheduler/spawners/tensorboard_spawner.py
@@ -76,10 +76,6 @@ class TensorboardSpawner(ProjectJobSpawner... | Fix tensorboard spawner | py |
diff --git a/pcapfile/protocols/transport/tcp.py b/pcapfile/protocols/transport/tcp.py
index <HASH>..<HASH> 100644
--- a/pcapfile/protocols/transport/tcp.py
+++ b/pcapfile/protocols/transport/tcp.py
@@ -22,9 +22,7 @@ class TCP(ctypes.Structure):
('syn', ctypes.c_bool), # SYN
(... | Fixed decoding of very short TCP segments | py |
diff --git a/b2handle/tests/main_test_script.py b/b2handle/tests/main_test_script.py
index <HASH>..<HASH> 100644
--- a/b2handle/tests/main_test_script.py
+++ b/b2handle/tests/main_test_script.py
@@ -20,7 +20,7 @@ from handleconnector_access_patched_test import EUDATHandleConnectorAccessPatche
# Logging:
log_b2handle ... | If logging is switched on during tests, all library modules get logged now, not just the client module. | py |
diff --git a/holoviews/operation/element.py b/holoviews/operation/element.py
index <HASH>..<HASH> 100644
--- a/holoviews/operation/element.py
+++ b/holoviews/operation/element.py
@@ -548,16 +548,17 @@ class histogram(Operation):
else:
edges = np.linspace(hist_range[0], hist_range[1], self.p.num_bi... | Suppress warning when data empty in histogram operation (#<I>) | py |
diff --git a/shapefile.py b/shapefile.py
index <HASH>..<HASH> 100644
--- a/shapefile.py
+++ b/shapefile.py
@@ -64,10 +64,10 @@ if PYTHON3:
# Error.
raise Exception('Unknown input type')
- def u(v, encoding='utf-8'):
+ def u(v, encoding='utf-8', encodingErrors='strict'):
i... | Added user control of how to handle encodingErrors | py |
diff --git a/seleniumbase/fixtures/base_case.py b/seleniumbase/fixtures/base_case.py
index <HASH>..<HASH> 100755
--- a/seleniumbase/fixtures/base_case.py
+++ b/seleniumbase/fixtures/base_case.py
@@ -4453,10 +4453,10 @@ class BaseCase(unittest.TestCase):
will still be taken after the last step of your tearD... | Prevent unused log folders from getting created | py |
diff --git a/bika/lims/browser/analysisrequest.py b/bika/lims/browser/analysisrequest.py
index <HASH>..<HASH> 100644
--- a/bika/lims/browser/analysisrequest.py
+++ b/bika/lims/browser/analysisrequest.py
@@ -142,12 +142,16 @@ class AnalysisRequestWorkflowAction(WorkflowAction):
new = ar.setAnalyses(objects.... | Fix #<I> Error when submitting AR's "Manage Analysis View" when 'Display individual sample partitions' is unchecked in Bika Setup | py |
diff --git a/bonobo/logging.py b/bonobo/logging.py
index <HASH>..<HASH> 100644
--- a/bonobo/logging.py
+++ b/bonobo/logging.py
@@ -16,7 +16,8 @@ def get_format():
yield '{b}][{w}'.join(('%(spent)04d', '%(name)s'))
yield '{b}]'
yield ' %(fg)s%(message)s{r}'
- yield CLEAR_EOL
+ if not iswindows:
+ ... | [logging] Removes kill-until-eol character on windows platform. | py |
diff --git a/master/buildbot/test/util/steps.py b/master/buildbot/test/util/steps.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/util/steps.py
+++ b/master/buildbot/test/util/steps.py
@@ -105,6 +105,9 @@ class BuildStepMixin:
"""
def setUpBuildStep(self):
+ if not hasattr(self, 'reactor'):... | test: Require fake reactor to be setup when using BuildStepMixin | py |
diff --git a/alerta/app/auth.py b/alerta/app/auth.py
index <HASH>..<HASH> 100644
--- a/alerta/app/auth.py
+++ b/alerta/app/auth.py
@@ -121,7 +121,10 @@ def google():
r = requests.get(people_api_url, headers=headers)
profile = json.loads(r.text)
- token = create_token(profile['sub'], profile['name'], prof... | catch exception when Google+ API is not enabled | py |
diff --git a/fmn/rules/utils.py b/fmn/rules/utils.py
index <HASH>..<HASH> 100644
--- a/fmn/rules/utils.py
+++ b/fmn/rules/utils.py
@@ -148,7 +148,10 @@ def _get_pkgdb2_packages_for(config, username):
data = req.json()
- packages_of_interest = data['point of contact'] + data['co-maintained']
+ packages_of... | Add watchcommits/watchbugs to the package-ownership fmn rule. | py |
diff --git a/address/models.py b/address/models.py
index <HASH>..<HASH> 100644
--- a/address/models.py
+++ b/address/models.py
@@ -234,16 +234,17 @@ class AddressField(models.ForeignKey):
description = 'An address'
def __init__(self, **kwargs):
- super(AddressField, self).__init__(Address, **kwargs)
... | Still wrapping my head around the migrations code. An error was reported about failing migrations, the issue is to do with my automatically setting the "to" relation of `AddressField` to the `Address` model. This is a workaround. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -56,6 +56,8 @@ setup(
'apio': [
'commands/*.py',
'managers/*.py',
+ 'resources/ecp5/*',
+ 'resources/ice40/*',
'resources/*'
]
}, | Fix ecp5 and ice<I> definitions in resources dir | py |
diff --git a/pydsl/Grammar/Symbol.py b/pydsl/Grammar/Symbol.py
index <HASH>..<HASH> 100644
--- a/pydsl/Grammar/Symbol.py
+++ b/pydsl/Grammar/Symbol.py
@@ -139,6 +139,9 @@ class UnknownSymbol(TerminalSymbol):
def __eq__(self, other):
return isinstance(other, UnknownSymbol)
+ def check(self, data):
+ ... | added check to unknownsymbol | py |
diff --git a/napalm/base/mock.py b/napalm/base/mock.py
index <HASH>..<HASH> 100644
--- a/napalm/base/mock.py
+++ b/napalm/base/mock.py
@@ -86,11 +86,12 @@ class MockDevice(object):
self.profile = profile
def run_commands(self, commands):
- """Only useful for EOS"""
- if "eos" in self.profi... | Added mocking method for nxos | py |
diff --git a/firestore/tests/unit/test__helpers.py b/firestore/tests/unit/test__helpers.py
index <HASH>..<HASH> 100644
--- a/firestore/tests/unit/test__helpers.py
+++ b/firestore/tests/unit/test__helpers.py
@@ -14,6 +14,7 @@
import collections
import datetime
+import sys
import unittest
import mock
@@ -673,6 +6... | Skip tests that hit known bug in Python pre-<I> interpreters. (#<I>) | py |
diff --git a/pyvisa/constants.py b/pyvisa/constants.py
index <HASH>..<HASH> 100644
--- a/pyvisa/constants.py
+++ b/pyvisa/constants.py
@@ -1077,7 +1077,7 @@ class WireMode(enum.IntEnum):
@enum.unique
-class ControlFlow(enum.IntEnum):
+class ControlFlow(enum.IntFlag):
"""Control flow for a serial resource."""
... | Update IntEnum to IntFlag for ControlFlow Per suggest in pyvisa-py issue #<I>, updating ControlFlow enum from IntEnum to IntFlag. | py |
diff --git a/tests/loader_test.py b/tests/loader_test.py
index <HASH>..<HASH> 100644
--- a/tests/loader_test.py
+++ b/tests/loader_test.py
@@ -32,6 +32,9 @@ class LoaderTestCase(object):
yield
@pytest.fixture(autouse=True)
+ def content_to_file(self):
+ self.write_content_to_file()
+
... | stop calling fixture as a function by refactoring it into a fixture that calls a function and can be separately called | py |
diff --git a/pyqode/core/api/encodings.py b/pyqode/core/api/encodings.py
index <HASH>..<HASH> 100644
--- a/pyqode/core/api/encodings.py
+++ b/pyqode/core/api/encodings.py
@@ -102,6 +102,9 @@ def convert_to_codec_key(value):
:param value: value to convert.
"""
+ if not value:
+ # fallback to utf-8
... | Fallback to utf-8 if value is None Fix issue #<I> | py |
diff --git a/tests_dweepy.py b/tests_dweepy.py
index <HASH>..<HASH> 100644
--- a/tests_dweepy.py
+++ b/tests_dweepy.py
@@ -37,6 +37,24 @@ def check_valid_get_response(testcase, dweets):
class BaseTestCase(unittest.TestCase):
+ def assertDictEqual(self, a, b, *args, **kwargs):
+ """Python < v2.7 compatibi... | more shims for python <I> (we'll get there, i promise) | py |
diff --git a/semantic_release/__init__.py b/semantic_release/__init__.py
index <HASH>..<HASH> 100644
--- a/semantic_release/__init__.py
+++ b/semantic_release/__init__.py
@@ -1,6 +1,6 @@
"""Semantic Release
"""
-__version__ = "6.0.1"
+__version__ = "6.1.0"
from .errors import UnknownCommitMessageStyleError # no... | <I> Automatically generated by python-semantic-release | py |
diff --git a/blockstack/atlas.py b/blockstack/atlas.py
index <HASH>..<HASH> 100644
--- a/blockstack/atlas.py
+++ b/blockstack/atlas.py
@@ -70,7 +70,7 @@ PEER_CRAWL_NEIGHBOR_WORK_INTERVAL = 300 # minimum amount of time (seconds) t
PEER_HEALTH_NEIGHBOR_WORK_INTERVAL = 1 # minimum amount of time (seconds) that m... | retry storage every 2 hours, not <I> | py |
diff --git a/troposphere/ecs.py b/troposphere/ecs.py
index <HASH>..<HASH> 100644
--- a/troposphere/ecs.py
+++ b/troposphere/ecs.py
@@ -102,7 +102,7 @@ class DeploymentCircuitBreaker(AWSProperty):
"""
props = {
"Enable": (boolean, True),
- "RollBack": (boolean, True)
+ "Rollback": (boole... | Fix typo in ECS DeploymentCircuitBreaker RollBack => Rollback (Fixes #<I>) | py |
diff --git a/src/cobra/sampling/optgp.py b/src/cobra/sampling/optgp.py
index <HASH>..<HASH> 100644
--- a/src/cobra/sampling/optgp.py
+++ b/src/cobra/sampling/optgp.py
@@ -214,12 +214,8 @@ class OptGPSampler(HRSampler):
# limit errors, something weird going on with multiprocessing
args = list(z... | refactor: use context manager for multiprocessing.Pool in optgp.py | py |
diff --git a/satpy/tests/modifier_tests/test_parallax.py b/satpy/tests/modifier_tests/test_parallax.py
index <HASH>..<HASH> 100644
--- a/satpy/tests/modifier_tests/test_parallax.py
+++ b/satpy/tests/modifier_tests/test_parallax.py
@@ -251,12 +251,10 @@ def xfail_selected_clearsky_combis(request):
This fixture help... | Mark one more case as xfail On different architecture another variant of bilinear fails, such as on GitHub. Mark as fail because bilinear fails anyway. | py |
diff --git a/urbansim/developer/tests/test_developer.py b/urbansim/developer/tests/test_developer.py
index <HASH>..<HASH> 100644
--- a/urbansim/developer/tests/test_developer.py
+++ b/urbansim/developer/tests/test_developer.py
@@ -32,14 +32,15 @@ def test_developer(simple_dev_inputs):
current_unit... | the two tests have been "fixed" the second test was right this time and wrong before and was changed because the default settings changed. the first test is difficult to fix, but it makes sense that Pandas doesn't allow this anymore. I will take a look at it when I get a chance but should probably not spend too much... | py |
diff --git a/claripy/frontend.py b/claripy/frontend.py
index <HASH>..<HASH> 100644
--- a/claripy/frontend.py
+++ b/claripy/frontend.py
@@ -333,7 +333,7 @@ class Frontend(ana.Storable):
cached_n = 0
# if there's enough in the cache, return that
- if cached_n >= n or len(cached_results) < c... | fixed a subtle cache issue that led to too many results being returned | py |
diff --git a/test/test_mapper.py b/test/test_mapper.py
index <HASH>..<HASH> 100644
--- a/test/test_mapper.py
+++ b/test/test_mapper.py
@@ -126,8 +126,8 @@ class TestLens():
last_point = data[-1]
for tag, func in options:
lens = mapper.fit_transform(data, projection=tag, scaler=None)
- ... | approximate equality for python<I> slightly different result | py |
diff --git a/responses/test_responses.py b/responses/test_responses.py
index <HASH>..<HASH> 100644
--- a/responses/test_responses.py
+++ b/responses/test_responses.py
@@ -907,6 +907,18 @@ def test_response_filebody():
assert_reset()
+def test_use_stream_twice_to_double_raw_io():
+ @responses.activate
+ d... | tests for raw requests, push through #<I> (#<I>) | py |
diff --git a/frojd_fabric/ext/npm.py b/frojd_fabric/ext/npm.py
index <HASH>..<HASH> 100644
--- a/frojd_fabric/ext/npm.py
+++ b/frojd_fabric/ext/npm.py
@@ -1,3 +1,10 @@
+# -*- coding: utf-8 -*-
+
+"""
+frojd_fabric.ext.npm
+-------------------------
+"""
+
from fabric.decorators import task
from fabric.state import en... | Added file header declaration to npm | py |
diff --git a/assembly/preprocess.py b/assembly/preprocess.py
index <HASH>..<HASH> 100644
--- a/assembly/preprocess.py
+++ b/assembly/preprocess.py
@@ -566,7 +566,7 @@ def correct(args):
p = OptionParser(correct.__doc__ + FastqNamings)
p.add_option("--dir", default="data",
help="Working direct... | don't run dedup for fragments by default in assembly.preprocess.correct() | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -128,8 +128,8 @@ class PyTest(TestCommand):
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest
- errno = pytest.main('treq_kerberos --flake8 ' +
- ... | setup.py: split args to pytest.main The latest versions of pytest (<I>) require a list of strings here, not one single string. | py |
diff --git a/xmantissa/signup.py b/xmantissa/signup.py
index <HASH>..<HASH> 100644
--- a/xmantissa/signup.py
+++ b/xmantissa/signup.py
@@ -58,9 +58,9 @@ class PasswordResetResource(Page):
if req.method == 'POST':
if 'username' in req.args:
- (user,) = req.args['username']
+ ... | apply patch from #<I> + unicode(..., 'ascii'). fixes password reset. author: moe, reviewer: exarkun. closes #<I>. | py |
diff --git a/src/python/setup.py b/src/python/setup.py
index <HASH>..<HASH> 100644
--- a/src/python/setup.py
+++ b/src/python/setup.py
@@ -173,7 +173,7 @@ if __name__ == '__main__':
package_data={
'turicreate': [
'_cython/*.so', '_cython/*.pyd',
- '*.so', '*.dylib',... | Added .so to setup.py (#<I>) | py |
diff --git a/pyDigitalWaveTools/vcd/common.py b/pyDigitalWaveTools/vcd/common.py
index <HASH>..<HASH> 100644
--- a/pyDigitalWaveTools/vcd/common.py
+++ b/pyDigitalWaveTools/vcd/common.py
@@ -47,7 +47,13 @@ class VcdVarScope():
buff = []
o = self
while True:
- buff.append(o.name)
+ ... | VcdVarScope fix __repr__ for writer | py |
diff --git a/pyvisa-py/tcpip.py b/pyvisa-py/tcpip.py
index <HASH>..<HASH> 100644
--- a/pyvisa-py/tcpip.py
+++ b/pyvisa-py/tcpip.py
@@ -100,7 +100,7 @@ class TCPIPInstrSession(Session):
flags = vxi11.OP_FLAG_TERMCHAR_SET
term_char = str(term_char).encode('utf-8')[0]
- read_data = b''
+... | VXI<I> protocol performance enhancement | py |
diff --git a/categories/__init__.py b/categories/__init__.py
index <HASH>..<HASH> 100644
--- a/categories/__init__.py
+++ b/categories/__init__.py
@@ -1,18 +1,18 @@
__version_info__ = {
'major': 0,
'minor': 7,
- 'micro': 1,
- 'releaselevel': 'final',
+ 'micro': 2,
+ 'releaselevel': 'beta',
'... | Updated the get_version function to be PEP <I> compliant and version bump to <I>b1 | py |
diff --git a/dvc/command/move.py b/dvc/command/move.py
index <HASH>..<HASH> 100644
--- a/dvc/command/move.py
+++ b/dvc/command/move.py
@@ -16,12 +16,15 @@ class CmdMove(CmdBase):
def add_parser(subparsers, parent_parser):
- MOVE_HELP = 'Move output of DVC file.'
+ description = "Rename or move a data file or... | dvc move: improve help and description messages | py |
diff --git a/phypno/ioeeg/edf.py b/phypno/ioeeg/edf.py
index <HASH>..<HASH> 100644
--- a/phypno/ioeeg/edf.py
+++ b/phypno/ioeeg/edf.py
@@ -172,7 +172,7 @@ class Edf:
endrec = int(floor(endsam / n_sam_rec[i_chan]))
endsam_rec = int(endsam % n_sam_rec[i_chan])
- dat = empty(shape=(endsam - begs... | convert to int to avoid warnings about casting the wrong type | py |
diff --git a/satpy/tests/reader_tests/__init__.py b/satpy/tests/reader_tests/__init__.py
index <HASH>..<HASH> 100644
--- a/satpy/tests/reader_tests/__init__.py
+++ b/satpy/tests/reader_tests/__init__.py
@@ -40,7 +40,8 @@ from satpy.tests.reader_tests import (test_abi_l1b, test_agri_l1, test_hrit_base
... | Update seviri_l1b_icare branch to allow merging with master | py |
diff --git a/pylint/pyreverse/writer.py b/pylint/pyreverse/writer.py
index <HASH>..<HASH> 100644
--- a/pylint/pyreverse/writer.py
+++ b/pylint/pyreverse/writer.py
@@ -35,9 +35,7 @@ class DiagramWriter:
basename = diagram.title.strip().replace(" ", "_")
file_name = f"{basename}.{self.config.out... | pyreverse: Add output directory command-line option - Use the formatting of `black` pre-commit hook Issue: #<I> | py |
diff --git a/views/holdingpen.py b/views/holdingpen.py
index <HASH>..<HASH> 100644
--- a/views/holdingpen.py
+++ b/views/holdingpen.py
@@ -16,6 +16,7 @@
# You should have received a copy of the GNU General Public License
# along with Invenio; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Su... | workflows: Holding Pen alternate endpoint * Adds a new alternative endpoint to Holding Pen details pages. | py |
diff --git a/inplaceeditform_extra_fields/adaptors.py b/inplaceeditform_extra_fields/adaptors.py
index <HASH>..<HASH> 100644
--- a/inplaceeditform_extra_fields/adaptors.py
+++ b/inplaceeditform_extra_fields/adaptors.py
@@ -18,4 +18,5 @@
ADAPTOR_INPLACEEDIT = {'auto_fk': 'inplaceeditform_extra_fields.fields.AdaptorAuto... | Add the new adaptor to adaptors file | py |
diff --git a/example/overlap_example.py b/example/overlap_example.py
index <HASH>..<HASH> 100644
--- a/example/overlap_example.py
+++ b/example/overlap_example.py
@@ -1,7 +1,7 @@
# coding=utf-8
from example.commons import Collector, Faker
from pyecharts import options as opts
-from pyecharts.charts import Bar, Line,... | Update overlap_example.py (#<I>) * Update overlap_example.py Fix The code and description are different in overlap * Update overlap_example.py | py |
diff --git a/glue/pipeline.py b/glue/pipeline.py
index <HASH>..<HASH> 100644
--- a/glue/pipeline.py
+++ b/glue/pipeline.py
@@ -174,6 +174,16 @@ class CondorJob:
"""
self.__options[opt] = value
+ def get_opt( self, opt):
+ """
+ Returns the value associated with the given command line option.
+ Ret... | added function get_opt to CondorJob | py |
diff --git a/peep.py b/peep.py
index <HASH>..<HASH> 100755
--- a/peep.py
+++ b/peep.py
@@ -211,7 +211,7 @@ def version_of_download(filename, package_name):
# Handle github sha tarball downloads.
if is_git_sha(filename):
filename = package_name + '-' + filename
- if not filename.rep... | Package checks are now case-insensitive. | py |
diff --git a/pypot/vrep/__init__.py b/pypot/vrep/__init__.py
index <HASH>..<HASH> 100644
--- a/pypot/vrep/__init__.py
+++ b/pypot/vrep/__init__.py
@@ -25,9 +25,16 @@ class vrep_time():
def __init__(self, vrep_io):
self.io = vrep_io
- def get_time(self):
+ def get_time(self, trial=0):
t = ... | Raise a clear error when can't retrieve simulation time from V-REP * Not really a fix, but at least a clearer exception is raised. | py |
diff --git a/angr/path.py b/angr/path.py
index <HASH>..<HASH> 100644
--- a/angr/path.py
+++ b/angr/path.py
@@ -242,8 +242,15 @@ class TreeIter(object):
raise IndexError(k)
def count(self, v):
+ """
+ Count occurrences of value v in the entire history. Note that the subclass must implement ... | Fix my previous fix according to Andrew's suggestion | py |
diff --git a/kernel_tuner/cuda.py b/kernel_tuner/cuda.py
index <HASH>..<HASH> 100644
--- a/kernel_tuner/cuda.py
+++ b/kernel_tuner/cuda.py
@@ -11,7 +11,7 @@ try:
from pycuda.compiler import DynamicSourceModule
except ImportError:
drv = None
- SourceModule = None
+ DynamicSourceModule = None
class ... | fix test when pycuda not installed | py |
diff --git a/plenum/client/client.py b/plenum/client/client.py
index <HASH>..<HASH> 100644
--- a/plenum/client/client.py
+++ b/plenum/client/client.py
@@ -136,7 +136,7 @@ class Client(Motor,
if self.nodeReg:
logger.info("Client {} initialized with the following node registry:"
- ... | changing logs to print alias | py |
diff --git a/src/Python/somoclu/train.py b/src/Python/somoclu/train.py
index <HASH>..<HASH> 100644
--- a/src/Python/somoclu/train.py
+++ b/src/Python/somoclu/train.py
@@ -458,7 +458,7 @@ class Somoclu(object):
self._kernel_type)
def _pca_init(self):
- from sklearn.decompositio... | Updated to new sk-learn PCA call signature | py |
diff --git a/pyxel/editor/image_editor.py b/pyxel/editor/image_editor.py
index <HASH>..<HASH> 100644
--- a/pyxel/editor/image_editor.py
+++ b/pyxel/editor/image_editor.py
@@ -38,7 +38,7 @@ class EditWindow(Widget):
def _draw_line(self, x1, y1, x2, y2, col):
if x1 == x2 and y1 == y2:
- if x1 >... | Fixed the line function for the image editor | py |
diff --git a/openupgradelib/openupgrade_merge_records.py b/openupgradelib/openupgrade_merge_records.py
index <HASH>..<HASH> 100644
--- a/openupgradelib/openupgrade_merge_records.py
+++ b/openupgradelib/openupgrade_merge_records.py
@@ -332,6 +332,7 @@ def _adjust_merged_values_orm(env, model_name, record_ids, target_rec... | [FIX] merge_records: ensure value in merging many2one and binary types | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.