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
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
setup(
name="tensor",
- version='0.3.4',
+ version='0.3.5',
url='http://github.com/calston/tensor',
license='MIT',
description="A Twisted ba... | We should bump the minor version if we're changing the way the Event API works | py |
diff --git a/manticore/core/executor.py b/manticore/core/executor.py
index <HASH>..<HASH> 100644
--- a/manticore/core/executor.py
+++ b/manticore/core/executor.py
@@ -200,22 +200,21 @@ class State(object):
return expr
- def new_symbolic_value(self, nbits, **options):
+ def new_symbolic_value(self, nb... | Refactor `new_symbolic_value` (#<I>) * Use default params instead of dict, add taint * Update docstring | py |
diff --git a/chemked/tests/test_chemked.py b/chemked/tests/test_chemked.py
index <HASH>..<HASH> 100644
--- a/chemked/tests/test_chemked.py
+++ b/chemked/tests/test_chemked.py
@@ -7,11 +7,10 @@ import pkg_resources
# Third-party libraries
import numpy as np
-from cerberus import Validator
import pytest
# Local i... | making DataPoint tests great again Missed replacing cerberus.Validator with validation.OurValidator in the merge | py |
diff --git a/tests/test_12_s_utils.py b/tests/test_12_s_utils.py
index <HASH>..<HASH> 100644
--- a/tests/test_12_s_utils.py
+++ b/tests/test_12_s_utils.py
@@ -106,7 +106,7 @@ def test_status_from_tuple():
def test_status_from_tuple_empty_message():
stat = utils.error_status_factory((samlp.STATUS_UNKNOWN_PRINCIPAL... | Allow text representation of samlp.Status without XML declaration in test. The xml.etree.ElementTree.tostring() method returns text without XML declaration in Python 3. This change amends test in test_<I>_s_utils to expect the result with or without XML declaration. | py |
diff --git a/vcs_repo_mgr/__init__.py b/vcs_repo_mgr/__init__.py
index <HASH>..<HASH> 100644
--- a/vcs_repo_mgr/__init__.py
+++ b/vcs_repo_mgr/__init__.py
@@ -1,7 +1,7 @@
# Version control system repository manager.
#
# Author: Peter Odding <peter@peterodding.com>
-# Last Change: March 5, 2018
+# Last Change: March ... | Release <I>: Fix for issue #4, document MacOS compatibility | py |
diff --git a/gnosis/eth/ethereum_network.py b/gnosis/eth/ethereum_network.py
index <HASH>..<HASH> 100644
--- a/gnosis/eth/ethereum_network.py
+++ b/gnosis/eth/ethereum_network.py
@@ -175,9 +175,9 @@ class EthereumNetwork(Enum):
TOYS_TESTNET = 99415706
OLT = 311752642
IPOS = 1122334455
- NEAR = 1313161... | Rename NEAR chain -> AURORA | py |
diff --git a/numina/array/peaks/peakdet.py b/numina/array/peaks/peakdet.py
index <HASH>..<HASH> 100644
--- a/numina/array/peaks/peakdet.py
+++ b/numina/array/peaks/peakdet.py
@@ -160,6 +160,33 @@ def refine_peaks3(arr, ipeaks, window):
return xc, yc
+def refine_peaks3b(arr, ipeaks, window):
+
+ step = windo... | Add refine_peaks3b, normalize by peak value | py |
diff --git a/click_shell/version.py b/click_shell/version.py
index <HASH>..<HASH> 100644
--- a/click_shell/version.py
+++ b/click_shell/version.py
@@ -65,9 +65,8 @@ def get_git_changeset():
timestamp = git_log.communicate()[0]
try:
timestamp = datetime.datetime.utcfromtimestamp(int(timestamp))
+ ... | Fixed pylint issue | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,6 +10,7 @@ install_requires = [
'click>=6.6,<8.0',
'botocore>=1.12.86,<2.0.0',
'typing==3.6.4;python_version<"3.7"',
+ 'mypy-extensions==0.4.3',
'six>=1.10.0,<2.0.0',
'pip>=9,<20.2',
'attrs... | Add mypy extensions to setup.py Added in requirements-dev.txt but needs to be added to the setup.py as well. | py |
diff --git a/dipper/sources/GeneOntology.py b/dipper/sources/GeneOntology.py
index <HASH>..<HASH> 100644
--- a/dipper/sources/GeneOntology.py
+++ b/dipper/sources/GeneOntology.py
@@ -166,7 +166,7 @@ class GeneOntology(Source):
if 7955 in self.tax_ids:
zfin = ZFIN(self.graph_type, self.are_bnodes... | can have both zfin and wb in tax ids | py |
diff --git a/pyinfra/api/command.py b/pyinfra/api/command.py
index <HASH>..<HASH> 100644
--- a/pyinfra/api/command.py
+++ b/pyinfra/api/command.py
@@ -73,7 +73,7 @@ class StringCommand(PyinfraCommand):
def __init__(self, *bits, **kwargs):
super(StringCommand, self).__init__(**kwargs)
self.bits = ... | Rename the separator kwarg to `_separator` in `StringCommand`. This isn't actually in use currently but shouldn't be a "public" argument as this means it clashes with the global arguments. | py |
diff --git a/oscrypto/_osx/symmetric.py b/oscrypto/_osx/symmetric.py
index <HASH>..<HASH> 100644
--- a/oscrypto/_osx/symmetric.py
+++ b/oscrypto/_osx/symmetric.py
@@ -340,7 +340,7 @@ def des_cbc_pkcs5_decrypt(key, data, iv):
def _encrypt(cipher, key, data, iv, padding):
"""
- Encrypts plaintext using RC4/RC2... | Improve OS X docstrings for symmetric encryption | py |
diff --git a/tornado/win32_support.py b/tornado/win32_support.py
index <HASH>..<HASH> 100644
--- a/tornado/win32_support.py
+++ b/tornado/win32_support.py
@@ -1,3 +1,6 @@
+# NOTE: win32 support is currently experimental, and not recommended
+# for production use.
+
import ctypes
import ctypes.wintypes
import os | Add a warning about the experimental status of our win<I> support | py |
diff --git a/spyder/plugins/mainmenu/plugin.py b/spyder/plugins/mainmenu/plugin.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/mainmenu/plugin.py
+++ b/spyder/plugins/mainmenu/plugin.py
@@ -223,8 +223,6 @@ class MainMenu(SpyderPluginV2):
ApplicationMenus.Source: self._main.source_menu_actions,
... | Main menu: Remove migrated menus from list of old ones | py |
diff --git a/indra/tests/test_pysb_assembler.py b/indra/tests/test_pysb_assembler.py
index <HASH>..<HASH> 100644
--- a/indra/tests/test_pysb_assembler.py
+++ b/indra/tests/test_pysb_assembler.py
@@ -1,6 +1,26 @@
from indra.pysb_assembler import PysbAssembler
from indra.statements import *
+def test_pysb_assembler_c... | Adwd tests for assembling complex formation | py |
diff --git a/src/chemcoord/configuration.py b/src/chemcoord/configuration.py
index <HASH>..<HASH> 100644
--- a/src/chemcoord/configuration.py
+++ b/src/chemcoord/configuration.py
@@ -72,7 +72,7 @@ def read_configuration_file(filepath=_give_default_file_path()):
config.read(filepath)
def get_correct_type(sec... | MAINT: Small flake8 conforming change | py |
diff --git a/SoftLayer/CLI/core.py b/SoftLayer/CLI/core.py
index <HASH>..<HASH> 100644
--- a/SoftLayer/CLI/core.py
+++ b/SoftLayer/CLI/core.py
@@ -244,7 +244,9 @@ def main(args=sys.argv[1:], env=Environment()):
exit_status = 1
except Exception:
import traceback
+ env.err("An unexpected err... | Adds some nice text around unexpected exceptions | py |
diff --git a/pandas/tests/indexing/multiindex/test_loc.py b/pandas/tests/indexing/multiindex/test_loc.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/indexing/multiindex/test_loc.py
+++ b/pandas/tests/indexing/multiindex/test_loc.py
@@ -614,3 +614,12 @@ def test_loc_with_nan():
result = df.loc["a"]
expected... | TST: Add test for KeyError with MultiIndex (#<I>) | py |
diff --git a/pgmpy/models/BayesianModel.py b/pgmpy/models/BayesianModel.py
index <HASH>..<HASH> 100644
--- a/pgmpy/models/BayesianModel.py
+++ b/pgmpy/models/BayesianModel.py
@@ -421,6 +421,7 @@ class BayesianModel(DAG):
"""
moral_graph = self.moralize()
mm = MarkovModel(moral_graph.edges())
... | Continues fixing #<I>. Fixes BayesianModel.to_markov_model to work with disconnected graphs [refs #<I>] | py |
diff --git a/sos/monitor.py b/sos/monitor.py
index <HASH>..<HASH> 100644
--- a/sos/monitor.py
+++ b/sos/monitor.py
@@ -100,7 +100,7 @@ class ProcessMonitor(threading.Thread):
elapsed = time.time() - start_time
if self.max_walltime is not None and elapsed > self.max_walltime:
... | Fix a format_HHMMSS issue when handling remote host | py |
diff --git a/pug/crawlnmine/crawlnmine/settings.py b/pug/crawlnmine/crawlnmine/settings.py
index <HASH>..<HASH> 100644
--- a/pug/crawlnmine/crawlnmine/settings.py
+++ b/pug/crawlnmine/crawlnmine/settings.py
@@ -84,13 +84,15 @@ DATABASES = {
}
}
-# Heroku: Parse database configuration from $DATABASE_URL for hero... | another attempt at test settings for codeship | py |
diff --git a/pymc/Matplot.py b/pymc/Matplot.py
index <HASH>..<HASH> 100755
--- a/pymc/Matplot.py
+++ b/pymc/Matplot.py
@@ -390,6 +390,7 @@ def plot(data, name, format='png', suffix='', path='./', common_scale=True, data
histogram(data, name, datarange=datarange, rows=rows, columns=2, num=num+1, last=last, font... | Fixed plot path (issue #<I>) | py |
diff --git a/tofu/data/_class1_Diagnostic.py b/tofu/data/_class1_Diagnostic.py
index <HASH>..<HASH> 100644
--- a/tofu/data/_class1_Diagnostic.py
+++ b/tofu/data/_class1_Diagnostic.py
@@ -35,6 +35,20 @@ class Diagnostic(_class0_Plasma2D.Plasma2D):
# _show_in_summary_core = ['shape', 'ref', 'group']
_show_in_... | [#<I>] added _dshow for aperture and camera | py |
diff --git a/signalwire/relay/client.py b/signalwire/relay/client.py
index <HASH>..<HASH> 100644
--- a/signalwire/relay/client.py
+++ b/signalwire/relay/client.py
@@ -1,3 +1,4 @@
+import os
import asyncio
import logging
import signal
@@ -33,7 +34,8 @@ class Client:
self._requests = {}
self._idle = False
... | ability to set log level from ENV | py |
diff --git a/tools/pip/setup.py b/tools/pip/setup.py
index <HASH>..<HASH> 100644
--- a/tools/pip/setup.py
+++ b/tools/pip/setup.py
@@ -52,8 +52,8 @@ class BinaryDistribution(Distribution):
DEPENDENCIES = [
- 'numpy>1.16.0,<2.0.0',
- 'requests>=2.20.0',
+ 'numpy<2.0.0,>1.16.0',
+ 'requests>=2.20.0,<3',
... | Update python dependencies (#<I>) | py |
diff --git a/h11/state.py b/h11/state.py
index <HASH>..<HASH> 100644
--- a/h11/state.py
+++ b/h11/state.py
@@ -46,11 +46,13 @@ EVENT_TRIGGERED_TRANSITIONS = {
SERVER: {
IDLE: {
- InformationalResponse: SEND_RESPONSE,
- # Special case triggered by CLIENT -- see discussion below
+ ... | Remove InformationalResponse-in-IDLE from state machine This is never meaningful | py |
diff --git a/local_settings/__main__.py b/local_settings/__main__.py
index <HASH>..<HASH> 100644
--- a/local_settings/__main__.py
+++ b/local_settings/__main__.py
@@ -43,6 +43,9 @@ def make_local_settings(argv=None):
section = args.env
elif '#' in args.file_name:
file_name, section = args.file_na... | Set file_name in all cases when running make-local-settings | py |
diff --git a/_pytest/main.py b/_pytest/main.py
index <HASH>..<HASH> 100644
--- a/_pytest/main.py
+++ b/_pytest/main.py
@@ -718,6 +718,7 @@ class Session(FSCollector):
if rep.passed:
has_matched = False
for x in rep.result:
+ # TODO: remove parametrized w... | added TODO comment to remove the parametrized workaround | py |
diff --git a/devassistant/command_helpers.py b/devassistant/command_helpers.py
index <HASH>..<HASH> 100644
--- a/devassistant/command_helpers.py
+++ b/devassistant/command_helpers.py
@@ -179,7 +179,7 @@ class ZenityHelper(object):
c_zenity = 'zenity'
@classmethod
- def ask_for_password(cls, title, text='... | Text in case of password has not to be visible | py |
diff --git a/datadog_checks_base/datadog_checks/base/checks/base.py b/datadog_checks_base/datadog_checks/base/checks/base.py
index <HASH>..<HASH> 100644
--- a/datadog_checks_base/datadog_checks/base/checks/base.py
+++ b/datadog_checks_base/datadog_checks/base/checks/base.py
@@ -518,8 +518,8 @@ class __AgentCheckPy2(obj... | make load_config a staticmethod everywhere (#<I>) | py |
diff --git a/mollie/api/objects/issuer.py b/mollie/api/objects/issuer.py
index <HASH>..<HASH> 100644
--- a/mollie/api/objects/issuer.py
+++ b/mollie/api/objects/issuer.py
@@ -16,24 +16,15 @@ class Issuer(ObjectBase):
@property
def image_svg(self):
- try:
- images = self._get_property("imag... | Remove code that expects the API to remove image formats in some undefined future. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,8 +3,14 @@ import os
here = os.path.abspath(os.path.dirname(__file__))
-with open(os.path.join(here, 'readme.md')) as handle:
- long_desc = handle.read()
+try:
+ with open(os.path.join(here, 'readme.md')) as hand... | added hack for long_description in setup.py | py |
diff --git a/l/project.py b/l/project.py
index <HASH>..<HASH> 100644
--- a/l/project.py
+++ b/l/project.py
@@ -43,7 +43,8 @@ def from_path(path):
@attributes(
[
Attribute(name="_git_dir", default_value=None, exclude_from_repr=True),
- Attribute(name="_path"),
+ Attribute(name="_path", exclu... | Show strs in the repr. | py |
diff --git a/uvicorn/config.py b/uvicorn/config.py
index <HASH>..<HASH> 100644
--- a/uvicorn/config.py
+++ b/uvicorn/config.py
@@ -22,7 +22,7 @@ from asgiref.typing import ASGIApplication
try:
import yaml
-except ImportError:
+except ImportError: # pragma: no cover
# If the code below that depends on yaml... | Ignore coverage when PyYAML is not installed (#<I>) | py |
diff --git a/test/test_dss_api.py b/test/test_dss_api.py
index <HASH>..<HASH> 100644
--- a/test/test_dss_api.py
+++ b/test/test_dss_api.py
@@ -36,6 +36,7 @@ class TestDssApi(unittest.TestCase):
if os.path.exists(downloaded_path):
shutil.rmtree(downloaded_path)
+ @unittest.skip("Temporarily di... | Temporarily disable TestDssApi.test_python_upload_lg_file | py |
diff --git a/test/test_abaqus.py b/test/test_abaqus.py
index <HASH>..<HASH> 100644
--- a/test/test_abaqus.py
+++ b/test/test_abaqus.py
@@ -36,7 +36,7 @@ def test(mesh):
("UUea.inp", 4950.0, 50, 10),
("nle1xf3c.inp", 32.215275528, 12, 3),
("element_elset.inp", 6.0, 2, 3),
- ("wInclude_m... | Fixed failing test with external set definitions not being added. This is currently not yet implemented. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,6 @@
from setuptools import setup, find_packages
+short_description = "HGVS Parser, Formatter, Mapper, Validator"
with open("doc/description.txt") as f:
long_description = f.read()
@@ -8,17 +9,17 @@ setup(li... | trivial change to setup.py (mostly to update tip :-() | py |
diff --git a/vaspy/cli/kgen.py b/vaspy/cli/kgen.py
index <HASH>..<HASH> 100755
--- a/vaspy/cli/kgen.py
+++ b/vaspy/cli/kgen.py
@@ -90,7 +90,7 @@ def kgen(filename, directory=None, make_folders=False, symprec=0.01,
logging.error('ERROR: hybrid specified but no IBZKPT file found!')
sys.exit()
... | Better treatment of split option Fixes #9 | py |
diff --git a/pandoc_source_exec.py b/pandoc_source_exec.py
index <HASH>..<HASH> 100644
--- a/pandoc_source_exec.py
+++ b/pandoc_source_exec.py
@@ -201,7 +201,7 @@ def save_plot(code, elem):
matplotlib.use('TkAgg')
{code}
from matplotlib2tikz import get_tikz_code
-tikz = get_tikz_code('', figureheight='{figureheight}... | Fixing 'str has no attribute get_children' get_tikz_code's API has changed to no longer include a filename. See <URL> | py |
diff --git a/cfn_flip/custom_yaml.py b/cfn_flip/custom_yaml.py
index <HASH>..<HASH> 100644
--- a/cfn_flip/custom_yaml.py
+++ b/cfn_flip/custom_yaml.py
@@ -73,14 +73,20 @@ class odict_items(list):
def sort(self):
pass
+class ODict(collections.OrderedDict):
+ def __init__(self, *args, **kwargs):
+ ... | Fix attempt to overwrite dict.items in cleanup. Fixes #4. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,7 @@ try:
with codecs.open('README.rst', 'w', 'utf-8') as f:
f.write(long_description)
except(IOError, ImportError):
- with open('README.md') as f:
+ with codecs.open('README.md', 'r', 'utf-8') a... | open `readme.md` with utf-8 encoding Since the `README.md` contains some unicode characters, it is better to open it with `codecs.open` | py |
diff --git a/spyder/plugins/outlineexplorer/widgets.py b/spyder/plugins/outlineexplorer/widgets.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/outlineexplorer/widgets.py
+++ b/spyder/plugins/outlineexplorer/widgets.py
@@ -513,16 +513,22 @@ class OutlineExplorerTreeWidget(OneColumnTree):
def activated(self,... | Go to start of file if click current editor root If a root item is clicked in the Outline Explorer and that root item corresponds to the current editor, move the cursor at the beginning of the file. | py |
diff --git a/jupyterlab_widgets/jupyterlab_widgets/_version.py b/jupyterlab_widgets/jupyterlab_widgets/_version.py
index <HASH>..<HASH> 100644
--- a/jupyterlab_widgets/jupyterlab_widgets/_version.py
+++ b/jupyterlab_widgets/jupyterlab_widgets/_version.py
@@ -1,4 +1,4 @@
-version_info = (1, 0, 0, 'alpha', 0)
+version_in... | Bump jlab package to alpha 1 | py |
diff --git a/pmag_widgets.py b/pmag_widgets.py
index <HASH>..<HASH> 100755
--- a/pmag_widgets.py
+++ b/pmag_widgets.py
@@ -102,7 +102,7 @@ class labeled_yes_or_no(wx.StaticBoxSizer):
class specimen_n(wx.StaticBoxSizer):
"""-spc option (number of characters defining specimen from sample"""
- def __init__(self... | clarify phrasing for QuickMagic specimen_n (distinguish specimen from sample) | py |
diff --git a/relay_commander/replayBuilder.py b/relay_commander/replayBuilder.py
index <HASH>..<HASH> 100644
--- a/relay_commander/replayBuilder.py
+++ b/relay_commander/replayBuilder.py
@@ -4,19 +4,19 @@ import os
import uuid
-
def createDirectories(directory):
if not os.path.exists(directory):
os.... | update where dir is created (#3) | py |
diff --git a/trezorlib/stellar.py b/trezorlib/stellar.py
index <HASH>..<HASH> 100644
--- a/trezorlib/stellar.py
+++ b/trezorlib/stellar.py
@@ -63,7 +63,7 @@ def address_to_public_key(address_str):
return decoded[1:-2]
-def parse_transaction_bytes(bytes):
+def parse_transaction_bytes(tx_bytes):
"""Parses b... | stellar.py now returns a tuple from parse_transaction_bytes and no longer uses a reserved argument name | py |
diff --git a/lib/python/voltcli/environment.py b/lib/python/voltcli/environment.py
index <HASH>..<HASH> 100644
--- a/lib/python/voltcli/environment.py
+++ b/lib/python/voltcli/environment.py
@@ -74,8 +74,12 @@ java_opts = []
#If this is a large memory system commit the full heap
specify_minimum_heap = False
if platf... | For ENG-<I>, close the pipe when done | py |
diff --git a/pmag_basic_dialogs.py b/pmag_basic_dialogs.py
index <HASH>..<HASH> 100755
--- a/pmag_basic_dialogs.py
+++ b/pmag_basic_dialogs.py
@@ -2607,7 +2607,7 @@ class OrientFrameGrid(wx.Frame):
#continue
#er_samples_data[sample]={}
#er_samples_data[sample]["er_samp... | get sample lat/sample lon | py |
diff --git a/ipython_helpers/notebook.py b/ipython_helpers/notebook.py
index <HASH>..<HASH> 100644
--- a/ipython_helpers/notebook.py
+++ b/ipython_helpers/notebook.py
@@ -159,6 +159,7 @@ class SessionManager(object):
notebook_dir = path(os.getcwd())
filename = None
else:
+ ... | Ensure filepath is a path object in open | py |
diff --git a/src/transformers/file_utils.py b/src/transformers/file_utils.py
index <HASH>..<HASH> 100644
--- a/src/transformers/file_utils.py
+++ b/src/transformers/file_utils.py
@@ -303,14 +303,15 @@ PT_QUESTION_ANSWERING_SAMPLE = r"""
>>> tokenizer = {tokenizer_class}.from_pretrained('{checkpoint}')
... | fix QA example for PT (#<I>) | py |
diff --git a/cm-mlops/automation/script/module.py b/cm-mlops/automation/script/module.py
index <HASH>..<HASH> 100644
--- a/cm-mlops/automation/script/module.py
+++ b/cm-mlops/automation/script/module.py
@@ -1531,10 +1531,11 @@ def enable_or_skip_script(meta, env, enable_or_skip):
if key in env:
if... | Changed enable_or_skip logic to match all | py |
diff --git a/examples/face_recognition_svm.py b/examples/face_recognition_svm.py
index <HASH>..<HASH> 100644
--- a/examples/face_recognition_svm.py
+++ b/examples/face_recognition_svm.py
@@ -50,11 +50,8 @@ for person in train_dir:
face = face_recognition.load_image_file("/train_dir/" + person + "/" + person_im... | Skip a pic if it has none or more than one face | py |
diff --git a/aiortc/rtcicetransport.py b/aiortc/rtcicetransport.py
index <HASH>..<HASH> 100644
--- a/aiortc/rtcicetransport.py
+++ b/aiortc/rtcicetransport.py
@@ -9,9 +9,9 @@ from pyee import EventEmitter
from .exceptions import InvalidStateError
from .rtcconfiguration import RTCIceServer
-STUN_REGEX = re.compile('... | [qa] fix some linting errors with flake8 <I> | py |
diff --git a/ploy/__init__.py b/ploy/__init__.py
index <HASH>..<HASH> 100644
--- a/ploy/__init__.py
+++ b/ploy/__init__.py
@@ -525,8 +525,10 @@ class Controller(object):
self.configfile = args.configfile
if args.debug:
logging.root.setLevel(logging.DEBUG)
- args.func(sub_argv, args... | Always close connections even after an exception. | py |
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index <HASH>..<HASH> 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -1063,15 +1063,12 @@ class Block(PandasObject):
# We only get here for non-Extension Blocks, so _try_coerce_args
... | post-merge fixup (#<I>) | py |
diff --git a/yotta/search.py b/yotta/search.py
index <HASH>..<HASH> 100644
--- a/yotta/search.py
+++ b/yotta/search.py
@@ -104,7 +104,7 @@ def formatResult(result, plain=False, short=False, indent=''):
if short:
return indent+u'%s %s: %s%s' % (name_string, ver_string, description, RESET)
else:
- ... | include colon in long search output for backwards compatibilty with test scripts that parsed it | py |
diff --git a/daemons/dss-sync/app.py b/daemons/dss-sync/app.py
index <HASH>..<HASH> 100644
--- a/daemons/dss-sync/app.py
+++ b/daemons/dss-sync/app.py
@@ -14,4 +14,4 @@ def process_new_syncable_object(event, context):
s3 = boto3.resource("s3")
bucket = s3.Bucket(event['Records'][0]["s3"]["bucket"]["name"])
... | Hotfix for lambda error that doesn't have an integration test yet | py |
diff --git a/tests/test_all.py b/tests/test_all.py
index <HASH>..<HASH> 100755
--- a/tests/test_all.py
+++ b/tests/test_all.py
@@ -30,7 +30,7 @@ PY3K = sys.version_info[0] > 2
def prnt(*args, **kwargs):
sys.stdout.write(' '.join(args));
-
+
# Define Classes
class PrettyResults(unittest.TestResult):
d... | Making test_all.py a little more flexible by adding os.getcwd to the PYTHONPATH. | py |
diff --git a/couchbase/fulltext.py b/couchbase/fulltext.py
index <HASH>..<HASH> 100644
--- a/couchbase/fulltext.py
+++ b/couchbase/fulltext.py
@@ -54,7 +54,7 @@ def _genprop(converter, *apipaths, **kwargs):
pass
doc = kwargs.pop(
- 'doc', 'Corresponds to the ``{}`` field'.format('.'.join(apip... | Restore Py<I> compat Compatibility was broken with the latest cbft additions. Fixes are: * Explicit format placeholder index ('{0}' vs '{}') * No dict comprehension ({x: stuff for x in iterable}) Change-Id: I<I>fee<I>a2b6ac2ae<I>f<I>b1eda<I> Reviewed-on: <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -73,7 +73,7 @@ setup(
'Programming Language :: Python :: Implementation :: PyPy',
],
test_suite='tests',
- tests_require=['pytest<5', 'hypothesis<5'],
+ tests_require=['pytest<7', 'hypothesis<7'],
... | Bump test dependencies to support Python <I> | py |
diff --git a/marrow/mailer/message.py b/marrow/mailer/message.py
index <HASH>..<HASH> 100644
--- a/marrow/mailer/message.py
+++ b/marrow/mailer/message.py
@@ -297,7 +297,7 @@ class Message(object):
else:
raise TypeError("Unable to read attachment contents")
- part.set_payload(base... | Base<I> with line wrapping. More RFC-friendly. | py |
diff --git a/openquake/server/db/actions.py b/openquake/server/db/actions.py
index <HASH>..<HASH> 100644
--- a/openquake/server/db/actions.py
+++ b/openquake/server/db/actions.py
@@ -288,7 +288,7 @@ def del_calc(db, job_id, user):
try:
os.remove(fname)
except OSError as exc: # permission error
- ... | changed print with error sintax Former-commit-id: <I>e<I>cf<I>c<I>f5c6b8e<I>ff<I>d<I>b1be1 | py |
diff --git a/livescore/LivescoreBase.py b/livescore/LivescoreBase.py
index <HASH>..<HASH> 100644
--- a/livescore/LivescoreBase.py
+++ b/livescore/LivescoreBase.py
@@ -150,10 +150,10 @@ class LivescoreBase(object):
segments = segments_to_numpy([cv2.boundingRect(cnt)])
extractor = Simple... | Fall back to tesseract if contours don't separate digits | py |
diff --git a/fireplace/card.py b/fireplace/card.py
index <HASH>..<HASH> 100644
--- a/fireplace/card.py
+++ b/fireplace/card.py
@@ -113,6 +113,9 @@ class BaseCard(Entity):
aura = Aura(aura, source=self)
aura.summon()
self._auras.append(aura)
+ else:
+ for aura in self._auras:
+ aura.destroy()
de... | Unify aura destruction logic into setZone | py |
diff --git a/synapse/lib/storm.py b/synapse/lib/storm.py
index <HASH>..<HASH> 100644
--- a/synapse/lib/storm.py
+++ b/synapse/lib/storm.py
@@ -1127,13 +1127,8 @@ class Runtime(Configable):
#NOTE: we only actually want refs where type is form
- # Build a set of xref forms so we can lift by form on 'i... | Change to looking for all props which are propvalu types instead of explicit xref checking. | py |
diff --git a/latex/build.py b/latex/build.py
index <HASH>..<HASH> 100644
--- a/latex/build.py
+++ b/latex/build.py
@@ -6,6 +6,14 @@ from tempdir import TempDir
class LaTeXError(Exception):
+ """LaTeX call exception."""
+
+ #: Contents of the log-file that was generated (if any).
+ log = None
+
+ #: The... | Added docs for LaTeXError. | py |
diff --git a/openquake/commonlib/tests/sourcewriter_test.py b/openquake/commonlib/tests/sourcewriter_test.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/tests/sourcewriter_test.py
+++ b/openquake/commonlib/tests/sourcewriter_test.py
@@ -31,7 +31,6 @@ class SourceWriterTestCase(unittest.TestCase):
fd,... | Removed a pdb committed by accident | py |
diff --git a/spyder/plugins/editor/widgets/codeeditor.py b/spyder/plugins/editor/widgets/codeeditor.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/editor/widgets/codeeditor.py
+++ b/spyder/plugins/editor/widgets/codeeditor.py
@@ -3979,6 +3979,19 @@ class CodeEditor(TextEditBaseWidget):
return True... | Fix colon autocompletion false-positive When there was an opening bracket on another line than where the cursor is. For example a = [x for x in range(<I>) <- enter previously triggered a colon to be inserted. | py |
diff --git a/lenstronomy/LightModel/Profiles/sersic.py b/lenstronomy/LightModel/Profiles/sersic.py
index <HASH>..<HASH> 100644
--- a/lenstronomy/LightModel/Profiles/sersic.py
+++ b/lenstronomy/LightModel/Profiles/sersic.py
@@ -45,8 +45,7 @@ class Sersic(SersicUtil):
exponent = -bn*(R_frac_real**(1./n_sersi... | Sersic Ellipse more robust | py |
diff --git a/api/src/opentrons/simulate.py b/api/src/opentrons/simulate.py
index <HASH>..<HASH> 100644
--- a/api/src/opentrons/simulate.py
+++ b/api/src/opentrons/simulate.py
@@ -53,9 +53,11 @@ class CommandScraper:
self._logger = logger
self._broker = broker
self._queue = queue.Queue() # ty... | fix(api): simulate needs to set loglevel (#<I>) Since simulate doesn’t run opentrons.main, it needs to configure the opentrons domain logger to set whatever log level the user asks for (otherwise it will be at the default of WARNING) | py |
diff --git a/tornado/template.py b/tornado/template.py
index <HASH>..<HASH> 100644
--- a/tornado/template.py
+++ b/tornado/template.py
@@ -281,7 +281,6 @@ class Template(object):
ancestors.reverse()
for ancestor in ancestors:
ancestor.find_named_blocks(loader, named_blocks)
- ... | Remove redundant call to find_named_blocks in template processing. self._get_ancestors already returns self.file in the appropriate position. Closes #<I>. | py |
diff --git a/airflow/models/variable.py b/airflow/models/variable.py
index <HASH>..<HASH> 100644
--- a/airflow/models/variable.py
+++ b/airflow/models/variable.py
@@ -114,7 +114,7 @@ class Variable(Base, LoggingMixin):
deserialize_json: bool = False,
) -> Any:
"""
- Sets a value for an Air... | Fix docstring for models.Variable.get() (#<I>) | py |
diff --git a/tests/test_reconn.py b/tests/test_reconn.py
index <HASH>..<HASH> 100644
--- a/tests/test_reconn.py
+++ b/tests/test_reconn.py
@@ -21,7 +21,7 @@ class P:
@pytest.mark.asyncio
def test_reconn(irc3_bot_factory):
- cfg = {'verbose': True, 'debug': True}
+ cfg = {'verbose': True, 'debug': True, 'port'... | test_reconn: use non-default port for testing Avoids conflicts when the port is already used by, eg, another irc3d instance | py |
diff --git a/salt/loader.py b/salt/loader.py
index <HASH>..<HASH> 100644
--- a/salt/loader.py
+++ b/salt/loader.py
@@ -18,16 +18,22 @@ salt_base_path = os.path.dirname(salt.__file__)
def _create_loader(opts, ext_type, tag):
- extra_dirs = [
- os.path.join(opts['extension_modules'],
- e... | Reordering directories in _create_loader The goal of this commit (not sure if I achieved it) was for user-specified _modules to override builtins. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -27,18 +27,18 @@ import os.path
import subprocess
try:
- import setuptools
+ import setuptools # pylint: disable=unused-import
except ImportError:
import ez_setup
ez_setup.use_setuptools()
finally:
... | setup.py: fixed unused imports and pylint ignored some required unused imports | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ else:
from pycompilation.dist import clever_build_ext
from pycompilation.dist import CleverExtension
- cmdclass_ = {'build_ext': clever_build_ext},
+ cmdclass_ = {'build_ext': clever_build_ext}... | Fixed critical bug in setup.py, bumped to <I> | py |
diff --git a/spm.py b/spm.py
index <HASH>..<HASH> 100644
--- a/spm.py
+++ b/spm.py
@@ -63,7 +63,7 @@ class Subprocess(object):
kwargs.update(stdin=subprocess.PIPE)
elif isinstance(self._stdin, Subprocess):
kwargs.update(stdin=self._stdin.stdout)
- elif isinstance(self._stdin, f... | subprocess.Popen only needs file.fileno() And isinstance(f, file) is a bad practice. Moreover, it's not compitible with python 3. | py |
diff --git a/hvac/api/secrets_engines/__init__.py b/hvac/api/secrets_engines/__init__.py
index <HASH>..<HASH> 100644
--- a/hvac/api/secrets_engines/__init__.py
+++ b/hvac/api/secrets_engines/__init__.py
@@ -8,6 +8,7 @@ from hvac.api.secrets_engines.pki import Pki
from hvac.api.secrets_engines.kv_v1 import KvV1
from h... | include db engine as implemented class | py |
diff --git a/tornado/platform/caresresolver.py b/tornado/platform/caresresolver.py
index <HASH>..<HASH> 100644
--- a/tornado/platform/caresresolver.py
+++ b/tornado/platform/caresresolver.py
@@ -2,6 +2,7 @@ from __future__ import absolute_import, division, print_function
import pycares # type: ignore
import socket
... | caresresolver: Use non-deprecated interfaces This code is currently not exercised in CI. | py |
diff --git a/crosscat/utils/data_utils.py b/crosscat/utils/data_utils.py
index <HASH>..<HASH> 100644
--- a/crosscat/utils/data_utils.py
+++ b/crosscat/utils/data_utils.py
@@ -119,7 +119,7 @@ def gen_factorial_data(gen_seed, num_clusters,
inverse_permutation_indices_list = []
for data_idx in xrange(num_splits)... | pass gen_seed as gen_seed | py |
diff --git a/src/adafruit_blinka/microcontroller/generic_linux/i2c.py b/src/adafruit_blinka/microcontroller/generic_linux/i2c.py
index <HASH>..<HASH> 100644
--- a/src/adafruit_blinka/microcontroller/generic_linux/i2c.py
+++ b/src/adafruit_blinka/microcontroller/generic_linux/i2c.py
@@ -58,9 +58,7 @@ class I2C:
... | fix multibyte-write-then-read! | py |
diff --git a/libusb1.py b/libusb1.py
index <HASH>..<HASH> 100644
--- a/libusb1.py
+++ b/libusb1.py
@@ -62,11 +62,12 @@ def _loadLibrary():
else:
from ctypes import CDLL as dll_loader
libusb_path = find_library('usb-1.0')
- if libusb_path is None and system == 'FreeBSD':
- libusb... | Test "libusb_path is None" once, special cases are system-specific. Also, they are mutually exclusive. | py |
diff --git a/tests/test_parse_cpu_string.py b/tests/test_parse_cpu_string.py
index <HASH>..<HASH> 100644
--- a/tests/test_parse_cpu_string.py
+++ b/tests/test_parse_cpu_string.py
@@ -28,6 +28,7 @@ class TestParseCPUString(unittest.TestCase):
self.assertEqual((3200000000, 0), cpuinfo._to_raw_hz('3.2', 9))
self.ass... | Added tests for fractions of raw Hz. | py |
diff --git a/tests/fixtures.py b/tests/fixtures.py
index <HASH>..<HASH> 100644
--- a/tests/fixtures.py
+++ b/tests/fixtures.py
@@ -1,6 +1,6 @@
from pytest import fixture
from lxml import etree as _etree
-from libextract.coretools import parse_html
+from libextract.core import parse_html
from tests import asset_path
... | fixed string/read bug in fixtures" " | py |
diff --git a/master/buildbot/process/properties.py b/master/buildbot/process/properties.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/process/properties.py
+++ b/master/buildbot/process/properties.py
@@ -218,8 +218,9 @@ class Properties(util.ComparableMixin):
# somewhere and that could contain secrets
... | Update properties.py Do as comment says ;) Fixes case when one secret is a substring of another. | py |
diff --git a/collections_extended/range_map.py b/collections_extended/range_map.py
index <HASH>..<HASH> 100644
--- a/collections_extended/range_map.py
+++ b/collections_extended/range_map.py
@@ -1,7 +1,6 @@
"""RangeMap class definition."""
from bisect import bisect_left, bisect_right
-from collections import namedtup... | Fix imports so they work across all python versions. | py |
diff --git a/stp_zmq/zstack.py b/stp_zmq/zstack.py
index <HASH>..<HASH> 100644
--- a/stp_zmq/zstack.py
+++ b/stp_zmq/zstack.py
@@ -768,17 +768,20 @@ class ZStack(NetworkInterface):
try:
if not serialized:
msg = self.prepare_to_send(msg)
+
+ logger.trace('{} transmitting... | send regardless of whether remote is connected since it can be a Batch with ping/pongs | py |
diff --git a/werkzeug/security.py b/werkzeug/security.py
index <HASH>..<HASH> 100644
--- a/werkzeug/security.py
+++ b/werkzeug/security.py
@@ -10,7 +10,6 @@
"""
import os
import hmac
-import string
import posixpath
from itertools import izip
from random import SystemRandom
@@ -30,7 +29,7 @@ except ImportError:
... | Hardcode salt chars to avoid locale problems. | py |
diff --git a/parsl/dataflow/dflow.py b/parsl/dataflow/dflow.py
index <HASH>..<HASH> 100644
--- a/parsl/dataflow/dflow.py
+++ b/parsl/dataflow/dflow.py
@@ -459,8 +459,8 @@ class DataFlowKernel(object):
self.db_logger.info("Task Launch", extra=task_log_info)
exec_fu.retries_left = self._config.retri... | Output log message about task submission before we add callback. (#<I>) Previously: In the case of a fast executed task, the task was complete by the time we add the callback; in that case, the callback is executed immediately, before the 'task launched' message. This commit reverses that to give a more sensible... | py |
diff --git a/dmf_device_ui/view.py b/dmf_device_ui/view.py
index <HASH>..<HASH> 100644
--- a/dmf_device_ui/view.py
+++ b/dmf_device_ui/view.py
@@ -174,9 +174,16 @@ class DmfDeviceViewBase(SlaveView):
###########################################################################
def on_canvas_slave__electrode_mou... | [FIX] Avoid error for electrode with no channel(s) | py |
diff --git a/jaraco/functools.py b/jaraco/functools.py
index <HASH>..<HASH> 100644
--- a/jaraco/functools.py
+++ b/jaraco/functools.py
@@ -1,4 +1,4 @@
-from __future__ import absolute_import, unicode_literals, print_function
+from __future__ import absolute_import, unicode_literals, print_function, division
impor... | Fix test failure on Python <I> where throttler was ineffective due to integer division. | py |
diff --git a/test/high_availability/test_motor_ha.py b/test/high_availability/test_motor_ha.py
index <HASH>..<HASH> 100644
--- a/test/high_availability/test_motor_ha.py
+++ b/test/high_availability/test_motor_ha.py
@@ -875,11 +875,7 @@ class MotorTestReplicaSetAuth(MotorHATestCase):
self.seed, replicaSet=s... | Remove obsolete workaround for an old server bug. | py |
diff --git a/python/thunder/rdds/data.py b/python/thunder/rdds/data.py
index <HASH>..<HASH> 100644
--- a/python/thunder/rdds/data.py
+++ b/python/thunder/rdds/data.py
@@ -38,6 +38,8 @@ class Data(object):
# TODO make max line length a configurable property
if len(output) > 70:
... | Add length if index is too long | py |
diff --git a/js2py/base.py b/js2py/base.py
index <HASH>..<HASH> 100644
--- a/js2py/base.py
+++ b/js2py/base.py
@@ -50,7 +50,12 @@ def to_python(val):
return val.value
elif isinstance(val, PyObjectWrapper):
return val.__dict__['obj']
- return JsObjectWrapper(val)
+ elif isinstance(val, PyJsA... | Convert js objects to imperfect python primitives implicitly (if requested). | py |
diff --git a/ocrd/resolver.py b/ocrd/resolver.py
index <HASH>..<HASH> 100644
--- a/ocrd/resolver.py
+++ b/ocrd/resolver.py
@@ -159,10 +159,10 @@ class Resolver(object):
if url.startswith('file://'):
self._copy_or_symlink(url[len('file://'):], outfilename, prefer_symlink)
else:
+ ... | resolver: if download files, do not write empty files | py |
diff --git a/skyfield/timelib.py b/skyfield/timelib.py
index <HASH>..<HASH> 100644
--- a/skyfield/timelib.py
+++ b/skyfield/timelib.py
@@ -702,7 +702,6 @@ class Time(object):
def dut1(self):
ts = self.ts
i = searchsorted(ts._leap_reverse_dates, self.tai, 'right')
- print(32.184, ts.leap_of... | Fix #<I> by removing debugging print statement | py |
diff --git a/pyairtable/api/api.py b/pyairtable/api/api.py
index <HASH>..<HASH> 100644
--- a/pyairtable/api/api.py
+++ b/pyairtable/api/api.py
@@ -267,7 +267,7 @@ class Api(ApiAbstract):
Args:
base_id: |arg_base_id|
table_name: |arg_table_name|
- records(``list``): List of ... | Minor doc change on batch_update Current docstring says to use "field" as the key, but it needs to be "fields". | py |
diff --git a/pylint/constants.py b/pylint/constants.py
index <HASH>..<HASH> 100644
--- a/pylint/constants.py
+++ b/pylint/constants.py
@@ -8,11 +8,6 @@ from astroid.__pkginfo__ import version as astroid_version
from pylint.__pkginfo__ import version as pylint_version
-# Allow stopping after the first semicolon/has... | OPTION_RGX is redefined in pragma_parser.py, and is not used anywhere else. Removing this declaration, as it serves no purpose. | py |
diff --git a/LiSE/LiSE/engine.py b/LiSE/LiSE/engine.py
index <HASH>..<HASH> 100644
--- a/LiSE/LiSE/engine.py
+++ b/LiSE/LiSE/engine.py
@@ -1105,9 +1105,7 @@ class Engine(AbstractEngine, gORM):
curtick = self.tick
r = []
while self.tick == curtick:
- result = self.advance()
- ... | Stop logging every single rule The log file was just pointlessly large. | py |
diff --git a/cflib/crtp/radiodriver.py b/cflib/crtp/radiodriver.py
index <HASH>..<HASH> 100644
--- a/cflib/crtp/radiodriver.py
+++ b/cflib/crtp/radiodriver.py
@@ -389,7 +389,7 @@ class _RadioDriverThread(threading.Thread):
Radio link receiver thread used to read data from the
Crazyradio USB driver. """
- ... | #<I> Increased the number of packets that can be lost before the connection is closed | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.