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
@@ -109,7 +109,7 @@ setup(
author='Peter "fracpete" Reutemann',
author_email='pythonwekawrapper at gmail dot com',
install_requires=[
- "javabridge>=1.0.11",
+ "javabridge=1.0.11",
"numpy"
... | requires exact version of javabridge now (<I>) | py |
diff --git a/cfgrib/bindings.py b/cfgrib/bindings.py
index <HASH>..<HASH> 100644
--- a/cfgrib/bindings.py
+++ b/cfgrib/bindings.py
@@ -441,7 +441,7 @@ def portable_handle_new_from_samples(samplename, product_kind):
handle = ffi.NULL
if platform.platform().startswith('Windows'):
- samples_folder = ffi... | Fix a path build crashing bug on Windows. Fixes #<I> | py |
diff --git a/test/test_f90nml.py b/test/test_f90nml.py
index <HASH>..<HASH> 100644
--- a/test/test_f90nml.py
+++ b/test/test_f90nml.py
@@ -890,6 +890,12 @@ class Test(unittest.TestCase):
self.assert_file_equal('types.yaml', 'tmp.yaml')
os.remove('tmp.yaml')
+ def test_cli__read(self):... | CLI: YAML read test | py |
diff --git a/xblock/core.py b/xblock/core.py
index <HASH>..<HASH> 100644
--- a/xblock/core.py
+++ b/xblock/core.py
@@ -87,17 +87,16 @@ class SharedBlockBase(Plugin):
if cls.resources_dir is None:
raise DisallowedFileError("This XBlock is not configured to serve local resources")
- # Make ... | Properly utilize resources_dir and public_dir. We were checking the asset path based on resources_dir, instead of simply considering public_dir. We were also not properly using the resources_dir path as part of the full path to load a resource stream from. | py |
diff --git a/pymongo/message.py b/pymongo/message.py
index <HASH>..<HASH> 100644
--- a/pymongo/message.py
+++ b/pymongo/message.py
@@ -18,6 +18,8 @@ Generally not needed to be used by application developers."""
import threading
import struct
+import random
+import sys
import bson
@@ -31,22 +33,6 @@ except Impo... | just use a random number for request_id - this is what we're doing in C too | py |
diff --git a/pycoin/tx/Tx.py b/pycoin/tx/Tx.py
index <HASH>..<HASH> 100644
--- a/pycoin/tx/Tx.py
+++ b/pycoin/tx/Tx.py
@@ -99,7 +99,7 @@ class Tx(object):
is_segwit = allow_segwit and (v == 0)
if is_segwit:
flag = f.read(1)
- if flag != b'\1':
+ if flag == b'\0':
... | Ensure segwit flag non-zero rather than exactly \1. | py |
diff --git a/cyphi/compute.py b/cyphi/compute.py
index <HASH>..<HASH> 100644
--- a/cyphi/compute.py
+++ b/cyphi/compute.py
@@ -315,8 +315,7 @@ def subsystems(network):
This is the just powerset of the network's set of nodes."""
for subset in utils.powerset(range(network.size)):
- yield Subsystem(subs... | compute.subsystems: Update to not take current/past state | py |
diff --git a/spinoff/actor/_actor.py b/spinoff/actor/_actor.py
index <HASH>..<HASH> 100644
--- a/spinoff/actor/_actor.py
+++ b/spinoff/actor/_actor.py
@@ -520,7 +520,7 @@ class Guardian(_BaseCell, _BaseRef):
actor.stop()
# dbg("GUARDIAN: joining...", actor, actor._cell)
try:
- ... | Made the Guardian shut down delay to join running actors a bit longer ...but this is a short term solution; see the comment | py |
diff --git a/malcolm/modules/ADCore/parts/positionlabellerpart.py b/malcolm/modules/ADCore/parts/positionlabellerpart.py
index <HASH>..<HASH> 100644
--- a/malcolm/modules/ADCore/parts/positionlabellerpart.py
+++ b/malcolm/modules/ADCore/parts/positionlabellerpart.py
@@ -31,7 +31,7 @@ class PositionLabellerPart(builtin.... | Change done_when_reaches default to 0 in PositionLabellerPart - This stops mypy complaining about a later += 1 - It also makes it consistent with DetectorDriverPart | py |
diff --git a/androguard/core/bytecodes/apk.py b/androguard/core/bytecodes/apk.py
index <HASH>..<HASH> 100644
--- a/androguard/core/bytecodes/apk.py
+++ b/androguard/core/bytecodes/apk.py
@@ -1892,7 +1892,7 @@ class ARSCParser(object):
try:
for i in self.values[package_name][locale]["string"]:
- ... | adding xml escape to strings in ARSC to produce valid xml | py |
diff --git a/pyramid_sockjs/session.py b/pyramid_sockjs/session.py
index <HASH>..<HASH> 100644
--- a/pyramid_sockjs/session.py
+++ b/pyramid_sockjs/session.py
@@ -200,8 +200,8 @@ class SessionManager(dict):
self._gc_thread.join()
def _gc(self):
- print 'GC processing ============', self.pool
... | more debug print stmt | py |
diff --git a/_nodes.py b/_nodes.py
index <HASH>..<HASH> 100644
--- a/_nodes.py
+++ b/_nodes.py
@@ -38,14 +38,14 @@ LOOP_SCOPES = (Comprehension, For,)
STMT_NODES = (
Assert, Assign, AugAssign, Break, Class, Continue, Delete, Discard,
ExceptHandler, Exec, For, From, Function, Global, If, Import, Pass, Print,
... | [B] remove introduced bug: Yield is no statement | py |
diff --git a/cltk/corpus/greek/beta_to_unicode.py b/cltk/corpus/greek/beta_to_unicode.py
index <HASH>..<HASH> 100644
--- a/cltk/corpus/greek/beta_to_unicode.py
+++ b/cltk/corpus/greek/beta_to_unicode.py
@@ -180,7 +180,10 @@ LOWER = [
(r'I\+', 'ϊ'),
(r'I\\\+', 'ῒ'),
(r'I/\+', 'ΐ'),
+ # Add a second ent... | Add entry for ϋ U<I>AB as well as an entry for out-of-order ΐ | py |
diff --git a/api/tests/test_limits.py b/api/tests/test_limits.py
index <HASH>..<HASH> 100644
--- a/api/tests/test_limits.py
+++ b/api/tests/test_limits.py
@@ -1,14 +1,14 @@
import unittest
-import re
-
-MEMLIMIT = re.compile(r'^(?P<mem>[0-9]+(MB|KB|GB|[BKMG]))$', re.IGNORECASE)
+from api.serializers import MEMLIMIT_... | ref(controller/tests): import regex to be tested, don't copy it | py |
diff --git a/tensorflow_probability/python/distributions/platform_compatibility_test.py b/tensorflow_probability/python/distributions/platform_compatibility_test.py
index <HASH>..<HASH> 100644
--- a/tensorflow_probability/python/distributions/platform_compatibility_test.py
+++ b/tensorflow_probability/python/distributi... | Increase tolerance of Categorical log prob in XLA test PiperOrigin-RevId: <I> | py |
diff --git a/salt/modules/file.py b/salt/modules/file.py
index <HASH>..<HASH> 100644
--- a/salt/modules/file.py
+++ b/salt/modules/file.py
@@ -1299,7 +1299,7 @@ def line(path, content, match=None, mode=None, location=None,
_assert_occurrence(body, before, 'before')
_assert_occurrence(b... | Bugfix: replace weird behaviour of 'splitlines' with an oldschool approach | py |
diff --git a/telethon/telegram_client.py b/telethon/telegram_client.py
index <HASH>..<HASH> 100644
--- a/telethon/telegram_client.py
+++ b/telethon/telegram_client.py
@@ -21,6 +21,10 @@ from .tl.all_tlobjects import layer
from .tl.functions import (InitConnectionRequest, InvokeWithLayerRequest,
... | Make use of relative imports everywhere, again | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,6 +7,7 @@ setup(
version='0.2.1',
license='MIT',
url='https://github.com/wronglink/mstranslator',
+ bugtrack_url='https://github.com/wronglink/mstranslator/issues',
description='Microsoft Translator A... | Added bugtracker url in setup.py | py |
diff --git a/photutils/segmentation/deblend.py b/photutils/segmentation/deblend.py
index <HASH>..<HASH> 100644
--- a/photutils/segmentation/deblend.py
+++ b/photutils/segmentation/deblend.py
@@ -224,8 +224,11 @@ def _deblend_source(data, segment_img, npixels, nlevels=32, contrast=0.001,
raise ValueError('Inval... | Fix deblending with sources not in the segmentation mask Fix #<I>. To deblend a source a small stamp is created and can contain other sources, depending on the shape of the source mask. These neighboring sources are not masked so they are used in the deblending process. Given that the data array is also used for flux... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -126,7 +126,7 @@ setup(
],
setup_requires=['Sphinx>=1.4', 'Pygments>=2.0'] + global_requirements,
- tests_require=['pytest', 'pytest-catchlog'] + global_requirements,
+ tests_require=['pytest', 'pytest-catchl... | chore(setup.py): Add graphviz tests_require BuildBot cannot run tests as dependency is missing | py |
diff --git a/paradigm/definitions/utils.py b/paradigm/definitions/utils.py
index <HASH>..<HASH> 100644
--- a/paradigm/definitions/utils.py
+++ b/paradigm/definitions/utils.py
@@ -40,7 +40,7 @@ def _add(set_: Set[Any], module_name: str, name: str) -> None:
def _safe_import(module_name: str) -> Optional[ModuleType]:
... | Fix 'PyPy' support | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,6 +2,7 @@ from setuptools import setup
from pathlib import Path
install_requires = [
+ 'multidict',
'namedlist>=1.6',
'python-dateutil>=2.5',
'requests>=2.12', | refs #<I>: Include multidict in direct dependency * ai.backend.client.Request uses it! | py |
diff --git a/brother_ql/reader.py b/brother_ql/reader.py
index <HASH>..<HASH> 100755
--- a/brother_ql/reader.py
+++ b/brother_ql/reader.py
@@ -7,7 +7,6 @@ import sys
from PIL import Image
from PIL.ImageOps import colorize
-import numpy as np
from builtins import bytes | removed `import numpy` overlooked in <I>f<I> (fixes #<I>) | py |
diff --git a/pycbc/inference/sampler/emcee_pt.py b/pycbc/inference/sampler/emcee_pt.py
index <HASH>..<HASH> 100644
--- a/pycbc/inference/sampler/emcee_pt.py
+++ b/pycbc/inference/sampler/emcee_pt.py
@@ -146,6 +146,8 @@ class EmceePTSampler(MultiTemperedAutocorrSupport, MultiTemperedSupport,
with h5py.File(... | enforce betas order required by emceept (#<I>) * enforce betas order required by emceept * update | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -42,6 +42,7 @@ setup(name='brother_ql',
"future",
"packbits",
"pillow>=3.3.0",
+ "pyusb",
],
extras_require = {
#'brother_ql_analyse': ["matplotlib",], | add pyusb to the dependencies (relates to #<I>) | py |
diff --git a/openquake/calculators/classical.py b/openquake/calculators/classical.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/classical.py
+++ b/openquake/calculators/classical.py
@@ -374,6 +374,8 @@ class ClassicalCalculator(base.HazardCalculator):
"""
oq = self.oqparam
self._... | Added an attribute to hcurves | py |
diff --git a/gpiocrust/raspberry_pi.py b/gpiocrust/raspberry_pi.py
index <HASH>..<HASH> 100644
--- a/gpiocrust/raspberry_pi.py
+++ b/gpiocrust/raspberry_pi.py
@@ -110,4 +110,8 @@ class InputPin(object):
GPIO.add_event_callback(self._pin, wrapped, _edge_to_rpi_edge[edge])
def wait_for_edge(self):
+ ... | Remove event callbacks if using wait_for_edge | py |
diff --git a/src/engineio/asyncio_client.py b/src/engineio/asyncio_client.py
index <HASH>..<HASH> 100644
--- a/src/engineio/asyncio_client.py
+++ b/src/engineio/asyncio_client.py
@@ -95,9 +95,9 @@ class AsyncClient(client.Client):
try:
asyncio.get_event_loop().add_signal_handler(
... | Only attempt to set an async signal handler once (Fixes #<I>) | py |
diff --git a/spyderlib/widgets/qscieditor.py b/spyderlib/widgets/qscieditor.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/qscieditor.py
+++ b/spyderlib/widgets/qscieditor.py
@@ -329,7 +329,8 @@ class QsciEditor(TextEditBaseWidget):
# Fortran lexers are sometimes unavailable:
... | widgets.qscieditor: keeping lexer font weight properties when changing font (only if selected font's weight is normal) | py |
diff --git a/solidity/python/constants/PrintMaxExpPerPrecision.py b/solidity/python/constants/PrintMaxExpPerPrecision.py
index <HASH>..<HASH> 100644
--- a/solidity/python/constants/PrintMaxExpPerPrecision.py
+++ b/solidity/python/constants/PrintMaxExpPerPrecision.py
@@ -31,10 +31,8 @@ def binarySearch(func,args):
... | Remove redundant lines in python script | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -122,6 +122,8 @@ class Distribution(_Distribution):
return False
def ext_status(self, ext):
+ if 'Java' in sys.version or 'IronPython' in sys.version or 'PyPy' in sys.version:
+ return False
... | Do not attempt to build extensions on platforms other than CPython. | py |
diff --git a/webvtt/webvtt.py b/webvtt/webvtt.py
index <HASH>..<HASH> 100644
--- a/webvtt/webvtt.py
+++ b/webvtt/webvtt.py
@@ -46,4 +46,9 @@ class WebVTT:
@property
def captions(self):
"""Returns the list of parsed captions."""
- return [] if self.parser is None else self.parser.captions
\ No ... | Move the total_length property to the main class as it is a common functionality | py |
diff --git a/identify/extensions.py b/identify/extensions.py
index <HASH>..<HASH> 100644
--- a/identify/extensions.py
+++ b/identify/extensions.py
@@ -91,6 +91,7 @@ EXTENSIONS = {
'po': {'text', 'pofile'},
'pp': {'text', 'puppet'},
'proto': {'text', 'proto'},
+ 'purs': {'text', 'purescript'},
'py... | Added PureScript extension (.purs) | py |
diff --git a/dimod/generators/constraints.py b/dimod/generators/constraints.py
index <HASH>..<HASH> 100644
--- a/dimod/generators/constraints.py
+++ b/dimod/generators/constraints.py
@@ -93,7 +93,7 @@ def combinations(n, k, strength=1, vartype=BINARY):
qbias = float(2*strength)
Q = np.triu(np.ones((n,n))*qb... | Simplify fill_diagonal call | py |
diff --git a/cumulusci/tasks/robotframework/lint.py b/cumulusci/tasks/robotframework/lint.py
index <HASH>..<HASH> 100644
--- a/cumulusci/tasks/robotframework/lint.py
+++ b/cumulusci/tasks/robotframework/lint.py
@@ -1,7 +1,7 @@
from cumulusci.core.tasks import BaseTask
from cumulusci.core.utils import process_bool_arg... | Removed catching and rethrowing of errors when calling the linter, since CumulusCIUsageError is not the appropriate error in all cases here. | py |
diff --git a/tests/test_core.py b/tests/test_core.py
index <HASH>..<HASH> 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -6,7 +6,7 @@ import signal
from functools import wraps
from nose import with_setup
-from nose.tools import nottest, raises, assert_items_equal
+from nose.tools import nottest, raises... | This is maybe better? Fucking Python <I> | py |
diff --git a/mythril/laser/ethereum/plugins/implementations/dependency_pruner.py b/mythril/laser/ethereum/plugins/implementations/dependency_pruner.py
index <HASH>..<HASH> 100644
--- a/mythril/laser/ethereum/plugins/implementations/dependency_pruner.py
+++ b/mythril/laser/ethereum/plugins/implementations/dependency_pru... | Don't run in contract creation and 1st runtime tx | py |
diff --git a/slumber/__init__.py b/slumber/__init__.py
index <HASH>..<HASH> 100644
--- a/slumber/__init__.py
+++ b/slumber/__init__.py
@@ -179,11 +179,15 @@ class API(ResourceAttributesMixin, object):
if serializer is None:
s = Serializer(default=format)
+ if session is None:
+ ... | Fix bug on using requests <I> Method requests.session() has no arguments on requests <I>. They have removed them on commit <URL> | py |
diff --git a/astropy_helpers/sphinx/conf.py b/astropy_helpers/sphinx/conf.py
index <HASH>..<HASH> 100644
--- a/astropy_helpers/sphinx/conf.py
+++ b/astropy_helpers/sphinx/conf.py
@@ -157,6 +157,9 @@ automodapi_toctreedirnm = 'api'
# the __init__ docstring
autoclass_content = "both"
+# Render inheritance diagrams in... | Generate inheritance diagrams in SVG | py |
diff --git a/pyparsing/exceptions.py b/pyparsing/exceptions.py
index <HASH>..<HASH> 100644
--- a/pyparsing/exceptions.py
+++ b/pyparsing/exceptions.py
@@ -2,7 +2,7 @@
import re
import sys
-from typing import Optional
+import typing
from .util import col, line, lineno, _collapse_string_to_ranges
from .unicode im... | Don't import Optional from typing, import the whole module. (#<I>) Addresses mypy confusion of pyparsing Optional and typing.Optional | py |
diff --git a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py
index <HASH>..<HASH> 100644
--- a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py
+++ b/{{cookiecutter.repo_name}}/{{cookiecutter.repo... | a comma to much - is no more. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,6 +11,7 @@
import os
+import sys
from setuptools import setup
@@ -39,6 +40,17 @@ def write_version_file(fn=None):
a.close()
+def get_requirements():
+ # Initial requirements
+ requirements = ["... | Added the dependencies for mock (pyhon 2) | py |
diff --git a/regions/shapes/tests/test_common.py b/regions/shapes/tests/test_common.py
index <HASH>..<HASH> 100644
--- a/regions/shapes/tests/test_common.py
+++ b/regions/shapes/tests/test_common.py
@@ -24,7 +24,10 @@ class BaseTestRegion(object):
class BaseTestPixelRegion(BaseTestRegion):
def test_area(self):
... | Skip area test in case of ImportError (since for polygons, area uses shapely for now) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -45,7 +45,7 @@ setup(
setup_requires=install_requires + tests_requires,
install_requires=install_requires,
cmdclass=get_cmdclass(),
- tests_requires=tests_requires,
+ tests_require=tests_requires,
tes... | Typo, setuptools has 'test_require' not 'test_requires' | py |
diff --git a/cumulusci/conftest.py b/cumulusci/conftest.py
index <HASH>..<HASH> 100644
--- a/cumulusci/conftest.py
+++ b/cumulusci/conftest.py
@@ -1,3 +1,5 @@
+import os
+
from pytest import fixture
from cumulusci.core.github import get_github_api
@@ -5,3 +7,12 @@ from cumulusci.core.github import get_github_api
@... | Add pytest fixture to avoid leakage of cwd changes | 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, find_packages
setup(
name='service-configuration-lib',
- version='0.6.2',
+ version='0.7.0',
provides=['service_configuration_lib'],
description='Start, stop, ... | Bumping to <I> | py |
diff --git a/py/testdir_multi_jvm/test_many_fp_formats_libsvm_2_fvec.py b/py/testdir_multi_jvm/test_many_fp_formats_libsvm_2_fvec.py
index <HASH>..<HASH> 100644
--- a/py/testdir_multi_jvm/test_many_fp_formats_libsvm_2_fvec.py
+++ b/py/testdir_multi_jvm/test_many_fp_formats_libsvm_2_fvec.py
@@ -103,7 +103,7 @@ class Bas... | remove browser for cloud launch from py test | py |
diff --git a/jcvi/projects/sugarcane.py b/jcvi/projects/sugarcane.py
index <HASH>..<HASH> 100644
--- a/jcvi/projects/sugarcane.py
+++ b/jcvi/projects/sugarcane.py
@@ -476,12 +476,12 @@ def simulate(args):
xx = xpad / 2
for (title, subtitle), yy in zip(
(
- ("F1", None),
- ("F2",... | Make subscripts in F1, F2, BCn (#<I>) | py |
diff --git a/astropy_helpers/sphinx/ext/tests/__init__.py b/astropy_helpers/sphinx/ext/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/astropy_helpers/sphinx/ext/tests/__init__.py
+++ b/astropy_helpers/sphinx/ext/tests/__init__.py
@@ -44,7 +44,7 @@ def cython_testpackage(tmpdir, request):
test_pkg.chdir()
... | Should probably use sys.executable here | py |
diff --git a/scapy/contrib/lldp.py b/scapy/contrib/lldp.py
index <HASH>..<HASH> 100644
--- a/scapy/contrib/lldp.py
+++ b/scapy/contrib/lldp.py
@@ -38,7 +38,6 @@
- multiplicity of TLVs (if given by the standard)
- min sizes of strings used by the TLVs
- conf.contribs['LLDP'].strict_mode_di... | "import scapy.contrib.lldp" shouldn't enable debug_dissector conf.debug_dissector is being enabled as a side-effect of importing scapy.contrib.lldp. This module doesn't "own" debug_dissector, it should respect the value that the user configured and follow the principle of least surprise. | py |
diff --git a/RPLCD/enum.py b/RPLCD/enum.py
index <HASH>..<HASH> 100755
--- a/RPLCD/enum.py
+++ b/RPLCD/enum.py
@@ -150,8 +150,6 @@ class EnumValue:
return '{0}.{1}'.format(self._enum.__name__, self._name)
def __int__(self):
- warnings.warn('int() is deprecated; use IntEnums',
- ... | Fix deprecation warnings Since we vendored in the library, removing the deprecation warning is easier than fixing the issue ;) Fixes #<I>. | py |
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py
index <HASH>..<HASH> 100644
--- a/discord/ext/commands/bot.py
+++ b/discord/ext/commands/bot.py
@@ -63,8 +63,8 @@ def when_mentioned(bot, msg):
def when_mentioned_or(*prefixes):
"""A callable that implements when mentioned or other prefixes pr... | [commands] Added missing parenthesis in examples | py |
diff --git a/emirdrp/tools/generate_yaml_for_abba.py b/emirdrp/tools/generate_yaml_for_abba.py
index <HASH>..<HASH> 100644
--- a/emirdrp/tools/generate_yaml_for_abba.py
+++ b/emirdrp/tools/generate_yaml_for_abba.py
@@ -75,6 +75,9 @@ def main(args=None):
type=int)
parser.add_argument("--abb... | Set default combination method to sigmaclip | py |
diff --git a/fontbakery-check-ttf.py b/fontbakery-check-ttf.py
index <HASH>..<HASH> 100755
--- a/fontbakery-check-ttf.py
+++ b/fontbakery-check-ttf.py
@@ -839,6 +839,15 @@ def main():
# But its name indicates it should be mapped to U+02C6.
#
# We should detect this and if found, warn with it
+ #
+ ... | considerations on stderr messages emitted by fontforge Not sure yet if we can filter out these messages without patching fontforge sources. | py |
diff --git a/glue/segmentsUtils.py b/glue/segmentsUtils.py
index <HASH>..<HASH> 100644
--- a/glue/segmentsUtils.py
+++ b/glue/segmentsUtils.py
@@ -22,14 +22,14 @@ def fromfilenames(filenames, coltype=long):
The file names are parsed using a generalization of the format
described in Technical Note LIGO-T010150-00-E,... | Improve the accuracy of the identification of the start of the file extension. | py |
diff --git a/bika/lims/browser/worksheetfolder.py b/bika/lims/browser/worksheetfolder.py
index <HASH>..<HASH> 100644
--- a/bika/lims/browser/worksheetfolder.py
+++ b/bika/lims/browser/worksheetfolder.py
@@ -381,7 +381,8 @@ class WorksheetFolderListingView(BikaListingView):
items[x]['replace']['QC'] = " ".j... | Prevent WS from analyst being changed if user's access is restricted | py |
diff --git a/luigi/format.py b/luigi/format.py
index <HASH>..<HASH> 100644
--- a/luigi/format.py
+++ b/luigi/format.py
@@ -376,11 +376,11 @@ class ChainFormat(Format):
if args[x].output != args[x + 1].input:
raise TypeError(
'The format chaining is not vali... | ChainFormat error message fix (#<I>) 1. Space was missing 2. Chain members order was reversed. | py |
diff --git a/cmsplugin_cascade/link/forms.py b/cmsplugin_cascade/link/forms.py
index <HASH>..<HASH> 100644
--- a/cmsplugin_cascade/link/forms.py
+++ b/cmsplugin_cascade/link/forms.py
@@ -157,7 +157,7 @@ class LinkForm(EntangledModelFormMixin):
error = ValidationError(_("CMS page to link to is missing."... | fix: download file in link forms is optional | py |
diff --git a/pysnow/client.py b/pysnow/client.py
index <HASH>..<HASH> 100644
--- a/pysnow/client.py
+++ b/pysnow/client.py
@@ -6,6 +6,8 @@ import warnings
import requests
from requests.auth import HTTPBasicAuth
+import pysnow
+
from .legacy_request import LegacyRequest
from .exceptions import InvalidUsage
from .... | Set User-Agent in headers | py |
diff --git a/spyderlib/widgets/findreplace.py b/spyderlib/widgets/findreplace.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/findreplace.py
+++ b/spyderlib/widgets/findreplace.py
@@ -158,7 +158,7 @@ class FindReplace(QWidget):
self.toggle_replace_widgets)
sel... | Find Widget: Hide it with the "Esc" key only when it is focused Update Issue <I> Status: Fixed - Before "Esc" was registered as a QShortcut of its parent widget and hence it could be easily hidden even if it was unfocused. - But this was clobbering "Esc" key actions of the parent. For example, the IPython console has... | py |
diff --git a/tornado/test/twisted_test.py b/tornado/test/twisted_test.py
index <HASH>..<HASH> 100644
--- a/tornado/test/twisted_test.py
+++ b/tornado/test/twisted_test.py
@@ -593,6 +593,14 @@ if have_twisted:
],
'twisted.internet.test.test_unix.UNIXPortTestsBuilder': [],
}
+ if sys.version_inf... | Disable twisted's test_process on python 3. The new twisted <I> has some failures in this test that appear to be interactions between the two package's test suites rather than a problem in the integration itself, so just disable the tests for now. | py |
diff --git a/Lib/glyphsLib/writer.py b/Lib/glyphsLib/writer.py
index <HASH>..<HASH> 100644
--- a/Lib/glyphsLib/writer.py
+++ b/Lib/glyphsLib/writer.py
@@ -18,9 +18,8 @@
from __future__ import unicode_literals
import sys
-import binascii
import glyphsLib.classes
-from glyphsLib.types import floatToString
+from glyp... | writer: BinaryData is serialized using custom plistValue method now | py |
diff --git a/openid/trustroot.py b/openid/trustroot.py
index <HASH>..<HASH> 100644
--- a/openid/trustroot.py
+++ b/openid/trustroot.py
@@ -99,7 +99,6 @@ class TrustRoot(object):
else:
return host.endswith(self.host)
- @classmethod
def parse(cls, trust_root, check_sanity=False):
... | [project @ Changed classmethods to not use decorator syntax (Python pre <I> compatibility)] | py |
diff --git a/bigquery/setup.py b/bigquery/setup.py
index <HASH>..<HASH> 100644
--- a/bigquery/setup.py
+++ b/bigquery/setup.py
@@ -33,6 +33,7 @@ dependencies = [
"google-cloud-core >= 1.0.3, < 2.0dev",
"google-resumable-media >= 0.3.1, != 0.4.0, < 0.6.0dev",
"protobuf >= 3.6.0",
+ "six >=1.13.0,< 2.0.... | fix(bigquery): add six dependency in setup file (#<I>) | py |
diff --git a/pandas/core/reshape/concat.py b/pandas/core/reshape/concat.py
index <HASH>..<HASH> 100644
--- a/pandas/core/reshape/concat.py
+++ b/pandas/core/reshape/concat.py
@@ -226,6 +226,9 @@ def concat(
pandas objects can be found `here
<https://pandas.pydata.org/pandas-docs/stable/user_guide/merging.html... | DOC: Improve reshape\concat (#<I>) | py |
diff --git a/spyder/plugins/plots/widgets/main_widget.py b/spyder/plugins/plots/widgets/main_widget.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/plots/widgets/main_widget.py
+++ b/spyder/plugins/plots/widgets/main_widget.py
@@ -247,7 +247,8 @@ class PlotsWidget(ShellConnectMainWidget):
... | Plots: Enable new lock/unlock action | py |
diff --git a/tests/test_output.py b/tests/test_output.py
index <HASH>..<HASH> 100644
--- a/tests/test_output.py
+++ b/tests/test_output.py
@@ -123,7 +123,9 @@ def test_annotation():
__test_fail = raises(librosa.ParameterError)(__test)
srand()
- times = np.random.randn(20, 2)
+ # Make times and duratio... | fixed a failing unit test for output with new valid_intervals logic | py |
diff --git a/aiounifi/events.py b/aiounifi/events.py
index <HASH>..<HASH> 100644
--- a/aiounifi/events.py
+++ b/aiounifi/events.py
@@ -53,9 +53,11 @@ CLIENT_EVENTS = (
WIRELESS_CLIENT_BLOCKED,
WIRELESS_CLIENT_UNBLOCKED,
WIRELESS_CLIENT_ROAM,
+ WIRELESS_CLIENT_ROAMRADIO,
WIRELESS_GUEST_CONNECTED,
... | Add roam radio events to CLIENT_EVENTS | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,7 @@ history = open('HISTORY.rst').read().replace('.. :changelog:', '')
setup(
name='nbdiff',
- version='1.0.3',
+ version='1.0.4',
description='A tool for diffing and merging IPython Notebook file... | Update setup.py Updated for version <I> | py |
diff --git a/yandextank/stepper/load_plan.py b/yandextank/stepper/load_plan.py
index <HASH>..<HASH> 100644
--- a/yandextank/stepper/load_plan.py
+++ b/yandextank/stepper/load_plan.py
@@ -135,8 +135,12 @@ class Stairway(Composite):
Const(minrps + i * increment, duration)
for i in xrange(0, n_st... | Fix: more consistent final step for step(...) schedule | py |
diff --git a/safe_qgis/report/test/test_map.py b/safe_qgis/report/test/test_map.py
index <HASH>..<HASH> 100644
--- a/safe_qgis/report/test/test_map.py
+++ b/safe_qgis/report/test/test_map.py
@@ -93,6 +93,7 @@ class MapTest(unittest.TestCase):
# with a lower maintenance test strategy.
expected_sizes = ... | don't fail map tests under Slackware | py |
diff --git a/vcx/libvcx/scripts/provision_agent_keys.py b/vcx/libvcx/scripts/provision_agent_keys.py
index <HASH>..<HASH> 100755
--- a/vcx/libvcx/scripts/provision_agent_keys.py
+++ b/vcx/libvcx/scripts/provision_agent_keys.py
@@ -70,16 +70,19 @@ def register_agent(args):
rc = vcx.vcx_provision_agent(c_json)
... | fix error log, add payment_method to provision script | py |
diff --git a/airflow/providers/amazon/aws/operators/rds.py b/airflow/providers/amazon/aws/operators/rds.py
index <HASH>..<HASH> 100644
--- a/airflow/providers/amazon/aws/operators/rds.py
+++ b/airflow/providers/amazon/aws/operators/rds.py
@@ -278,7 +278,7 @@ class RdsCopyDbSnapshotOperator(RdsBaseOperator):
... | Fix RDS system test (#<I>) | py |
diff --git a/holoviews/streams.py b/holoviews/streams.py
index <HASH>..<HASH> 100644
--- a/holoviews/streams.py
+++ b/holoviews/streams.py
@@ -127,12 +127,10 @@ class Stream(param.Parameterized):
cls_name = self.__class__.__name__
kwargs = ','.join('%s=%r' % (k,v)
for (k,v) ... | Updated Streams __repr__ method | py |
diff --git a/salt/grains/core.py b/salt/grains/core.py
index <HASH>..<HASH> 100644
--- a/salt/grains/core.py
+++ b/salt/grains/core.py
@@ -2434,6 +2434,9 @@ def default_gateway():
If the `ip` command is unavailable, no grains will be populated.
+ Currently does not support multiple default gateways. The gra... | Document lack of support for multiple default gateways | py |
diff --git a/Lib/glyphs2ufo/builder.py b/Lib/glyphs2ufo/builder.py
index <HASH>..<HASH> 100644
--- a/Lib/glyphs2ufo/builder.py
+++ b/Lib/glyphs2ufo/builder.py
@@ -544,7 +544,7 @@ def remove_rule_if_conflict(ufo, seen, classname, glyph, is_left_class=True):
seen[pair] = rule
if new_glyphs != old_glyp... | [builder] Fix lingering robofab method call | py |
diff --git a/pyvista/plotting.py b/pyvista/plotting.py
index <HASH>..<HASH> 100644
--- a/pyvista/plotting.py
+++ b/pyvista/plotting.py
@@ -976,7 +976,7 @@ class BasePlotter(object):
else:
scalars = scalars.ravel()
- if scalars.dtype == np.bool:
+ if scalars.... | Fix colormapping issue for uint8 arrays (#<I>) | py |
diff --git a/mordred/task.py b/mordred/task.py
index <HASH>..<HASH> 100644
--- a/mordred/task.py
+++ b/mordred/task.py
@@ -133,6 +133,9 @@ class Task():
gh_token = self.conf['github']['backend_token']
enrich_backend.set_github_token(gh_token)
+ if 'unaffiliated_group' in self.conf['so... | [task] Fix error configuring unaffiliated_group during enrichment in identities refresh | py |
diff --git a/pylint/checkers/imports.py b/pylint/checkers/imports.py
index <HASH>..<HASH> 100644
--- a/pylint/checkers/imports.py
+++ b/pylint/checkers/imports.py
@@ -339,12 +339,13 @@ given file (report RP0402 must not be disabled)'}
# Check imports are grouped by package within a given category
me... | Change the variable name to something more suggestive | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -45,8 +45,10 @@ cwd = os.path.abspath('.')
# Headers
-pxd_inc_dir = os.path.join(cwd, "src", "vendor", "inc")
-sys.path.insert(0, pxd_inc_dir)
+# Do not use an absolute path in include_dirs, otherwise the build
+# will va... | Make the generation of c_uamqp.c reproducible (#<I>) Creating c_uamqp.c varies depending on the build path and on the filesystem (ordering of directory listing). Avoid including absolute paths in the source file and list pyx files using sort so that the output is stable. | py |
diff --git a/phoebe/frontend/bundle.py b/phoebe/frontend/bundle.py
index <HASH>..<HASH> 100644
--- a/phoebe/frontend/bundle.py
+++ b/phoebe/frontend/bundle.py
@@ -1251,6 +1251,10 @@ class Bundle(ParameterSet):
"""
func = _get_add_func(_feature, kind)
+ if kwargs.get('feature', False) is None:... | fixed features to apply default label if feature passed as None | py |
diff --git a/soco/discovery.py b/soco/discovery.py
index <HASH>..<HASH> 100644
--- a/soco/discovery.py
+++ b/soco/discovery.py
@@ -214,14 +214,14 @@ def any_soco():
def by_name(name):
- """Return a device by name
+ """Return a device by name.
Args:
- name (str): The name of the device to return... | Minor docstring changes according to feedback | py |
diff --git a/allennlp/models/model.py b/allennlp/models/model.py
index <HASH>..<HASH> 100644
--- a/allennlp/models/model.py
+++ b/allennlp/models/model.py
@@ -232,7 +232,7 @@ class Model(torch.nn.Module, Registrable):
by a class attribute ``_warn_for_unseperable_batches`` because it would be extremely verbose
... | Show warning before ignoring key with unseparable batches from model.forward. (#<I>) | py |
diff --git a/pysd/py_backend/xmile/xmile2py.py b/pysd/py_backend/xmile/xmile2py.py
index <HASH>..<HASH> 100644
--- a/pysd/py_backend/xmile/xmile2py.py
+++ b/pysd/py_backend/xmile/xmile2py.py
@@ -329,9 +329,8 @@ def translate_xmile(xmile_file):
})
file_name, file_extension = os.path.splitext(xmile_file)
- ... | Misunderstanding of builtin python function results. | py |
diff --git a/src/chill/database.py b/src/chill/database.py
index <HASH>..<HASH> 100644
--- a/src/chill/database.py
+++ b/src/chill/database.py
@@ -4,6 +4,7 @@ import json
import sqlite3
from flask import current_app
+from werkzeug.security import safe_join
from chill.app import db
@@ -57,7 +58,7 @@ def seriali... | Use werkzeug safe_join for some paths Fix potential path traversal vulnerability since part of the path can come from a database query. | py |
diff --git a/gns3server/version.py b/gns3server/version.py
index <HASH>..<HASH> 100644
--- a/gns3server/version.py
+++ b/gns3server/version.py
@@ -23,8 +23,9 @@
# or negative for a release candidate or beta (after the base version
# number has been incremented)
-__version__ = "2.1.14"
-__version_info__ = (2, 1, 14,... | Development on <I>dev1 | py |
diff --git a/workbench/clients/customer_report.py b/workbench/clients/customer_report.py
index <HASH>..<HASH> 100644
--- a/workbench/clients/customer_report.py
+++ b/workbench/clients/customer_report.py
@@ -1,7 +1,6 @@
"""This client generates customer reports on all the samples in workbench."""
import zerorpc
-imp... | just reducing text output of the tests | py |
diff --git a/intranet/apps/events/views.py b/intranet/apps/events/views.py
index <HASH>..<HASH> 100644
--- a/intranet/apps/events/views.py
+++ b/intranet/apps/events/views.py
@@ -241,7 +241,6 @@ def modify_event_view(request, id=None):
logger.debug(form)
if form.is_valid():
obj = form.sav... | dont overwrite event author when editing event | py |
diff --git a/molo/usermetadata/views.py b/molo/usermetadata/views.py
index <HASH>..<HASH> 100644
--- a/molo/usermetadata/views.py
+++ b/molo/usermetadata/views.py
@@ -17,16 +17,15 @@ class PersonaView(TemplateView):
context.update({
'persona_pages':
[a.get_translation_for(locale_code)... | updating views to remove if statement that blocks setting persona again | py |
diff --git a/pyrax/__init__.py b/pyrax/__init__.py
index <HASH>..<HASH> 100755
--- a/pyrax/__init__.py
+++ b/pyrax/__init__.py
@@ -576,7 +576,7 @@ def connect_to_cloudservers(region=None):
insecure = not get_setting("verify_ssl")
cloudservers = _cs_client.Client(identity.username, identity.password,
... | Fixed a bug when working with keystone identity. Taken from pull request #<I>. | py |
diff --git a/foolbox/ext/native/models/pytorch.py b/foolbox/ext/native/models/pytorch.py
index <HASH>..<HASH> 100644
--- a/foolbox/ext/native/models/pytorch.py
+++ b/foolbox/ext/native/models/pytorch.py
@@ -15,11 +15,13 @@ class PyTorchModel:
self.device = device
if model.training:
- ... | always show the warning in PyTorchModel | py |
diff --git a/mpd/tests.py b/mpd/tests.py
index <HASH>..<HASH> 100755
--- a/mpd/tests.py
+++ b/mpd/tests.py
@@ -1272,6 +1272,13 @@ class TestAsyncioMPD(unittest.TestCase):
TEST_MPD_HOST, TEST_MPD_PORT, loop=self.loop
)
+ def __del__(self):
+ # Clean up after init_client. (This works for... | tests: Clean up after async clients The waits in the idle test mockers of earlier tests to be deallocated uncleanly (the test cases were gone but the client still hung around and tried to write idle commands into an unexpecting mocker); this causes them to go down together with their mockers. | py |
diff --git a/spikeylab/gui/data_review.py b/spikeylab/gui/data_review.py
index <HASH>..<HASH> 100644
--- a/spikeylab/gui/data_review.py
+++ b/spikeylab/gui/data_review.py
@@ -73,12 +73,13 @@ class QDataReviewer(QtGui.QWidget):
self.derivedtxt.clear()
if setname.startsWith('test') or setname.startsWith... | reviewer gets data dimension without reading in set | py |
diff --git a/poetry/console/commands/run.py b/poetry/console/commands/run.py
index <HASH>..<HASH> 100644
--- a/poetry/console/commands/run.py
+++ b/poetry/console/commands/run.py
@@ -50,7 +50,7 @@ class RunCommand(EnvCommand):
@property
def _module(self):
- from ...masonry.utils.module import Module
... | Fix import in the run command (#<I>) | py |
diff --git a/auto_ml/predictor.py b/auto_ml/predictor.py
index <HASH>..<HASH> 100644
--- a/auto_ml/predictor.py
+++ b/auto_ml/predictor.py
@@ -18,18 +18,25 @@ class Predictor(object):
def train(self, raw_training_data):
+ # split out out output column so we have a proper X, y dataset
+ output_spl... | runs SplitColumn separately, implements predict_proba | py |
diff --git a/matrix_client/api.py b/matrix_client/api.py
index <HASH>..<HASH> 100644
--- a/matrix_client/api.py
+++ b/matrix_client/api.py
@@ -283,6 +283,17 @@ class MatrixHttpApi(object):
"""
return self._send("GET", "/rooms/" + room_id + "/state/m.room.topic")
+ def set_room_topic(self, room_id... | Add API for setting room topic create set_room_topic for performing PUT /rooms/$room_id/state/m.room.topic | py |
diff --git a/scripts/lib/mha_online_change_helper.py b/scripts/lib/mha_online_change_helper.py
index <HASH>..<HASH> 100644
--- a/scripts/lib/mha_online_change_helper.py
+++ b/scripts/lib/mha_online_change_helper.py
@@ -2,6 +2,7 @@ import time
from datetime import datetime
from mysql_helper import MySQL_helper
from m... | Fixed code bug - MHA_VIP_helper module not being imported before use | py |
diff --git a/health_check/utils.py b/health_check/utils.py
index <HASH>..<HASH> 100644
--- a/health_check/utils.py
+++ b/health_check/utils.py
@@ -6,22 +6,9 @@ from health_check.plugins import plugin_dir
class BaseHealthCheck(BaseHealthCheckBackend):
def check_status(self):
- try:
- self._wrap... | updated docstrings, removed custom exceptions | py |
diff --git a/pyemma/msm/tests/test_amm.py b/pyemma/msm/tests/test_amm.py
index <HASH>..<HASH> 100644
--- a/pyemma/msm/tests/test_amm.py
+++ b/pyemma/msm/tests/test_amm.py
@@ -334,7 +334,8 @@ class TestAMMDoubleWell(_tmsm):
# ----------------------------------
def test_two_state_kinetics(self):
- self... | revert (eps defined) | py |
diff --git a/samcli/commands/init/__init__.py b/samcli/commands/init/__init__.py
index <HASH>..<HASH> 100644
--- a/samcli/commands/init/__init__.py
+++ b/samcli/commands/init/__init__.py
@@ -105,6 +105,16 @@ def do_cli(ctx, no_interactive, location, runtime, dependency_manager, output_di
LOG.debug("Init command")
... | WIP: Mutually Exclusive and Required Params | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.