diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/src/rezplugins/shell/_utils/windows.py b/src/rezplugins/shell/_utils/windows.py
index <HASH>..<HASH> 100644
--- a/src/rezplugins/shell/_utils/windows.py
+++ b/src/rezplugins/shell/_utils/windows.py
@@ -1,6 +1,7 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright Contributors to the Rez Project
+
impo... | hmm, very strict copyright checker | py |
diff --git a/holoviews/element/tabular.py b/holoviews/element/tabular.py
index <HASH>..<HASH> 100644
--- a/holoviews/element/tabular.py
+++ b/holoviews/element/tabular.py
@@ -264,8 +264,6 @@ class TableConversion(object):
selected = self._table.reindex(new_kdims, vdims)
else:
selected... | Reverted change to reindexing in conversions | py |
diff --git a/insights/parsers/krb5.py b/insights/parsers/krb5.py
index <HASH>..<HASH> 100644
--- a/insights/parsers/krb5.py
+++ b/insights/parsers/krb5.py
@@ -82,6 +82,14 @@ class Krb5Configuration(Parser, LegacyItemAccess):
'{' and end with a '}' on a trailing line. So we track whether we're in
curly braces... | Add docsting for attributes of Krb5Configuration (#<I>) | py |
diff --git a/multiqc/modules/mtnucratio/mtnucratio.py b/multiqc/modules/mtnucratio/mtnucratio.py
index <HASH>..<HASH> 100644
--- a/multiqc/modules/mtnucratio/mtnucratio.py
+++ b/multiqc/modules/mtnucratio/mtnucratio.py
@@ -51,9 +51,12 @@ class MultiqcModule(BaseMultiqcModule):
""" Parse the JSON output from mt... | Adjusted according to @ewels requests | py |
diff --git a/dockerfile.py b/dockerfile.py
index <HASH>..<HASH> 100755
--- a/dockerfile.py
+++ b/dockerfile.py
@@ -22,6 +22,7 @@ if image.startswith('php:'):
if 'pecl' == client:
run_cmds.append('git clone https://github.com/tarantool/tarantool-php.git /usr/src/php/ext/tarantool')
run_cmds.append... | Do not install rybakit/msgpack for pecl client | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -38,7 +38,7 @@ setuptools.setup(
keywords='metrics monitoring statsd',
packages=setuptools.find_packages(),
install_requires=[
- 'datadog==0.22.0', # pinned until 1.0.0
+ 'datadog==0.24.0', # pin... | Bump dogstatsd to <I> (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,6 +23,6 @@ setup( name='BioCMA',
author_email='eric.talevich@gmail.com',
url='http://github.com/etal/biocma',
packages=['biocma'],
- scripts=glob('scripts/*'),
+ #scripts=glob('scr... | setup.py: don't install scripts automatically | py |
diff --git a/zhaquirks/philips/zhadimmablelight.py b/zhaquirks/philips/zhadimmablelight.py
index <HASH>..<HASH> 100644
--- a/zhaquirks/philips/zhadimmablelight.py
+++ b/zhaquirks/philips/zhadimmablelight.py
@@ -33,7 +33,18 @@ class ZHADimmableLight(CustomDevice):
"""Philips ZigBee HomeAutomation dimmable bulb devi... | Add Philips Hue Filament (default power on state) support (#<I>) * Add "Signify Netherlands B.V." as a manufacturer for ZHA Philips lights * Fixed import order * Add Philips Hue Globe (default power on state) support (LWO<I>) * Added support for more filament bulbs | py |
diff --git a/qiskit/aqua/operators/state_fns/vector_state_fn.py b/qiskit/aqua/operators/state_fns/vector_state_fn.py
index <HASH>..<HASH> 100644
--- a/qiskit/aqua/operators/state_fns/vector_state_fn.py
+++ b/qiskit/aqua/operators/state_fns/vector_state_fn.py
@@ -169,8 +169,8 @@ class VectorStateFn(StateFn):
... | Fix statevector deprecation warning. (Qiskit/qiskit-aqua#<I>) | py |
diff --git a/treetime/treetime.py b/treetime/treetime.py
index <HASH>..<HASH> 100644
--- a/treetime/treetime.py
+++ b/treetime/treetime.py
@@ -982,8 +982,9 @@ def plot_vs_years(tt, step = None, ax=None, confidence=None, ticks=True, **kwarg
raise NotReadyError("confidence needs to be either a float (for max... | fix: exclude confidence intervals of branches marked as bad | py |
diff --git a/hearthstone/cardxml.py b/hearthstone/cardxml.py
index <HASH>..<HASH> 100644
--- a/hearthstone/cardxml.py
+++ b/hearthstone/cardxml.py
@@ -21,7 +21,6 @@ class CardXML(object):
PlayReq(int(t.attrib["reqID"])): int(t.attrib["param"] or 0) for t in e
}
- self.choose_cards = [t.attrib["cardID"] for t ... | cardxml: Drop ChooseCard support | py |
diff --git a/synapse/common.py b/synapse/common.py
index <HASH>..<HASH> 100644
--- a/synapse/common.py
+++ b/synapse/common.py
@@ -163,12 +163,10 @@ def todo(name, *args, **kwargs):
return (name, args, kwargs)
def tuplify(obj):
- '''Convert a nested set of python primitives into tupleized forms'''
- if is... | Bug typesafety (#<I>) * Replace recursion with msgpack | py |
diff --git a/salt/utils/verify.py b/salt/utils/verify.py
index <HASH>..<HASH> 100644
--- a/salt/utils/verify.py
+++ b/salt/utils/verify.py
@@ -69,8 +69,10 @@ def verify_socket(interface, pub_port, ret_port):
pubsock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
retsock = socket.socket(socket.AF_INET, so... | Set the SO_REUSEADDR option when performing the bind() test. Make failure of this test fatal again as well. | py |
diff --git a/msrest/http_logger.py b/msrest/http_logger.py
index <HASH>..<HASH> 100644
--- a/msrest/http_logger.py
+++ b/msrest/http_logger.py
@@ -43,7 +43,7 @@ def log_request(adapter, request, *args, **kwargs):
_LOGGER.debug("Request method: %r", request.method)
_LOGGER.debug("Request headers:")
... | Case insensitive match for Authorization header | py |
diff --git a/tests/tests.py b/tests/tests.py
index <HASH>..<HASH> 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -308,7 +308,7 @@ class LocationTemplateFilterTest(TestCase):
@skipUnless(geoip, geoip_msg)
def test_locations(self):
- self.assertEqual(location('8.8.8.8'), 'United States')
+ ... | Fix failing geoip test, with July <I> GeoLite database | py |
diff --git a/requests_oauthlib/oauth2_session.py b/requests_oauthlib/oauth2_session.py
index <HASH>..<HASH> 100644
--- a/requests_oauthlib/oauth2_session.py
+++ b/requests_oauthlib/oauth2_session.py
@@ -464,6 +464,7 @@ class OAuth2Session(requests.Session):
withhold_token=False,
client_id=None,
... | Don't pass 'files' through to token refresh | py |
diff --git a/config.py b/config.py
index <HASH>..<HASH> 100644
--- a/config.py
+++ b/config.py
@@ -61,7 +61,7 @@ def default_config(config):
try:
ADMINS = [
('', x.strip()) for x in
- config["CFG_SITE_EMERGENCY_EMAIL_ADDRESSES"]['*'].explode(",")
+ co... | celery: fix email reporting * Fixes an issue preventing error emails from being sent. | py |
diff --git a/salt/utils/event.py b/salt/utils/event.py
index <HASH>..<HASH> 100644
--- a/salt/utils/event.py
+++ b/salt/utils/event.py
@@ -39,7 +39,7 @@ class SaltEvent(object):
'''
Establish the publish connection
'''
- self.context = zmq.context()
+ self.context = zmq.Context(... | Fix context call in event.py | py |
diff --git a/twarc/expansions.py b/twarc/expansions.py
index <HASH>..<HASH> 100644
--- a/twarc/expansions.py
+++ b/twarc/expansions.py
@@ -121,10 +121,13 @@ def flatten(response):
"""
# Users extracted both by id and by username for expanding mentions
- includes_users = {
- **extract_includes(resp... | fix users includes not being a defaultdict | py |
diff --git a/plotypus.py b/plotypus.py
index <HASH>..<HASH> 100644
--- a/plotypus.py
+++ b/plotypus.py
@@ -36,8 +36,6 @@ def main():
normalized_matrix)
eigenvectors, principle_scores, normalized_reconstruction = pcat(
normalized_matrix)
- assert False, "x: {}, x_max: {}, x_min:... | Forgot to add my assertion :\ | py |
diff --git a/pyinfra/connectors/ssh.py b/pyinfra/connectors/ssh.py
index <HASH>..<HASH> 100644
--- a/pyinfra/connectors/ssh.py
+++ b/pyinfra/connectors/ssh.py
@@ -384,9 +384,17 @@ def get_file(
def _put_file(host, filename_or_io, remote_location):
- with get_file_io(filename_or_io) as file_io:
- sftp = _... | Retry up to 3 times when uploading files in SSH connector. This addresses flakey SSH daemons on MacOS instances. | py |
diff --git a/ansible_runner/__main__.py b/ansible_runner/__main__.py
index <HASH>..<HASH> 100644
--- a/ansible_runner/__main__.py
+++ b/ansible_runner/__main__.py
@@ -68,6 +68,7 @@ def role_manager(args):
kwargs.update(private_data_dir=args.private_data_dir,
json_mode=args.json,
... | Pass project_dir to RunnerConfig initialization | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -34,7 +34,6 @@ import sphinx_rtd_theme
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
- 'sphinx.ext.githubpages',
]
# Add any paths that contain templates here, relative to thi... | don't include githubpages extension | py |
diff --git a/tests/unit/test_mixins.py b/tests/unit/test_mixins.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_mixins.py
+++ b/tests/unit/test_mixins.py
@@ -356,7 +356,7 @@ class SendMixinTest(QuickbooksUnitTestCase):
invoice.Id = 2
send_to_email = urllib.parse.quote("test@email.com", safe='')
... | fixed test_send_with_send_to_email to not use already parsed email | py |
diff --git a/tests/python/test_linear.py b/tests/python/test_linear.py
index <HASH>..<HASH> 100644
--- a/tests/python/test_linear.py
+++ b/tests/python/test_linear.py
@@ -61,7 +61,7 @@ class TestLinear:
# result.
if len(result) > 2:
sampled_result = [score for i, score in enumerate(result... | Relax shotgun test. (#<I>) It's non-deterministic algorithm, the test is flaky. | py |
diff --git a/amino/lenses/lens.py b/amino/lenses/lens.py
index <HASH>..<HASH> 100644
--- a/amino/lenses/lens.py
+++ b/amino/lenses/lens.py
@@ -1,5 +1,10 @@
+from typing import Iterable, TypeVar
+
from lenses.ui import UnboundLens
from lenses.optics import TrivialIso
+from lenses.hooks.hook_funcs import from_iter
+
+f... | add hook to support `List` in lenses | py |
diff --git a/baron/grammator.py b/baron/grammator.py
index <HASH>..<HASH> 100644
--- a/baron/grammator.py
+++ b/baron/grammator.py
@@ -146,6 +146,12 @@ def generate_parse(print_function):
return statement
+ @pg.production("async_maybe : ")
+ def async__(pack):
+ return {}
+
+
+ @pg.producti... | funcdef should not be an async stmt | py |
diff --git a/sos/report/plugins/grub2.py b/sos/report/plugins/grub2.py
index <HASH>..<HASH> 100644
--- a/sos/report/plugins/grub2.py
+++ b/sos/report/plugins/grub2.py
@@ -39,7 +39,8 @@ class Grub2(Plugin, IndependentPlugin):
co = {'cmd': '%s --help' % grub_cmd, 'output': '--no-grubenv-update'}
if self... | [grub2] Add predicate on dm_mod for grub2-mkconfig The `grub2-mkconfig` command will load the `dm_mod` module if it is not already loaded. As such, add a predicate to skip command execution if that module is not loaded already. | py |
diff --git a/asammdf/v4_blocks.py b/asammdf/v4_blocks.py
index <HASH>..<HASH> 100644
--- a/asammdf/v4_blocks.py
+++ b/asammdf/v4_blocks.py
@@ -2247,15 +2247,16 @@ class ChannelConversion(dict):
P4 = self['P4']
P5 = self['P5']
P6 = self['P6']
- if (P1, P2, P3, P4, P5, P6... | fix for issue #<I> - third attempt | py |
diff --git a/c7n/resources/vpc.py b/c7n/resources/vpc.py
index <HASH>..<HASH> 100644
--- a/c7n/resources/vpc.py
+++ b/c7n/resources/vpc.py
@@ -1884,7 +1884,7 @@ class NetworkAddress(query.QueryResourceManager):
enum_spec = ('describe_addresses', 'Addresses', None)
name = 'PublicIp'
id = 'Allo... | aws - elasticip - use allocation id for filtering (#<I>) | py |
diff --git a/cluster/juju/layers/kubernetes-worker/reactive/kubernetes_worker.py b/cluster/juju/layers/kubernetes-worker/reactive/kubernetes_worker.py
index <HASH>..<HASH> 100644
--- a/cluster/juju/layers/kubernetes-worker/reactive/kubernetes_worker.py
+++ b/cluster/juju/layers/kubernetes-worker/reactive/kubernetes_wor... | don't try to remove the node if kubeconfig doesn't exist | py |
diff --git a/pgi/overrides/Poppler.py b/pgi/overrides/Poppler.py
index <HASH>..<HASH> 100644
--- a/pgi/overrides/Poppler.py
+++ b/pgi/overrides/Poppler.py
@@ -22,21 +22,12 @@ Rectangle = Poppler.Rectangle
__all__ = []
+from pgi.finalizer import _BaseFinalizer
-class _Finalizer(object):
- _objects = set()
- ... | Refactor Poppler to use _BaseFinalizer | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -29,6 +29,7 @@ setup(
python_requires=">=3.6",
install_requires=get_requirements(),
tests_require=get_test_requirements(),
+ include_package_data=True,
license="BSD",
url="https://github.com/jazzban... | Include package data to fix docs and pypi (#<I>) | py |
diff --git a/stripe/test/test_requestor.py b/stripe/test/test_requestor.py
index <HASH>..<HASH> 100644
--- a/stripe/test/test_requestor.py
+++ b/stripe/test/test_requestor.py
@@ -37,11 +37,13 @@ class APIHeaderMatcher(object):
def __eq__(self, other):
return (self._keys_match(other) and
s... | Fixing the test suite for requests. | py |
diff --git a/elasticsearch_dsl/document.py b/elasticsearch_dsl/document.py
index <HASH>..<HASH> 100644
--- a/elasticsearch_dsl/document.py
+++ b/elasticsearch_dsl/document.py
@@ -268,11 +268,11 @@ class DocType(ObjectBase):
def update(self, using=None, index=None, detect_noop=True, doc_as_upsert=False, **fields):
... | change :param: to :arg: | py |
diff --git a/evaluate.py b/evaluate.py
index <HASH>..<HASH> 100755
--- a/evaluate.py
+++ b/evaluate.py
@@ -149,7 +149,7 @@ def evaluate(test_data, inference_graph, alphabet):
labels = pad_to_dense(batch['transcript'].values)
label_lengths = batch['transcript_len'].values
- logits,... | Don't overwrite loss tensor with loss value | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,6 +18,8 @@ https://github.com/berdario/pew#usage'''
here = os.path.abspath(os.path.dirname(__file__))
VERSION = '1.1.4'
+AUTHOR = os.environ.get('DEBFULLNAME', 'Dario Bertini')
+EMAIL = os.environ.get('DEBEMAIL', 'berd... | Override setuptools author and package via environment variables useful for deb packaging. | py |
diff --git a/dpxdt/server/__init__.py b/dpxdt/server/__init__.py
index <HASH>..<HASH> 100644
--- a/dpxdt/server/__init__.py
+++ b/dpxdt/server/__init__.py
@@ -35,7 +35,11 @@ app = Flask(__name__)
app.config.from_object(config)
-db = SQLAlchemy(app)
+db = SQLAlchemy(
+ app,
+ # Don't expire model instances on... | Use expire_on_commit=False for SQLAlchemy sessions so we can read the attributes of a model instance after commit with no overhead | py |
diff --git a/zhaquirks/tuya/mcu/__init__.py b/zhaquirks/tuya/mcu/__init__.py
index <HASH>..<HASH> 100644
--- a/zhaquirks/tuya/mcu/__init__.py
+++ b/zhaquirks/tuya/mcu/__init__.py
@@ -406,9 +406,6 @@ class MoesSwitchManufCluster(TuyaOnOffManufCluster):
class TuyaLevelControl(LevelControl, TuyaLocalCluster):
"""Tuy... | Clean TuyaLevelControl attributes (#<I>) `LevelControl` already has the `current_level` attribute: * <URL> | py |
diff --git a/fancyimpute/MICE.py b/fancyimpute/MICE.py
index <HASH>..<HASH> 100644
--- a/fancyimpute/MICE.py
+++ b/fancyimpute/MICE.py
@@ -159,7 +159,6 @@ class MICE():
if verbose:
print("Run:", m)
self._perform_imputation_round()
- break
if m >= self.n... | mice had a 'break' in it | py |
diff --git a/openpnm/core/Base.py b/openpnm/core/Base.py
index <HASH>..<HASH> 100644
--- a/openpnm/core/Base.py
+++ b/openpnm/core/Base.py
@@ -149,6 +149,8 @@ class Base(dict):
super().__init__()
if project is None:
project = ws.new_project()
+ if name is None:
+ name = ... | Change base to intercept name=None, instead of fancy handling done in name attr | py |
diff --git a/test/proto.py b/test/proto.py
index <HASH>..<HASH> 100644
--- a/test/proto.py
+++ b/test/proto.py
@@ -58,7 +58,6 @@ class ProtoLibrary(object):
update_config(self.config, use_environ=False)
assert self.config.loaded[0] == config_path + '/config.yaml'
- import pdb; pdb.set_trace()... | Breakpoints removed. #<I>. | py |
diff --git a/src/mistclient/__init__.py b/src/mistclient/__init__.py
index <HASH>..<HASH> 100644
--- a/src/mistclient/__init__.py
+++ b/src/mistclient/__init__.py
@@ -528,7 +528,7 @@ class MistClient(object):
'inputs': inputs
}
- req = self.request(self.uri + "/stack/" + stack_id,
+ ... | Fix route from /stack tp /stacks | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,6 @@ setup(
'pyramda.private.curry_spec',
'pyramda.relation'
],
- install_requires=['future'],
tests_require=['nose', 'coverage', 'mock'],
zip_safe=False
) | Removed install_requires=['future'], Removed install_requires=['future'], from the code as it is no longer required because we are removing all the python 2.* support entirely. | py |
diff --git a/examples/charts/area.py b/examples/charts/area.py
index <HASH>..<HASH> 100644
--- a/examples/charts/area.py
+++ b/examples/charts/area.py
@@ -17,7 +17,7 @@ xyvalues = OrderedDict(
# create an area chart
area = Area(
xyvalues, title="Area Chart",
- ylabel='Performance', filename="areas.html",
+ ... | fix examples name that are failing on travis-ci | py |
diff --git a/regions/shapes/tests/test_polygon.py b/regions/shapes/tests/test_polygon.py
index <HASH>..<HASH> 100644
--- a/regions/shapes/tests/test_polygon.py
+++ b/regions/shapes/tests/test_polygon.py
@@ -1,7 +1,7 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import numpy as np
-from numpy.te... | Add test for PolygonPixelRegion origin | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ def read(fname):
setup(
name="Pebble",
- version="2.4.0",
+ version="2.4.1",
author="Matteo Cafasso",
author_email="noxdafox@gmail.com",
description=("Threading and multiprocessing e... | release <I>: unified Task interface, improved unittests, exceptions in thread callbacks are handled properly | py |
diff --git a/fault/verilator_target.py b/fault/verilator_target.py
index <HASH>..<HASH> 100644
--- a/fault/verilator_target.py
+++ b/fault/verilator_target.py
@@ -39,10 +39,13 @@ double sc_time_stamp () {{ // Called by $time in Verilog
}}
// function to write_coverage
+#ifdef _VERILATED_COV_H_
void write_cov... | use macro since if direct code gen since the header won't be included without the flag | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,8 +23,6 @@ setup(
license=metadata.LICENSE,
keywords=metadata.KEYWORDS,
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
-
- data_files=[('data', ['data/test.json'])],
entry_points={
... | Removed data_files, since not needed at this point. | py |
diff --git a/path/__init__.py b/path/__init__.py
index <HASH>..<HASH> 100644
--- a/path/__init__.py
+++ b/path/__init__.py
@@ -887,7 +887,12 @@ class Path(str):
# bound. Playing it safe and wrapping them all in method calls.
def isabs(self):
- """.. seealso:: :func:`os.path.isabs`"""
+ """
+ ... | Add tests for isabs and ismount | py |
diff --git a/conftest.py b/conftest.py
index <HASH>..<HASH> 100644
--- a/conftest.py
+++ b/conftest.py
@@ -38,9 +38,9 @@ def pytest_load_initial_conftests(args):
def pytest_configure(config):
if sys.version[0] == '3':
- config.addinivalue_line("addopts", '--doctest-modules')
- config.option.doctes... | Remove NUMBER from pytest config | py |
diff --git a/runipy/notebook_runner.py b/runipy/notebook_runner.py
index <HASH>..<HASH> 100644
--- a/runipy/notebook_runner.py
+++ b/runipy/notebook_runner.py
@@ -11,13 +11,19 @@ import platform
from time import sleep
import logging
import os
-
-try:
- # IPython 3
- from IPython.nbformat import NotebookNode
-e... | runipy/notebook_runner.py: Handle the event of a `ShimWarning` being issued on iPython 4.x and properly import the needed items. | py |
diff --git a/raven/transport/base.py b/raven/transport/base.py
index <HASH>..<HASH> 100644
--- a/raven/transport/base.py
+++ b/raven/transport/base.py
@@ -8,6 +8,10 @@ raven.transport.base
from __future__ import absolute_import
+# Helper for external transports
+has_newstyle_transports = True
+
+
class Transport(... | Added an indicator for external transports | py |
diff --git a/safe/impact_functions/inundation/flood_raster_roads_experimental-optimized.py b/safe/impact_functions/inundation/flood_raster_roads_experimental-optimized.py
index <HASH>..<HASH> 100644
--- a/safe/impact_functions/inundation/flood_raster_roads_experimental-optimized.py
+++ b/safe/impact_functions/inundatio... | disable impact function until tests pass #<I> | py |
diff --git a/algorithms/synteny.py b/algorithms/synteny.py
index <HASH>..<HASH> 100755
--- a/algorithms/synteny.py
+++ b/algorithms/synteny.py
@@ -91,11 +91,6 @@ def read_blast(blast_file, qorder, sorder, is_self=False, ostrip=True):
if query not in qorder or subject not in sorder:
continue
- ... | minor fix for self comparison in read_blast() | py |
diff --git a/ebclient/eb_configuration.py b/ebclient/eb_configuration.py
index <HASH>..<HASH> 100644
--- a/ebclient/eb_configuration.py
+++ b/ebclient/eb_configuration.py
@@ -71,7 +71,7 @@ class Configuration(object):
# Main endpoints
self.endpoint_process = Endpoint.url('https://site2.enigmabridge.co... | default registration endpoint set to hut6 | py |
diff --git a/atlassian/jira.py b/atlassian/jira.py
index <HASH>..<HASH> 100644
--- a/atlassian/jira.py
+++ b/atlassian/jira.py
@@ -23,6 +23,19 @@ class Jira(AtlassianRestAPI):
def user(self, username):
return self.get('rest/api/2/user?username={0}'.format(username))
+ def user_find_by_user_string(sel... | add method search users using user string as username or display name phrase | py |
diff --git a/matgendb/vv/validate.py b/matgendb/vv/validate.py
index <HASH>..<HASH> 100644
--- a/matgendb/vv/validate.py
+++ b/matgendb/vv/validate.py
@@ -418,9 +418,9 @@ class Validator(DoesLogging):
cvgroup.subject = subject
# If the constraint is an 'import' of code, treat it differently here
- ... | Comment out python parsing for now | py |
diff --git a/iopipe/contrib/logger/wrapper.py b/iopipe/contrib/logger/wrapper.py
index <HASH>..<HASH> 100644
--- a/iopipe/contrib/logger/wrapper.py
+++ b/iopipe/contrib/logger/wrapper.py
@@ -8,8 +8,4 @@ class LogWrapper(object):
def __getattr__(self, name):
self.context.iopipe.label("@iopipe/plugin-logg... | Removing logs-* auto labels (#<I>) These were not part of the final set, so removing to reduce noise. | py |
diff --git a/ffi/build.py b/ffi/build.py
index <HASH>..<HASH> 100755
--- a/ffi/build.py
+++ b/ffi/build.py
@@ -52,8 +52,8 @@ def find_win32_generator():
# compatible with, the one which was used to compile LLVM... cmake
# seems a bit lacking here.
cmake_dir = os.path.join(here_dir, 'dummy')
- # LLVM 3... | Update binding win<I> build requirements | py |
diff --git a/py3status/modules/mpd_status.py b/py3status/modules/mpd_status.py
index <HASH>..<HASH> 100644
--- a/py3status/modules/mpd_status.py
+++ b/py3status/modules/mpd_status.py
@@ -66,6 +66,7 @@ stopped
import datetime
import re
import socket
+from py3status.composite import Composite
from mpd import MPDClien... | mpd_status module: max_width was not working because of composite fixes #<I> (#<I>) | py |
diff --git a/doge/core.py b/doge/core.py
index <HASH>..<HASH> 100755
--- a/doge/core.py
+++ b/doge/core.py
@@ -11,6 +11,7 @@ import termios
import struct
import traceback
import subprocess as sp
+import unicodedata
from os.path import dirname, join
@@ -267,7 +268,7 @@ class DogeMessage(object):
... | wow double-width, much kawaii | py |
diff --git a/lib/ansiblelint/formatters/__init__.py b/lib/ansiblelint/formatters/__init__.py
index <HASH>..<HASH> 100644
--- a/lib/ansiblelint/formatters/__init__.py
+++ b/lib/ansiblelint/formatters/__init__.py
@@ -23,6 +23,6 @@ class ParseableFormatter(object):
formatstr = u"{0}:{1}: [{2}] {3}"
retur... | Improve ParseableFormatter to be more like pylint Add an E in front of the rule ID so that pylint detects it as an error. Fixes #<I> | py |
diff --git a/f5/common/iapp_parser.py b/f5/common/iapp_parser.py
index <HASH>..<HASH> 100644
--- a/f5/common/iapp_parser.py
+++ b/f5/common/iapp_parser.py
@@ -51,6 +51,9 @@ class IappParser(object):
def _get_section_end_index(self, section, section_start):
'''Get end of section's content.
+ In th... | Fixed iapp_parser failure to skip doubly quoted braces. | py |
diff --git a/ratcave/shader.py b/ratcave/shader.py
index <HASH>..<HASH> 100644
--- a/ratcave/shader.py
+++ b/ratcave/shader.py
@@ -38,7 +38,11 @@ class UniformCollection(UserDict, object):
try:
loc = array.loc
except AttributeError:
- array.loc = gl.glGetUniform... | UniformCollection now asks OpenGL directly for the currently-bound shader, removing its dependency on the Shader class and making it more generally useful. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -1,10 +1,23 @@
#!/usr/bin/env python
from __future__ import unicode_literals
+import codecs
+import os
+import re
import setuptools
from setuptools import setup, find_packages
import sys
+# Borrowed from pip at https:... | Add a long description to setup Include the readme as the `long_description` argument to `setup` and set its content type appropriately. This allows PyPI to render the content correctly. | py |
diff --git a/pbxproj/pbxextensions/ProjectFiles.py b/pbxproj/pbxextensions/ProjectFiles.py
index <HASH>..<HASH> 100644
--- a/pbxproj/pbxextensions/ProjectFiles.py
+++ b/pbxproj/pbxextensions/ProjectFiles.py
@@ -346,7 +346,7 @@ class ProjectFiles:
if not create_groups and os.path.splitext(path)[1] not in Projec... | fix: solve problem with path while creating groups from external folders | py |
diff --git a/dedup_umi.py b/dedup_umi.py
index <HASH>..<HASH> 100644
--- a/dedup_umi.py
+++ b/dedup_umi.py
@@ -996,10 +996,10 @@ def main(argv=None):
post_cluster_null_binned = bin_clusters(post_cluster_stats_null)
edit_distance_df = pd.DataFrame({
- "pre": tallyCounts(pre_cluster_binned,... | renames columns for edit distance stats to include method name | py |
diff --git a/salt/states/keystone.py b/salt/states/keystone.py
index <HASH>..<HASH> 100644
--- a/salt/states/keystone.py
+++ b/salt/states/keystone.py
@@ -156,13 +156,15 @@ def user_present(name,
ret['changes']['Password'] = 'Updated'
if roles:
for tenant_role in roles[0].keys():
- ... | Fix missing connection_args for user_present's role logic. | py |
diff --git a/topydo/lib/Sorter.py b/topydo/lib/Sorter.py
index <HASH>..<HASH> 100644
--- a/topydo/lib/Sorter.py
+++ b/topydo/lib/Sorter.py
@@ -35,8 +35,8 @@ FIELDS = {
label='Completed',
),
'context': Field(
- sort=lambda t: sorted(c.lower() for c in t.contexts()),
- group=lambda t: sor... | Return a group 'None' for todo items without group When grouping by project, todo items without a project wouldn't be listed (same for contexts). Moreover, sort the projects such that the items without project are shown at the bottom of the list. | py |
diff --git a/vyper/ir/compile_ir.py b/vyper/ir/compile_ir.py
index <HASH>..<HASH> 100644
--- a/vyper/ir/compile_ir.py
+++ b/vyper/ir/compile_ir.py
@@ -994,6 +994,7 @@ def assembly_to_evm(assembly, pc_ofst=0, insert_vyper_signature=False):
if insert_vyper_signature:
# CBOR encoded: {"vyper": [major,minor,p... | add cbor length metadata (#<I>) add binary encoded length to the end of the CBOR metadata so disassemblers can reliably detect where code ends and metadata starts | py |
diff --git a/peewee.py b/peewee.py
index <HASH>..<HASH> 100644
--- a/peewee.py
+++ b/peewee.py
@@ -4276,7 +4276,7 @@ class BinaryUUIDField(BlobField):
return self._constructor(value)
elif isinstance(value, basestring) and len(value) == 32:
# Allow hex string representation.
- ... | Python 3.x fix for uuid change. | py |
diff --git a/test/osuapi_test.py b/test/osuapi_test.py
index <HASH>..<HASH> 100644
--- a/test/osuapi_test.py
+++ b/test/osuapi_test.py
@@ -23,6 +23,9 @@ class OsuApiTest(unittest.TestCase):
connector=osuapi.ReqConnector())
warnings.simplefilter("error")
+ def tearDown(self):
+ self.api... | close api instance in tearDown Nose complained about unclosed sockets, these get torn down in __del__ but calling close() is correct too. | py |
diff --git a/src/python/pants/backend/python/util_rules/pex_from_targets.py b/src/python/pants/backend/python/util_rules/pex_from_targets.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/backend/python/util_rules/pex_from_targets.py
+++ b/src/python/pants/backend/python/util_rules/pex_from_targets.py
@@ -611,7 +61... | Fix typo in warning for `[python].resolve_all_constraints` (#<I>) [ci skip-rust] [ci skip-build-wheels] | py |
diff --git a/hwt/hdl/types/struct.py b/hwt/hdl/types/struct.py
index <HASH>..<HASH> 100644
--- a/hwt/hdl/types/struct.py
+++ b/hwt/hdl/types/struct.py
@@ -125,10 +125,20 @@ class HStruct(HdlType):
return True
def __eq__(self, other):
- return self is other or (
- type(self) is type(oth... | HStruct.__eq__: fix for variable size members | py |
diff --git a/tftpy/TftpStates.py b/tftpy/TftpStates.py
index <HASH>..<HASH> 100644
--- a/tftpy/TftpStates.py
+++ b/tftpy/TftpStates.py
@@ -257,7 +257,7 @@ class TftpServerState(TftpState):
full_path = os.path.join(self.context.root, pkt.filename)
self.full_path = os.path.abspath(full_path)
lo... | tftpy/TftpStates.py: fix security problem regarding path check This patch fixes the request path check. It makes sure that requested paths are _below_ the specified root directory. | py |
diff --git a/samples/getinfo.py b/samples/getinfo.py
index <HASH>..<HASH> 100755
--- a/samples/getinfo.py
+++ b/samples/getinfo.py
@@ -125,10 +125,11 @@ try:
for x in m:
print " " + blue + x + normal
i = pkcs11.getMechanismInfo(slot, x)
- if i.ulMinKeySize != PyKCS11.CK_U... | do not display ulMinKeySize and ulMaxKeySize for CKF_DIGEST mechanisms | py |
diff --git a/py2pack/setup.py b/py2pack/setup.py
index <HASH>..<HASH> 100644
--- a/py2pack/setup.py
+++ b/py2pack/setup.py
@@ -13,36 +13,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import glob
-import os
import re
-import shutil
import subprocess
... | Remove distutils cleanup command This can be done with "git clean" so the custom command is not needed. | py |
diff --git a/src/_pytest/python.py b/src/_pytest/python.py
index <HASH>..<HASH> 100644
--- a/src/_pytest/python.py
+++ b/src/_pytest/python.py
@@ -596,6 +596,7 @@ class Package(Module):
def collect(self):
this_path = self.fspath.dirpath()
pkg_prefix = None
+ yield Module(this_path.join("__... | Collect any tests from a package's __init__.py | py |
diff --git a/octodns/processors/ownership.py b/octodns/processors/ownership.py
index <HASH>..<HASH> 100644
--- a/octodns/processors/ownership.py
+++ b/octodns/processors/ownership.py
@@ -65,10 +65,10 @@ class OwnershipProcessor(BaseProcessor):
pieces = record.name.split('.', 2)
if len(... | Don't need to _wildcard empty names | py |
diff --git a/openquake/engine/bin/openquake_cli.py b/openquake/engine/bin/openquake_cli.py
index <HASH>..<HASH> 100755
--- a/openquake/engine/bin/openquake_cli.py
+++ b/openquake/engine/bin/openquake_cli.py
@@ -403,12 +403,19 @@ def main():
args = arg_parser.parse_args()
- exports = args.exports or 'xml'
+ ... | Now also csv outputs are exported by default | py |
diff --git a/tests/test_mod.py b/tests/test_mod.py
index <HASH>..<HASH> 100644
--- a/tests/test_mod.py
+++ b/tests/test_mod.py
@@ -7,6 +7,7 @@ import geojson
import py.path
import pytest
import requests_mock
+import types
from sentinelsat.sentinel import (InvalidChecksumError, SentinelAPI, SentinelAPIError, conve... | added test to check the new function .to_dict | py |
diff --git a/minitds/minitds.py b/minitds/minitds.py
index <HASH>..<HASH> 100755
--- a/minitds/minitds.py
+++ b/minitds/minitds.py
@@ -1037,7 +1037,7 @@ class Connection(object):
self.sock = None
-def connect(host, database, user, password, isolation_level=0, port=1433, lcid=1033, encoding='latin1', us... | defult isolation level is ISOLATION_LEVEL_READ_COMMITTED | py |
diff --git a/fluent_comments/forms/helper.py b/fluent_comments/forms/helper.py
index <HASH>..<HASH> 100644
--- a/fluent_comments/forms/helper.py
+++ b/fluent_comments/forms/helper.py
@@ -25,6 +25,9 @@ class CommentFormHelper(FormHelper):
BASE_FIELDS_END = ('honeypot',)
BASE_FIELDS = BASE_FIELDS_TOP + BASE_FIE... | Include 'parent' field top top for threadedcomments | py |
diff --git a/scandir.py b/scandir.py
index <HASH>..<HASH> 100644
--- a/scandir.py
+++ b/scandir.py
@@ -40,7 +40,7 @@ if _scandir is None and ctypes is None:
warnings.warn("scandir can't find the compiled _scandir C module "
"or ctypes, using slow generic fallback")
-__version__ = '1.8'
+__vers... | Bump up version number, change to semver | py |
diff --git a/remi/gui.py b/remi/gui.py
index <HASH>..<HASH> 100644
--- a/remi/gui.py
+++ b/remi/gui.py
@@ -14,6 +14,7 @@
import os
import traceback
+from functools import cmp_to_key
from .server import runtimeInstances, debug_message, debug_alert
@@ -892,14 +893,14 @@ class FileFolderNavigator(Widget):
... | Compatibility issue fixed. Functions cmp is no more available on Python3. Keyword argument become obligatory in Python3. | py |
diff --git a/_pytest/assertion/rewrite.py b/_pytest/assertion/rewrite.py
index <HASH>..<HASH> 100644
--- a/_pytest/assertion/rewrite.py
+++ b/_pytest/assertion/rewrite.py
@@ -153,11 +153,16 @@ def _make_rewritten_pyc(state, fn, pyc):
# assertion rewriting, but I don't know of a fast way to tell.
state... | on windows, rename is not atomic, so utilize exclusive access to the file | py |
diff --git a/ib_insync/ibcontroller.py b/ib_insync/ibcontroller.py
index <HASH>..<HASH> 100644
--- a/ib_insync/ibcontroller.py
+++ b/ib_insync/ibcontroller.py
@@ -156,6 +156,7 @@ class IBC(Object):
# run shell command
self._proc = await asyncio.create_subprocess_shell(cmd,
+ env=os.en... | set explicit environment for IBC subprocess | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -59,9 +59,9 @@ copyright = u'2014, Alex Mathew, Harish Balakrishnan'
# built documents.
#
# The short X.Y version.
-version = '0.1'
+version = '0.2.0'
# The full version, including alpha/beta/rc tags.
-rele... | Set up scrapple <I> | py |
diff --git a/salt/modules/cron.py b/salt/modules/cron.py
index <HASH>..<HASH> 100644
--- a/salt/modules/cron.py
+++ b/salt/modules/cron.py
@@ -129,10 +129,10 @@ def _render_tab(lst):
if cron['comment'] is not None or cron['identifier'] is not None:
comment = '#'
if cron['comment']:
- ... | Removed rstrip from comment in render_tab | py |
diff --git a/dronekit/__init__.py b/dronekit/__init__.py
index <HASH>..<HASH> 100644
--- a/dronekit/__init__.py
+++ b/dronekit/__init__.py
@@ -32,7 +32,15 @@ A number of other useful classes and methods are listed below.
----
"""
+import sys
import collections
+
+# Python3.10 removed MutableMapping from collection... | Correct import of MutableMapping for Python <I> | py |
diff --git a/deployutils/__init__.py b/deployutils/__init__.py
index <HASH>..<HASH> 100644
--- a/deployutils/__init__.py
+++ b/deployutils/__init__.py
@@ -22,4 +22,4 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-__version__ = '0.5.22-dev'
+... | releases <I> to pypi | py |
diff --git a/lambdas/access_counts/index.py b/lambdas/access_counts/index.py
index <HASH>..<HASH> 100644
--- a/lambdas/access_counts/index.py
+++ b/lambdas/access_counts/index.py
@@ -132,7 +132,7 @@ INSERT_INTO_OBJECT_ACCESS_LOG = textwrap.dedent("""\
-- Filter out non-S3 events, or S3 events like ListBucket that ... | Fix INSERT INTO object_access_log query (#<I>) Regression in <I>a<I>f<I>d<I>eaf3c<I>a<I>d<I> | py |
diff --git a/typedload/dataloader.py b/typedload/dataloader.py
index <HASH>..<HASH> 100644
--- a/typedload/dataloader.py
+++ b/typedload/dataloader.py
@@ -238,7 +238,7 @@ class Loader:
try:
return func(self, value, type_)
except TypedloadException as e:
- e.trace.append(TraceIt... | Revert direction of the trace To be in line with every other trace that exists | py |
diff --git a/sebastian/core/transforms.py b/sebastian/core/transforms.py
index <HASH>..<HASH> 100644
--- a/sebastian/core/transforms.py
+++ b/sebastian/core/transforms.py
@@ -140,9 +140,15 @@ _dynamic_markers_to_velocity = {
def dynamics(start, end=None):
"""
- Apply dynamics to a sequence. If end is specifi... | Better docstring on dynamics transform. | py |
diff --git a/troposphere/ec2.py b/troposphere/ec2.py
index <HASH>..<HASH> 100644
--- a/troposphere/ec2.py
+++ b/troposphere/ec2.py
@@ -143,6 +143,18 @@ class Placement(AWSProperty):
}
+class CreditSpecification(AWSProperty):
+ props = {
+ 'CPUCredits': (basestring, False),
+ }
+
+
+class ElasticGp... | Add CreditSpecification and ElasticGpuSpecifications to EC2::Instance | py |
diff --git a/instabot/bot/bot.py b/instabot/bot/bot.py
index <HASH>..<HASH> 100755
--- a/instabot/bot/bot.py
+++ b/instabot/bot/bot.py
@@ -170,8 +170,9 @@ class Bot(object):
blocked_actions_protection=True,
verbosity=True,
device=None,
+ save_logfile=True,
):
- self.api = A... | Add save_logfile param to Bot constructor to disable .log files generation | py |
diff --git a/libraries/botbuilder-dialogs/botbuilder/dialogs/choices/choice_factory.py b/libraries/botbuilder-dialogs/botbuilder/dialogs/choices/choice_factory.py
index <HASH>..<HASH> 100644
--- a/libraries/botbuilder-dialogs/botbuilder/dialogs/choices/choice_factory.py
+++ b/libraries/botbuilder-dialogs/botbuilder/dia... | ChoiceFactory.for_channel was erroneously returning a List instead of an Activity (#<I>) | py |
diff --git a/salt/modules/debian_service.py b/salt/modules/debian_service.py
index <HASH>..<HASH> 100644
--- a/salt/modules/debian_service.py
+++ b/salt/modules/debian_service.py
@@ -259,7 +259,8 @@ def enable(name, **kwargs):
if int(osmajor) >= 6:
cmd = 'insserv {0} && '.format(_cmd_quote(name)) ... | correctly fix #<I>: osmajor contained only `t`, full osrelease should have been used in comparison | py |
diff --git a/quilt/db.py b/quilt/db.py
index <HASH>..<HASH> 100644
--- a/quilt/db.py
+++ b/quilt/db.py
@@ -66,6 +66,9 @@ class PatchSeries(object):
line = line.strip()
+ if not line:
+ continue
+
self._patches.append(line)
de... | Ignore empty lines in series file | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.