diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/doc/conf.py b/doc/conf.py index <HASH>..<HASH> 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -60,7 +60,7 @@ html_context.update({ 'DESCRIPTION': description, 'AUTHOR': authors, 'VERSION': version, - 'WEBSITE_SERVER': 'https:', + 'WEBSITE_URL': 'https://holoviews.org', # for canonical l...
Might fix canonical link? (#<I>)
py
diff --git a/instana/log.py b/instana/log.py index <HASH>..<HASH> 100644 --- a/instana/log.py +++ b/instana/log.py @@ -35,9 +35,13 @@ def running_in_gunicorn(): process_check = False package_check = False - for arg in sys.argv: - if arg.find('gunicorn') >= 0: - process_check = True + ...
Make sure command line is available before inspecting. (#<I>)
py
diff --git a/libraries/botbuilder-schema/botbuilder/schema/teams/_models_py3.py b/libraries/botbuilder-schema/botbuilder/schema/teams/_models_py3.py index <HASH>..<HASH> 100644 --- a/libraries/botbuilder-schema/botbuilder/schema/teams/_models_py3.py +++ b/libraries/botbuilder-schema/botbuilder/schema/teams/_models_py3....
Added AppBasedQuery state property. (#<I>)
py
diff --git a/nox.py b/nox.py index <HASH>..<HASH> 100644 --- a/nox.py +++ b/nox.py @@ -1,5 +1,3 @@ -# Copyright 2017 Google Inc. -# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at
Removing accidentally added Google mention in license header.
py
diff --git a/distro.py b/distro.py index <HASH>..<HASH> 100755 --- a/distro.py +++ b/distro.py @@ -62,7 +62,8 @@ NORMALIZED_OS_ID = {} #: * Value: Normalized value. NORMALIZED_LSB_ID = { 'enterpriseenterprise': 'oracle', # Oracle Enterprise Linux - 'redhatenterpriseworkstation': 'rhel', # RHEL 6.7 + 'red...
Fix bug in RHEL6 detection by distributor id. - There are two types of RHEL: server and workstation. - Distributor ID table only had a string for workstation. - Added a string for server.
py
diff --git a/tofu/geom/_comp.py b/tofu/geom/_comp.py index <HASH>..<HASH> 100644 --- a/tofu/geom/_comp.py +++ b/tofu/geom/_comp.py @@ -10,6 +10,7 @@ import warnings import numpy as np import scipy.interpolate as scpinterp import scipy.integrate as scpintg +from inspect import signature as insp # ToFu-specific tr...
[py3] restored import to insp
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -347,6 +347,7 @@ hashicorp = [ ] hdfs = [ 'snakebite-py3', + 'hdfs[avro,dataframe,kerberos]>=2.0.4', ] hive = [ 'hmsclient>=0.1.0',
Add hdfs requirement for hdfs provider (#<I>)
py
diff --git a/tests/test_step.py b/tests/test_step.py index <HASH>..<HASH> 100644 --- a/tests/test_step.py +++ b/tests/test_step.py @@ -13,9 +13,9 @@ def test_step_continuous(): H = np.linalg.inv(C) - hmc = pm.HamiltonianStep(model, model.vars, H) + hmc = pm.HamiltonianMC(model, model.vars, H) ...
BUG: Tests step methods used obsolete names.
py
diff --git a/queries/utils.py b/queries/utils.py index <HASH>..<HASH> 100644 --- a/queries/utils.py +++ b/queries/utils.py @@ -91,9 +91,9 @@ def urlparse(url): :rtype: Parsed """ - value = 'http%s' % url[5:] if url[:5] == 'pgsql' else url + value = 'http%s' % url[5:] if url[:5] == 'postgresql' else ur...
Update urlparse to deal with python <I>
py
diff --git a/salt/states/cmd.py b/salt/states/cmd.py index <HASH>..<HASH> 100644 --- a/salt/states/cmd.py +++ b/salt/states/cmd.py @@ -114,8 +114,14 @@ it can also watch a git state for changes ''' # Import python libs -import grp -import os +# Windows platform has no 'grp' module +HAS_GRP = False +try: + import...
import grp in try Windows has no 'grp' module
py
diff --git a/LiSE/LiSE/node.py b/LiSE/LiSE/node.py index <HASH>..<HASH> 100644 --- a/LiSE/LiSE/node.py +++ b/LiSE/LiSE/node.py @@ -103,10 +103,6 @@ class Node(gorm.graph.Node, rule.RuleFollower, TimeDispatcher): """ - @property - def _cache(self): - return self._dispatch_cache - def _rule_nam...
Get rid of some Node caching related stuff that didn't make sense
py
diff --git a/ELiDE/ELiDE/board/spot.py b/ELiDE/ELiDE/board/spot.py index <HASH>..<HASH> 100644 --- a/ELiDE/ELiDE/board/spot.py +++ b/ELiDE/ELiDE/board/spot.py @@ -59,6 +59,9 @@ class Spot(PawnSpot): pos=self._trigger_upd_collider ) + def on_board(self, *args): + self.board.bind(size=se...
Make Spot reposition itself when its board's size changes
py
diff --git a/loompy/file_attribute_manager.py b/loompy/file_attribute_manager.py index <HASH>..<HASH> 100644 --- a/loompy/file_attribute_manager.py +++ b/loompy/file_attribute_manager.py @@ -61,3 +61,11 @@ class FileAttributeManager(object): # Read it back in to ensure it's synced and normalized normalized = ...
Added __delattr__ method for global (file) attributes
py
diff --git a/tests/conftest.py b/tests/conftest.py index <HASH>..<HASH> 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -44,27 +44,32 @@ def open_test_img(): yield img -def _get_file_json(filename): - file_path = _test_data_path / filename - return json.load(open(file_path, 'r')) +@pytest.f...
make get_test_file_json a fixture
py
diff --git a/tests/test_hunter.py b/tests/test_hunter.py index <HASH>..<HASH> 100644 --- a/tests/test_hunter.py +++ b/tests/test_hunter.py @@ -711,7 +711,8 @@ def test_debugger(LineMatcher): lambda event: event.locals.get("node") == "Foobar", module="test_hunter", function="foo", - act...
Add this for figuring out failures.
py
diff --git a/salt/runner.py b/salt/runner.py index <HASH>..<HASH> 100644 --- a/salt/runner.py +++ b/salt/runner.py @@ -30,8 +30,7 @@ class RunnerClient(object): Return a dictionary of functions and the inline documentation for each ''' ret = [(fun, self.functions[fun].__doc__) - ...
Removed runner docs qualifier I'm not sure what this was for...
py
diff --git a/drivers/python/rethinkdb/ast.py b/drivers/python/rethinkdb/ast.py index <HASH>..<HASH> 100644 --- a/drivers/python/rethinkdb/ast.py +++ b/drivers/python/rethinkdb/ast.py @@ -1483,31 +1483,16 @@ class Wait(RqlMethodQuery): st = "wait" -class WaitTL(RqlTopLevelQuery): - tt = pTerm.WAIT - st = ...
Removing unneeded definitions OTS by @danielmewes
py
diff --git a/c3d.py b/c3d.py index <HASH>..<HASH> 100644 --- a/c3d.py +++ b/c3d.py @@ -893,30 +893,18 @@ class Manager(object): ''' Access the parsed c3d header. ''' return self._header - def group(self, key): - ''' Access a paramater group from a group key. - - Attributes - ...
- Manager.group(), Manager.get() should be used.
py
diff --git a/salt/minion.py b/salt/minion.py index <HASH>..<HASH> 100644 --- a/salt/minion.py +++ b/salt/minion.py @@ -141,10 +141,10 @@ class Minion(object): if not self._glob_match(data['tgt']): return ret - if self.functions.has_key(data['fun']): + try: ret[...
Make the module functions able to throw exceptions
py
diff --git a/sebastian/midi/write_midi.py b/sebastian/midi/write_midi.py index <HASH>..<HASH> 100755 --- a/sebastian/midi/write_midi.py +++ b/sebastian/midi/write_midi.py @@ -93,7 +93,6 @@ class SMF(object): for point in track: offset, note_value, duration = point.tuple(OFFSET_64, MIDI_PIT...
Accidentally guarded against invalid velocities twice.
py
diff --git a/jnrbase/pager.py b/jnrbase/pager.py index <HASH>..<HASH> 100644 --- a/jnrbase/pager.py +++ b/jnrbase/pager.py @@ -38,5 +38,6 @@ def pager(text, pager='less'): pager.communicate(text) else: pager.communicate(text.encode()) + pager.wait() else: print(te...
Always wait for subprocess completion in pager
py
diff --git a/proxmin/operators.py b/proxmin/operators.py index <HASH>..<HASH> 100644 --- a/proxmin/operators.py +++ b/proxmin/operators.py @@ -119,7 +119,7 @@ def prox_max_entropy(X, step, gamma=1): return - gamma_ * np.real(lambertw(np.exp(-(X + gamma_) / gamma_) / -gamma_)) -class AlternatingProjections: +cl...
made AlternatingProjections derive from object
py
diff --git a/web/core/application.py b/web/core/application.py index <HASH>..<HASH> 100644 --- a/web/core/application.py +++ b/web/core/application.py @@ -42,6 +42,9 @@ class Application(object): * Collection and execution of `web.extension` callbacks. * WSGI middleware wrapping. * The final WSGI application hand...
Application-as-extension.
py
diff --git a/angr/project.py b/angr/project.py index <HASH>..<HASH> 100644 --- a/angr/project.py +++ b/angr/project.py @@ -428,7 +428,7 @@ class Project(object): addr = state.se.any_int(state.regs.ip) - if jumpkind == "Ijk_Sys_syscall": + if jumpkind.startswith("Ijk_Sys_"): l.deb...
Handle more cases of syscall jumpkinds.
py
diff --git a/src/SALib/util/problem.py b/src/SALib/util/problem.py index <HASH>..<HASH> 100644 --- a/src/SALib/util/problem.py +++ b/src/SALib/util/problem.py @@ -53,6 +53,9 @@ class ProblemSpec(dict): self._samples = vals + # Clear results to avoid confusion + self._results = None + @pr...
If samples are overridden, clear result attribute to avoid confusion
py
diff --git a/test.py b/test.py index <HASH>..<HASH> 100755 --- a/test.py +++ b/test.py @@ -195,24 +195,25 @@ class CollectorTestCase(unittest.TestCase): self.assertEqual(actual_value, expected_value, message) - actual_value = calls[0][0][0].value - expected_value = value - precision = ...
Don't check values when checking unpublised metric Change as discussed on python-diamond/Diamond#<I>
py
diff --git a/bokeh/objects.py b/bokeh/objects.py index <HASH>..<HASH> 100644 --- a/bokeh/objects.py +++ b/bokeh/objects.py @@ -718,7 +718,7 @@ class GMapPlot(PlotObject): self.outer_height = self.height return super(GMapPlot, self).vm_props(*args, **kw) -class GridPlot(PlotObject): +class GridPl...
GridPlot should be a subclass of Plot
py
diff --git a/trionyx/widgets.py b/trionyx/widgets.py index <HASH>..<HASH> 100644 --- a/trionyx/widgets.py +++ b/trionyx/widgets.py @@ -7,7 +7,7 @@ trionyx.widgets """ import json from collections import defaultdict -from typing import Dict, List, ClassVar, Type +from typing import Dict, List, ClassVar, Type, Optiona...
[BUGFIX] Fix widget config_form_class is not set
py
diff --git a/salt/modules/mine.py b/salt/modules/mine.py index <HASH>..<HASH> 100644 --- a/salt/modules/mine.py +++ b/salt/modules/mine.py @@ -192,7 +192,6 @@ def get(tgt, fun, expr_form='glob'): 'list': __salt__['match.list'], 'grain': __salt__['match.grain'], ...
Also remove the expr_form match for compound
py
diff --git a/openquake/server/tests/tests.py b/openquake/server/tests/tests.py index <HASH>..<HASH> 100644 --- a/openquake/server/tests/tests.py +++ b/openquake/server/tests/tests.py @@ -54,9 +54,7 @@ class EngineServerTestCase(unittest.TestCase): def get(cls, path, **data): resp = cls.c.get('/v1/calc/%s'...
Cleanup [skip CI]
py
diff --git a/pypot/dynamixel/io/io.py b/pypot/dynamixel/io/io.py index <HASH>..<HASH> 100644 --- a/pypot/dynamixel/io/io.py +++ b/pypot/dynamixel/io/io.py @@ -266,3 +266,7 @@ _add_control('force control enable', _add_control('goal force', address=0x47, models=('SR-RH4D',)) + +_add_control('...
Adding goal acceleration for MX servos
py
diff --git a/pymongo/database.py b/pymongo/database.py index <HASH>..<HASH> 100644 --- a/pymongo/database.py +++ b/pymongo/database.py @@ -666,7 +666,7 @@ class Database(common.BaseObject): return cmd_cursor def list_collections(self, session=None, filter=None, **kwargs): - """Get a cursor over t...
Fix typo in list_collections docstring (collectons -> collections) (#<I>)
py
diff --git a/immutables/_version.py b/immutables/_version.py index <HASH>..<HASH> 100644 --- a/immutables/_version.py +++ b/immutables/_version.py @@ -10,4 +10,4 @@ # supported platforms, publish the packages on PyPI, merge the PR # to the target branch, create a Git tag pointing to the commit. -__version__ = '0.12...
<I> Bugfixes * Various improvements w.r.t. type annotations & typing support (by @hukkinj1) * Fix pure-Python implementation to accept keyword argument "col" correctly (by @hukkinj1)
py
diff --git a/libcomxml/core/__init__.py b/libcomxml/core/__init__.py index <HASH>..<HASH> 100644 --- a/libcomxml/core/__init__.py +++ b/libcomxml/core/__init__.py @@ -221,7 +221,8 @@ class XmlModel(Model): if field != self.root: if isinstance(field, XmlModel): field.bu...
IMP Allow one field not to be dropped when empty even if parent wants it
py
diff --git a/quantecon/models/solow/model.py b/quantecon/models/solow/model.py index <HASH>..<HASH> 100644 --- a/quantecon/models/solow/model.py +++ b/quantecon/models/solow/model.py @@ -522,6 +522,25 @@ class Model(object): actual_inv = self.params['s'] * self.compute_intensive_output(k) return actua...
Added a method for computing consumption.
py
diff --git a/icekit/page_types/layout_page/models.py b/icekit/page_types/layout_page/models.py index <HASH>..<HASH> 100644 --- a/icekit/page_types/layout_page/models.py +++ b/icekit/page_types/layout_page/models.py @@ -3,10 +3,10 @@ from . import abstract_models class LayoutPage(abstract_models.AbstractLayoutPage): ...
Change verbose name of Layout Page to ‘Page’ for simplicity.
py
diff --git a/proselint/checks/garner/misspelling.py b/proselint/checks/garner/misspelling.py index <HASH>..<HASH> 100644 --- a/proselint/checks/garner/misspelling.py +++ b/proselint/checks/garner/misspelling.py @@ -112,6 +112,8 @@ def check(text): ["misspelling", ["mispelling"]], ["mischievous",...
Add rule on monologues and monologuists
py
diff --git a/src/python/dxpy/scripts/dx_bed_to_spans.py b/src/python/dxpy/scripts/dx_bed_to_spans.py index <HASH>..<HASH> 100644 --- a/src/python/dxpy/scripts/dx_bed_to_spans.py +++ b/src/python/dxpy/scripts/dx_bed_to_spans.py @@ -394,8 +394,6 @@ parser.add_argument('filename', help='local filename to import') parser....
fix dx-bed-to-spans for command line
py
diff --git a/broadlink/__init__.py b/broadlink/__init__.py index <HASH>..<HASH> 100644 --- a/broadlink/__init__.py +++ b/broadlink/__init__.py @@ -126,6 +126,7 @@ def discover(timeout=None, local_ip_address=None): mac = responsepacket[0x3a:0x40] dev = gendevice(devtype, host, mac) devices.append(de...
Ensure discover() returns devices and not None There's a small race condition in the discover() method. If recv() returns before the socket timeout is reached, but we hit the top of the loop after the timeout is reached, we'll return None rather than the set of devices.
py
diff --git a/nion/swift/Panel.py b/nion/swift/Panel.py index <HASH>..<HASH> 100755 --- a/nion/swift/Panel.py +++ b/nion/swift/Panel.py @@ -244,7 +244,7 @@ class HeaderCanvasItem(CanvasItem.CanvasItemComposition): def __set_default_style(self): if sys.platform == "win32": - self.__font = 'norm...
Improve font scaling in display panel header on Windows.
py
diff --git a/doc/conf.py b/doc/conf.py index <HASH>..<HASH> 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -86,7 +86,13 @@ elif build_type == "next": search_cx = "011515552685726825874:ht0p8miksrm" # latest elif build_type == "previous": release = previous_release - if release.startswith("3003"): + if ...
Setting up CSE search values through <I>
py
diff --git a/pliers/tests/extractors/test_text_extractors.py b/pliers/tests/extractors/test_text_extractors.py index <HASH>..<HASH> 100644 --- a/pliers/tests/extractors/test_text_extractors.py +++ b/pliers/tests/extractors/test_text_extractors.py @@ -176,7 +176,7 @@ def test_spacy_token_extractor(): assert result[...
update spacy tests to reflect new model
py
diff --git a/cogen/core/schedulers.py b/cogen/core/schedulers.py index <HASH>..<HASH> 100644 --- a/cogen/core/schedulers.py +++ b/cogen/core/schedulers.py @@ -7,6 +7,7 @@ import datetime import heapq import weakref import sys +import errno from cogen.core.reactors import DefaultReactor from...
catch reactor's EINTR and ignore it
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,6 @@ test_requires = [ 'pytest-mock', 'pytest-asyncio', 'pytest-sugar', - 'aioresponses', 'asynctest', 'codecov', 'flake8',
deps: Remove aioresponses as it is unused
py
diff --git a/basis_set_exchange/api.py b/basis_set_exchange/api.py index <HASH>..<HASH> 100644 --- a/basis_set_exchange/api.py +++ b/basis_set_exchange/api.py @@ -203,6 +203,9 @@ def get_basis(name, # Set to only the elements we want basis_dict['elements'] = {k: v for k, v in bs_elements.items...
Move where basis sets are sorted This make the output after make_general, etc, more readable as general contractions are then blocked
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 @@ -7,10 +7,10 @@ from ros_buildfarm.release_common import dpkg_parsechangelog def get_sources( rosdistro_index_url, rosdistro_name...
change sourcedeb job to use rosdistro cache
py
diff --git a/tests/wsgi_server.py b/tests/wsgi_server.py index <HASH>..<HASH> 100644 --- a/tests/wsgi_server.py +++ b/tests/wsgi_server.py @@ -21,7 +21,6 @@ hdlr.setFormatter(base_formatter) LOGGER.addHandler(hdlr) LOGGER.setLevel(logging.DEBUG) - class WsgiApplication(object): def __init__(self, config, debu...
Creates a new instance of the SATOSA proxy for every call in the test wsgi server, to make sure the proxy is stateless
py
diff --git a/pycbc/types/timeseries.py b/pycbc/types/timeseries.py index <HASH>..<HASH> 100644 --- a/pycbc/types/timeseries.py +++ b/pycbc/types/timeseries.py @@ -125,11 +125,17 @@ class TimeSeries(Array): return int(1.0/self.delta_t) sample_rate = property(get_sample_rate) - def get_start_time(self)...
add setter for start_time timeseries attribute
py
diff --git a/riak/transports/pbc/connection.py b/riak/transports/pbc/connection.py index <HASH>..<HASH> 100644 --- a/riak/transports/pbc/connection.py +++ b/riak/transports/pbc/connection.py @@ -62,7 +62,7 @@ class RiakPbcConnection(object): Similar to self._send, but doesn't try to initiate a connection, ...
fixes incorrect socket.send usage in PBC connection. Socket.sendall is used instead
py
diff --git a/compara/synteny.py b/compara/synteny.py index <HASH>..<HASH> 100755 --- a/compara/synteny.py +++ b/compara/synteny.py @@ -1340,8 +1340,8 @@ def depth(args): qtag = "# of {} blocks per {} gene".format(sgenome, qgenome) stag = "# of {} blocks per {} gene".format(qgenome, sgenome) - quickplot_a...
[compara] Rearrange q and s panel
py
diff --git a/checkers/variables.py b/checkers/variables.py index <HASH>..<HASH> 100644 --- a/checkers/variables.py +++ b/checkers/variables.py @@ -261,8 +261,6 @@ builtins. Remember that you should avoid to define new builtins when possible.' # do not check for not used locals here self._to_consume.po...
[variables checker] drop check_messages that trigger false positive when other messages from this checker are disabled (eg running --errors-only)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -60,5 +60,5 @@ setup( description='Idiomatic access to digital objects in a Fedora Commons repository', long_description=LONG_DESCRIPTION, classifiers=CLASSIFIERS, - scripts=['scripts/fedora-checksums', ], + ...
configure validate-checksum script to be installed via setup.py [#<I>]
py
diff --git a/trashcli/put.py b/trashcli/put.py index <HASH>..<HASH> 100644 --- a/trashcli/put.py +++ b/trashcli/put.py @@ -352,7 +352,7 @@ class TrashPutReporter: def unable_to_trash_file_in_because(self, file_to_be_trashed, trash_di...
Fix error message spacing Should be "because: %s", not "because :%s". Otherwise error messages look like "Failed to trash foo in /.Trash, because :topdir should..."
py
diff --git a/guppi.py b/guppi.py index <HASH>..<HASH> 100755 --- a/guppi.py +++ b/guppi.py @@ -16,6 +16,12 @@ from astropy.coordinates import Angle from utils import unpack, rebin +try: + import seaborn as sns + sns.set_style('dark') +except: + pass + # Check if $DISPLAY is set (for handling plotting on ...
Fixed some plotting issues, added seaborn
py
diff --git a/ck/kernel.py b/ck/kernel.py index <HASH>..<HASH> 100644 --- a/ck/kernel.py +++ b/ck/kernel.py @@ -543,8 +543,7 @@ def run_and_get_stdout(i): cmd=cmd.split(' ') p1 = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) - output = p1.communicate()[0] - error = p1.communicate()[1...
Fix issue when run_and_get_stdout() calls Popen.communicate() twice
py
diff --git a/peng3d/version.py b/peng3d/version.py index <HASH>..<HASH> 100644 --- a/peng3d/version.py +++ b/peng3d/version.py @@ -24,7 +24,7 @@ __all__ = ["VERSION","RELEASE"] -VERSION = "1.8.0a1" +VERSION = "1.9.0a1" """ Full version number of format ``MAJOR.MINOR.BUGFIX(a|b|pre)SUBRELEASE`` where major is inc...
Changed version numbers for <I>a1
py
diff --git a/www/src/Lib/site-packages/ui/dialog.py b/www/src/Lib/site-packages/ui/dialog.py index <HASH>..<HASH> 100644 --- a/www/src/Lib/site-packages/ui/dialog.py +++ b/www/src/Lib/site-packages/ui/dialog.py @@ -17,7 +17,7 @@ class Dialog(html.DIV, widget.DraggableWidget): titlebar <= self._title ...
Minor change in ui/dialog.py
py
diff --git a/python/tests/phonenumberutiltest.py b/python/tests/phonenumberutiltest.py index <HASH>..<HASH> 100755 --- a/python/tests/phonenumberutiltest.py +++ b/python/tests/phonenumberutiltest.py @@ -2396,6 +2396,8 @@ class PhoneNumberUtilTest(TestMetadataTestCase): # Create some metadata, including an in...
Fix unit test to have more valid fake metadata
py
diff --git a/rebound/simulation.py b/rebound/simulation.py index <HASH>..<HASH> 100644 --- a/rebound/simulation.py +++ b/rebound/simulation.py @@ -95,8 +95,11 @@ class reb_collision(Structure): _fields_ = [("p1", c_int), ("p2", c_int), ("gb", reb_ghostbox), - ("time...
Fixed collision struct in python
py
diff --git a/data/migrations/deb/1_3_433_to_1_3_434.py b/data/migrations/deb/1_3_433_to_1_3_434.py index <HASH>..<HASH> 100644 --- a/data/migrations/deb/1_3_433_to_1_3_434.py +++ b/data/migrations/deb/1_3_433_to_1_3_434.py @@ -94,6 +94,7 @@ def get_node_ip(): ledger = get_pool_ledger(node_name) nodeReg, _, ...
Add ledger stop to migration script.
py
diff --git a/saltcloud/cloud.py b/saltcloud/cloud.py index <HASH>..<HASH> 100644 --- a/saltcloud/cloud.py +++ b/saltcloud/cloud.py @@ -469,7 +469,7 @@ class Cloud(object): ) ) - if 'pub_key' not in vm_ and 'priv_key' not in vm_: + if deploy is True and 'pub_key' not in vm_ ...
Don't generate nor accept a minion key if not deploying.
py
diff --git a/indra/tests/test_groundingmapper.py b/indra/tests/test_groundingmapper.py index <HASH>..<HASH> 100644 --- a/indra/tests/test_groundingmapper.py +++ b/indra/tests/test_groundingmapper.py @@ -429,8 +429,8 @@ def test_standardize_name_efo_hp_doid(): ag = Agent('x', db_refs={'DOID': 'DOID:0014667'}) ...
Update name standardization test with new name
py
diff --git a/hearthstone/hslog/player.py b/hearthstone/hslog/player.py index <HASH>..<HASH> 100644 --- a/hearthstone/hslog/player.py +++ b/hearthstone/hslog/player.py @@ -67,8 +67,7 @@ class PlayerManager: return lazy_player def register_controller(self, entity, controller): - if self._entity_controller_map is ...
hslog: Do not wipe the _entity_controller_map during parsing It makes the parser less reliable and it's a premature optimization.
py
diff --git a/tests/test_comics.py b/tests/test_comics.py index <HASH>..<HASH> 100644 --- a/tests/test_comics.py +++ b/tests/test_comics.py @@ -89,13 +89,13 @@ def make_comic_tester(name, **kwargs): def generate_comic_testers(): """For each comic scraper, create a test class.""" g = globals() - # optional:...
Limit number of tests for Travis CI.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -70,7 +70,7 @@ try: read_md = lambda f: convert(f, 'rst', 'md') except ImportError: print("warning: pypandoc module not found, could not convert Markdown to RST") - read_md = lambda f: open(f, 'r').read() + re...
Change missing pandoc read_md to no-op
py
diff --git a/hvac/v1/__init__.py b/hvac/v1/__init__.py index <HASH>..<HASH> 100644 --- a/hvac/v1/__init__.py +++ b/hvac/v1/__init__.py @@ -44,7 +44,7 @@ class Client(object): """ return self._get('/v1/sys/init').json()['initialized'] - def initialize(self, secret_shares=5, secret_threshold=3): + ...
Add support for PGP encryption for unseal keys Added in Vault <I>
py
diff --git a/citrination_client/search/client.py b/citrination_client/search/client.py index <HASH>..<HASH> 100644 --- a/citrination_client/search/client.py +++ b/citrination_client/search/client.py @@ -41,6 +41,7 @@ class SearchClient(BaseClient): :rtype: :class:`PifSearchResult` """ + #filt...
Adding comment to explain the use of the filter for adding from_index and start
py
diff --git a/elifearticle/article.py b/elifearticle/article.py index <HASH>..<HASH> 100644 --- a/elifearticle/article.py +++ b/elifearticle/article.py @@ -81,7 +81,7 @@ class Article(object): def get_datasets(self, dataset_type=None): if dataset_type: - return filter(lambda d: str(d.dataset_t...
Refactor lambda function as a list comprehension.
py
diff --git a/panoramix/views.py b/panoramix/views.py index <HASH>..<HASH> 100644 --- a/panoramix/views.py +++ b/panoramix/views.py @@ -255,7 +255,6 @@ class Panoramix(BaseView): @has_access @expose("/datasource/<datasource_type>/<datasource_id>/") def datasource(self, datasource_type, datasource_id): - ...
Removing raise statement used for testing
py
diff --git a/openquake/engine/calculators/risk/hazard_getters.py b/openquake/engine/calculators/risk/hazard_getters.py index <HASH>..<HASH> 100644 --- a/openquake/engine/calculators/risk/hazard_getters.py +++ b/openquake/engine/calculators/risk/hazard_getters.py @@ -290,7 +290,7 @@ WITH assocs AS ( AND exposure_mode...
Fixed the name of a field (risk_job_id->job_id) Former-commit-id: be<I>c<I>c4bf0e<I>d<I>e5bd7
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 @@ -495,7 +495,7 @@ class CodeCompletionMode(Mode, QtCore.QObject): unichr(0xd800)...
Update comment about this horrible code snipped
py
diff --git a/mtp_common/auth/api_client.py b/mtp_common/auth/api_client.py index <HASH>..<HASH> 100644 --- a/mtp_common/auth/api_client.py +++ b/mtp_common/auth/api_client.py @@ -134,7 +134,8 @@ def get_connection_with_session(user, session): raise Unauthorized(u'no such user') def token_saver(token, se...
Replace mistakenly removed assignment for updating user token
py
diff --git a/lptest.py b/lptest.py index <HASH>..<HASH> 100644 --- a/lptest.py +++ b/lptest.py @@ -375,10 +375,7 @@ class ServerThread(threading.Thread): self.ready = threading.Event() def run(self): - server = BaseHTTPServer.HTTPServer - bind_to = ('127.0.0.1', 8091) - reqhandler =...
Simplify the HTTP daemon initialization code
py
diff --git a/source/clique/collection.py b/source/clique/collection.py index <HASH>..<HASH> 100644 --- a/source/clique/collection.py +++ b/source/clique/collection.py @@ -83,7 +83,7 @@ class Collection(object): def __ne__(self, other): '''Return whether *other* collection is not equal.''' - resul...
Fix Collection class comparison method failures.
py
diff --git a/quantecon/models/__init__.py b/quantecon/models/__init__.py index <HASH>..<HASH> 100644 --- a/quantecon/models/__init__.py +++ b/quantecon/models/__init__.py @@ -6,8 +6,10 @@ objects imported here will live in the `quantecon.models` namespace """ __all__ = ["AssetPrices", "CareerWorkerProblem", "Consum...
Fixed import statements in __init__.py to include solow module.
py
diff --git a/tests/integration/test_labels.py b/tests/integration/test_labels.py index <HASH>..<HASH> 100644 --- a/tests/integration/test_labels.py +++ b/tests/integration/test_labels.py @@ -43,7 +43,7 @@ def test_labels_in_image(): "io.k8s.description_label": "PASS", "vcs-ur...
Helpfile check does not stop with ERROR in test
py
diff --git a/km3pipe/calib.py b/km3pipe/calib.py index <HASH>..<HASH> 100644 --- a/km3pipe/calib.py +++ b/km3pipe/calib.py @@ -141,7 +141,13 @@ class Calibration(Module): """ if not no_copy: - hits = hits.copy() + try: + hits = hits.copy() + except Att...
Calibration procedure for km3io offline hits
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -14,6 +14,7 @@ setup( license='MIT', description='Double entry book keeping in Django', long_description=open('README.rst').read() if exists("README.rst") else "", + include_package_data=True, install_re...
setting include_package_data=True in setup.py to ensure static files are included
py
diff --git a/testing/selftest.py b/testing/selftest.py index <HASH>..<HASH> 100755 --- a/testing/selftest.py +++ b/testing/selftest.py @@ -1,3 +1,5 @@ +import matplotlib +matplotlib.use('agg') import unittest try: @@ -39,14 +41,14 @@ class TestAbuChart(unittest.TestCase): def test_abu_chart(self): fro...
Reduce volume of data pulled, another DISPLAY fix
py
diff --git a/elasticsearch_dsl/search.py b/elasticsearch_dsl/search.py index <HASH>..<HASH> 100644 --- a/elasticsearch_dsl/search.py +++ b/elasticsearch_dsl/search.py @@ -409,7 +409,7 @@ class Search(Request): if s._source is None: s._source = {} - for key, value in kwargs.iteritems(): + ...
Changed iteritems to items for Python 3 support
py
diff --git a/ipa/ipa_provider.py b/ipa/ipa_provider.py index <HASH>..<HASH> 100644 --- a/ipa/ipa_provider.py +++ b/ipa/ipa_provider.py @@ -456,14 +456,17 @@ class IpaProvider(object): There are 5 injection options: :inject_packages: an rpm path or list of rpm paths which will be - ...
Update docstring add order of execution.
py
diff --git a/hpcbench/toolbox/slurm/cluster.py b/hpcbench/toolbox/slurm/cluster.py index <HASH>..<HASH> 100644 --- a/hpcbench/toolbox/slurm/cluster.py +++ b/hpcbench/toolbox/slurm/cluster.py @@ -1,6 +1,7 @@ import collections import datetime import csv +import logging import re import subprocess @@ -67,7 +68,11 ...
error recovery when sinfo is not available
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from pathlib import Path from setuptools import setup -VERSION = "0.6.0" +VERSION = "0.6.1" URL = "https://github.com/kellerza/pysma" setup(
Bump to version <I>
py
diff --git a/osbs/utils.py b/osbs/utils.py index <HASH>..<HASH> 100644 --- a/osbs/utils.py +++ b/osbs/utils.py @@ -247,7 +247,8 @@ def get_repo_info(git_uri, git_ref, git_branch=None): with checkout_git_repo(git_uri, git_ref, git_branch) as code_dir: dfp = DockerfileParser(os.path.join(code_dir), cache_co...
added tags from contianer yaml even to first tags_config initialization
py
diff --git a/tests/conftest.py b/tests/conftest.py index <HASH>..<HASH> 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -254,6 +254,8 @@ def pytest_collection_modifyitems(items): for item in items: fspath = str(item.fspath) if '/integration/' in fspath: + if 'test_daemon' not...
Only start the test_daemon fixture on integration tests
py
diff --git a/src/app/actions/pycolator/splitmerge.py b/src/app/actions/pycolator/splitmerge.py index <HASH>..<HASH> 100644 --- a/src/app/actions/pycolator/splitmerge.py +++ b/src/app/actions/pycolator/splitmerge.py @@ -58,20 +58,22 @@ def protein_header_split_generator(elements, headers, ns, prot_type): """Loop th...
Corrected support for identifying known peptides
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -31,6 +31,7 @@ test_dependencies = optional_dependencies + [ "pytest-coverage", "hypothesis", 'mypy;implementation_name=="cpython"', + 'types-dataclasses;python_version=="3.6"', ] setuptools.setup(
add test dependency on types-dataclasses in accordance with recent mypy changes
py
diff --git a/deepdish/io/hdf5io.py b/deepdish/io/hdf5io.py index <HASH>..<HASH> 100644 --- a/deepdish/io/hdf5io.py +++ b/deepdish/io/hdf5io.py @@ -102,7 +102,7 @@ def _save_level(handler, group, level, name=None, compress=True): _save_ndarray(handler, new_group, 'data', level.data, compress=compress) ...
Turned off compression for sparse shape
py
diff --git a/plenum/test/node_catchup/test_catchup_req_distribution.py b/plenum/test/node_catchup/test_catchup_req_distribution.py index <HASH>..<HASH> 100644 --- a/plenum/test/node_catchup/test_catchup_req_distribution.py +++ b/plenum/test/node_catchup/test_catchup_req_distribution.py @@ -18,7 +18,7 @@ def test_catchu...
INDY-<I>: Improve tests
py
diff --git a/pyqode/python/modes/syntax_highlighter.py b/pyqode/python/modes/syntax_highlighter.py index <HASH>..<HASH> 100644 --- a/pyqode/python/modes/syntax_highlighter.py +++ b/pyqode/python/modes/syntax_highlighter.py @@ -303,7 +303,10 @@ class PyHighlighterMode(SyntaxHighlighter, Mode): def doHighlightBloc...
Fix issue if user use an outdated version of core
py
diff --git a/spyder/utils/ipython/start_kernel.py b/spyder/utils/ipython/start_kernel.py index <HASH>..<HASH> 100644 --- a/spyder/utils/ipython/start_kernel.py +++ b/spyder/utils/ipython/start_kernel.py @@ -66,13 +66,17 @@ def kernel_config(): # ---- Spyder config ---- spy_cfg = Config() + # Enable/disab...
IPython console: Avoid loading/saving history in safe mode or testing
py
diff --git a/tests/scripts/test_phy_spikesort.py b/tests/scripts/test_phy_spikesort.py index <HASH>..<HASH> 100644 --- a/tests/scripts/test_phy_spikesort.py +++ b/tests/scripts/test_phy_spikesort.py @@ -21,4 +21,4 @@ def test_quick_start(chdir_tempdir): main('download hybrid_10sec.dat') main('download hybrid_...
Don't open the GUI by default in integration test.
py
diff --git a/tests/test_hunter.py b/tests/test_hunter.py index <HASH>..<HASH> 100644 --- a/tests/test_hunter.py +++ b/tests/test_hunter.py @@ -16,6 +16,7 @@ except ImportError: import pytest +import hunter from hunter import And from hunter import Not from hunter import Or @@ -493,3 +494,9 @@ def test_predicate...
Assert that is run with proper backend.
py
diff --git a/read_roi/_read_roi.py b/read_roi/_read_roi.py index <HASH>..<HASH> 100644 --- a/read_roi/_read_roi.py +++ b/read_roi/_read_roi.py @@ -161,9 +161,9 @@ def extract_basic_roi_data(data): top = get_short(data, OFFSET['TOP']) left = get_short(data, OFFSET['LEFT']) - if top > 6000: + if top >= ...
BUG: int<I> boundary for negation This should be at 2^<I> == <I>, not <I>.
py
diff --git a/mutant/contrib/nonrel/tests.py b/mutant/contrib/nonrel/tests.py index <HASH>..<HASH> 100644 --- a/mutant/contrib/nonrel/tests.py +++ b/mutant/contrib/nonrel/tests.py @@ -71,18 +71,14 @@ class IterableFieldDefinitionTest(BaseModelDefinitionTestCase): self.assertEqual(instance.field, value) ...
Updated nonrel set field tests since mongodb engine south adapters now treats sets corretly
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,10 +2,12 @@ from distutils.core import setup -version = '0.2.2' + +exec(open('mocpy/version.py').read()) + setup(name='MOCPy', - version=version, + version=__version__, description='MOC parsing and ...
version is read from version.py
py
diff --git a/test.py b/test.py index <HASH>..<HASH> 100755 --- a/test.py +++ b/test.py @@ -2545,7 +2545,8 @@ class XboardEngineTestCase(unittest.TestCase): self.mock.expect("result 1/2-1/2") self.engine.draw() - time.sleep(0.01) + self.mock.expect("ping 123", ("pong 123", )) + s...
Use ping instead of sleep with mock process
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,8 +13,6 @@ with open(init_path) as read_file: pattern = re.compile(r"^__version__ = ['\"]([^'\"]*)['\"]", re.MULTILINE) version = pattern.search(text).group(1) -# long_description -readme_path = os.path.join(directory,...
get desc from readme.rst
py
diff --git a/dallinger/command_line.py b/dallinger/command_line.py index <HASH>..<HASH> 100755 --- a/dallinger/command_line.py +++ b/dallinger/command_line.py @@ -614,13 +614,22 @@ def dump_database(id): os.makedirs(dump_dir) try: - subprocess.check_call([ + FNULL = open(os.devnull, 'w') +...
Update data export for new Heroku CLI (#<I>) heroku pg:backups capture vs. heroku pg:backups:capture
py
diff --git a/paperwork_backend/config.py b/paperwork_backend/config.py index <HASH>..<HASH> 100644 --- a/paperwork_backend/config.py +++ b/paperwork_backend/config.py @@ -17,6 +17,7 @@ Paperwork configuration management code """ +import base64 import configparser import logging import os @@ -74,17 +75,26 @@ clas...
Config: ConfigParser doesn't seem to like URI as values ... --> encode them using base<I>
py