diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/rhaptos/cnxmlutils/odt2cnxml.py b/rhaptos/cnxmlutils/odt2cnxml.py index <HASH>..<HASH> 100644 --- a/rhaptos/cnxmlutils/odt2cnxml.py +++ b/rhaptos/cnxmlutils/odt2cnxml.py @@ -144,7 +144,7 @@ def transform(odtfile, debug=False, outputdir=None): try: xml = etree.fromstring(etree.tostring...
In python<I> apparently etree.XMLSyntaxError.msg is always the empty string
py
diff --git a/benchexec/tools/veriabs.py b/benchexec/tools/veriabs.py index <HASH>..<HASH> 100644 --- a/benchexec/tools/veriabs.py +++ b/benchexec/tools/veriabs.py @@ -38,15 +38,15 @@ class Tool(benchexec.tools.template.BaseTool): def executable(self): return util.find_executable('scripts/veriabs') - ...
Fix bug in tool-info module for Veriabs, it must not change the passed list options.
py
diff --git a/src/_pytest/main.py b/src/_pytest/main.py index <HASH>..<HASH> 100644 --- a/src/_pytest/main.py +++ b/src/_pytest/main.py @@ -542,7 +542,15 @@ class Session(nodes.FSCollector): col = root._collectfile(argpath) if col: self._node_cache[argpath] = col - ...
Fix __init__.py as argument also including other package files
py
diff --git a/scripts/experiments/scrape_expout.py b/scripts/experiments/scrape_expout.py index <HASH>..<HASH> 100644 --- a/scripts/experiments/scrape_expout.py +++ b/scripts/experiments/scrape_expout.py @@ -63,6 +63,7 @@ class DPScraper(Scraper): exp.update(relaxTime = get_following_literal(stdout_lines, "...
scraping projected likelihood git-svn-id: svn+ssh://external.hltcoe.jhu.edu/home/hltcoe/mgormley/public/repos/dep_parse_filtered/trunk@<I> <I>f-cb4b-<I>-8b<I>-c<I>bcb<I>
py
diff --git a/mapchete/__init__.py b/mapchete/__init__.py index <HASH>..<HASH> 100644 --- a/mapchete/__init__.py +++ b/mapchete/__init__.py @@ -547,12 +547,11 @@ class Mapchete(object): elif isinstance(process_data, (list, types.GeneratorType)): return list(process_data) # for data, metada...
better capture data, metadata tuples
py
diff --git a/cloudvolume/secrets.py b/cloudvolume/secrets.py index <HASH>..<HASH> 100644 --- a/cloudvolume/secrets.py +++ b/cloudvolume/secrets.py @@ -80,10 +80,11 @@ def google_credentials(bucket = ''): project_name = json.loads(f.read())['project_id'] break - GOOGLE_CREDENTIALS_CACHE[bucket] = (pro...
misc enhancements (#<I>)
py
diff --git a/cassandra/cluster.py b/cassandra/cluster.py index <HASH>..<HASH> 100644 --- a/cassandra/cluster.py +++ b/cassandra/cluster.py @@ -837,8 +837,12 @@ class Session(object): self._load_balancer = cluster.load_balancing_policy self._metrics = cluster.metrics + # create connection pool...
Create conn pools in parallel when creating sesssions
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -112,11 +112,18 @@ def find_package_data( out.setdefault(package, []).append(prefix+name) return out +try: + import pypandoc + description = pypandoc.convert('README.md', 'rst') +except ImportErro...
Convert md to rst
py
diff --git a/psyplot/data.py b/psyplot/data.py index <HASH>..<HASH> 100755 --- a/psyplot/data.py +++ b/psyplot/data.py @@ -782,7 +782,10 @@ class CFDecoder(object): elif nans == 'skip': dims = [dim for dim in set(var.dims) - set(bounds.dims)] mask = var.notnull().all(list(...
Minor bug fix for 3D bounds
py
diff --git a/openquake/calculators/hazard/classical/core.py b/openquake/calculators/hazard/classical/core.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/hazard/classical/core.py +++ b/openquake/calculators/hazard/classical/core.py @@ -226,7 +226,6 @@ class ClassicalHazardCalculator(haz_general.BaseHazardCal...
calcs/hazard/classical/core: Cleaned up classical progress counter initialization code, to be more consistent with the approach in disagg. Former-commit-id: fd5be<I>c1b9addc<I>c7c3da6be<I>ce<I>fbb1
py
diff --git a/src/jsonlogger.py b/src/jsonlogger.py index <HASH>..<HASH> 100644 --- a/src/jsonlogger.py +++ b/src/jsonlogger.py @@ -2,6 +2,11 @@ import logging import json import re +#Support order in python 2.7 and 3 +try: + from collections import OrderedDict +except: + pass class JsonFormatter(logging.Fo...
Took advice to not import during log event
py
diff --git a/python/ray/worker.py b/python/ray/worker.py index <HASH>..<HASH> 100644 --- a/python/ray/worker.py +++ b/python/ray/worker.py @@ -494,6 +494,12 @@ def get_gpu_ids(): worker = global_worker worker.check_connected() + if worker.mode != WORKER_MODE: + logger.warning( + "`ray.g...
Add warning if get_gpu_ids() is called on the driver. (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ reqs = [str(req.req) for req in install_reqs] setup( name="astrocats", - version="0.1.6", + version=version, author="James Guillochon", author_email="guillochon@gmail.com", descripti...
BUG: wasn't passing version to setup
py
diff --git a/holoviews/plotting/plotly/__init__.py b/holoviews/plotting/plotly/__init__.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/plotly/__init__.py +++ b/holoviews/plotting/plotly/__init__.py @@ -126,6 +126,11 @@ options.Raster = Options('style', cmap=dflt_cmap) options.QuadMesh = Options('style', cmap=...
Fix datashader instability by disabling plot padding for Plotly RGB elements. (#<I>) * Disable plot padding for plotly RGB, Raster, and Image elements.
py
diff --git a/sortedm2m_filter_horizontal_widget/forms.py b/sortedm2m_filter_horizontal_widget/forms.py index <HASH>..<HASH> 100644 --- a/sortedm2m_filter_horizontal_widget/forms.py +++ b/sortedm2m_filter_horizontal_widget/forms.py @@ -7,7 +7,12 @@ from django.db.models.query import QuerySet from django.utils.encoding ...
Fix Django <I> warning This patch fix Django <I> warning: lib/python<I>/site-packages/sortedm2m_filter_horizontal_widget/forms.py:<I>: RemovedInDjango<I>Warning: The django.forms.util module has been renamed. Use django.forms.utils instead. from django.forms.util import flatatt
py
diff --git a/salt/modules/boto_ec2.py b/salt/modules/boto_ec2.py index <HASH>..<HASH> 100644 --- a/salt/modules/boto_ec2.py +++ b/salt/modules/boto_ec2.py @@ -81,9 +81,9 @@ def __virtual__(): # which was added in boto 2.8.0 # https://github.com/boto/boto/commit/33ac26b416fbb48a60602542b4ce15dcc7029f12 if...
Add return messages on boto library load failure lines for library not avalible and wrong version added.
py
diff --git a/ros_buildfarm/sourcedeb_job.py b/ros_buildfarm/sourcedeb_job.py index <HASH>..<HASH> 100644 --- a/ros_buildfarm/sourcedeb_job.py +++ b/ros_buildfarm/sourcedeb_job.py @@ -116,6 +116,11 @@ def build_sourcedeb(sources_dir, os_name=None, os_code_name=None): cmd += [ # dpkg-buildpackage args ...
add support for changing upstream content (#<I>) * add support for changing tarballs. This will auto commit changes to the upstream tarball as diffs for the debian increment. Addresses issue in #<I> * fix spelling * Change to append * making sure there's a new line * wrap
py
diff --git a/claripy/vsa/strided_interval.py b/claripy/vsa/strided_interval.py index <HASH>..<HASH> 100644 --- a/claripy/vsa/strided_interval.py +++ b/claripy/vsa/strided_interval.py @@ -411,7 +411,12 @@ class StridedInterval(object): stride = fractions.gcd(self.stride, b.stride) if overflow: - ...
more intelligently performing additions between BIs when there is an overflow.
py
diff --git a/KCOJ_api/api.py b/KCOJ_api/api.py index <HASH>..<HASH> 100644 --- a/KCOJ_api/api.py +++ b/KCOJ_api/api.py @@ -63,7 +63,7 @@ class KCOJ: except requests.exceptions.Timeout: return None - def get_question(self) -> dict: + def get_question(self, number: str=None) -> dict: ...
Use get_question(number) to get specific question info
py
diff --git a/src/pybel/manager/models.py b/src/pybel/manager/models.py index <HASH>..<HASH> 100644 --- a/src/pybel/manager/models.py +++ b/src/pybel/manager/models.py @@ -651,15 +651,15 @@ class Evidence(Base): def __str__(self): return '{}:{}'.format(self.citation, self.sha512[:8]) - def to_json(...
Propgate inclusion of id's to citation
py
diff --git a/claripy/frontends/replacement_frontend.py b/claripy/frontends/replacement_frontend.py index <HASH>..<HASH> 100644 --- a/claripy/frontends/replacement_frontend.py +++ b/claripy/frontends/replacement_frontend.py @@ -78,6 +78,14 @@ class ReplacementFrontend(ConstrainedFrontend): self._replacements[ol...
Added methods to safely allow removing replacements
py
diff --git a/umis/umis.py b/umis/umis.py index <HASH>..<HASH> 100644 --- a/umis/umis.py +++ b/umis/umis.py @@ -101,6 +101,8 @@ def tagcount(genemap, sam, out, output_evidence_table, positional, cb_filter): if cb_filter: with open(cb_filter) as fh: cb_filter = set(cb.strip() for cb in fh) + ...
using universal set type for default cb_filter Because I'm bored
py
diff --git a/bananas/admin/api/router.py b/bananas/admin/api/router.py index <HASH>..<HASH> 100644 --- a/bananas/admin/api/router.py +++ b/bananas/admin/api/router.py @@ -1,12 +1,14 @@ -from typing import Type - -from .mixins import BananasAPI from .schemas import BananasRouter __all__ = ["register"] -def regis...
Remove typing for py<I>
py
diff --git a/instaloader/__main__.py b/instaloader/__main__.py index <HASH>..<HASH> 100644 --- a/instaloader/__main__.py +++ b/instaloader/__main__.py @@ -93,6 +93,7 @@ def _main(instaloader: Instaloader, targetlist: List[str], latest_stamps = None if latest_stamps_file is not None: latest_stamps = L...
Log "Using latest stamps from ..." message Instaloader always logs which files are loaded and considered in the current run (such as session files or resume files). This commit adds a log message "Using latest stamps from ..." when using --latest-stamps, to be consistent.
py
diff --git a/test/feedforward_test.py b/test/feedforward_test.py index <HASH>..<HASH> 100644 --- a/test/feedforward_test.py +++ b/test/feedforward_test.py @@ -82,9 +82,8 @@ class TestWeightedClassifier(TestClassifier): def test_score_onelayer(self): net = self._build(13) - z = net.score(self.imag...
Make weights for test deterministic.
py
diff --git a/lib/svtplay/output.py b/lib/svtplay/output.py index <HASH>..<HASH> 100644 --- a/lib/svtplay/output.py +++ b/lib/svtplay/output.py @@ -1,7 +1,30 @@ import sys +import os from svtplay.log import log +progress_stream = sys.stderr + +def progress(byte, total, extra = ""): + """ Print some info about h...
Break out progress() to svtplay.output module Now it is very clear that progressbar() duplicates an existing function. But obsoleting one or the other is work for the future.
py
diff --git a/anyconfig/backend/bson.py b/anyconfig/backend/bson.py index <HASH>..<HASH> 100644 --- a/anyconfig/backend/bson.py +++ b/anyconfig/backend/bson.py @@ -68,7 +68,7 @@ class Parser(anyconfig.backend.base.FromStringLoader, _load_opts = [] if bson.has_c() else ["codec_options"] _dump_opts = [] if bson....
fix: [bson] order of items are not kept if C implemetation is used
py
diff --git a/tests/ignite/contrib/metrics/regression/test_fractional_bias.py b/tests/ignite/contrib/metrics/regression/test_fractional_bias.py index <HASH>..<HASH> 100644 --- a/tests/ignite/contrib/metrics/regression/test_fractional_bias.py +++ b/tests/ignite/contrib/metrics/regression/test_fractional_bias.py @@ -115,7...
reduce tolerence (#<I>) (#<I>)
py
diff --git a/app/preparation/mzidtsv/quant.py b/app/preparation/mzidtsv/quant.py index <HASH>..<HASH> 100644 --- a/app/preparation/mzidtsv/quant.py +++ b/app/preparation/mzidtsv/quant.py @@ -16,6 +16,13 @@ def generate_psms_quanted(quantdbfn, tsvfn, quantheader, oldheader): yield outpsm +def get_full_and_q...
Quant prep header maker disappeared. Also return strings to tsv writer
py
diff --git a/tests/test_Optimiser.py b/tests/test_Optimiser.py index <HASH>..<HASH> 100644 --- a/tests/test_Optimiser.py +++ b/tests/test_Optimiser.py @@ -31,7 +31,7 @@ class OptimiserTest(unittest.TestCase): self.optimiser.move_nodes(partition, fixed_nodes=fixed_nodes, consider_comms=leidenalg.ALL_NEIGH_COMMS); ...
Changed some text in test, and using a different initial membership.
py
diff --git a/zipline/pipeline/loaders/blaze.py b/zipline/pipeline/loaders/blaze.py index <HASH>..<HASH> 100644 --- a/zipline/pipeline/loaders/blaze.py +++ b/zipline/pipeline/loaders/blaze.py @@ -39,6 +39,7 @@ valid_deltas_node_types = ( bz.expr.ReLabel, bz.expr.Symbol, ) +is_invalid_deltas_node = complement(...
MAINT: name filter predicate
py
diff --git a/arctic/_compression.py b/arctic/_compression.py index <HASH>..<HASH> 100644 --- a/arctic/_compression.py +++ b/arctic/_compression.py @@ -1,5 +1,10 @@ from .logging import logger -import _compress as clz4 + +try: + from . import _compress as clz4 +except ImportError: + logger.warn("Couldn't import c...
Fallback to using the lz4 package if we can't import / build the cythonized lz4
py
diff --git a/cosmic_ray/cli.py b/cosmic_ray/cli.py index <HASH>..<HASH> 100644 --- a/cosmic_ray/cli.py +++ b/cosmic_ray/cli.py @@ -99,7 +99,10 @@ options: def _get_db_name(session_name): - return '{}.json'.format(session_name) + if session_name.endswith('.json'): + return session_name + else: + ...
Allow session-name.json to be passed on the command line this makes it easier to use bash tab completion
py
diff --git a/indra/sources/cwms/processor.py b/indra/sources/cwms/processor.py index <HASH>..<HASH> 100644 --- a/indra/sources/cwms/processor.py +++ b/indra/sources/cwms/processor.py @@ -148,11 +148,14 @@ class CWMSProcessor(object): if event_id in self.relation_subj_obj_ids: continue ...
Add polarity to Event in CWMS
py
diff --git a/keyring/backends/kwallet.py b/keyring/backends/kwallet.py index <HASH>..<HASH> 100644 --- a/keyring/backends/kwallet.py +++ b/keyring/backends/kwallet.py @@ -30,7 +30,7 @@ class DBusKeyring(KeyringBackend): bus.get_object('org.kde.kwalletd5', '/modules/kwalletd5') except dbus.DBusExce...
Make KWallet backend have lower priority than Secret Service backend Secret Service is an XDG standard and thus should be preferred on systems where both protocols are available.
py
diff --git a/ELiDE/ELiDE/screen.py b/ELiDE/ELiDE/screen.py index <HASH>..<HASH> 100644 --- a/ELiDE/ELiDE/screen.py +++ b/ELiDE/ELiDE/screen.py @@ -294,6 +294,7 @@ class MainScreen(Screen): if not self.dialog_todo: return self._update_dialog(self.dialog_todo.pop(0)) + self.app.engin...
Don't increment the last_result_idx until you've advanced the dialog
py
diff --git a/passwords/validators.py b/passwords/validators.py index <HASH>..<HASH> 100644 --- a/passwords/validators.py +++ b/passwords/validators.py @@ -26,6 +26,9 @@ COMMON_SEQUENCES = [ "qwertzuiopü*asdfghjklöä'>yxcvbnm;:_", "qaywsxedcrfvtgbzhnujmikolp", ] +DICT_CACHE = [] +DICT_FILESIZE = -1 +DICT_MAX_C...
Add simple dict cacheing for small dict sizes
py
diff --git a/backend/tests/fixtures/base.py b/backend/tests/fixtures/base.py index <HASH>..<HASH> 100644 --- a/backend/tests/fixtures/base.py +++ b/backend/tests/fixtures/base.py @@ -66,9 +66,8 @@ def client(app): def testdb(session_app): """Establish an application context before running the tests.""" app =...
[#<I>] Refactor Model.
py
diff --git a/galpy/orbit/integrateLinearOrbit.py b/galpy/orbit/integrateLinearOrbit.py index <HASH>..<HASH> 100644 --- a/galpy/orbit/integrateLinearOrbit.py +++ b/galpy/orbit/integrateLinearOrbit.py @@ -25,8 +25,13 @@ if PY3: else: #pragma: no cover _ext_suffix= '.so' for path in sys.path: + if not os.path.is...
Also use winmode to load DLL in integrateLinearOrbit
py
diff --git a/flask_appbuilder/tests/test_api.py b/flask_appbuilder/tests/test_api.py index <HASH>..<HASH> 100644 --- a/flask_appbuilder/tests/test_api.py +++ b/flask_appbuilder/tests/test_api.py @@ -2537,7 +2537,7 @@ class APITestCase(FABTestCase): """ client = self.app.test_client() self.bro...
fix: swagger test (#<I>)
py
diff --git a/dwave/cloud/testing/mocks.py b/dwave/cloud/testing/mocks.py index <HASH>..<HASH> 100644 --- a/dwave/cloud/testing/mocks.py +++ b/dwave/cloud/testing/mocks.py @@ -78,7 +78,7 @@ def structured_solver_data(id: str = None, "h_range": [-2.0, 2.0], "j_range": [-1.0, 1.0], "...
Update mocks for SAPI timing params type change (#<I>)
py
diff --git a/pipenv/cli.py b/pipenv/cli.py index <HASH>..<HASH> 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -1390,6 +1390,7 @@ def uninstall( ) ) package_names = project.parsed_pipfile['dev-packages'] + package_names = package_names.keys() pipfile...
fix: uninstall dev expecting tuple, not dict
py
diff --git a/subscriptions/tasks.py b/subscriptions/tasks.py index <HASH>..<HASH> 100644 --- a/subscriptions/tasks.py +++ b/subscriptions/tasks.py @@ -580,12 +580,17 @@ class FireWeekEstimateLast(Task): '*' in schedule.day_of_week): totals[day] = totals[day] + schedule.tota...
Changed weekday order of estimate metrics
py
diff --git a/tests/test_meta.py b/tests/test_meta.py index <HASH>..<HASH> 100644 --- a/tests/test_meta.py +++ b/tests/test_meta.py @@ -1,3 +1,5 @@ +from __future__ import unicode_literals, absolute_import, division + import re import pytest @@ -13,3 +15,13 @@ def test_meta_for_this_package(): dist = meta.load(...
Add another test demonstrating support for classic packages.
py
diff --git a/safe/messaging/item/brand.py b/safe/messaging/item/brand.py index <HASH>..<HASH> 100644 --- a/safe/messaging/item/brand.py +++ b/safe/messaging/item/brand.py @@ -23,7 +23,11 @@ from safe.utilities.resources import ( resource_url) class Brand(Text): - """A class to model the inasafe brand.""" + ...
Annotated brand class to indicate which version it was added in.
py
diff --git a/salt/states/service.py b/salt/states/service.py index <HASH>..<HASH> 100644 --- a/salt/states/service.py +++ b/salt/states/service.py @@ -93,6 +93,7 @@ def _enable(name, started, result=True, **kwargs): if __salt__['service.enabled'](name): # Service is enabled if started is True: + ...
Change output of states.service to reflect changes If a service is started, but already enabled, changes are now reflected to the user.
py
diff --git a/lmj/nn/flags.py b/lmj/nn/flags.py index <HASH>..<HASH> 100644 --- a/lmj/nn/flags.py +++ b/lmj/nn/flags.py @@ -84,6 +84,8 @@ g.add_argument('-C', '--cg-batches', type=int, metavar='N', help='use at most N batches for CG computation') g.add_argument('--initial-lambda', type=float, default=1....
Add a flag for controlling backtracking strategy during CG in the HF optimizer.
py
diff --git a/abilian/services/indexing/service.py b/abilian/services/indexing/service.py index <HASH>..<HASH> 100644 --- a/abilian/services/indexing/service.py +++ b/abilian/services/indexing/service.py @@ -303,7 +303,7 @@ def index_update(index, items): adapted = service.adapted session = Session(bind=db.sessi...
index update: don't add twice the same document during a single transaction
py
diff --git a/bulbs/content/forms.py b/bulbs/content/forms.py index <HASH>..<HASH> 100644 --- a/bulbs/content/forms.py +++ b/bulbs/content/forms.py @@ -1,19 +1,23 @@ from django import forms +from django.utils.functional import lazy from .models import Content -class DoctypeChoiceField(forms.ChoiceField): - "...
Replaced DoctypeChoiceField with a lazily evaluated function
py
diff --git a/glue/ligolw/lsctables.py b/glue/ligolw/lsctables.py index <HASH>..<HASH> 100644 --- a/glue/ligolw/lsctables.py +++ b/glue/ligolw/lsctables.py @@ -681,7 +681,7 @@ class SnglInspiralTable(table.Table): "bank_chisq": "real_4", "bank_chisq_dof": "int_4s", "con...
I committed a typo that I am fixing there is no int_4 type
py
diff --git a/tests/test_common.py b/tests/test_common.py index <HASH>..<HASH> 100644 --- a/tests/test_common.py +++ b/tests/test_common.py @@ -31,11 +31,13 @@ class TestClasses(object): assert _class is not eval(repr(_class)) def test_equality(self, _class, _copy): - _copy.foo = 'bar' - as...
Fix original not passed to deepcopy fixture
py
diff --git a/tests/build/test_build_request.py b/tests/build/test_build_request.py index <HASH>..<HASH> 100644 --- a/tests/build/test_build_request.py +++ b/tests/build/test_build_request.py @@ -1156,6 +1156,8 @@ class TestBuildRequest(object): build_request.set_params(**kwargs) build_json = build_req...
tests: make sure that git-branch is not being set to None
py
diff --git a/src/SALib/sample/saltelli.py b/src/SALib/sample/saltelli.py index <HASH>..<HASH> 100644 --- a/src/SALib/sample/saltelli.py +++ b/src/SALib/sample/saltelli.py @@ -1,5 +1,6 @@ from __future__ import division +import warnings import numpy as np from . import common_args @@ -28,7 +29,11 @@ def sam...
Display warning if seed value is set
py
diff --git a/yabt/utils.py b/yabt/utils.py index <HASH>..<HASH> 100644 --- a/yabt/utils.py +++ b/yabt/utils.py @@ -79,7 +79,7 @@ def rmtree(path: str): pass -def link_func(src: str, dst: str, force: bool=False): +def link_func(src: str, dst: str, force: bool=True): if force: try: ...
Allways force hard link. We encountered a bug when a python test depends on a cpp binary, in such cases once the binary was linked into the yabtwork workspace of the py test it will never be updated. After think about it a file can always be deleted in the origin and re-created thus links always should be forced.
py
diff --git a/script/bootstrap.py b/script/bootstrap.py index <HASH>..<HASH> 100755 --- a/script/bootstrap.py +++ b/script/bootstrap.py @@ -70,10 +70,10 @@ def update_win32_python(): def touch_config_gypi(): config_gypi = os.path.join(SOURCE_ROOT, 'vendor', 'node', 'config.gypi') - if not os.path.exists(config_gy...
Make sure the fake config.gypi can be parsed by node.js.
py
diff --git a/astroid/bases.py b/astroid/bases.py index <HASH>..<HASH> 100644 --- a/astroid/bases.py +++ b/astroid/bases.py @@ -43,7 +43,7 @@ PROPERTIES = {BUILTINS + '.property', 'abc.abstractproperty'} POSSIBLE_PROPERTIES = {"cached_property", "cachedproperty", "lazyproperty", "lazy_property",...
Add cache_readonly to POSSIBLE_PROPERTIES for pandas
py
diff --git a/satpy/tests/writer_tests/test_ninjotiff.py b/satpy/tests/writer_tests/test_ninjotiff.py index <HASH>..<HASH> 100644 --- a/satpy/tests/writer_tests/test_ninjotiff.py +++ b/satpy/tests/writer_tests/test_ninjotiff.py @@ -37,8 +37,11 @@ class FakeImage: self.mode = mode -modules = {'pyninjotiff.ni...
Fix import mocking for ninjotiff writer tests
py
diff --git a/aprslib/inet.py b/aprslib/inet.py index <HASH>..<HASH> 100644 --- a/aprslib/inet.py +++ b/aprslib/inet.py @@ -111,7 +111,7 @@ class IS(object): while True: try: self._connect() - if self.skip_login: + if not self.skip_login: ...
fix skip_login check being reversed
py
diff --git a/sacad/recurse.py b/sacad/recurse.py index <HASH>..<HASH> 100755 --- a/sacad/recurse.py +++ b/sacad/recurse.py @@ -222,22 +222,23 @@ def get_covers(work, args): except Exception as exception: stats["errors"] += 1 errors.append((path, artist, album, exception)) - if stat...
sacad_r: Fix error reporting
py
diff --git a/steam/sim.py b/steam/sim.py index <HASH>..<HASH> 100644 --- a/steam/sim.py +++ b/steam/sim.py @@ -201,7 +201,7 @@ class item(base.items.item): return self.get_name() def is_untradable(self): - return bool(not self._item["tradable"]) + return bool(not self._item.get("tradable")...
Fix errors from sim items without tradable flags or icons attached
py
diff --git a/xerox/darwin.py b/xerox/darwin.py index <HASH>..<HASH> 100644 --- a/xerox/darwin.py +++ b/xerox/darwin.py @@ -5,7 +5,6 @@ import subprocess -import commands from .base import * @@ -23,7 +22,7 @@ def copy(string): def paste(): """Returns system clipboard contents.""" try: - retur...
Use `subprocess.check_output` rather than `commands.getoutput`. `commands` is deprecated.
py
diff --git a/libarchive/constants/archive_entry.py b/libarchive/constants/archive_entry.py index <HASH>..<HASH> 100644 --- a/libarchive/constants/archive_entry.py +++ b/libarchive/constants/archive_entry.py @@ -1,11 +1,11 @@ -AE_IFMT = 0170000 -AE_IFREG = 0100000 -AE_IFLNK = 0120000 -AE_IFSOCK = 0140000 -AE_IFCHR ...
Added octal specifier to archive entry fields to prevent Python 3 errors.
py
diff --git a/gifi/queue.py b/gifi/queue.py index <HASH>..<HASH> 100644 --- a/gifi/queue.py +++ b/gifi/queue.py @@ -1,5 +1,6 @@ from command import Command, AggregatedCommand, CommandException from utils.git_utils import get_repo, check_repo_is_clean +import feature def _pop(): @@ -22,8 +23,10 @@ def _pop_finish(...
queue: do not push when you are at working_remote/target_branch
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -32,9 +32,11 @@ setup(name='instana', traces to your Instana dashboard.", zip_safe=False, install_requires=['autowrapt>=1.0', + 'basictracer>=3.0.0', + 'certifi>=201...
Add dependencies for the REST API client (#<I>) * Add dependencies for the REST API client * Add pyOpenSSL for Python <I>.x
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -72,7 +72,7 @@ setup( "eth-hash[pycryptodome]>=0.2.0,<1.0.0", "eth-typing>=2.0.0,<3.0.0", "eth-utils>=1.4.0,<2.0.0", - "ethpm==0.1.4a15", + "ethpm>=0.1.4a19,<2.0.0", "hexbytes>...
Update ethpm dep to latest alpha
py
diff --git a/packages/vaex-core/vaex/expression.py b/packages/vaex-core/vaex/expression.py index <HASH>..<HASH> 100644 --- a/packages/vaex-core/vaex/expression.py +++ b/packages/vaex-core/vaex/expression.py @@ -177,6 +177,10 @@ class Expression(with_metaclass(Meta)): def __getitem__(self, slice): return s...
feat: np.abs(df.x) and abs(df.x) now works, since it calls Expression.__abs__
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -7,14 +7,14 @@ from setuptools import setup setup( name = 'easyhid', - version = '0.0.0', + version = '0.0.1', description = "A simple interface to the HIDAPI library.", url = "http://github.com/ahtn/py...
remove ctypes from dependencies
py
diff --git a/aioxmpp/utils.py b/aioxmpp/utils.py index <HASH>..<HASH> 100644 --- a/aioxmpp/utils.py +++ b/aioxmpp/utils.py @@ -174,7 +174,7 @@ class LazyTask(asyncio.Future): def __iter__(self): self.__start_task() - return super().__iter__() + return iter(self.__task) if hasattr(as...
utils: fix python<I> incompatibility I have no idea why the old way doesn’t work though. I presume this is some internals of asyncio which changed.
py
diff --git a/h5netcdf/tests/test_h5netcdf.py b/h5netcdf/tests/test_h5netcdf.py index <HASH>..<HASH> 100644 --- a/h5netcdf/tests/test_h5netcdf.py +++ b/h5netcdf/tests/test_h5netcdf.py @@ -576,6 +576,9 @@ def test_failed_read_open_and_clean_delete(tmpdir): def test_create_variable_matching_saved_dimension(tmp_local_or_r...
xfail failing h5pyd test
py
diff --git a/openupgradelib/openupgrade_120.py b/openupgradelib/openupgrade_120.py index <HASH>..<HASH> 100644 --- a/openupgradelib/openupgrade_120.py +++ b/openupgradelib/openupgrade_120.py @@ -362,7 +362,7 @@ def _convert_field_bootstrap_3to4_orm(env, model_name, field_name, update_field_multilang( reco...
[FIX] typo in <I> tools Fix typo in openupgrade_<I> in `_convert_field_bootstrap_3to4_orm` method. it have to call string conversion.
py
diff --git a/docido_sdk/index/processor/es_api.py b/docido_sdk/index/processor/es_api.py index <HASH>..<HASH> 100644 --- a/docido_sdk/index/processor/es_api.py +++ b/docido_sdk/index/processor/es_api.py @@ -148,6 +148,10 @@ class ElasticsearchProcessor(IndexAPIProcessor): '_id': _id ...
es_api: don't even talk to the API if we have nothing to say
py
diff --git a/jsmin/test.py b/jsmin/test.py index <HASH>..<HASH> 100644 --- a/jsmin/test.py +++ b/jsmin/test.py @@ -317,5 +317,10 @@ var foo = "hey"; original = '/(NaN| {2}|^$)/.test(a)&&(a="M 0 0");' self.assertMinified(original, original) # there should be nothing jsmin can do here + def t...
Testing issue #<I> also when the regex is not at the start of the script.
py
diff --git a/tests/test_recommendation_manager.py b/tests/test_recommendation_manager.py index <HASH>..<HASH> 100644 --- a/tests/test_recommendation_manager.py +++ b/tests/test_recommendation_manager.py @@ -58,3 +58,29 @@ def test_recommendation_strategy(): 10, ...
Added a testcase to verify that ensemble recommendations are dispatching correctly.
py
diff --git a/test/test_cluster_spec.py b/test/test_cluster_spec.py index <HASH>..<HASH> 100644 --- a/test/test_cluster_spec.py +++ b/test/test_cluster_spec.py @@ -118,6 +118,14 @@ class TestAllScenarios(unittest.TestCase): pass +def cluster_type_name(cluster_type): + return CLUSTER_TYPE._fields[cluster_type...
PYTHON-<I> Better test_cluster_spec messages. If a server or cluster is the wrong type at the end of a test, print the type's name, not its number.
py
diff --git a/ccxt/exchanges.py b/ccxt/exchanges.py index <HASH>..<HASH> 100644 --- a/ccxt/exchanges.py +++ b/ccxt/exchanges.py @@ -116,6 +116,7 @@ import calendar import datetime import hashlib import json +import math import sys import time import decimal
added missing import math to ./ccxt/exchanges.py
py
diff --git a/shap/explainers/_partition.py b/shap/explainers/_partition.py index <HASH>..<HASH> 100644 --- a/shap/explainers/_partition.py +++ b/shap/explainers/_partition.py @@ -83,7 +83,7 @@ class Partition(Explainer): self.input_shape = masker.shape[1:] if hasattr(masker, "shape") and not callable(masker.sh...
Changed variable naming from x->args and unpacking of args when passed to the model
py
diff --git a/bika/lims/browser/analysisrequest/view.py b/bika/lims/browser/analysisrequest/view.py index <HASH>..<HASH> 100644 --- a/bika/lims/browser/analysisrequest/view.py +++ b/bika/lims/browser/analysisrequest/view.py @@ -104,6 +104,19 @@ class AnalysisRequestViewView(BrowserView): ...
Warning missage when you do a "full" retract on ARview
py
diff --git a/src/vistir/spin.py b/src/vistir/spin.py index <HASH>..<HASH> 100644 --- a/src/vistir/spin.py +++ b/src/vistir/spin.py @@ -112,6 +112,8 @@ class VistirSpinner(base_obj): """ self.handler = handler + import colorama + colorama.init() sigmap = {} if handler:...
make sure to init colorama in spinner
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 setup(name='dtw', - version='1.1', + version='1.2', description='Python DTW Module', author='Pierre Rouanet', author_email='pierre.rouanet@gmail.com...
Bump to version <I>
py
diff --git a/arviz/rcparams.py b/arviz/rcparams.py index <HASH>..<HASH> 100644 --- a/arviz/rcparams.py +++ b/arviz/rcparams.py @@ -234,15 +234,19 @@ class rc_context: # pylint: disable=invalid-name Examples -------- This allows one to do:: + with az.rc_context(fname='pystan.rc'): i...
fix code example in rc_context (#<I>)
py
diff --git a/MAVProxy/mavproxy.py b/MAVProxy/mavproxy.py index <HASH>..<HASH> 100755 --- a/MAVProxy/mavproxy.py +++ b/MAVProxy/mavproxy.py @@ -2278,10 +2278,11 @@ Auto-detected serial ports are: else: print("no script %s" % start_script) - # some core functionality is in modules - standard...
don't load log module in setup mode
py
diff --git a/angr/analyses/decompiler/structured_codegen.py b/angr/analyses/decompiler/structured_codegen.py index <HASH>..<HASH> 100644 --- a/angr/analyses/decompiler/structured_codegen.py +++ b/angr/analyses/decompiler/structured_codegen.py @@ -188,6 +188,8 @@ class CFunction(CConstruct): # pylint:disable=abstract-m...
StructuredCodeGen: Pretty print temporary variables. (#<I>)
py
diff --git a/salt/modules/network.py b/salt/modules/network.py index <HASH>..<HASH> 100644 --- a/salt/modules/network.py +++ b/salt/modules/network.py @@ -125,15 +125,15 @@ def subnets(): salt '*' network.subnets ''' ifaces = interfaces() - subnets = [] + subnetworks = [] for ipv4_info i...
network mod: rename subnets -> subnetworks, to avoid shadowing func
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -16,9 +16,13 @@ setup( version='1.0.5', packages=[ 'ntlm_auth' ], install_requires=[ - "six", - "ordereddict ; python_version<'2.7'" + 'six' ], + extras_require={ + ':python_v...
Fix environment markers being stripped when building python wheels (#<I>)
py
diff --git a/bcbio/structural/manta.py b/bcbio/structural/manta.py index <HASH>..<HASH> 100644 --- a/bcbio/structural/manta.py +++ b/bcbio/structural/manta.py @@ -105,6 +105,9 @@ def _prep_config(items, paired, work_dir): cmd += ["--exome"] for region in _maybe_limit_chromosomes(data): ...
Manta: configManta command line tweaks with resources/options
py
diff --git a/tests/pytests/unit/states/test_makeconf.py b/tests/pytests/unit/states/test_makeconf.py index <HASH>..<HASH> 100644 --- a/tests/pytests/unit/states/test_makeconf.py +++ b/tests/pytests/unit/states/test_makeconf.py @@ -28,9 +28,6 @@ def test_present(): assert makeconf.present(name) == ret -# 'a...
Move makeconf state tests to pytest
py
diff --git a/bika/lims/browser/analyses.py b/bika/lims/browser/analyses.py index <HASH>..<HASH> 100644 --- a/bika/lims/browser/analyses.py +++ b/bika/lims/browser/analyses.py @@ -43,7 +43,6 @@ class AnalysesView(BikaListingView): self.show_column_toggles = False self.pagesize = 0 self.form_id...
LIMS-<I>: Prevent merging of field/lab categories This was causing empty categories to display, also.
py
diff --git a/selectable/tests/views.py b/selectable/tests/views.py index <HASH>..<HASH> 100644 --- a/selectable/tests/views.py +++ b/selectable/tests/views.py @@ -1,9 +1,9 @@ from django.http import HttpResponseNotFound, HttpResponseServerError -def test_404(request): +def test_404(request, *args, **kwargs): ...
<I> added another argument to the error handler views.
py
diff --git a/salt/version.py b/salt/version.py index <HASH>..<HASH> 100644 --- a/salt/version.py +++ b/salt/version.py @@ -574,7 +574,7 @@ def dependency_information(include_salt_cloud=False): ('msgpack-python', 'msgpack', 'version'), ('msgpack-pure', 'msgpack_pure', 'version'), ('pycrypto', ...
fix the cryptodome version lookup for the versions report
py
diff --git a/tests/unit/utils/test_templates.py b/tests/unit/utils/test_templates.py index <HASH>..<HASH> 100644 --- a/tests/unit/utils/test_templates.py +++ b/tests/unit/utils/test_templates.py @@ -109,7 +109,7 @@ class RenderTestCase(TestCase): ctx = dict(context) ctx['var'] = 'OK' res = sa...
Re-fixed the copy-pasta error in the wempy_variable test from unit.utils.test_templates so it doesn't check for xml that wasn't defined in the template.
py
diff --git a/webssh/handler.py b/webssh/handler.py index <HASH>..<HASH> 100644 --- a/webssh/handler.py +++ b/webssh/handler.py @@ -48,6 +48,10 @@ class MixinHandler(object): raise InvalidValueError('Missing value {}'.format(name)) return value + def get_client_addr(self): + return self...
Move get_client_addr to MixinHandler
py
diff --git a/dynesty/nestedsamplers.py b/dynesty/nestedsamplers.py index <HASH>..<HASH> 100644 --- a/dynesty/nestedsamplers.py +++ b/dynesty/nestedsamplers.py @@ -547,6 +547,11 @@ class MultiEllipsoidSampler(Sampler): self.fmove = self.kwargs.get('fmove', 0.9) self.max_move = self.kwargs.get('max_move...
for pickling, remove 'rstate' from dictionary
py
diff --git a/livelossplot/plot_losses.py b/livelossplot/plot_losses.py index <HASH>..<HASH> 100644 --- a/livelossplot/plot_losses.py +++ b/livelossplot/plot_losses.py @@ -1,12 +1,12 @@ import warnings from typing import Type, Tuple, List, Optional, TypeVar - from livelossplot.main_logger import MainLogger from li...
fix(yapf) misc
py
diff --git a/ontquery/plugins/services/rdflib.py b/ontquery/plugins/services/rdflib.py index <HASH>..<HASH> 100644 --- a/ontquery/plugins/services/rdflib.py +++ b/ontquery/plugins/services/rdflib.py @@ -130,7 +130,7 @@ class rdflibLocal(OntService): # reccomended for local default implementation #prin...
rdflib service dont add duplicate objects to query result under some circumstances both "asdf" and "asdf"^^xsd:string may be present in a graph, therefore skip cases where the python object is identical
py
diff --git a/fundamentals/__version__.py b/fundamentals/__version__.py index <HASH>..<HASH> 100644 --- a/fundamentals/__version__.py +++ b/fundamentals/__version__.py @@ -1 +1 @@ -__version__ = '2.1.7' +__version__ = '2.2.0'
added a dbConn to the directory script runner and a execute_mysql_script function
py
diff --git a/custodian/vasp/handlers.py b/custodian/vasp/handlers.py index <HASH>..<HASH> 100644 --- a/custodian/vasp/handlers.py +++ b/custodian/vasp/handlers.py @@ -396,8 +396,13 @@ class VaspErrorHandler(ErrorHandler): actions.append({"dict": "INCAR", "action": {"_set": {"ALGO": "All"}}}) if ...
More appropriate grad_not_orth fix grad_not_orth is primarily an issue related to how VASP is compiled. Instead of changing ISMEAR, Custodian now checks to see if Algo = All or Algo = Damped is set, in which case Algo = Normal is the new algorithm. Algo = All is *not* modified if METAGGA = True or LHFCALC = True.
py
diff --git a/src/anyconfig/globals/datatypes.py b/src/anyconfig/globals/datatypes.py index <HASH>..<HASH> 100644 --- a/src/anyconfig/globals/datatypes.py +++ b/src/anyconfig/globals/datatypes.py @@ -27,6 +27,6 @@ class IOInfo(typing.NamedTuple): extension: str -IOI_KEYS: typing.Tuple[typing.Optional[typing.Any...
fix: correct an wrong type hint to .globals.IOI_KEYS
py
diff --git a/test/integration/007_graph_selection_tests/test_graph_selection.py b/test/integration/007_graph_selection_tests/test_graph_selection.py index <HASH>..<HASH> 100644 --- a/test/integration/007_graph_selection_tests/test_graph_selection.py +++ b/test/integration/007_graph_selection_tests/test_graph_selection....
fix a test bug dbt doing two things in the same second incorrectly failed the test
py
diff --git a/pinax/invitations/models.py b/pinax/invitations/models.py index <HASH>..<HASH> 100644 --- a/pinax/invitations/models.py +++ b/pinax/invitations/models.py @@ -39,7 +39,7 @@ class JoinInvitation(models.Model): message = models.TextField(null=True) sent = models.DateTimeField(default=timezone.now) ...
Add another `on_delete`
py
diff --git a/src/hamster/overview_activities.py b/src/hamster/overview_activities.py index <HASH>..<HASH> 100644 --- a/src/hamster/overview_activities.py +++ b/src/hamster/overview_activities.py @@ -140,7 +140,7 @@ class OverviewBox(gtk.VBox): self.delete_selected() return True elif (...
keyboard shortcut points should point to same launch edit action (so that the fact gets passed in and such)
py