diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/bin/write-htcondor-job-spec.py b/bin/write-htcondor-job-spec.py index <HASH>..<HASH> 100755 --- a/bin/write-htcondor-job-spec.py +++ b/bin/write-htcondor-job-spec.py @@ -209,18 +209,15 @@ if __name__ == '__main__': parser.print_help() sys.exit(1) - if not args.executableDir.endswith(...
Strip trailing / from directories in write-htcondor-job-spec.
py
diff --git a/bids/layout/index.py b/bids/layout/index.py index <HASH>..<HASH> 100644 --- a/bids/layout/index.py +++ b/bids/layout/index.py @@ -38,7 +38,12 @@ def _check_path_matches_patterns(path, patterns, root=None): # Path now can be downcast to str path = str(path) for patt in patterns: - if i...
fix: relativeness also affects Path patterns
py
diff --git a/components.py b/components.py index <HASH>..<HASH> 100644 --- a/components.py +++ b/components.py @@ -29,11 +29,11 @@ class Heading(Token): class Quote(Token): # pre: lines[i] = "> some text\n" def __init__(self, lines): - self.content = [ line.strip()[2:] for line in lines ] + sel...
🐛 fixed Quote inner-paragraph render issue
py
diff --git a/pymc3/model.py b/pymc3/model.py index <HASH>..<HASH> 100644 --- a/pymc3/model.py +++ b/pymc3/model.py @@ -67,6 +67,28 @@ def incorporate_methods(source=None, else: setattr(destination, method, None) +def get_named_nodes(graph): + """Get the named nodes in a theano graph + (i.e...
Moved get_named_nodes to model.py
py
diff --git a/src/_pytest/doctest.py b/src/_pytest/doctest.py index <HASH>..<HASH> 100644 --- a/src/_pytest/doctest.py +++ b/src/_pytest/doctest.py @@ -15,6 +15,7 @@ from _pytest._code.code import ReprFileLocation from _pytest._code.code import TerminalRepr from _pytest.compat import safe_getattr from _pytest.fixture...
Make pytest.skip work in doctest
py
diff --git a/pyvim/layout.py b/pyvim/layout.py index <HASH>..<HASH> 100644 --- a/pyvim/layout.py +++ b/pyvim/layout.py @@ -374,7 +374,7 @@ class SimpleArgToolbar(ConditionalContainer): def __init__(self): def get_tokens(cli): if cli.input_processor.arg is not None: - return [(T...
input_processor.arg is now a string, not a number.
py
diff --git a/esgfpid/defaults.py b/esgfpid/defaults.py index <HASH>..<HASH> 100644 --- a/esgfpid/defaults.py +++ b/esgfpid/defaults.py @@ -1,12 +1,14 @@ # Default values for the esgfpid library # List of prefixes -ACCEPTED_PREFIXES = ['21.14100','21.14101','21.14102','21.14103', '21.14104', '21.14foo'] +ACCEPTED_PR...
Added PalMod prefix to allowed prefixes.
py
diff --git a/core.py b/core.py index <HASH>..<HASH> 100644 --- a/core.py +++ b/core.py @@ -506,7 +506,6 @@ class Distribution: cmd_obj = self.command_obj.get (command) if not cmd_obj and create: cmd_obj = self.create_command_obj (command) - cmd_obj.ensure_ready () ...
Oops! Don't call 'ensure_ready()' in 'Distribution.find_command_obj()' -- that broke parsing command-line options. Instead call it in 'Command.find_peer()', which is why I added it to 'find_command_obj()' in the first place.
py
diff --git a/salt/modules/ps.py b/salt/modules/ps.py index <HASH>..<HASH> 100755 --- a/salt/modules/ps.py +++ b/salt/modules/ps.py @@ -63,7 +63,10 @@ def top(num_processes=5, interval=3): time.sleep(interval) usage = set() for process, start in start_usage.items(): - user, system = process.get_cpu...
related to #<I>, another place needs exception handling
py
diff --git a/django_messages/utils.py b/django_messages/utils.py index <HASH>..<HASH> 100644 --- a/django_messages/utils.py +++ b/django_messages/utils.py @@ -2,7 +2,6 @@ import re import django from django.utils.text import wrap from django.utils.translation import ugettext, ugettext_lazy as _ -from django.contrib....
Import Site model only if necessary (#<I>) When not using the Django sites framework, you get a RuntimeError because it is not installed, even if you set DJANGO_MESSAGES_NOTIFY to False. This can be avoided by importing the site model only when necessary.
py
diff --git a/pprofile.py b/pprofile.py index <HASH>..<HASH> 100755 --- a/pprofile.py +++ b/pprofile.py @@ -22,6 +22,9 @@ class _FileTiming(object): def getStatsFor(self, line): return self.line_dict.get(line, (0, 0)) + def getTotalTime(self): + return sum(x[1] for x in self.line_dict.itervalue...
Sort output by - and display - file total time, by default.
py
diff --git a/tests/test_config.py b/tests/test_config.py index <HASH>..<HASH> 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -224,6 +224,20 @@ def test_config_access_log_passing_in_run(app): assert app.config.ACCESS_LOG == True +async def test_config_access_log_passing_in_create_server(app): +...
async test for access_log in create_server
py
diff --git a/globus_cli/commands/task/event_list.py b/globus_cli/commands/task/event_list.py index <HASH>..<HASH> 100644 --- a/globus_cli/commands/task/event_list.py +++ b/globus_cli/commands/task/event_list.py @@ -21,13 +21,19 @@ def task_event_list(task_id, limit, filter_errors, filter_non_errors): """ clie...
Make task event-list filters mutually exclusive
py
diff --git a/tldap/base.py b/tldap/base.py index <HASH>..<HASH> 100644 --- a/tldap/base.py +++ b/tldap/base.py @@ -363,9 +363,7 @@ class LDAPobject(object): default_object_class_db = set(self._db_values[using]['objectClass']) | self._meta.object_classes default_object_class_db = list(default_object_cl...
We can't do this, it means objectClass doesn't get updated.
py
diff --git a/tomodachi/transport/aws_sns_sqs.py b/tomodachi/transport/aws_sns_sqs.py index <HASH>..<HASH> 100644 --- a/tomodachi/transport/aws_sns_sqs.py +++ b/tomodachi/transport/aws_sns_sqs.py @@ -351,7 +351,7 @@ class AWSSNSSQSTransport(Invoker): if cls.clients_creation_time.get(name) and cls.clients_cr...
Fixes older aiobotocore campability
py
diff --git a/ethereum/utils.py b/ethereum/utils.py index <HASH>..<HASH> 100644 --- a/ethereum/utils.py +++ b/ethereum/utils.py @@ -93,7 +93,7 @@ else: def ecrecover_to_pub(rawhash, v, r, s): - if coincurve and hasattr(coincurve, "PublicKey") and False: + if coincurve and hasattr(coincurve, "PublicKey"): ...
Removed and false to re-enable coincurve
py
diff --git a/alot/settings.py b/alot/settings.py index <HASH>..<HASH> 100644 --- a/alot/settings.py +++ b/alot/settings.py @@ -6,6 +6,7 @@ import json import mailcap import codecs import logging +import urwid from configobj import ConfigObj, ConfigObjError, flatten_errors, Section from validate import Validator ...
theme objects that read in theme config files and provide urwid.AttrSpec objects
py
diff --git a/import_order/sort.py b/import_order/sort.py index <HASH>..<HASH> 100644 --- a/import_order/sort.py +++ b/import_order/sort.py @@ -56,11 +56,7 @@ def canonical_sort_key(original_name, lineno, col_offset, relative, stdlib = False else: try: - site = getattr( - ...
Check ImportError only in try~except
py
diff --git a/soco/__init__.py b/soco/__init__.py index <HASH>..<HASH> 100644 --- a/soco/__init__.py +++ b/soco/__init__.py @@ -17,7 +17,7 @@ from .exceptions import SoCoException, UnknownSoCoException __author__ = "The SoCo-Team <python-soco@googlegroups.com>" # Please increment the version number and add the suffix ...
Set version to <I>-dev
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -37,7 +37,7 @@ if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() -version = '0.0.17' +version = '0.0.18' install_requires = [ 'chevron >= 0.13.1',
Release <I> (#<I>)
py
diff --git a/test/HardwareSource_test.py b/test/HardwareSource_test.py index <HASH>..<HASH> 100644 --- a/test/HardwareSource_test.py +++ b/test/HardwareSource_test.py @@ -418,6 +418,7 @@ class TestHardwareSourceClass(unittest.TestCase): while hardware_source.is_recording: time.sleep(0.01) ...
Fix race condition in acquisition test (suspend view). svn r<I>
py
diff --git a/tests/test_memory.py b/tests/test_memory.py index <HASH>..<HASH> 100644 --- a/tests/test_memory.py +++ b/tests/test_memory.py @@ -282,4 +282,4 @@ class TestRemovalOfFilesAndDirs(TestCase): def test_double_dir_creation_fails(self): a = self.root_path / "a" a.mkdir() - self.fail...
implemented IOError for double-mkdir-creation
py
diff --git a/deployment/freebsd/__init__.py b/deployment/freebsd/__init__.py index <HASH>..<HASH> 100644 --- a/deployment/freebsd/__init__.py +++ b/deployment/freebsd/__init__.py @@ -10,6 +10,7 @@ from fabric.contrib.files import upload_template from ezjailremote import fabfile as ezjail from ezjaildeploy import api ...
use the ssh config for connecting to hosts
py
diff --git a/zinnia/tests/views.py b/zinnia/tests/views.py index <HASH>..<HASH> 100644 --- a/zinnia/tests/views.py +++ b/zinnia/tests/views.py @@ -544,8 +544,8 @@ class ZinniaViewsTestCase(ViewsBaseCase): self.assertEquals( self.client.post('/trackback/1/', ...
Pep8 on tests/views.py
py
diff --git a/acos_client/v21/slb/service_group.py b/acos_client/v21/slb/service_group.py index <HASH>..<HASH> 100644 --- a/acos_client/v21/slb/service_group.py +++ b/acos_client/v21/slb/service_group.py @@ -38,10 +38,10 @@ class ServiceGroup(base.BaseV21): STATELESS_DESTINATION_IP_HASH = 11 STATELESS_SOURCE_D...
Corrected incorrect SG lb method integers
py
diff --git a/doc/conf.py b/doc/conf.py index <HASH>..<HASH> 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -41,7 +41,7 @@ latex_macros = r""" \def \d {\operatorname{d}\!} """ katex_macros = katex.latex_defs_to_katex_macros(latex_macros) -katex_options = 'macros: {' + katex_macros + '}' +katex_optio...
DOC: avoid warning for newline in LaTeX code
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -52,7 +52,7 @@ install_requirements = [ "f90nml", "pyam-iamc @ git+https://github.com/IAMconsortium/pyam.git@master", "PyYAML", - "expectexception @ git+https://github.com/thedataincubator/expectexception.git...
Fix expectexception install Turns out I'm an idiot, this url business isn't needed, see <URL>
py
diff --git a/aegean.py b/aegean.py index <HASH>..<HASH> 100755 --- a/aegean.py +++ b/aegean.py @@ -495,7 +495,7 @@ def result_to_components(result, model, island_data, isflags): if local_beam is not None: source.psf_a = local_beam.a*3600 source.psf_b = local_beam.b*3600 - s...
psf_pa is now in degrees instead of arcsec
py
diff --git a/paperwork_backend/fs.py b/paperwork_backend/fs.py index <HASH>..<HASH> 100644 --- a/paperwork_backend/fs.py +++ b/paperwork_backend/fs.py @@ -224,7 +224,10 @@ class GioFileSystem(object): def safe(self, uri): if "://" not in uri: # assume local path - uri = "file://" +...
Windows/FS: urllib.parse.quote() messes everything for some reason (Gio.GFile bug ?)
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -25,7 +25,7 @@ import sys, os # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ['sphinx.ext.aut...
Fix sphinx extension conflict This change removes the pngmath extensions to fix the doc building error happening with <I>: sphinx.ext.mathjax: other math package is already loaded
py
diff --git a/androguard/core/bytecodes/dvm.py b/androguard/core/bytecodes/dvm.py index <HASH>..<HASH> 100644 --- a/androguard/core/bytecodes/dvm.py +++ b/androguard/core/bytecodes/dvm.py @@ -1860,14 +1860,10 @@ class StringDataItem: def get(self): s = mutf8.decode(self.data) assert len(s) == self...
change the decoding of string yet again
py
diff --git a/meshio/msh_io/msh4.py b/meshio/msh_io/msh4.py index <HASH>..<HASH> 100644 --- a/meshio/msh_io/msh4.py +++ b/meshio/msh_io/msh4.py @@ -128,7 +128,7 @@ def _read_nodes(f, is_ascii, int_size, data_size): num_nodes, = fromfile(f, c_size_t, 1) for i in range(num_nodes): - ...
"Node and element tags changed to size_t" MSH<I> #<I>
py
diff --git a/src/python/dxpy/scripts/dx_build_app.py b/src/python/dxpy/scripts/dx_build_app.py index <HASH>..<HASH> 100755 --- a/src/python/dxpy/scripts/dx_build_app.py +++ b/src/python/dxpy/scripts/dx_build_app.py @@ -242,7 +242,9 @@ def _lint(dxapp_json_filename, mode): readme_filename = _find_readme(os.path...
PTFM-<I> Don't allow "description" field to shadow Readme.md
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='pyshorteners', - version='0.2.3', + version='0.2.4', license='MIT', description=('A simple URL shortening Python Lib, implementing ' ...
New version on pypi
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 @@ -475,13 +475,14 @@ class OutlineExplorerTreeWidget(OneColumnTree): def root_item_selec...
When show_all_files, don't auto expand root
py
diff --git a/vyper/builtin_functions/functions.py b/vyper/builtin_functions/functions.py index <HASH>..<HASH> 100644 --- a/vyper/builtin_functions/functions.py +++ b/vyper/builtin_functions/functions.py @@ -2094,7 +2094,7 @@ class Uint2Str(_SimpleBuiltinFunction): ret = [ "if", ...
fix: avoid dirty byte edge case in uint2str (#<I>) the existing implementation used a single mstore, but the first byte of the length might be dirty. to ensure the entire bytestring is clean, use two mstores.
py
diff --git a/lib/search_engine.py b/lib/search_engine.py index <HASH>..<HASH> 100644 --- a/lib/search_engine.py +++ b/lib/search_engine.py @@ -47,6 +47,8 @@ import md5 import base64 import unicodedata +from xml.dom import minidom + ## import CDSware stuff: from cdsware.config import * from cdsware.search_engine_...
discard the XML envelop around on-the-fly formatted records, only keep the HTML content.
py
diff --git a/spyderlib/start_app.py b/spyderlib/start_app.py index <HASH>..<HASH> 100644 --- a/spyderlib/start_app.py +++ b/spyderlib/start_app.py @@ -78,6 +78,9 @@ def main(): if not lock.lock(): if args: send_args_to_spyder(args) + else: + print("Sp...
Print a message if Spyder is running in single instance mode and no args are passed to it Fixes #<I>
py
diff --git a/pyres/job.py b/pyres/job.py index <HASH>..<HASH> 100644 --- a/pyres/job.py +++ b/pyres/job.py @@ -79,7 +79,7 @@ class Job(object): check_after = True try: if before_perform: - before_perform(metadata) + before_perform(payload_class, metadata) ...
adding payload_class to both before and after perform
py
diff --git a/colorlog/colorlog.py b/colorlog/colorlog.py index <HASH>..<HASH> 100644 --- a/colorlog/colorlog.py +++ b/colorlog/colorlog.py @@ -87,9 +87,9 @@ class ColoredFormatter(logging.Formatter): else: fmt = default_formats['%'] - if sys.version_info > (3, 8) and isinstance(se...
Add check if fmt is dict, missed an elif
py
diff --git a/pysat/_constellation.py b/pysat/_constellation.py index <HASH>..<HASH> 100644 --- a/pysat/_constellation.py +++ b/pysat/_constellation.py @@ -146,10 +146,9 @@ class Constellation(object): **kwargs : dict reference References a dict of input keyword arguments - Note - -...
DOC: updated docstring section Moved Note comments to See Also, the more appropriate section.
py
diff --git a/salt/modules/test.py b/salt/modules/test.py index <HASH>..<HASH> 100644 --- a/salt/modules/test.py +++ b/salt/modules/test.py @@ -326,16 +326,15 @@ def fib(num): start = time.time() if num < 2: return num, time.time() - start - return _fib(num-1) + _fib(num-2), time.time() - start +...
Non-recursive fibonacci implementation.
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -52,7 +52,7 @@ master_doc = 'index' # General information about the project. project = u'py-KISSmetrics' -copyright = u'2013, Ernest W. Durbin III, Nick Murphy' +copyright = u'2013, KISSmetrics' # OH THE...
Corrected the copyright variable used in documentation generation.
py
diff --git a/devassistant/assistants/python.py b/devassistant/assistants/python.py index <HASH>..<HASH> 100644 --- a/devassistant/assistants/python.py +++ b/devassistant/assistants/python.py @@ -1,3 +1,5 @@ +import plumbum + from devassistant import argument from devassistant import assistant_base from devassistant ...
DjangoAssistant now more or less works (except some error handling
py
diff --git a/jupytext/formats.py b/jupytext/formats.py index <HASH>..<HASH> 100644 --- a/jupytext/formats.py +++ b/jupytext/formats.py @@ -188,6 +188,8 @@ def check_file_version(notebook, source_path, outputs_path): return _, ext = os.path.splitext(source_path) + if ext == '.ipynb': + return ...
Do not test format version for ipynb
py
diff --git a/ipyrad/assemble/cluster_within.py b/ipyrad/assemble/cluster_within.py index <HASH>..<HASH> 100644 --- a/ipyrad/assemble/cluster_within.py +++ b/ipyrad/assemble/cluster_within.py @@ -549,6 +549,8 @@ def concat_edits(data, sample): sample.files.edits = [(tmphandle1, )] return sample + + ...
fix to key/sample selection
py
diff --git a/jarn/mkrelease/tee.py b/jarn/mkrelease/tee.py index <HASH>..<HASH> 100644 --- a/jarn/mkrelease/tee.py +++ b/jarn/mkrelease/tee.py @@ -11,7 +11,7 @@ try: except NameError: from .utils import callable -__all__ = ['run', 'On', 'Off', 'NotEmpty', 'Equals', +__all__ = ['run', 'On', 'Off', 'NotEmpty', 'E...
Add Contains tee filter.
py
diff --git a/tests/utils/httpd.py b/tests/utils/httpd.py index <HASH>..<HASH> 100644 --- a/tests/utils/httpd.py +++ b/tests/utils/httpd.py @@ -17,8 +17,11 @@ class ETagHandler(SimpleHTTPRequestHandler): SimpleHTTPRequestHandler.end_headers(self) -class StaticFileServer(): +class StaticFileServer: + __se...
test: httpd: add lock for server
py
diff --git a/lettuce/languages.py b/lettuce/languages.py index <HASH>..<HASH> 100644 --- a/lettuce/languages.py +++ b/lettuce/languages.py @@ -85,7 +85,7 @@ LANGUAGES = { 'scenario': u'Scénario', 'scenario_outline': u'Plan de Scénario|Plan du Scénario', 'scenario_separator': u'(Plan de Scénar...
Add "background" translation for 'fr' language
py
diff --git a/tripleohelper/ssh.py b/tripleohelper/ssh.py index <HASH>..<HASH> 100644 --- a/tripleohelper/ssh.py +++ b/tripleohelper/ssh.py @@ -112,6 +112,7 @@ class SshClient(object): self.description = '[%s@%s]' % (self._user, self._hostname) + excepti...
SshClient: Re-raise the exception from paramiko Re-raise the latest exception from paramiko instead of a generic SSHException to be able to filter on different cases (SSHAuthenticationError for example) in the calling code. Change-Id: Ica1d<I>fa5a2c<I>b<I>cc5aa<I>da<I>bbaa<I>
py
diff --git a/hacking/core.py b/hacking/core.py index <HASH>..<HASH> 100644 --- a/hacking/core.py +++ b/hacking/core.py @@ -19,7 +19,6 @@ Built as a sets of pep8 checks using flake8. """ import gettext -import logging import sys import pbr.util @@ -27,9 +26,6 @@ import pep8 from hacking import config -# Don...
Don't change log level as import side effect Make hacking.core importable without having the side-effect of changing log levels. Change-Id: I8cdffeeea<I>cd<I>dd2ae4e<I>fce7e<I>e0ff<I>
py
diff --git a/alerta/app/database.py b/alerta/app/database.py index <HASH>..<HASH> 100644 --- a/alerta/app/database.py +++ b/alerta/app/database.py @@ -282,6 +282,11 @@ class Mongo(object): "event": {'$ne': alert.event}, "correlate": alert.event, "severity":...
Correlate alerts with same severity
py
diff --git a/allennlp/training/trainer.py b/allennlp/training/trainer.py index <HASH>..<HASH> 100644 --- a/allennlp/training/trainer.py +++ b/allennlp/training/trainer.py @@ -819,8 +819,12 @@ class Trainer: training_state_path = os.path.join(self._serialization_dir, ...
Avoid GPU OOM when loading large models (#<I>)
py
diff --git a/cyphi/compute.py b/cyphi/compute.py index <HASH>..<HASH> 100644 --- a/cyphi/compute.py +++ b/cyphi/compute.py @@ -268,8 +268,7 @@ def _big_mip(cache_key, subsystem): return _null_mip(subsystem) # Get the connectivity of just the subsystem nodes. - submatrix_indices = np.ix_([node.index f...
Use new, simpler syntax to get subsystem indices
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,10 +13,11 @@ else: data_prefix = os.path.join(sys.prefix, 'share', 'androguard') # IPython Issue: For python2.x, a version <6 is required -if sys.version_info >= (3,3): - install_requires = ['pyasn1<=0.2.3', 'cr...
resolve #<I> by disallowing <I> and <I> of pyasn1
py
diff --git a/py/h2o_cmd.py b/py/h2o_cmd.py index <HASH>..<HASH> 100644 --- a/py/h2o_cmd.py +++ b/py/h2o_cmd.py @@ -282,7 +282,7 @@ def sleep_with_dot(sec, message=None): # and testdir_multi_jvm/test_benchmark_import.py # might be able to use more widely def check_enums_from_inspect(parseKey): - inspect = h2o_cmd....
forgot to remove h2o_cmd. prefix
py
diff --git a/tensorflow_probability/python/layers/distribution_layer.py b/tensorflow_probability/python/layers/distribution_layer.py index <HASH>..<HASH> 100644 --- a/tensorflow_probability/python/layers/distribution_layer.py +++ b/tensorflow_probability/python/layers/distribution_layer.py @@ -107,16 +107,15 @@ class D...
Proposed updates to distribution_lambda example docstring: remove superfluous event_size line, add input_dim to Dense layer, change output ranges to scalars, and update description of output. PiperOrigin-RevId: <I>
py
diff --git a/safe/utilities/metadata.py b/safe/utilities/metadata.py index <HASH>..<HASH> 100644 --- a/safe/utilities/metadata.py +++ b/safe/utilities/metadata.py @@ -89,8 +89,8 @@ def read_iso19115_metadata(layer_uri, keyword=None): # dictionary comprehension keywords = {x[0]: x[1]['value'] for x in metada...
Update rule to catch invalid xml metadata file.
py
diff --git a/pytorch_transformers/tokenization_utils.py b/pytorch_transformers/tokenization_utils.py index <HASH>..<HASH> 100644 --- a/pytorch_transformers/tokenization_utils.py +++ b/pytorch_transformers/tokenization_utils.py @@ -266,7 +266,7 @@ class PreTrainedTokenizer(object): with open(added_tokens_file...
make save_pretrained work with added tokens right now it's dumping the *decoder* when it should be dumping the *encoder*. this fixes that.
py
diff --git a/elasticsearch/transport.py b/elasticsearch/transport.py index <HASH>..<HASH> 100644 --- a/elasticsearch/transport.py +++ b/elasticsearch/transport.py @@ -335,11 +335,12 @@ class Transport(object): raise else: + # connection didn't fail, confirm it's live s...
A connection should be marked live with HEAD too. (#<I>)
py
diff --git a/saltcloud/clouds/rackspace.py b/saltcloud/clouds/rackspace.py index <HASH>..<HASH> 100644 --- a/saltcloud/clouds/rackspace.py +++ b/saltcloud/clouds/rackspace.py @@ -307,9 +307,10 @@ def create(vm_): deploy_kwargs['make_master'] = True deploy_kwargs['master_pub'] = vm_['master_pub...
Fix the logic for make_syndic in Rackspace
py
diff --git a/spyderlib/widgets/qscieditor.py b/spyderlib/widgets/qscieditor.py index <HASH>..<HASH> 100644 --- a/spyderlib/widgets/qscieditor.py +++ b/spyderlib/widgets/qscieditor.py @@ -1436,12 +1436,18 @@ class QsciEditor(TextEditBaseWidget): def dragEnterEvent(self, event): """Reimplement Qt method ...
Editor widget/bugfix: Drag'n drop inside a QsciEditor was not working following recent change (to fix bad behaviour on GNU/Linux)
py
diff --git a/openquake/db/models.py b/openquake/db/models.py index <HASH>..<HASH> 100644 --- a/openquake/db/models.py +++ b/openquake/db/models.py @@ -1756,6 +1756,32 @@ class Gmf(djm.Model): class DisaggResult(djm.Model): + """ + Storage for disaggregation historgrams. Each histogram is stored in + `matr...
db/models: Added some doc for `DisaggResult` table model. Former-commit-id: e<I>adbdc<I>c9d<I>a<I>e<I>c<I>caca<I>
py
diff --git a/resolwe/flow/managers/workload_connectors/kubernetes.py b/resolwe/flow/managers/workload_connectors/kubernetes.py index <HASH>..<HASH> 100644 --- a/resolwe/flow/managers/workload_connectors/kubernetes.py +++ b/resolwe/flow/managers/workload_connectors/kubernetes.py @@ -27,7 +27,7 @@ from django.db.models.f...
Add label to separate batch and interactive jobs
py
diff --git a/telemetry/telemetry/core/backends/chrome/tracing_backend.py b/telemetry/telemetry/core/backends/chrome/tracing_backend.py index <HASH>..<HASH> 100644 --- a/telemetry/telemetry/core/backends/chrome/tracing_backend.py +++ b/telemetry/telemetry/core/backends/chrome/tracing_backend.py @@ -15,9 +15,12 @@ DEFAUL...
Allow blink.console or webkit.console in telemetry This is in preparation of me renaming the "webkit*" category to "blink*" in the blink codebase. Once that change has rolled into chromium I'll do another CL for chromium to remove the "webkit.console" entry. BUG=<I> Review URL: <URL>
py
diff --git a/pysat/__init__.py b/pysat/__init__.py index <HASH>..<HASH> 100644 --- a/pysat/__init__.py +++ b/pysat/__init__.py @@ -2,6 +2,7 @@ from __future__ import print_function from __future__ import absolute_import import os +import pysatCDF # get home directory home_dir = os.path.expanduser('~')
Testing build of pysatCDF on travis
py
diff --git a/scuba/__main__.py b/scuba/__main__.py index <HASH>..<HASH> 100755 --- a/scuba/__main__.py +++ b/scuba/__main__.py @@ -46,7 +46,7 @@ def make_vol_opt(hostdir, contdir, options=None): '''Generate a docker volume option''' vol = '--volume={0}:{1}'.format(hostdir, contdir) if options != None: - ...
make test for 'basestring' Python 3 compatible This should just be a str anyway.
py
diff --git a/datajoint/autopopulate.py b/datajoint/autopopulate.py index <HASH>..<HASH> 100644 --- a/datajoint/autopopulate.py +++ b/datajoint/autopopulate.py @@ -96,7 +96,7 @@ class AutoPopulate: def populate(self, *restrictions, suppress_errors=False, return_exception_objects=False, reserve_j...
Populate() can take kwargs that are passed down to each make() call.
py
diff --git a/aioredis/client.py b/aioredis/client.py index <HASH>..<HASH> 100644 --- a/aioredis/client.py +++ b/aioredis/client.py @@ -4291,7 +4291,8 @@ class Pipeline(Redis): # lgtm [py/init-calls-subclass] await self.connection.read_response() except ConnectionError: # ...
avoid exception when the remote closes the connection being locally reset (perhaps due to an error)
py
diff --git a/sysconfig.py b/sysconfig.py index <HASH>..<HASH> 100644 --- a/sysconfig.py +++ b/sysconfig.py @@ -23,7 +23,7 @@ BASE_PREFIX = os.path.normpath(sys.base_prefix) BASE_EXEC_PREFIX = os.path.normpath(sys.base_exec_prefix) # Path to the base directory of the project. On Windows the binary may -# live in pro...
bpo-<I>: correct PCBuild/ case to PCbuild/ in build scripts and docs (GH-<I>)
py
diff --git a/sorl_watermarker/engines/base.py b/sorl_watermarker/engines/base.py index <HASH>..<HASH> 100644 --- a/sorl_watermarker/engines/base.py +++ b/sorl_watermarker/engines/base.py @@ -1,12 +1,8 @@ -import os - - from django.contrib.staticfiles.finders import find from sorl.thumbnail.engines.base import EngineB...
base.py unused imports removed
py
diff --git a/ginga/util/plots.py b/ginga/util/plots.py index <HASH>..<HASH> 100644 --- a/ginga/util/plots.py +++ b/ginga/util/plots.py @@ -342,7 +342,8 @@ class ContourPlot(Plot): lbl.set(rotation=45, horizontalalignment='right') # Set the pan and zoom position & redraw - self...
Fixes for recent changes to matplotlib - fixes some plotting errors for contour and surface plots in ginga.util.plots that cropped up with the recent matplotlib changes
py
diff --git a/bika/lims/browser/analysisrequest/analysisrequests.py b/bika/lims/browser/analysisrequest/analysisrequests.py index <HASH>..<HASH> 100644 --- a/bika/lims/browser/analysisrequest/analysisrequests.py +++ b/bika/lims/browser/analysisrequest/analysisrequests.py @@ -725,9 +725,10 @@ class AnalysisRequestsView(B...
On the AR Listing, changed unassigned filter listing to to_be_sampled, sample_due, sample_received and attachment_due
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -282,7 +282,7 @@ extras_require = { 'snappy': ['python-snappy'], 'zstd': ['zstandard'], 'aws': ['pymongo-auth-aws<2.0.0'], - 'srv': ["dnspython>=1.16.0,<2.0.0"], + 'srv': ["dnspython>=1.16.0,<3.0.0"], } ...
PYTHON-<I> Allow dnspython 2 in srv extra (#<I>)
py
diff --git a/pymola/tree.py b/pymola/tree.py index <HASH>..<HASH> 100644 --- a/pymola/tree.py +++ b/pymola/tree.py @@ -434,8 +434,8 @@ def flatten_class(root: ast.Collection, orig_class: ast.Class, instance_name: st for connected_variables in flow_connections.values(): if connected_variables not in proces...
Flattener: Support flow connections consisting of a single variable.
py
diff --git a/opbeat/contrib/rq/__init__.py b/opbeat/contrib/rq/__init__.py index <HASH>..<HASH> 100644 --- a/opbeat/contrib/rq/__init__.py +++ b/opbeat/contrib/rq/__init__.py @@ -12,7 +12,7 @@ def register_opbeat(client, worker): worker.work() """ - def send_to_sentry(job, *exc_info): + def send_to_op...
Renamed function to "send_to_opbeat".
py
diff --git a/fmn/rules/git.py b/fmn/rules/git.py index <HASH>..<HASH> 100644 --- a/fmn/rules/git.py +++ b/fmn/rules/git.py @@ -18,7 +18,7 @@ def git_branch(config, message): Include this rule to receive notifications of new branches being created for Fedora package git repos. """ - return message['top...
Disambiguate git messages. Currently, the rule for ``git.receive`` also matches ``trac.git.receive`` which is sending fedorahosted messages to the scm-commits list. This should check that the fully qualified topic matches.
py
diff --git a/librosa/core/pitch.py b/librosa/core/pitch.py index <HASH>..<HASH> 100644 --- a/librosa/core/pitch.py +++ b/librosa/core/pitch.py @@ -146,10 +146,6 @@ def pitch_tuning(frequencies, resolution=0.01, bins_per_octave=12): return tuning[np.argmax(counts)] - - return pitches, magnitudes, D - - @cac...
fixed some dangling code in pitch
py
diff --git a/src/collectors/processresources/processresources.py b/src/collectors/processresources/processresources.py index <HASH>..<HASH> 100644 --- a/src/collectors/processresources/processresources.py +++ b/src/collectors/processresources/processresources.py @@ -118,7 +118,8 @@ calls."""), name: [regex...
add count_workers options to count number of workers, set False to default
py
diff --git a/src/ossos/core/ossos/gui/app.py b/src/ossos/core/ossos/gui/app.py index <HASH>..<HASH> 100644 --- a/src/ossos/core/ossos/gui/app.py +++ b/src/ossos/core/ossos/gui/app.py @@ -271,7 +271,6 @@ class ProcessTracksApplication(ValidationApplication): user_id=None, zoom=1): preload_iraf...
Removed line that sets discovery to False in track mode, need to put that somewhere but not here
py
diff --git a/etk/unit_tests/test_extractions_using_spacy.py b/etk/unit_tests/test_extractions_using_spacy.py index <HASH>..<HASH> 100644 --- a/etk/unit_tests/test_extractions_using_spacy.py +++ b/etk/unit_tests/test_extractions_using_spacy.py @@ -32,7 +32,7 @@ class TestExtractionsUsingSpacy(unittest.TestCase): ...
Running only social_media extraction test - to check for memory error
py
diff --git a/emirdrp/core.py b/emirdrp/core.py index <HASH>..<HASH> 100644 --- a/emirdrp/core.py +++ b/emirdrp/core.py @@ -25,6 +25,7 @@ from numina.flow.node import IdNode from numina.flow.processing import BadPixelCorrector from numina.core import BaseRecipe, Product, RecipeResult, DataFrame from numina.core.produ...
Set default value of QC to GOOD (fixes #<I>)
py
diff --git a/Plot.py b/Plot.py index <HASH>..<HASH> 100755 --- a/Plot.py +++ b/Plot.py @@ -60,11 +60,12 @@ def Plot(params, raw_data, hourly_data, daily_data, work_dir, input_file, output x_hi = hourly_data.before(datetime.max) if x_hi == None: x_hi = datetime.utcnow() # only if no hou...
Fixed small DST related bug in Plot routine.
py
diff --git a/spinoff/actor/node.py b/spinoff/actor/node.py index <HASH>..<HASH> 100644 --- a/spinoff/actor/node.py +++ b/spinoff/actor/node.py @@ -12,6 +12,7 @@ from spinoff.actor.uri import Uri from spinoff.remoting import Hub, HubWithNoRemoting from spinoff.remoting.pickler import IncomingMessageUnpickler from spi...
Catch incoming message unpickling errors instead of crashing
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -104,7 +104,7 @@ html_style = 'default.css' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a ...
the .data dir was removed, so do not reference it in the html_static_path param
py
diff --git a/src/psd_tools/user_api/pil_support.py b/src/psd_tools/user_api/pil_support.py index <HASH>..<HASH> 100644 --- a/src/psd_tools/user_api/pil_support.py +++ b/src/psd_tools/user_api/pil_support.py @@ -116,6 +116,11 @@ def _merge_bands(bands, color_mode, size, icc_profile): merged_image = Image.merge(...
monkey patch for PIL <I> for CMYK files
py
diff --git a/tools/generate_authors.py b/tools/generate_authors.py index <HASH>..<HASH> 100755 --- a/tools/generate_authors.py +++ b/tools/generate_authors.py @@ -31,7 +31,7 @@ def main(repos=None, output_path=None): 'Nikolaj Moll', # to Aqua 'Sergey Bravyi', # to Aqua 'Tal Kachmann'...
fix : removed an extra space (#<I>) Removed an extra space.
py
diff --git a/pug/nlp/djdb.py b/pug/nlp/djdb.py index <HASH>..<HASH> 100644 --- a/pug/nlp/djdb.py +++ b/pug/nlp/djdb.py @@ -976,17 +976,31 @@ def field_dict_from_row(row, model, field_names=None, include_id=False, strip=Tr try: clean_value = field_class.to_python(value) ...
verbose error messages for strings that are too long for django field
py
diff --git a/pymatgen/entries/computed_entries.py b/pymatgen/entries/computed_entries.py index <HASH>..<HASH> 100644 --- a/pymatgen/entries/computed_entries.py +++ b/pymatgen/entries/computed_entries.py @@ -501,14 +501,14 @@ class ComputedEntry(Entry): # Equality is defined based on composition and energy ...
Swap entry __eq__ checks.
py
diff --git a/openquake/engine/engine.py b/openquake/engine/engine.py index <HASH>..<HASH> 100644 --- a/openquake/engine/engine.py +++ b/openquake/engine/engine.py @@ -299,7 +299,7 @@ def run_calc(job, log_level, log_file, exports, job_type, supervised=True): job.save() # Normally the superviso...
update call to cleanup_after_job
py
diff --git a/opengem/test.py b/opengem/test.py index <HASH>..<HASH> 100644 --- a/opengem/test.py +++ b/opengem/test.py @@ -60,8 +60,11 @@ def skipit(_method): """Decorator for skipping tests""" def _skipme(*_args, **_kw): """The skipped method""" - pass - print "skipping method %r" % _metho...
Raise skipped error to track skipped tests in CI environment
py
diff --git a/phonopy/file_IO.py b/phonopy/file_IO.py index <HASH>..<HASH> 100644 --- a/phonopy/file_IO.py +++ b/phonopy/file_IO.py @@ -191,9 +191,7 @@ def parse_FORCE_CONSTANTS(filename="FORCE_CONSTANTS"): def read_force_constants_hdf5(filename="force_constants.hdf5"): import h5py with h5py.File(filename, 'r...
BUGFIX: hdf5 force constants in python3 keys() is not indexible in python3
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -3,8 +3,10 @@ VERSION = '1.0.3' DESCRIPTION = 'Tx DBus' - -from setuptools import setup +try: + from setuptools import setup +except ImportError: + from distutils.core import setup setup(
Switched to try setuptools but fall back to distutils if setuptools is not available
py
diff --git a/pysat/_params.py b/pysat/_params.py index <HASH>..<HASH> 100644 --- a/pysat/_params.py +++ b/pysat/_params.py @@ -39,6 +39,13 @@ class Parameters(object): List of pysat parameters (strings) that don't have a defined default and are unaffected by self.restore_defaults(). + Raises + ...
DOC: Added user_modules to Raises for Parameters class
py
diff --git a/fabfile.py b/fabfile.py index <HASH>..<HASH> 100644 --- a/fabfile.py +++ b/fabfile.py @@ -678,6 +678,10 @@ def docker(subtask='info'): docker_configuration = all_docker_hosts[config_name] + if 'inheritsFrom' in docker_configuration and docker_configuration['inheritsFrom'] in all_docker_hosts: + ...
implement inheritsFrom for dockerHosts
py
diff --git a/djgeojson/serializers.py b/djgeojson/serializers.py index <HASH>..<HASH> 100644 --- a/djgeojson/serializers.py +++ b/djgeojson/serializers.py @@ -61,7 +61,7 @@ class Serializer(JsonSerializer): geomfield = obj.geom elif hasattr_lazy(obj, 'the_geom'): geomfield = obj.the_g...
Support for null geometries
py
diff --git a/tensorbase/base.py b/tensorbase/base.py index <HASH>..<HASH> 100644 --- a/tensorbase/base.py +++ b/tensorbase/base.py @@ -185,10 +185,7 @@ class Layers: if strides is None: strides = np.ones(depth) if padding is None: - padding = list() - padding.extend(...
convnet and deconvnet
py
diff --git a/typedload/dataloader.py b/typedload/dataloader.py index <HASH>..<HASH> 100644 --- a/typedload/dataloader.py +++ b/typedload/dataloader.py @@ -110,7 +110,7 @@ class Loader: def __init__(self, **kwargs): # Types that do not need conversion - self.basictypes = {int, bool, float, str} + ...
Added NoneType to basictypes So that None is directly returned if encountered, without recursive step. Avoid the need to recursive step also avoids entering the loop, which means that it does not matter in which order the types appear internally in the union. Closes: #8
py
diff --git a/machina/apps/forum_conversation/admin.py b/machina/apps/forum_conversation/admin.py index <HASH>..<HASH> 100644 --- a/machina/apps/forum_conversation/admin.py +++ b/machina/apps/forum_conversation/admin.py @@ -23,7 +23,7 @@ class PostAdmin(admin.ModelAdmin): inlines = [AttachmentInline, ] list_di...
Add topic to raw_id_fields (#<I>)
py
diff --git a/pysoa/server/server.py b/pysoa/server/server.py index <HASH>..<HASH> 100644 --- a/pysoa/server/server.py +++ b/pysoa/server/server.py @@ -636,6 +636,8 @@ class Server(object): Be sure your purpose for overriding isn't better met with middleware. See the documentation for `Server.main` for...
[PATCH] Commit metrics during perform_pre_request_actions During `perform_pre_request_actions`, we should commit metrics, so that they are published then in case the request takes a long time to process.
py