diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/src/Components/__init__.py b/src/Components/__init__.py index <HASH>..<HASH> 100644 --- a/src/Components/__init__.py +++ b/src/Components/__init__.py @@ -1,10 +1,9 @@ -from PrecipitationComponent import PrecipitationComponent -from BaseComponent import BaseComponent -from PrecipitationComponent import Prec...
making includes now python 3 compatible
py
diff --git a/test.py b/test.py index <HASH>..<HASH> 100644 --- a/test.py +++ b/test.py @@ -29,7 +29,9 @@ if not settings.configured: 'URL': 'redis://localhost', 'DEFAULT_TIMEOUT': 500, } - } + }, + RQ_SENDSMS_BACKEND='sendsms.backends.locmem.SmsBackend...
fix more ImproperlyConfigured errors
py
diff --git a/neural/afni.py b/neural/afni.py index <HASH>..<HASH> 100644 --- a/neural/afni.py +++ b/neural/afni.py @@ -382,16 +382,20 @@ def qwarp_align(dset_from,dset_to,skull_strip=True,mask=None,affine_suffix='_aff The output affine dataset and 1D, as well as the output of qwarp are named by adding the given ...
added individual skull strip to qwarp
py
diff --git a/filterbank.py b/filterbank.py index <HASH>..<HASH> 100755 --- a/filterbank.py +++ b/filterbank.py @@ -553,6 +553,8 @@ if __name__ == "__main__": help='average along time axis (plot spectrum only)') parser.add_argument('-s', action='store', default='', dest='plt_filename', type=...
Added -S flag for save only (no plotting)
py
diff --git a/tunable/selectable.py b/tunable/selectable.py index <HASH>..<HASH> 100644 --- a/tunable/selectable.py +++ b/tunable/selectable.py @@ -144,6 +144,8 @@ class SelectableManager(object): if isinstance(result, list): result = result[0] else: + if...
minor fix when of a multi-selectable just one is chosen
py
diff --git a/astropy_helpers/commands/build_sphinx.py b/astropy_helpers/commands/build_sphinx.py index <HASH>..<HASH> 100644 --- a/astropy_helpers/commands/build_sphinx.py +++ b/astropy_helpers/commands/build_sphinx.py @@ -216,6 +216,7 @@ class AstropyBuildSphinx(SphinxBuildDoc): else: log.warn('S...
making sure run commands returns 1 if fails
py
diff --git a/indra/explanation/model_checker/pybel.py b/indra/explanation/model_checker/pybel.py index <HASH>..<HASH> 100644 --- a/indra/explanation/model_checker/pybel.py +++ b/indra/explanation/model_checker/pybel.py @@ -74,3 +74,9 @@ class PybelModelChecker(ModelChecker): def process_subject(self, subj): ...
New propertyin pybel MC to store INDRA agents
py
diff --git a/napalm_base/test/double.py b/napalm_base/test/double.py index <HASH>..<HASH> 100644 --- a/napalm_base/test/double.py +++ b/napalm_base/test/double.py @@ -25,7 +25,7 @@ class BaseTestDouble: if os.path.exists(full_path): return full_path else: - raise Exception("Cou...
The test double can now return whats the expected result for a given test case
py
diff --git a/tasklib/backends.py b/tasklib/backends.py index <HASH>..<HASH> 100644 --- a/tasklib/backends.py +++ b/tasklib/backends.py @@ -55,6 +55,14 @@ class Backend(object): pass @abc.abstractmethod + def annotate_task(self, task, annotation): + pass + + @abc.abstractmethod + def deno...
backends: Add method for annotations to the backend interface
py
diff --git a/timeside/server/models.py b/timeside/server/models.py index <HASH>..<HASH> 100644 --- a/timeside/server/models.py +++ b/timeside/server/models.py @@ -720,7 +720,7 @@ class Preset(UUID, Dated, Shareable): return '_'.join([str(self.processor), str(self.uuid)[:4]]) def get_single_experience(se...
[server] fix task __str__ and single_experience titling for admin
py
diff --git a/sc/cli.py b/sc/cli.py index <HASH>..<HASH> 100644 --- a/sc/cli.py +++ b/sc/cli.py @@ -5,6 +5,7 @@ from upload import upload from utils import copy_to_clipboard, open_browser from __init__ import __version__ + def command_auth(args): import getpass @@ -68,6 +69,9 @@ def main(): subparsers...
Alphabetize order of commands.
py
diff --git a/command/build_ext.py b/command/build_ext.py index <HASH>..<HASH> 100644 --- a/command/build_ext.py +++ b/command/build_ext.py @@ -151,8 +151,11 @@ class build_ext (Command): self.library_dirs = [] elif type(self.library_dirs) is StringType: self.library_dirs = string.spli...
Split the rpath argument into multiple paths, turning it into a list. This partially fixes bug #<I>.
py
diff --git a/nanoget/extraction_functions.py b/nanoget/extraction_functions.py index <HASH>..<HASH> 100644 --- a/nanoget/extraction_functions.py +++ b/nanoget/extraction_functions.py @@ -154,8 +154,8 @@ def process_bam(bam, **kwargs): logging.info("Nanoget: Starting to collect statistics from bam file {}.".format(...
Bump BAM ref-contig multi-process threshold to <I>
py
diff --git a/tests/unit/beacons/inotify_beacon_test.py b/tests/unit/beacons/inotify_beacon_test.py index <HASH>..<HASH> 100644 --- a/tests/unit/beacons/inotify_beacon_test.py +++ b/tests/unit/beacons/inotify_beacon_test.py @@ -12,7 +12,6 @@ from salt.beacons import inotify # Salt testing libs from salttesting import ...
These tests aren't even using mock! Conflicts: - tests/unit/beacons/inotify_beacon_test.py
py
diff --git a/malcolm/core/process.py b/malcolm/core/process.py index <HASH>..<HASH> 100644 --- a/malcolm/core/process.py +++ b/malcolm/core/process.py @@ -1,4 +1,4 @@ -from typing import Any, Callable, List, Sequence, Set, TypeVar, Union, cast +from typing import Any, Callable, List, Sequence, Set, TypeVar, Union fr...
Removed cast no longer needed in Process
py
diff --git a/allegedb/allegedb/cache.py b/allegedb/allegedb/cache.py index <HASH>..<HASH> 100644 --- a/allegedb/allegedb/cache.py +++ b/allegedb/allegedb/cache.py @@ -652,6 +652,16 @@ class Cache(Signal): where_cached = self.db._where_cached[args[-4:-1]] if self not in where_cached: where...
Invalidate the keycache when storing data in the past I'm relaxing the restriction on rewriting history until I decide when exactly it's allowed -- "only when rewriting a plan," yes, but checking whether that's happening is currently expensive
py
diff --git a/pyqode/core/modes/code_completion.py b/pyqode/core/modes/code_completion.py index <HASH>..<HASH> 100644 --- a/pyqode/core/modes/code_completion.py +++ b/pyqode/core/modes/code_completion.py @@ -54,7 +54,8 @@ class PreLoadWorker(object): # pass the process dict to every providers s...
Fix trigger key on windows (period is different key if it comes from the numpad)
py
diff --git a/testbed.py b/testbed.py index <HASH>..<HASH> 100755 --- a/testbed.py +++ b/testbed.py @@ -113,13 +113,13 @@ def MatchWithReplacement(Y_c, Y_t, X_c, X_t): N_c = len(X_c) N_t = len(X_t) - ITT = np.zeros(N_c) + ITT = np.zeros(N_t) - for i in xrange(N_c): + for i in xrange(N_t): # find control unit ...
fixed mistake in matching estimator: was calculating ATNT before
py
diff --git a/asv/step_detect.py b/asv/step_detect.py index <HASH>..<HASH> 100644 --- a/asv/step_detect.py +++ b/asv/step_detect.py @@ -681,11 +681,11 @@ def solve_potts_autogamma(y, w, beta=None, **kw): """ l = 1 E_prev = y[0] - values[0] - s = abs(E_prev) + ...
BUG: step_detect: include weights in sigma_star Forgot to add weighting to the MLE sigma calculation.
py
diff --git a/yowsup/common/tools.py b/yowsup/common/tools.py index <HASH>..<HASH> 100644 --- a/yowsup/common/tools.py +++ b/yowsup/common/tools.py @@ -100,17 +100,25 @@ class StorageTools: @staticmethod def writePhoneData(phone, name, val): - path = StorageTools.getStorageForPhone(phone) + log...
[log] log read/write phone data
py
diff --git a/envy/__init__.py b/envy/__init__.py index <HASH>..<HASH> 100644 --- a/envy/__init__.py +++ b/envy/__init__.py @@ -1,3 +1,3 @@ -VERSION = '0.0.9' +VERSION = '0.0.10' from .application import get_active_venv, get_package_name, get_envy_path, original_backed_up, get_venv_full_package_path, get_file_path, sy...
bump to <I> :balloon:
py
diff --git a/orb/contexts.py b/orb/contexts.py index <HASH>..<HASH> 100644 --- a/orb/contexts.py +++ b/orb/contexts.py @@ -9,6 +9,10 @@ class SingleTransaction(object): def __init__(self, *databases): self._databases = databases or orb.system.databases() + def __enter__(self): + # nothing need...
needing an __enter__ method
py
diff --git a/MAVProxy/modules/mavproxy_fence.py b/MAVProxy/modules/mavproxy_fence.py index <HASH>..<HASH> 100644 --- a/MAVProxy/modules/mavproxy_fence.py +++ b/MAVProxy/modules/mavproxy_fence.py @@ -296,9 +296,12 @@ class FenceModule(mp_module.MPModule): print("No geo-fence points") return ...
fence: added retry on list
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ def read(*relative_path_parts): with open(path.join(HERE, *relative_path_parts), encoding=ENCODING) as f: return f.read() -VERSION = "0.4-post" +VERSION = "0.5" README = "README.rst" URL = "https://gith...
Version <I> Version number in `setup.py` was changed.
py
diff --git a/progressbar/__about__.py b/progressbar/__about__.py index <HASH>..<HASH> 100644 --- a/progressbar/__about__.py +++ b/progressbar/__about__.py @@ -19,7 +19,7 @@ A Python Progressbar library to provide visual (yet text based) progress to long running operations. '''.strip().split()) __email__ = 'wolph@wol...
Incrementing version to <I>
py
diff --git a/txnintegration/launcher_cli.py b/txnintegration/launcher_cli.py index <HASH>..<HASH> 100755 --- a/txnintegration/launcher_cli.py +++ b/txnintegration/launcher_cli.py @@ -66,7 +66,8 @@ def parse_args(args): default=None) parser.add_argument('--log-config', ...
fix crash if log config is not specified.
py
diff --git a/pystache/template.py b/pystache/template.py index <HASH>..<HASH> 100644 --- a/pystache/template.py +++ b/pystache/template.py @@ -1,5 +1,7 @@ import re +SECTION_RE = re.compile(r"{{\#([^\}]*)}}\s*(.+?)\s*{{/\1}}", re.M | re.S) + class Template(object): tag_types = { None: 'tag', @@ -20,8 ...
Compile the regular expression once and re-use it for the render_sections bit
py
diff --git a/satpy/readers/mersi2_l1b.py b/satpy/readers/mersi2_l1b.py index <HASH>..<HASH> 100644 --- a/satpy/readers/mersi2_l1b.py +++ b/satpy/readers/mersi2_l1b.py @@ -54,13 +54,13 @@ class MERSI2L1B(HDF5FileHandler): return self._strptime('/attr/Observing Ending Date', '/attr/Observing Ending Time') ...
Fix mersi2_l1b reader setting sensor as a set object
py
diff --git a/src/storage-preview/azext_storage_preview/azcopy/util.py b/src/storage-preview/azext_storage_preview/azcopy/util.py index <HASH>..<HASH> 100644 --- a/src/storage-preview/azext_storage_preview/azcopy/util.py +++ b/src/storage-preview/azext_storage_preview/azcopy/util.py @@ -35,13 +35,12 @@ class AzCopy(obje...
Fix Executable File Not Found Error (#<I>) * storage-preview/azext_storage_preview/azcopy/util.py changed subprocess.call() param to array
py
diff --git a/spyderplugins/widgets/pylintgui.py b/spyderplugins/widgets/pylintgui.py index <HASH>..<HASH> 100644 --- a/spyderplugins/widgets/pylintgui.py +++ b/spyderplugins/widgets/pylintgui.py @@ -62,6 +62,10 @@ class ResultsTree(OneColumnTree): self.parent().emit(SIGNAL("edit_goto(QString,int,QString)")...
(Fixes Issue <I>) Pylint plugin: tree widget header text was not updated when analyizing a new script (the last analyzed script name was still shown)
py
diff --git a/scapy.py b/scapy.py index <HASH>..<HASH> 100755 --- a/scapy.py +++ b/scapy.py @@ -5280,6 +5280,8 @@ class Packet(Gen): s = "" ct = conf.color_theme for f in self.fields_desc: + if isinstance(f, ConditionalField) and not f._evalcond(self): + continue ...
Do not display conditional fields that are not present in show() and repr()
py
diff --git a/nodeconductor/iaas/backend/openstack.py b/nodeconductor/iaas/backend/openstack.py index <HASH>..<HASH> 100644 --- a/nodeconductor/iaas/backend/openstack.py +++ b/nodeconductor/iaas/backend/openstack.py @@ -775,6 +775,8 @@ class OpenStackBackend(object): logger.exception('Failed to start instan...
Update start_time of an instance on start/stop On stop it gets reset to null NC-<I>
py
diff --git a/pwkit/environments/casa/tasks.py b/pwkit/environments/casa/tasks.py index <HASH>..<HASH> 100644 --- a/pwkit/environments/casa/tasks.py +++ b/pwkit/environments/casa/tasks.py @@ -527,6 +527,11 @@ def clearcal(vis, weightonly=False): tb.close() if not weightonly: + import casadef + + ...
pwkit/environments/casa/tasks.py: attempt to fix clearcal for CASA 5.x Clearcal isn't compatible with the new vis iterator deal. This seems to be the workaround. We target CASA 5.x specifically since I'd guess that the new iterator will support initcalset in something like CASA 6.x
py
diff --git a/safe/gui/widgets/dock.py b/safe/gui/widgets/dock.py index <HASH>..<HASH> 100644 --- a/safe/gui/widgets/dock.py +++ b/safe/gui/widgets/dock.py @@ -1172,7 +1172,8 @@ class Dock(QtGui.QDockWidget, FORM_CLASS): if not flag: send_static_message(self, message) self.run_button.s...
fix next analysis extent display when there is not enough layer
py
diff --git a/ellis/main.py b/ellis/main.py index <HASH>..<HASH> 100644 --- a/ellis/main.py +++ b/ellis/main.py @@ -17,7 +17,8 @@ __license__ = "GPLv3" __url__ = "https://github.com/Frzk/Ellis" -def customized_warning(message, category=UserWarning, filename='', lineno=-1): +def customized_warning(message, category=...
Fixed customized_warning() signature to match what's waited by warnings.showwarning().
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 @@ -47,16 +47,16 @@ def read_buffer(f, is_ascii, int_size, data_size): if environ == "PhysicalNames": _read_physical_names(f, field_data) + elif e...
sequence sections as in MSH4 spec, i.e. PhysicalNames, Entities, Nodes #<I>
py
diff --git a/admin_honeypot/tests.py b/admin_honeypot/tests.py index <HASH>..<HASH> 100644 --- a/admin_honeypot/tests.py +++ b/admin_honeypot/tests.py @@ -6,7 +6,7 @@ from django.test import TestCase #from django.test.utils import override_settings # Waiting on 1.4 class AdminHoneypotTest(TestCase): - #urls = 'a...
Didn't mean to do that
py
diff --git a/textx/scoping/__init__.py b/textx/scoping/__init__.py index <HASH>..<HASH> 100644 --- a/textx/scoping/__init__.py +++ b/textx/scoping/__init__.py @@ -142,16 +142,24 @@ class GlobalModelRepository(object): Returns: the list of loaded models """ - from textx import metam...
first patch: allowed to use the own metamodel, when loading a file with unknown extension
py
diff --git a/analyzers/EmlParser/parse.py b/analyzers/EmlParser/parse.py index <HASH>..<HASH> 100755 --- a/analyzers/EmlParser/parse.py +++ b/analyzers/EmlParser/parse.py @@ -89,7 +89,7 @@ def parseEml(filepath): #splited string because it was returning the body inside 'Content-Type' hParser = email.parser.He...
Fix bug emlparser when 'content-type' string in mail is in lower case Emlparser crashes when the string "Content-Type" is not found. In some cases it's available as "Content-type" or "content-type" , this fixes those cases
py
diff --git a/hurricane/handlers/comet/handler.py b/hurricane/handlers/comet/handler.py index <HASH>..<HASH> 100644 --- a/hurricane/handlers/comet/handler.py +++ b/hurricane/handlers/comet/handler.py @@ -88,3 +88,12 @@ class CometHandler(BaseHandler): request.finish() return ...
Added some default implementations of the 3 overidable methods
py
diff --git a/pep257.py b/pep257.py index <HASH>..<HASH> 100755 --- a/pep257.py +++ b/pep257.py @@ -330,7 +330,10 @@ def main(options, arguments): Error.options = options errors = [] for filename in arguments: - errors.extend(check_source(open(filename).read(), filename)) + try: + ...
Handle IOError when file can't be opened If a filename given on the command line does not exist, or for some reason can't be opened, an IOError will be raised when trying to open it.
py
diff --git a/pypureomapi.py b/pypureomapi.py index <HASH>..<HASH> 100644 --- a/pypureomapi.py +++ b/pypureomapi.py @@ -1238,7 +1238,7 @@ class Omapi(object): # pylint:disable=too-many-public-methods @raises socket.error: """ ltype_utf = ltype.encode("utf-8") - assert ltype_utf in [b"host", b"lease"] + asser...
Add failover-state as a valid ltype The previous commit which added lookup of failover-state object attributes was missing this.
py
diff --git a/claripy/ast.py b/claripy/ast.py index <HASH>..<HASH> 100644 --- a/claripy/ast.py +++ b/claripy/ast.py @@ -280,8 +280,8 @@ def _finalize_I(claripy, op, args, kwargs): try: name = b.name(args[0]) if name is not None: - variables = kwargs.get('variables', set(...
Bug-fix: A.variables is not longer set, but a frozen set.
py
diff --git a/tests/test_gwascatalog.py b/tests/test_gwascatalog.py index <HASH>..<HASH> 100644 --- a/tests/test_gwascatalog.py +++ b/tests/test_gwascatalog.py @@ -262,7 +262,7 @@ class TestGwasHaplotypeModel(unittest.TestCase): self.test_data['allele_freq'], self.test_data['mapped_gene'], so_ontology) ...
consistant digest. I am not convinced the old test was correct. claims an HGNC gene is an intron_variant of a blanknode. what say ye?
py
diff --git a/glue/lal.py b/glue/lal.py index <HASH>..<HASH> 100644 --- a/glue/lal.py +++ b/glue/lal.py @@ -641,10 +641,6 @@ class CacheEntry(object): # FIXME: remove when calling code uses the attribute directly. self._path = value - def to_segmentlistdict(self): - warnings.warn("glue.lal.CacheEntry.to_segmen...
glue.lal: remove deprecated CacheEntry.to_sgementlistdict() The current stable release of glue has the new api and the head of the master branches of all code that uses it has been ported
py
diff --git a/bitex/http/kraken.py b/bitex/http/kraken.py index <HASH>..<HASH> 100644 --- a/bitex/http/kraken.py +++ b/bitex/http/kraken.py @@ -15,9 +15,9 @@ try: except SystemError: from bitex.api.kraken import API from bitex.http.client import Client -from bitex.format.kraken import http_format_ob, http_format_...
updated import name for decorators from format
py
diff --git a/acceptancetests/substrate.py b/acceptancetests/substrate.py index <HASH>..<HASH> 100644 --- a/acceptancetests/substrate.py +++ b/acceptancetests/substrate.py @@ -531,7 +531,7 @@ class AzureARMAccount: vm_ids = [] for machine_name in instance_ids: rgd, vm = winazurearm.find_vm...
fix find_vm_deployment() arg count
py
diff --git a/scanpy/tools/_rank_genes_groups.py b/scanpy/tools/_rank_genes_groups.py index <HASH>..<HASH> 100644 --- a/scanpy/tools/_rank_genes_groups.py +++ b/scanpy/tools/_rank_genes_groups.py @@ -17,7 +17,7 @@ def rank_genes_groups( adata, groupby, use_raw=True, - groups: Union[str, Iterable[Union[...
updated type annotation in rank_genes_groups @flying-sheep, we don't allow integer categories... also, the nested type annotation resulted in display `Union` instead of unfolding to `A, B`... :)
py
diff --git a/devtools-proxy.py b/devtools-proxy.py index <HASH>..<HASH> 100755 --- a/devtools-proxy.py +++ b/devtools-proxy.py @@ -80,7 +80,7 @@ async def ws_client_handler(request): session = aiohttp.ClientSession(loop=app.loop) app['sessions'].append(session) try: - app['tabs'][t...
Autoclose ws connection to tab
py
diff --git a/toot/tui/app.py b/toot/tui/app.py index <HASH>..<HASH> 100644 --- a/toot/tui/app.py +++ b/toot/tui/app.py @@ -308,11 +308,12 @@ class TUI(urwid.Frame): def show_links(self, status): links = parse_content_links(status.data["content"]) - self.open_overlay( - widget=StatusLin...
Don't show links window if no links are found
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ install_requires = [ setup( name='flask_profiler', - version='0.9', + version='1.0', url='https://github.com/muatik/flask-profiler', license=open('LICENSE').read(), author='Mustafa A...
bumped version number to <I>.
py
diff --git a/tests/integration/modules/test_pw_user.py b/tests/integration/modules/test_pw_user.py index <HASH>..<HASH> 100644 --- a/tests/integration/modules/test_pw_user.py +++ b/tests/integration/modules/test_pw_user.py @@ -1,11 +1,9 @@ -# -*- coding: utf-8 -*- """ :codeauthor: Pedro Algarvio (pedro@algarvio.m...
Drop Py2 and six on tests/integration/modules/test_pw_user.py
py
diff --git a/src/toil/provisioners/gceProvisioner.py b/src/toil/provisioners/gceProvisioner.py index <HASH>..<HASH> 100644 --- a/src/toil/provisioners/gceProvisioner.py +++ b/src/toil/provisioners/gceProvisioner.py @@ -39,8 +39,7 @@ class GCEProvisioner(AbstractProvisioner): """ NODE_BOTO_PATH = "/root/.bot...
Try to use coreos-stable family
py
diff --git a/plugins/item_tasks/plugin_tests/tasks_test.py b/plugins/item_tasks/plugin_tests/tasks_test.py index <HASH>..<HASH> 100644 --- a/plugins/item_tasks/plugin_tests/tasks_test.py +++ b/plugins/item_tasks/plugin_tests/tasks_test.py @@ -370,6 +370,9 @@ class TasksTest(base.TestCase): self.assertIn('itemT...
Ensure correct state transitions in item_task test
py
diff --git a/SpiffWorkflow/storage/DictionarySerializer.py b/SpiffWorkflow/storage/DictionarySerializer.py index <HASH>..<HASH> 100644 --- a/SpiffWorkflow/storage/DictionarySerializer.py +++ b/SpiffWorkflow/storage/DictionarySerializer.py @@ -53,6 +53,9 @@ class DictionarySerializer(Serializer): def _serialize_ope...
Add missing _deserialize_operator method
py
diff --git a/sass_processor/jinja2/ext.py b/sass_processor/jinja2/ext.py index <HASH>..<HASH> 100644 --- a/sass_processor/jinja2/ext.py +++ b/sass_processor/jinja2/ext.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals -from jinja2 import lexer, nodes +from jinja2 import nodes from ...
Jinja2 extension now accepts both strings and variables.
py
diff --git a/cosmic_ray/importing.py b/cosmic_ray/importing.py index <HASH>..<HASH> 100644 --- a/cosmic_ray/importing.py +++ b/cosmic_ray/importing.py @@ -4,6 +4,7 @@ import contextlib from importlib.abc import MetaPathFinder from importlib.machinery import ModuleSpec +from itertools import accumulate import sys ...
Delete parent modules from sys.modules
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -16,10 +16,11 @@ setup( packages = [package_name, '{}.ccsgp'.format(package_name), '{}.examples'.format(package_name)], include_package_data=True, + setup_requires = [ 'numpy==1.9.2' ], + insta...
setup: fix gnuplot dependency
py
diff --git a/ipyrad/core/assembly.py b/ipyrad/core/assembly.py index <HASH>..<HASH> 100644 --- a/ipyrad/core/assembly.py +++ b/ipyrad/core/assembly.py @@ -932,7 +932,7 @@ def getbins(): else: vsearch = os.path.join( os.path.abspath(bin_path), - "vsearch-1.1.3-...
fixed a bad path to vsearch binary. I think we should simplify the binary path names in bin to 'vsearch', 'muscle', etc..., then when we include new binaries in the distro we only need to copy them to the ipyrad/bin directory with these names rather than tweeking a bunch of fully qualified names inside python file path...
py
diff --git a/superset/examples/country_map.py b/superset/examples/country_map.py index <HASH>..<HASH> 100644 --- a/superset/examples/country_map.py +++ b/superset/examples/country_map.py @@ -100,6 +100,7 @@ def load_country_map_data(only_metadata: bool = False, force: bool = False) -> N "optionName": "metr...
fix: select country in examples chart (#<I>)
py
diff --git a/guniflask/config/app_config.py b/guniflask/config/app_config.py index <HASH>..<HASH> 100644 --- a/guniflask/config/app_config.py +++ b/guniflask/config/app_config.py @@ -63,7 +63,6 @@ class AppConfig: kwargs = self._get_default_settings_from_env() if conf_dir: c = load_profil...
fix: active_profiles should be a list of profiles
py
diff --git a/sksurv/svm/survival_svm.py b/sksurv/svm/survival_svm.py index <HASH>..<HASH> 100644 --- a/sksurv/svm/survival_svm.py +++ b/sksurv/svm/survival_svm.py @@ -12,6 +12,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. from abc import ABCMeta, abstractmethod from sklearn.base import...
Use ConvergenceWarning instead of UserWarning
py
diff --git a/salt/modules/dockerio.py b/salt/modules/dockerio.py index <HASH>..<HASH> 100644 --- a/salt/modules/dockerio.py +++ b/salt/modules/dockerio.py @@ -388,29 +388,22 @@ def get_containers(all=True, status['host'] = {} status['host']['interfaces'] = __salt__['network.interfaces']() - conta...
If there no containers in the response it does not mean the command failed. It could be there is no container at all.
py
diff --git a/hepdata_converter/writers/root_writer.py b/hepdata_converter/writers/root_writer.py index <HASH>..<HASH> 100644 --- a/hepdata_converter/writers/root_writer.py +++ b/hepdata_converter/writers/root_writer.py @@ -5,6 +5,7 @@ import ROOT as ROOTModule import array import tempfile import os +from ctypes impo...
Fixes for ROOT <I>. pyROOT is now based on cppyy so type handling has changed.
py
diff --git a/simuvex/s_irstmt.py b/simuvex/s_irstmt.py index <HASH>..<HASH> 100644 --- a/simuvex/s_irstmt.py +++ b/simuvex/s_irstmt.py @@ -282,7 +282,7 @@ class SimIRStmt(object): read_size = size_bytes(read_type) converted_size = size_bytes(converted_type) - read_expr = self.state.mem_expr(a...
and to the LoadG statement
py
diff --git a/cumulusci/tasks/salesforce.py b/cumulusci/tasks/salesforce.py index <HASH>..<HASH> 100644 --- a/cumulusci/tasks/salesforce.py +++ b/cumulusci/tasks/salesforce.py @@ -1178,7 +1178,7 @@ class PackageUpload(BaseSalesforceApiTask): if self.upload['Status'] == 'ERROR': self.logger.er...
fix references to upload obj
py
diff --git a/tests/fuzz/fuzz_test_fingerprint.py b/tests/fuzz/fuzz_test_fingerprint.py index <HASH>..<HASH> 100644 --- a/tests/fuzz/fuzz_test_fingerprint.py +++ b/tests/fuzz/fuzz_test_fingerprint.py @@ -99,7 +99,7 @@ class BigListOfNaughtyStringsTestCases(unittest.TestCase): errors resulting from unanticipated inp...
changed method name to align with other fuzz classes
py
diff --git a/src/saml2/assertion.py b/src/saml2/assertion.py index <HASH>..<HASH> 100644 --- a/src/saml2/assertion.py +++ b/src/saml2/assertion.py @@ -1,20 +1,19 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +import copy import importlib import logging - import re -from saml2.saml import NAME_FORMAT_URI import...
Use deepcopy to avoid modifying external data.
py
diff --git a/dimod/variables.py b/dimod/variables.py index <HASH>..<HASH> 100644 --- a/dimod/variables.py +++ b/dimod/variables.py @@ -61,12 +61,21 @@ class Variables(abc.Sequence, abc.Set): def __getitem__(self, i): return self._label[i] + # support python2 pickle + def __getstate__(self): + ...
Support pickling Variables in python2
py
diff --git a/tests/gencode/test_gencode.py b/tests/gencode/test_gencode.py index <HASH>..<HASH> 100644 --- a/tests/gencode/test_gencode.py +++ b/tests/gencode/test_gencode.py @@ -1,13 +1,24 @@ from copy import deepcopy import pandas as pd from pandas.util.testing import assert_frame_equal +from pandas.util.testing i...
Added another test for gencode
py
diff --git a/src/http_crawler/__init__.py b/src/http_crawler/__init__.py index <HASH>..<HASH> 100644 --- a/src/http_crawler/__init__.py +++ b/src/http_crawler/__init__.py @@ -6,7 +6,7 @@ import requests import tinycss -__version__ = '0.0.1' +__version__ = '0.1.0' def crawl(base_url):
Bump to version <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ setup(name='RPLCD', url='https://github.com/dbrgn/RPLCD', license='MIT', keywords='raspberry, raspberry pi, lcd, liquid crystal, hitachi, hd44780', - packages=['RPLCD', 'RPLCD_Tests'], ...
Fix packages in setup.py (#<I>)
py
diff --git a/examples/sandbox/sandbox.py b/examples/sandbox/sandbox.py index <HASH>..<HASH> 100644 --- a/examples/sandbox/sandbox.py +++ b/examples/sandbox/sandbox.py @@ -205,4 +205,6 @@ simConfig['analysis'] = {} # 'saveName': 'fig1.png'} # (include = ['all'], timeRange = None, maxSpikes = 1e8, orderBy = 'gid', ord...
added plotSpikeHist() (issue #<I>)
py
diff --git a/shinken/webui/plugins/login/login.py b/shinken/webui/plugins/login/login.py index <HASH>..<HASH> 100644 --- a/shinken/webui/plugins/login/login.py +++ b/shinken/webui/plugins/login/login.py @@ -1,4 +1,4 @@ - +from shinken.webui.bottle import redirect ### Will be populated by the UI with it's own value ...
Redirect instead of using javascript
py
diff --git a/indra/tests/test_reading_scripts_aws.py b/indra/tests/test_reading_scripts_aws.py index <HASH>..<HASH> 100644 --- a/indra/tests/test_reading_scripts_aws.py +++ b/indra/tests/test_reading_scripts_aws.py @@ -5,6 +5,7 @@ from subprocess import check_call from nose.plugins.attrib import attr from indra.too...
Add test with currently known-stall sentance.
py
diff --git a/spyder/plugins/completion/kite/utils/install.py b/spyder/plugins/completion/kite/utils/install.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/completion/kite/utils/install.py +++ b/spyder/plugins/completion/kite/utils/install.py @@ -165,7 +165,11 @@ class KiteInstallationThread(QThread): ...
Kite Completion: Add try when removing installer
py
diff --git a/proso_flashcards/management/commands/load_flashcards.py b/proso_flashcards/management/commands/load_flashcards.py index <HASH>..<HASH> 100644 --- a/proso_flashcards/management/commands/load_flashcards.py +++ b/proso_flashcards/management/commands/load_flashcards.py @@ -331,7 +331,7 @@ class Command(BaseCom...
Fix typo-bug in load_flashcards
py
diff --git a/WrightTools/kit.py b/WrightTools/kit.py index <HASH>..<HASH> 100644 --- a/WrightTools/kit.py +++ b/WrightTools/kit.py @@ -228,7 +228,9 @@ class TimeStamp: @property def hms(self): - """Get time formated as ``HH:MM:SS``.""" + """Get time formated. + + ``HH:MM:SS``"""...
Put the HH:MM:SS on a new line (see #<I>)
py
diff --git a/pymc3/distributions/mixture.py b/pymc3/distributions/mixture.py index <HASH>..<HASH> 100644 --- a/pymc3/distributions/mixture.py +++ b/pymc3/distributions/mixture.py @@ -48,7 +48,7 @@ class Mixture(Distribution): .. math:: f(x \mid w, \theta) = \sum_{i = 1}^n w_i f_i(x \mid \theta_i) ======== ...
minor change in documentation: support of sum is union of supports.
py
diff --git a/sos/plugins/activemq.py b/sos/plugins/activemq.py index <HASH>..<HASH> 100644 --- a/sos/plugins/activemq.py +++ b/sos/plugins/activemq.py @@ -29,7 +29,7 @@ class ActiveMq(Plugin, RedHatPlugin, DebianPlugin): self.add_copy_specs(list(self.files)) -class UbuntuActiveMq(UbuntuPlugin): +class Ubun...
[activemq] inherit from base class properly
py
diff --git a/src/satosa/micro_services/primary_identifier.py b/src/satosa/micro_services/primary_identifier.py index <HASH>..<HASH> 100644 --- a/src/satosa/micro_services/primary_identifier.py +++ b/src/satosa/micro_services/primary_identifier.py @@ -54,7 +54,7 @@ class PrimaryIdentifier(satosa.micro_services.base.Resp...
fix: PrimaryIdentifier: exclude name_id from attribute value search Attribute 'name_id' gets special handling in other parts of the code - and the way attribute values were fetched, name_id would always throw a None value in, which would later cause this candidate to be rejected with Candidate is missing value so...
py
diff --git a/GPy/testing/likelihoods_tests.py b/GPy/testing/likelihoods_tests.py index <HASH>..<HASH> 100644 --- a/GPy/testing/likelihoods_tests.py +++ b/GPy/testing/likelihoods_tests.py @@ -496,7 +496,7 @@ class TestNoiseModels(object): m.checkgrad(verbose=1, step=step) if not m.checkgrad(step=step):...
removing ipdb statements
py
diff --git a/dronekit/__init__.py b/dronekit/__init__.py index <HASH>..<HASH> 100644 --- a/dronekit/__init__.py +++ b/dronekit/__init__.py @@ -1909,7 +1909,7 @@ class Vehicle(HasObservers): # Send MAVLink update. self.send_mavlink(self.message_factory.command_long_encode( 0, 0, # target ...
correct a typo from messing up an emacs shortcut
py
diff --git a/cwr/grammar/file.py b/cwr/grammar/file.py index <HASH>..<HASH> 100644 --- a/cwr/grammar/file.py +++ b/cwr/grammar/file.py @@ -3,6 +3,7 @@ import pyparsing as pp from cwr.grammar.record import transmission, group +from cwr.grammar.field import special from cwr.grammar import transaction from cwr.file ...
Change to the end line rule being used.
py
diff --git a/climb/core.py b/climb/core.py index <HASH>..<HASH> 100644 --- a/climb/core.py +++ b/climb/core.py @@ -11,7 +11,7 @@ class Climb(object): _prompt = "[{path}]> " _running = False - def __init__(self, name, args, commands, completer, prompt=None): + def __init__(self, name, args, commands, c...
Allow completer delims skipping.
py
diff --git a/Lib/ufo2ft/fontInfoData.py b/Lib/ufo2ft/fontInfoData.py index <HASH>..<HASH> 100644 --- a/Lib/ufo2ft/fontInfoData.py +++ b/Lib/ufo2ft/fontInfoData.py @@ -328,13 +328,13 @@ def postscriptSlantAngleFallback(info): def postscriptUnderlineThicknessFallback(info): """Return UPM * 0.05 (50 for 1000 UPM) ...
fontInfoData: demote warnings underline position/thickness not being set to debug messages They are too noisy, sometimes they repeat themselves (e.g. strikeout thickness is derived from underline thickness, etc.) Not worth the a WARNING level.
py
diff --git a/sim/analysis.py b/sim/analysis.py index <HASH>..<HASH> 100644 --- a/sim/analysis.py +++ b/sim/analysis.py @@ -27,7 +27,7 @@ def plotData(): ## Plotting if s.rank == 0: if p.plotraster: # Whether or not to plot - if (s.totalspikes>s.maxspikestoplot): + if (s.totalsp...
fixed bug in gathering sp/saving data (was still saving objects)
py
diff --git a/yagocd/exception.py b/yagocd/exception.py index <HASH>..<HASH> 100644 --- a/yagocd/exception.py +++ b/yagocd/exception.py @@ -41,7 +41,13 @@ class RequestError(YagocdException): """ def __init__(self, summary, response): + """ + :type summary: str + :type response: requests...
Save response object in the exception for extracting valuable information.
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -194,5 +194,5 @@ epub_exclude_files = ['search.html'] # Configuration for intersphinx intersphinx_mapping = { - 'python': ('https://docs.python.org/3.4', None) + 'python': ('https://docs.python.org/3'...
Switch Python version in docs from <I> to 3
py
diff --git a/flasgger/base.py b/flasgger/base.py index <HASH>..<HASH> 100644 --- a/flasgger/base.py +++ b/flasgger/base.py @@ -256,7 +256,9 @@ class OutputView(MethodView): operations = dict() for verb, method in methods.items(): klass = method.__dict__.get('view_class', None)...
Fixed docstring check for Flask-RESTful (#<I>) * Fixed docstring check for Flask-RESTful * Corrected regression for dispatch_views
py
diff --git a/nni/experiment/pipe.py b/nni/experiment/pipe.py index <HASH>..<HASH> 100644 --- a/nni/experiment/pipe.py +++ b/nni/experiment/pipe.py @@ -1,7 +1,10 @@ from io import BufferedIOBase +import logging import os import sys +_logger = logging.getLogger(__name__) + if sys.platform == 'win32': import _w...
Catch clean up error to prevent crash (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -1,10 +1,19 @@ -from distutils.core import setup +#!/usr/bin/env python + +from setuptools import find_packages +from setuptools import setup setup( - name='uWSGI Metrics', + name='uwsgi_metrics', version='0.1.0'...
Update setup.py to follow packaging guidelines.
py
diff --git a/openid/server/server.py b/openid/server/server.py index <HASH>..<HASH> 100644 --- a/openid/server/server.py +++ b/openid/server/server.py @@ -99,6 +99,11 @@ ENCODE_KVFORM = ('kvform',) ENCODE_URL = ('URL/redirect',) class OpenIDRequest(object): + """I represent an incoming OpenID request. + + @cv...
[project @ server.server.OpenIDRequest.__doc__]
py
diff --git a/dramatiq/worker.py b/dramatiq/worker.py index <HASH>..<HASH> 100644 --- a/dramatiq/worker.py +++ b/dramatiq/worker.py @@ -205,7 +205,7 @@ class _ConsumerThread(Thread): # The consumer must retry itself with exponential backoff # assuming it hasn't been shut down. if self.running:...
refactor: lower backoff factor on consumer retry
py
diff --git a/pygeoip/util.py b/pygeoip/util.py index <HASH>..<HASH> 100644 --- a/pygeoip/util.py +++ b/pygeoip/util.py @@ -67,5 +67,5 @@ def ip2long_v6(ip): """ ipbyte = socket.inet_pton(socket.AF_INET6, ip) ipnum = array('L', struct.unpack('!4L', ipbyte)) - ipnum.reverse() - return sum(ipnum[i] <<...
Optimize ip2long method for IPv6 addresses
py
diff --git a/salt/states/win_dns_client.py b/salt/states/win_dns_client.py index <HASH>..<HASH> 100644 --- a/salt/states/win_dns_client.py +++ b/salt/states/win_dns_client.py @@ -112,7 +112,7 @@ def primary_suffix(name, .. code-block:: yaml primary_dns_suffix: - win_dns_client.suffix: + ...
Updated doc to reflect renamed method (suffix → primary_suffix)
py
diff --git a/src/you_get/common.py b/src/you_get/common.py index <HASH>..<HASH> 100755 --- a/src/you_get/common.py +++ b/src/you_get/common.py @@ -1128,6 +1128,22 @@ def script_main(script_name, download, download_playlist, **kwargs): raise else: sys.exit(1) + except: + if n...
[common] improve error message, display a brief instruction to tell users what to do
py
diff --git a/lib.py b/lib.py index <HASH>..<HASH> 100644 --- a/lib.py +++ b/lib.py @@ -318,19 +318,26 @@ def check_error(rval): class LibraryWrapper(object): + BLACKLIST = ( + "gp_context_new", + "gp_list_count", + "gp_widget_count_choices", + "gp_widget_count_children", + "gp...
Simplify blacklisting of library error checks
py
diff --git a/sark/code/instruction.py b/sark/code/instruction.py index <HASH>..<HASH> 100644 --- a/sark/code/instruction.py +++ b/sark/code/instruction.py @@ -127,6 +127,54 @@ class Operand(object): offset = displacement + + @property + def flags(self): + return self._operand.flags + + @propert...
Added access to more members of the op_t type.
py
diff --git a/DataHandling/setup.py b/DataHandling/setup.py index <HASH>..<HASH> 100644 --- a/DataHandling/setup.py +++ b/DataHandling/setup.py @@ -10,7 +10,7 @@ setup(name='DataHandling', author_email='A.Setter@soton.ac.uk', url=None, package_dir={'DataHandling': 'DataHandling', - packages=['D...
updated setup.py in order to fix pip installation on travis
py