diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/pysyte/oss/platforms.py b/pysyte/oss/platforms.py index <HASH>..<HASH> 100644 --- a/pysyte/oss/platforms.py +++ b/pysyte/oss/platforms.py @@ -1,6 +1,7 @@ """Handle different OS platforms""" import platform as python_platform import importlib +from subprocess import run from pysyte import oss from py...
Prefer the run() method from stdlib
py
diff --git a/vent/menu_launcher.py b/vent/menu_launcher.py index <HASH>..<HASH> 100755 --- a/vent/menu_launcher.py +++ b/vent/menu_launcher.py @@ -690,7 +690,7 @@ def build_menu_dict(path_dirs): ] }, { 'title': "Service Stats", 'type': COMMAND, 'command': "sh "+pat...
put back version info when new shell is created
py
diff --git a/autograd/numpy/numpy_grads.py b/autograd/numpy/numpy_grads.py index <HASH>..<HASH> 100644 --- a/autograd/numpy/numpy_grads.py +++ b/autograd/numpy/numpy_grads.py @@ -312,8 +312,13 @@ anp.dot.defgrads(make_grad_dot, [0, 1]) def make_grad_tensordot(argnum, ans, A, B, axes=2): if type(axes) is int: - ...
fix tensordot by special-casing axes=0
py
diff --git a/great_expectations/dataset/dataset.py b/great_expectations/dataset/dataset.py index <HASH>..<HASH> 100644 --- a/great_expectations/dataset/dataset.py +++ b/great_expectations/dataset/dataset.py @@ -3167,7 +3167,7 @@ class Dataset(MetaDataset): if partition_object is None: # NOTE: we a...
Use nonnull_count in denominator of kl_divergence
py
diff --git a/grimoire_elk/elk/stackexchange.py b/grimoire_elk/elk/stackexchange.py index <HASH>..<HASH> 100644 --- a/grimoire_elk/elk/stackexchange.py +++ b/grimoire_elk/elk/stackexchange.py @@ -219,6 +219,7 @@ class StackExchangeEnrich(Enrich): max_items = self.elastic.max_items_bulk current = 0 ...
[elk] Update enrich_items method of Stackexchange for new tests The enrich_items method should return the number of items processed. This value is then checked against the number of items in the raw index in the test.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -39,7 +39,7 @@ install_requirements = [ "aiohttp==3.7.4.post0", ] -setup_requirements = ["pytest-runner==5.3.1"] +setup_requirements = ["pytest-runner==6.0.0"] dev_requirements = [ "bumpversion==0.6.0",
Update pytest-runner (#<I>)
py
diff --git a/superset/dashboards/schemas.py b/superset/dashboards/schemas.py index <HASH>..<HASH> 100644 --- a/superset/dashboards/schemas.py +++ b/superset/dashboards/schemas.py @@ -119,6 +119,9 @@ class DashboardJSONMetadataSchema(Schema): stagger_time = fields.Integer() color_scheme = fields.Str(allow_none...
Adding v0 import/export fields to dashboard metadata schema (#<I>)
py
diff --git a/src/transformers/trainer_pt_utils.py b/src/transformers/trainer_pt_utils.py index <HASH>..<HASH> 100644 --- a/src/transformers/trainer_pt_utils.py +++ b/src/transformers/trainer_pt_utils.py @@ -72,7 +72,7 @@ def torch_pad_and_concatenate(tensor1, tensor2, padding_index=-100): def numpy_pad_and_concatenate...
Fix #<I> (#<I>)
py
diff --git a/master/buildbot/status/web/base.py b/master/buildbot/status/web/base.py index <HASH>..<HASH> 100644 --- a/master/buildbot/status/web/base.py +++ b/master/buildbot/status/web/base.py @@ -606,7 +606,7 @@ def changelinkfilter(changelink): link_replace_re = jinja2.Markup(r'<a href="%s"%s>\g<0></a>' % ...
Use cgi.escape for comment escaping. jinja2.escape escapes too much (quote marks) for things that aren't going to be placed in attribute values.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -19,11 +19,17 @@ setup( platforms=['OS Independent'], license='MIT License', classifiers=[ - 'Development Status :: 4 - Beta', - 'Environment :: Web Environment', + 'Development Status :: 2 ...
Used more accurate trove classifiers.
py
diff --git a/pynlpl/formats/folia.py b/pynlpl/formats/folia.py index <HASH>..<HASH> 100644 --- a/pynlpl/formats/folia.py +++ b/pynlpl/formats/folia.py @@ -2576,7 +2576,10 @@ class AbstractElement(object): for subnode in node: #pylint: disable=too-many-nested-blocks #don't trip over comments - ...
[folia] Don't forget to include text tail after comment proycon/folia#<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 @@ -4358,7 +4358,7 @@ def check_perms(name, ret, user, group, mode, attrs=None, follow_symlinks=False) is_dir = os.path.isdir(name) if not salt.utils.platform.is_windows()...
use .get incase attrs are disabled on the filesystem
py
diff --git a/jax/lax/lax.py b/jax/lax/lax.py index <HASH>..<HASH> 100644 --- a/jax/lax/lax.py +++ b/jax/lax/lax.py @@ -2576,7 +2576,7 @@ def _dynamic_slice_jvp_rule(g, operand, start_indices, slice_sizes, def _dynamic_slice_transpose_rule(t, operand, start_indices, slice_sizes, opera...
Use _dtype instead of .dtype in dynamic slice transpose rule.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -8,12 +8,11 @@ version = '0.1.0' # determine requirements # requirements = [ - "WebOb >= 1.0.0", - "WebCore >= 1.0.0", - "simplegeneric >= 0.7", + "WebOb >= 1.2dev", #py3 compat + "simplegeneric >= 0.8", # py3 compat ...
Updating requirements for Py3 compatability.
py
diff --git a/source/rafcon/utils/installation.py b/source/rafcon/utils/installation.py index <HASH>..<HASH> 100644 --- a/source/rafcon/utils/installation.py +++ b/source/rafcon/utils/installation.py @@ -225,6 +225,10 @@ def create_mo_files(): def is_tracked(path): """Checks whether the given file/folder is trac...
fix(installation): is_tracked now checks for git repo
py
diff --git a/pgmpy/models/BayesianNetwork.py b/pgmpy/models/BayesianNetwork.py index <HASH>..<HASH> 100644 --- a/pgmpy/models/BayesianNetwork.py +++ b/pgmpy/models/BayesianNetwork.py @@ -426,7 +426,7 @@ class BayesianNetwork(DAG): if len(set(cpd.variables) - set(cpd.state_names.keys())) > 0: ...
Fixes typo for f-string [fixes #<I>] (#<I>)
py
diff --git a/synapse/lib/cmdr.py b/synapse/lib/cmdr.py index <HASH>..<HASH> 100644 --- a/synapse/lib/cmdr.py +++ b/synapse/lib/cmdr.py @@ -6,6 +6,10 @@ import synapse.cmds.cortex as s_cmds_cortex import synapse.cmds.trigger as s_cmds_trigger cmdsbycell = { + 'cell': ( + s_cmds_hive.HiveCmd, + ), + ...
Allow a cmdr session attached directly to a bare cell to manipulate the cell hive
py
diff --git a/tests/test_singularity.py b/tests/test_singularity.py index <HASH>..<HASH> 100644 --- a/tests/test_singularity.py +++ b/tests/test_singularity.py @@ -41,11 +41,14 @@ def test_singularity_incorrect_image_pull(): assert result_code != 0 @needs_singularity -def test_singularity_local(): - result_co...
Last Travis failed singularity_local test. Added similar code to yours
py
diff --git a/benchmark/benchmarks.py b/benchmark/benchmarks.py index <HASH>..<HASH> 100644 --- a/benchmark/benchmarks.py +++ b/benchmark/benchmarks.py @@ -801,7 +801,7 @@ BENCH_FUNCS = _FindAllBenchmarks(globals()) # If you update the default group, be sure to update the module docstring, too. # An "all" group which ...
Fix the Django benchmark rename in the default benchmark groups
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ setup( ], include_package_data=True, install_requires=[ - 'Django>=1.11,<2.1', + 'Django>=1.11,<2.2', ], license="BSD", zip_safe=False,
support django version <I>
py
diff --git a/pyeda/boolalg/expr.py b/pyeda/boolalg/expr.py index <HASH>..<HASH> 100644 --- a/pyeda/boolalg/expr.py +++ b/pyeda/boolalg/expr.py @@ -16,6 +16,7 @@ Interface Functions: Nor, Nand OneHot0, OneHot + Majority Interface Classes: Expression
Add Majority to expr top matter
py
diff --git a/foolbox/tests/conftest.py b/foolbox/tests/conftest.py index <HASH>..<HASH> 100644 --- a/foolbox/tests/conftest.py +++ b/foolbox/tests/conftest.py @@ -232,8 +232,13 @@ def bn_image(): @pytest.fixture def bn_images(): np.random.seed(22) - image = np.random.uniform(size=(7, 5, 5, 10)).astype(np.floa...
Test the batched attacks on batches containing the same image
py
diff --git a/flask_ask/models.py b/flask_ask/models.py index <HASH>..<HASH> 100644 --- a/flask_ask/models.py +++ b/flask_ask/models.py @@ -1,5 +1,5 @@ import inspect -from flask import json, current_app +from flask import json from xml.etree import ElementTree import aniso8601 from .core import session, context, cu...
Don't prettify response sent to Alexa.
py
diff --git a/esp8266/scripts/_boot.py b/esp8266/scripts/_boot.py index <HASH>..<HASH> 100644 --- a/esp8266/scripts/_boot.py +++ b/esp8266/scripts/_boot.py @@ -3,10 +3,10 @@ import builtins from flashbdev import bdev try: - vfs = uos.VfsFat(bdev, "/") + vfs = uos.VfsFat(bdev, "") except OSError: import i...
esp<I>/scripts/_boot: Mount block device on "" instead of "/". "" is the correct name of the root directory when mounting a device there (as opposed to "/"). One can now do os.listdir('/') and open('/abc'), as well as os.listdir() and open('abc').
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name='edit_distance', - version='1.0.3', + version='1.0.4', author='Ben Lambert', author_email='blambert@gmail.com', packages=['edit_distance'],
Increment version number to <I>.
py
diff --git a/jsonschema/validators.py b/jsonschema/validators.py index <HASH>..<HASH> 100644 --- a/jsonschema/validators.py +++ b/jsonschema/validators.py @@ -802,7 +802,7 @@ class RefResolver(object): def _find_in_referrer(self, key): return self._get_subschemas_cache()[key] - @lru_cache() + @lru...
Ignore a style warning from bugbear. Creating lots of RefResolvers shouldn't be common (as creating lots of Validators should be reasonably uncommon itself), and even if one did so, we have a fixed size LRU cache, so this seems OK. Refs: PyCQA/flake8-bugbear#<I>
py
diff --git a/insights/util/__init__.py b/insights/util/__init__.py index <HASH>..<HASH> 100644 --- a/insights/util/__init__.py +++ b/insights/util/__init__.py @@ -61,11 +61,13 @@ def which(cmd, env=None): return cmd return None - paths = env.get("PATH").split(os.pathsep) - for path in path...
check for null PATH (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ setup( description=next(x for x in long_description.splitlines() if x.strip()), long_description='.. contents::\n\n' + long_description, keywords='linux usb gadget functionfs', - version='0.1',...
Bump to <I> .
py
diff --git a/dvc/__init__.py b/dvc/__init__.py index <HASH>..<HASH> 100644 --- a/dvc/__init__.py +++ b/dvc/__init__.py @@ -5,7 +5,7 @@ Make your data science projects reproducible and shareable. """ import os -VERSION_BASE = '0.14.3' +VERSION_BASE = '0.14.4' __version__ = VERSION_BASE PACKAGEPATH = os.path.absp...
dvc: bump to <I>
py
diff --git a/salt/modules/rpm.py b/salt/modules/rpm.py index <HASH>..<HASH> 100644 --- a/salt/modules/rpm.py +++ b/salt/modules/rpm.py @@ -9,7 +9,7 @@ import logging import os import re import datetime -from distutils.version import LooseVersion +from salt.utils.versions import LooseVersion # Import Salt libs im...
Swtiching to salt.utils.versions like linter suggested
py
diff --git a/pysparkling/sql/session.py b/pysparkling/sql/session.py index <HASH>..<HASH> 100644 --- a/pysparkling/sql/session.py +++ b/pysparkling/sql/session.py @@ -302,9 +302,8 @@ class SparkSession(object): if numPartitions is None: numPartitions = self._sc.defaultParallelism - raise ...
Implement DataFrame creation from a range
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -3,4 +3,5 @@ import setuptools setuptools.setup( setup_requires=['pbr>=1.3', 'setuptools>=17.1'], + python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', pbr=True)
Add python_requires to help pip
py
diff --git a/sark/code/function.py b/sark/code/function.py index <HASH>..<HASH> 100644 --- a/sark/code/function.py +++ b/sark/code/function.py @@ -90,11 +90,18 @@ class Function(object): self._comments = Comments(self) @staticmethod - def create(ea=UseCurrentAddress): + def is_function(ea=UseCurre...
added a helper function for Function.create to check if function already exists
py
diff --git a/nmrstarlib/fileio.py b/nmrstarlib/fileio.py index <HASH>..<HASH> 100644 --- a/nmrstarlib/fileio.py +++ b/nmrstarlib/fileio.py @@ -45,6 +45,7 @@ def _generate_filenames(sources): """ for source in sources: + if os.path.isdir(source): for path, dirlist, filelist in os.walk(s...
Fixed bug of incorrect reading file from URL caused by regex check.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -43,6 +43,8 @@ setup( 'fermipy-srcmaps-catalog-sg = fermipy.diffuse.job_library:invoke_sg_gtsrcmaps_catalog', 'fermipy-split-and-bin = fermipy.diffuse.gt_split_and_bin:main_single', 'fermipy-split-an...
added fermipy-split-and-mktime to setup.py
py
diff --git a/opinel/utils.py b/opinel/utils.py index <HASH>..<HASH> 100644 --- a/opinel/utils.py +++ b/opinel/utils.py @@ -430,9 +430,9 @@ def read_creds_from_aws_credentials_file(profile_name, credentials_file = aws_cr profile_found = False if profile_found: ...
Split on correct divider in AWS Credential file Currently Opinel relies on the fact that there may be a space before an access/secret key within the ~/.aws/credentials file (e.g. "aws_access_key_id = AKI..." The official package however does support defining attributes without space separation. This commit thus suppo...
py
diff --git a/h11/_headers.py b/h11/_headers.py index <HASH>..<HASH> 100644 --- a/h11/_headers.py +++ b/h11/_headers.py @@ -92,7 +92,7 @@ def normalize_and_validate(headers): new_headers.append((name, value)) return new_headers -def get_comma_header(headers, name, *, lowercase=True): +def get_comma_heade...
Python <I> has no keyword-only arguments.
py
diff --git a/src/scs_core/aws/client/mqtt_client.py b/src/scs_core/aws/client/mqtt_client.py index <HASH>..<HASH> 100644 --- a/src/scs_core/aws/client/mqtt_client.py +++ b/src/scs_core/aws/client/mqtt_client.py @@ -35,8 +35,8 @@ class MQTTClient(object): __RECONN_MAX = 32 # re...
Changed timeouts in AWSMQTTPublisher.
py
diff --git a/tools/TestScriptDoc/testscriptdoc_xmlformatter.py b/tools/TestScriptDoc/testscriptdoc_xmlformatter.py index <HASH>..<HASH> 100644 --- a/tools/TestScriptDoc/testscriptdoc_xmlformatter.py +++ b/tools/TestScriptDoc/testscriptdoc_xmlformatter.py @@ -299,7 +299,7 @@ class PythonDocGenerator: ...
Fixed issue in testscript doc xml formatter
py
diff --git a/estnltk/corpus_processing/parse_ettenten.py b/estnltk/corpus_processing/parse_ettenten.py index <HASH>..<HASH> 100644 --- a/estnltk/corpus_processing/parse_ettenten.py +++ b/estnltk/corpus_processing/parse_ettenten.py @@ -238,8 +238,8 @@ class EtTenTenXMLParser: self.paragraphs = [] self....
Bugfix in parse_ettenten.py (input parameters were mixed up)
py
diff --git a/pandas/io/sql.py b/pandas/io/sql.py index <HASH>..<HASH> 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -1155,6 +1155,7 @@ class PandasSQLLegacy(PandasSQL): self.con.commit() except: self.con.rollback() + raise finally: cur.close(...
SQL/ERR: raise error when insert failed with sqlite fallback (GH<I>)
py
diff --git a/webview/cocoa.py b/webview/cocoa.py index <HASH>..<HASH> 100644 --- a/webview/cocoa.py +++ b/webview/cocoa.py @@ -25,6 +25,7 @@ class BrowserView: instance = None app = AppKit.NSApplication.sharedApplication() + class AppDelegate(AppKit.NSObject): def display_confirmation_dialog(s...
Test implementation of quit confirmation dialog for Cocoa
py
diff --git a/bcbio/bam/counts.py b/bcbio/bam/counts.py index <HASH>..<HASH> 100644 --- a/bcbio/bam/counts.py +++ b/bcbio/bam/counts.py @@ -19,7 +19,7 @@ class NormalizedBam: if quick: self._total = 1e6 else: - self._total = sum(1 for _ in self._bam.fetch()) + self._t...
Normalize by total mapped reads
py
diff --git a/scripts/genmetadata.py b/scripts/genmetadata.py index <HASH>..<HASH> 100755 --- a/scripts/genmetadata.py +++ b/scripts/genmetadata.py @@ -108,6 +108,7 @@ class InsertOrderedDict(dict): return self.pop(self.orderedKeys[0]) return dict.popitem(self) # should raise KeyError + SUPPORT...
Added devanagari to supported subsets in genmetadata.py #<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -103,7 +103,7 @@ class PyTest(TestCommand): def initialize_options(self): TestCommand.initialize_options(self) - self.pytest_args = [] + self.pytest_args = ['tests/'] def finalize_options(s...
Pass tests path to pytest.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,10 +11,10 @@ setup( long_description=open('README.rst').read(), install_requires=[ - 'Django==1.6.2', - 'djangorestframework==2.3.12', - 'pycrypto==2.6.1', - 'http_signature' + ...
relax deps and prefer httpsig instead of http_signature
py
diff --git a/thermo/mixture.py b/thermo/mixture.py index <HASH>..<HASH> 100644 --- a/thermo/mixture.py +++ b/thermo/mixture.py @@ -2411,8 +2411,8 @@ Pa>' % (self.names, [round(i,4) for i in self.zs], self.T, self.P) Examples -------- - >>> Mixture(['water'], ws=[1], T=647.1, P=22048320.0).iso...
Edited Example results Changed the results for the examples of: isobaric_expansion_g and isobaric_expansion_l
py
diff --git a/phypno/datatype.py b/phypno/datatype.py index <HASH>..<HASH> 100644 --- a/phypno/datatype.py +++ b/phypno/datatype.py @@ -258,12 +258,18 @@ class Data: ------- value of the axis of interest - Raises + Notes ------ - KeyError - instead of Attribut...
added workaround so that pickle doesn't get lost in recursionerror
py
diff --git a/dockerfabric/tasks.py b/dockerfabric/tasks.py index <HASH>..<HASH> 100644 --- a/dockerfabric/tasks.py +++ b/dockerfabric/tasks.py @@ -109,6 +109,12 @@ def save_image(image, filename=None): @task -def load_image(filename): - with open(filename, 'r') as f: - docker_fabric().load_image(f) +def ...
Temporarily extend timeout for image upload.
py
diff --git a/test-imports.py b/test-imports.py index <HASH>..<HASH> 100755 --- a/test-imports.py +++ b/test-imports.py @@ -90,6 +90,12 @@ for static_file in [ print(f"{static_file}: Could not find static file.") sys.exit(1) +# Check that tests are **not** included +try: + from django_ca import te...
check that tests can **not** be imported
py
diff --git a/stmhal/boards/STM32F4DISC/staccel.py b/stmhal/boards/STM32F4DISC/staccel.py index <HASH>..<HASH> 100755 --- a/stmhal/boards/STM32F4DISC/staccel.py +++ b/stmhal/boards/STM32F4DISC/staccel.py @@ -39,7 +39,7 @@ class STAccel: self.cs_pin.high() self.spi = SPI(1, SPI.MASTER, baudrate=328125, ...
stmhal, staccel.py: Style cleanup.
py
diff --git a/insights/core/hydration.py b/insights/core/hydration.py index <HASH>..<HASH> 100644 --- a/insights/core/hydration.py +++ b/insights/core/hydration.py @@ -41,7 +41,9 @@ def identify(files): def create_context(path, context=None): top = os.listdir(path) - arc = [os.path.join(path, f) for f in top ...
Fix context checking in create_context_fix (#<I>) After archive is extracted, if top level dirs end with string which is a valid compression type, current logic determines context as ClusterArchiveContext. This change double checks if path is a file along with ending with a compression extension.
py
diff --git a/webview/wsgi.py b/webview/wsgi.py index <HASH>..<HASH> 100644 --- a/webview/wsgi.py +++ b/webview/wsgi.py @@ -20,7 +20,7 @@ import wsgiref.util try: # Python 3.7+ import importlib.resources as importlib_resources -except (ImportError, ModuleNotFoundError) as e : +except ImportError as e : #...
Delete ModuleNotFoundError exception handling
py
diff --git a/gbdxtools/images/meta.py b/gbdxtools/images/meta.py index <HASH>..<HASH> 100644 --- a/gbdxtools/images/meta.py +++ b/gbdxtools/images/meta.py @@ -227,9 +227,13 @@ class GeoImage(Container): Delayed warp across an entire AOI or Image creates a new dask image by deferring calls to the w...
conditionally use chunk sizes from ipe so warp supports TmsImage
py
diff --git a/astroid/manager.py b/astroid/manager.py index <HASH>..<HASH> 100644 --- a/astroid/manager.py +++ b/astroid/manager.py @@ -174,12 +174,12 @@ class AstroidManager: return self._build_stub_module(modname) try: module = load_module_from_name(modname) -...
Rename an exception to the standard name used elsewhere
py
diff --git a/lhc-python/lhc/io/gbk_/iterator.py b/lhc-python/lhc/io/gbk_/iterator.py index <HASH>..<HASH> 100644 --- a/lhc-python/lhc/io/gbk_/iterator.py +++ b/lhc-python/lhc/io/gbk_/iterator.py @@ -26,6 +26,8 @@ class GbkIterator(object): for c, n in self.it: if key is None: key ...
fixed gbk iterator non-stop bug didn't detect end condition
py
diff --git a/test/unit/test_runner_config.py b/test/unit/test_runner_config.py index <HASH>..<HASH> 100644 --- a/test/unit/test_runner_config.py +++ b/test/unit/test_runner_config.py @@ -1,6 +1,7 @@ from ansible_runner.runner_config import RunnerConfig from mock import patch +import re from collections import Mapp...
Add tests for validating the password regex
py
diff --git a/ipopt/version.py b/ipopt/version.py index <HASH>..<HASH> 100644 --- a/ipopt/version.py +++ b/ipopt/version.py @@ -12,4 +12,4 @@ URL: https://github.com/matthias-k/cyipopt License: EPL 1.0 """ -__version__ = '0.1.8' +__version__ = '0.2.0.dev0'
Bumped version to <I>.dev0. After this commit semantic versioning will be followed. major.minor.patch major: changes to the API minor: standard bump to add new features, fix bugs, etc patch: critical bugfixes only for that major.minor release
py
diff --git a/dmf_control_board_firmware/calibrate/impedance.py b/dmf_control_board_firmware/calibrate/impedance.py index <HASH>..<HASH> 100644 --- a/dmf_control_board_firmware/calibrate/impedance.py +++ b/dmf_control_board_firmware/calibrate/impedance.py @@ -141,6 +141,10 @@ def run_experiment(proxy, rms_voltage, test_...
Save amplifier_gain and vgnd in calibration file
py
diff --git a/lament/meta.py b/lament/meta.py index <HASH>..<HASH> 100644 --- a/lament/meta.py +++ b/lament/meta.py @@ -29,9 +29,9 @@ class ConfigMeta(type): del cdict[key] if hasattr(value, '__lament_re_con__'): - _re_keys.append(value.__lament_re_con__) - ...
Added smart naming to `@regex_config` too.
py
diff --git a/pyqr.py b/pyqr.py index <HASH>..<HASH> 100644 --- a/pyqr.py +++ b/pyqr.py @@ -120,7 +120,7 @@ class PyQR(object): # convertir a representación json y codificar en base64: datos_cmp_json = json.dumps(datos_cmp) - url = self.URL % (base64.b64encode(datos_cmp_json.encode('ascii'))) ...
fixed url generation bug in pyqr.py
py
diff --git a/openquake/calculators/disaggregation.py b/openquake/calculators/disaggregation.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/disaggregation.py +++ b/openquake/calculators/disaggregation.py @@ -481,6 +481,13 @@ class DisaggregationCalculator(base.HazardCalculator): for key, fn in d...
Removed negative values from disaggregation [skip hazardlib]
py
diff --git a/tests/test_base_utils.py b/tests/test_base_utils.py index <HASH>..<HASH> 100644 --- a/tests/test_base_utils.py +++ b/tests/test_base_utils.py @@ -47,7 +47,7 @@ def test_attrs_with_repr(): def __repr__(self): return 'foo' - assert hash(WithRepr(1)) == hash(WithRepr(1)) + # asse...
Comment out failing check. See GH-<I>.
py
diff --git a/blockstack/lib/subdomains.py b/blockstack/lib/subdomains.py index <HASH>..<HASH> 100644 --- a/blockstack/lib/subdomains.py +++ b/blockstack/lib/subdomains.py @@ -1439,9 +1439,10 @@ def decode_zonefile_subdomains(domain, zonefile_txt, block_height, zonefile_inde # zonefiles with subdomains have...
don't log invalid zone files' stack traces when parsing
py
diff --git a/pmxbot/core.py b/pmxbot/core.py index <HASH>..<HASH> 100644 --- a/pmxbot/core.py +++ b/pmxbot/core.py @@ -83,6 +83,7 @@ class LoggingCommandBot(irc.bot.SingleServerIRCBot): s = s.split(' ', 1)[-1].lstrip() log = False if len(s) > 510: + log.warning(u"Truncating long message: " + s) s = s[:...
Log the truncated message
py
diff --git a/pymc/Node.py b/pymc/Node.py index <HASH>..<HASH> 100644 --- a/pymc/Node.py +++ b/pymc/Node.py @@ -35,10 +35,12 @@ def batchsd(trace, batches=5): samples. The trace is divided into batches, and the standard deviation of the batch means is calculated. """ + if len(np.shape(trace)) > 1: ...
Fixed batchsd multidimensional array handling for real this time (numpy bug responsible, I think).
py
diff --git a/multidict/__init__.py b/multidict/__init__.py index <HASH>..<HASH> 100644 --- a/multidict/__init__.py +++ b/multidict/__init__.py @@ -10,7 +10,7 @@ import os __all__ = ('MultiDictProxy', 'CIMultiDictProxy', 'MultiDict', 'CIMultiDict', 'upstr', 'istr') -__version__ = '3.1.3' +__version__ = '3...
Bump to <I>a0
py
diff --git a/src/xopen/__init__.py b/src/xopen/__init__.py index <HASH>..<HASH> 100644 --- a/src/xopen/__init__.py +++ b/src/xopen/__init__.py @@ -366,6 +366,11 @@ class PipedCompressionReader(Closing): """ retcode = self.process.poll() + if sys.platform == "win32" and retcode == 1 and stderr...
Add special case for windows allowed exit codes
py
diff --git a/semantic_release/cli.py b/semantic_release/cli.py index <HASH>..<HASH> 100644 --- a/semantic_release/cli.py +++ b/semantic_release/cli.py @@ -10,7 +10,7 @@ from semantic_release.errors import GitError, ImproperConfigurationError from .history import (evaluate_version_bump, get_current_version, get_new_v...
fix: Use same changelog code for command as post See #<I> for background.
py
diff --git a/ryu/app/rest_firewall.py b/ryu/app/rest_firewall.py index <HASH>..<HASH> 100644 --- a/ryu/app/rest_firewall.py +++ b/ryu/app/rest_firewall.py @@ -217,8 +217,11 @@ class FirewallOfsList(dict): super(FirewallOfsList, self).__init__() def get_ofs(self, dp_id): + if len(self) == 0: + ...
ryu/app/rest_firewall.py: handling of no switch connection This patch improves operation when there is no switch connection. Cc: Shivaram Mysore <<EMAIL>>
py
diff --git a/src/python/dxpy/bindings/dxglobalworkflow.py b/src/python/dxpy/bindings/dxglobalworkflow.py index <HASH>..<HASH> 100644 --- a/src/python/dxpy/bindings/dxglobalworkflow.py +++ b/src/python/dxpy/bindings/dxglobalworkflow.py @@ -142,3 +142,14 @@ class DXGlobalWorkflow(DXObject, DXExecutable): ...
DEVEX-<I> Add publish method to global workflow bindings (#<I>)
py
diff --git a/lib/webaccount.py b/lib/webaccount.py index <HASH>..<HASH> 100644 --- a/lib/webaccount.py +++ b/lib/webaccount.py @@ -187,7 +187,11 @@ def superuser_account_warnings(): #Check if the admin password is empty res = run_sql("SELECT password, email from user where nickname = 'admin'") - res1 = r...
WebSession: fix crash when no admin user exists * When no user nick-named admin existed, and another user wanted to access Personalize menu, this has led to Internal Server Error crash due to non-handled exceptional situation. This patch fixes the problem. * Cherry-picked from <I>b<I>cadaf0baa<I>dc0d1c<I>e<I>fcf...
py
diff --git a/{{cookiecutter.repo_name}}/config/settings/common.py b/{{cookiecutter.repo_name}}/config/settings/common.py index <HASH>..<HASH> 100644 --- a/{{cookiecutter.repo_name}}/config/settings/common.py +++ b/{{cookiecutter.repo_name}}/config/settings/common.py @@ -213,7 +213,7 @@ ACCOUNT_EMAIL_REQUIRED = True AC...
Environment aware registration switch setting The status of the registration (open or closed) is now read from the project environment instead of hardcoded in the common settings file.
py
diff --git a/posts/models.py b/posts/models.py index <HASH>..<HASH> 100644 --- a/posts/models.py +++ b/posts/models.py @@ -5,7 +5,11 @@ from django.utils.translation import ugettext_lazy as _ class AbstractPost(models.Model): - author = models.ForeignKey(settings.AUTH_USER_MODEL, editable=False, related_name="%...
pep8 fix line length in models
py
diff --git a/aiopvapi/resources/shade.py b/aiopvapi/resources/shade.py index <HASH>..<HASH> 100644 --- a/aiopvapi/resources/shade.py +++ b/aiopvapi/resources/shade.py @@ -49,7 +49,7 @@ def factory(raw_data, request): classes = [ ShadeBottomUp, ShadeBottomUpTilt, - Silhouette, + Shad...
Rename Silhoutee to match standard - ShadeBottomUpTilt<I> to match functionaility
py
diff --git a/jax/lax/lax.py b/jax/lax/lax.py index <HASH>..<HASH> 100644 --- a/jax/lax/lax.py +++ b/jax/lax/lax.py @@ -4778,7 +4778,8 @@ def _rng_uniform_abstract_eval(a, b, *, shape): return ShapedArray(shape, a.dtype) def _rng_uniform_translation_rule(c, a, b, *, shape): - return xops.RngUniform(a, b, shape) +...
Fix lax.rng_uniform. (#<I>)
py
diff --git a/pmxbot/core.py b/pmxbot/core.py index <HASH>..<HASH> 100644 --- a/pmxbot/core.py +++ b/pmxbot/core.py @@ -244,7 +244,13 @@ class LoggingCommandBot(irc.bot.SingleServerIRCBot): connection.privmsg(channel, "You summoned me, master %s?" % nick) def _handle_output(self, channel, output): - for item in ...
Rewrite _handle_output to be a bit more readable. Also, be sure to pass the initial channel.
py
diff --git a/uproot/interp/auto.py b/uproot/interp/auto.py index <HASH>..<HASH> 100644 --- a/uproot/interp/auto.py +++ b/uproot/interp/auto.py @@ -127,7 +127,8 @@ def interpret(branch, swapbytes=True): if len(branch.fLeaves) == 1: if isinstance(branch._streamer, uproot.rootio.TStreamerObjectPointe...
Minor modification to histogram reading code
py
diff --git a/bitshares/storage.py b/bitshares/storage.py index <HASH>..<HASH> 100644 --- a/bitshares/storage.py +++ b/bitshares/storage.py @@ -27,8 +27,8 @@ class DataDir(object): **Windows:** - * `C:\Documents and Settings\<User>\Application Data\Local Settings\<AppAuthor>\<AppName>` - * `...
[fix] paths need to be escaped in doc
py
diff --git a/openquake/hazardlib/calc/hazard_curve.py b/openquake/hazardlib/calc/hazard_curve.py index <HASH>..<HASH> 100644 --- a/openquake/hazardlib/calc/hazard_curve.py +++ b/openquake/hazardlib/calc/hazard_curve.py @@ -61,7 +61,7 @@ import numpy from openquake.baselib.python3compat import raise_, zip from openq...
Accepted sources of different TRTs in calc_hazard_curves_ext
py
diff --git a/cheroot/test/test_core.py b/cheroot/test/test_core.py index <HASH>..<HASH> 100644 --- a/cheroot/test/test_core.py +++ b/cheroot/test/test_core.py @@ -282,8 +282,8 @@ def test_content_length_required(test_client): def test_large_request(test_client_with_defaults): """Test GET query with maliciously la...
Wrap a line that's too long in test_core Hotfix of a typo from PR #<I>
py
diff --git a/spyderlib/widgets/ipython.py b/spyderlib/widgets/ipython.py index <HASH>..<HASH> 100644 --- a/spyderlib/widgets/ipython.py +++ b/spyderlib/widgets/ipython.py @@ -322,7 +322,7 @@ These commands were executed: call_info, doc = None, None else: call_info, doc =...
IPython Widget: Fix an error while trying to get an object's signature without docstring
py
diff --git a/climlab/tests/test_rrtm.py b/climlab/tests/test_rrtm.py index <HASH>..<HASH> 100644 --- a/climlab/tests/test_rrtm.py +++ b/climlab/tests/test_rrtm.py @@ -60,7 +60,8 @@ def test_radiative_forcing(): # Fixed relative humidity h2o = climlab.radiation.ManabeWaterVapor(state=state) # Couple wat...
Update syntax in test_rrtm.py for API changes.
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -55,7 +55,7 @@ copyright = u'2014, Daniel Lindsley' # The short X.Y version. version = '2.0.2' # The full version, including alpha/beta/rc tags. -release = '2.0.2-dev' +release = '2.0.2' # The language fo...
Version bump on docs title as well
py
diff --git a/tests/e2e/test_e2e.py b/tests/e2e/test_e2e.py index <HASH>..<HASH> 100644 --- a/tests/e2e/test_e2e.py +++ b/tests/e2e/test_e2e.py @@ -341,7 +341,10 @@ def test_e2e(caplog): labeler.apply(split=0, lfs=stg_temp_lfs, train=True, parallelism=PARALLEL) labeler.apply( - split=0, lfs=[stg_t...
Demonstrate that labeler.apply with docs instead of split fails
py
diff --git a/pyrax/utils.py b/pyrax/utils.py index <HASH>..<HASH> 100644 --- a/pyrax/utils.py +++ b/pyrax/utils.py @@ -292,7 +292,7 @@ def _wait_until(obj, att, desired, callback, interval, attempts, verbose, msgs = ["Current value of %s: %s (elapsed: %4.1f seconds)" % ( att, attval, e...
Fixed an edge case for objects whose attributes are not always available.
py
diff --git a/rest_framework_simplejwt/authentication.py b/rest_framework_simplejwt/authentication.py index <HASH>..<HASH> 100644 --- a/rest_framework_simplejwt/authentication.py +++ b/rest_framework_simplejwt/authentication.py @@ -38,7 +38,7 @@ class JWTAuthentication(authentication.BaseAuthentication): vali...
authenticate method should not return None in token is valid
py
diff --git a/Code/Version1.0/cannon1_train_model.py b/Code/Version1.0/cannon1_train_model.py index <HASH>..<HASH> 100644 --- a/Code/Version1.0/cannon1_train_model.py +++ b/Code/Version1.0/cannon1_train_model.py @@ -177,4 +177,13 @@ def model_diagnostics(training_set, model): fig.savefig(filename) plt.close(fi...
hist of chi squareds
py
diff --git a/src/board.py b/src/board.py index <HASH>..<HASH> 100755 --- a/src/board.py +++ b/src/board.py @@ -224,7 +224,7 @@ elif "sphinx" in sys.modules: else: raise NotImplementedError("Board not supported {}".format(board_id)) -try: +if "SCL" in locals() and "SDA" in locals(): def I2C(): ""...
Check if pins are in locals instead of try/except
py
diff --git a/chatterbot/corpus/corpus.py b/chatterbot/corpus/corpus.py index <HASH>..<HASH> 100644 --- a/chatterbot/corpus/corpus.py +++ b/chatterbot/corpus/corpus.py @@ -28,8 +28,9 @@ class Corpus(object): Read and return the data from a corpus json file. """ import json + import io ...
Added UTF-8 support for python <I> as well
py
diff --git a/pycbc/waveform/waveform.py b/pycbc/waveform/waveform.py index <HASH>..<HASH> 100644 --- a/pycbc/waveform/waveform.py +++ b/pycbc/waveform/waveform.py @@ -599,7 +599,7 @@ def get_td_waveform_from_fd(rwrap=0.2, **params): full_duration = get_waveform_filter_length_in_time(**nparams) nparams...
fix bug in get_td_from_fd that ignored f_ref (#<I>)
py
diff --git a/twine/cli.py b/twine/cli.py index <HASH>..<HASH> 100644 --- a/twine/cli.py +++ b/twine/cli.py @@ -25,7 +25,7 @@ import twine def _registered_commands(group='twine.registered_commands'): - return {c.name: c for c in pkg_resources.iter_entry_points(group=group)} + return dict( (c.name, c) for c in...
Added proper dict construction compatible with python <I>
py
diff --git a/tests/test_service.py b/tests/test_service.py index <HASH>..<HASH> 100644 --- a/tests/test_service.py +++ b/tests/test_service.py @@ -310,12 +310,12 @@ class OAuth1ServiceTestCase(RauthTestCase): expected_url = 'http://example.com/authorize?oauth_token=123' self.assertEqual(expected_url, ...
minor update of test_get_authorize_url_* Authorize URL is not supposed to carry `oauth_callback` param, but it MAY contain any number of additional parameters, as defined by the Service Provider. Note that "oauth_" prefix is reserved for OAuth parameters.
py
diff --git a/vyattaconfparser/parser.py b/vyattaconfparser/parser.py index <HASH>..<HASH> 100644 --- a/vyattaconfparser/parser.py +++ b/vyattaconfparser/parser.py @@ -25,8 +25,8 @@ class ParserException(Exception): def update_tree(config, path, val): t = config for n, i in enumerate(path): - if i.keys...
Allow tests to pass in python 3. Python 2 continues to work
py
diff --git a/pylon/pyreto/smart_market.py b/pylon/pyreto/smart_market.py index <HASH>..<HASH> 100644 --- a/pylon/pyreto/smart_market.py +++ b/pylon/pyreto/smart_market.py @@ -410,7 +410,7 @@ class SmartMarket(object): the units revenue and associated costs. """ t = self.period - se...
Changing settlement to be a dictionary, mapping generators to their dispatch info.
py
diff --git a/salt/modules/freebsdjail.py b/salt/modules/freebsdjail.py index <HASH>..<HASH> 100644 --- a/salt/modules/freebsdjail.py +++ b/salt/modules/freebsdjail.py @@ -138,3 +138,14 @@ def status(jail): cmd='jls | grep {0}'.format(jail) return not __salt__['cmd.retcode'](cmd) + +def sysctl(): + ''' + ...
Add sysctl method for dumping all jail related sysctl's
py
diff --git a/great_expectations/dataset/pandas_dataset.py b/great_expectations/dataset/pandas_dataset.py index <HASH>..<HASH> 100644 --- a/great_expectations/dataset/pandas_dataset.py +++ b/great_expectations/dataset/pandas_dataset.py @@ -789,6 +789,8 @@ class PandasDataSet(MetaPandasDataSet, pd.DataFrame): @MetaP...
statement and block errors. It runs now.
py
diff --git a/tests/test_cube.py b/tests/test_cube.py index <HASH>..<HASH> 100644 --- a/tests/test_cube.py +++ b/tests/test_cube.py @@ -19,7 +19,7 @@ class TestCube(ComparisonTestCase): def test_initialize_cube(self): cube = Cube(self.cube) self.assertEqual(cube.dimensions(label=True), - ...
Updated Cube unit test with correct lon/lat order
py
diff --git a/HydraServer/python/HydraServer/lib/network.py b/HydraServer/python/HydraServer/lib/network.py index <HASH>..<HASH> 100644 --- a/HydraServer/python/HydraServer/lib/network.py +++ b/HydraServer/python/HydraServer/lib/network.py @@ -1496,7 +1496,7 @@ def delete_node(node_id, purge_data,**kwargs): rai...
Improve map interaction, splitting out general, map and schematic code.
py
diff --git a/chess/uci.py b/chess/uci.py index <HASH>..<HASH> 100644 --- a/chess/uci.py +++ b/chess/uci.py @@ -678,6 +678,8 @@ class SpurProcess(object): self._result = None self.process = None + self.spawned = threading.Event() + self._waiting_thread = threading.Thread(target=self._...
Handle race condition with spur process spawning
py