diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/porespy/__vis__.py b/porespy/__vis__.py index <HASH>..<HASH> 100644 --- a/porespy/__vis__.py +++ b/porespy/__vis__.py @@ -22,3 +22,13 @@ class Visualizations(object): im = im*depth im = sp.amax(im, axis=0) return im + + @staticmethod + def xray(im, direction='X'): + ...
Added xray view to Visualization
py
diff --git a/SAM.py b/SAM.py index <HASH>..<HASH> 100644 --- a/SAM.py +++ b/SAM.py @@ -239,7 +239,7 @@ class SAM(object): else: numcells = D.shape[0] - mask_cells = np.zeros(numcells, dtype='bool') + mask_cells = np.zeros(D.shape[0], dtype='bool') mask_cells[idx_cells] = T...
Fixed downsampling bug in preprocess_data
py
diff --git a/nicfit/util.py b/nicfit/util.py index <HASH>..<HASH> 100644 --- a/nicfit/util.py +++ b/nicfit/util.py @@ -67,7 +67,7 @@ def initGetText(domain, install=False, fallback=True): Path(sys.prefix) / "share" / "locale", ] - translation = None + locale_dir, translation = None, None for ...
fix: for when no locale directories can be found
py
diff --git a/hbmqtt/client.py b/hbmqtt/client.py index <HASH>..<HASH> 100644 --- a/hbmqtt/client.py +++ b/hbmqtt/client.py @@ -182,7 +182,7 @@ class MQTTClient: :return: """ try: - while True: + while self.client_tasks: task = self.client_tasks.pop() ...
Slight enhancement to client_tasks.pop() in cancel tasks and disconnect logic.
py
diff --git a/stockExperiments/sources/yahoofinance.py b/stockExperiments/sources/yahoofinance.py index <HASH>..<HASH> 100644 --- a/stockExperiments/sources/yahoofinance.py +++ b/stockExperiments/sources/yahoofinance.py @@ -17,20 +17,17 @@ def historical_prices(symbol, start_date=None, end_date=None): def splits(symb...
Removed some disnecessary comments from inherited code in yahoofinance source.
py
diff --git a/doc/conf.py b/doc/conf.py index <HASH>..<HASH> 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -69,6 +69,18 @@ sphinx_gallery_conf = { # path where to save gallery generated examples 'gallery_dirs' : 'auto_examples'} +# After python 3.3 +# from unittest.mock import MagicMock +from mock import Mo...
rtd failing. Potential fix for pyquic import using mock
py
diff --git a/tests/cases/setup_database_test.py b/tests/cases/setup_database_test.py index <HASH>..<HASH> 100644 --- a/tests/cases/setup_database_test.py +++ b/tests/cases/setup_database_test.py @@ -168,9 +168,8 @@ class SetupDatabaseTestCase(base.TestCase): 'creatorId': admin['_id'] }, item, 'emp...
Fix test that depended on buggy behavior
py
diff --git a/tests/middleware/test_time_limit.py b/tests/middleware/test_time_limit.py index <HASH>..<HASH> 100644 --- a/tests/middleware/test_time_limit.py +++ b/tests/middleware/test_time_limit.py @@ -14,6 +14,7 @@ from ..common import skip_with_gevent, skip_without_gevent not_supported = threading.current_platform ...
test: skip platform test under gevent
py
diff --git a/pyrogram/client/methods/decorators/on_callback_query.py b/pyrogram/client/methods/decorators/on_callback_query.py index <HASH>..<HASH> 100644 --- a/pyrogram/client/methods/decorators/on_callback_query.py +++ b/pyrogram/client/methods/decorators/on_callback_query.py @@ -17,6 +17,7 @@ # along with Pyrogram....
Allow on_callback_query to be used as a static decorator
py
diff --git a/tests/algebra/test_rules.py b/tests/algebra/test_rules.py index <HASH>..<HASH> 100644 --- a/tests/algebra/test_rules.py +++ b/tests/algebra/test_rules.py @@ -20,6 +20,7 @@ """Test *all* of the algebraic rules (the rules in the _rules and _binary_rules class attributes of all Operation subclasses""" +im...
Adapt tests to pytest>=<I> There were some breaking changes in pytest related to capturing logging output
py
diff --git a/tests/core/test_InitNornir.py b/tests/core/test_InitNornir.py index <HASH>..<HASH> 100644 --- a/tests/core/test_InitNornir.py +++ b/tests/core/test_InitNornir.py @@ -56,6 +56,14 @@ class Test(object): assert len(nr.inventory.hosts) assert len(nr.inventory.groups) + def test_InitNorni...
test overriding partially a section (#<I>)
py
diff --git a/test_json_struct.py b/test_json_struct.py index <HASH>..<HASH> 100644 --- a/test_json_struct.py +++ b/test_json_struct.py @@ -463,6 +463,11 @@ class test_JSON(): if not k in mstruct[list_name].keys(): mstruct[list_name][k] = v + ...
Update on merging (lookup_lists and reference_values)
py
diff --git a/oauth2/clients/smtp.py b/oauth2/clients/smtp.py index <HASH>..<HASH> 100644 --- a/oauth2/clients/smtp.py +++ b/oauth2/clients/smtp.py @@ -11,6 +11,5 @@ class SMTP(smtplib.SMTP): if token is not None and not isinstance(token, oauth2.Token): raise ValueError("Invalid token.") - ...
Tiny + vs % bug was causing SMTP to fail.
py
diff --git a/round/wallets.py b/round/wallets.py index <HASH>..<HASH> 100644 --- a/round/wallets.py +++ b/round/wallets.py @@ -47,8 +47,8 @@ def generate(passphrase, trees=['primary']): for tree in trees: result[tree] = dict(private_seed=seeds[tree], public_seed=multi_wallet.p...
Default to encrypting with aes as of <I>
py
diff --git a/lib/reda/containers/BaseContainer.py b/lib/reda/containers/BaseContainer.py index <HASH>..<HASH> 100644 --- a/lib/reda/containers/BaseContainer.py +++ b/lib/reda/containers/BaseContainer.py @@ -105,6 +105,20 @@ class ImportersBase(object): if self.data is None: self.data = data ...
[base container] check that timesteps have the same data type before adding new data to existing data
py
diff --git a/src/into_dbus_python/_signature.py b/src/into_dbus_python/_signature.py index <HASH>..<HASH> 100644 --- a/src/into_dbus_python/_signature.py +++ b/src/into_dbus_python/_signature.py @@ -117,5 +117,5 @@ def signature(dbus_object): elif isinstance(dbus_object, dbus.UInt64): return 't' - el...
Omit coverage for unix file descriptor. It is hard to generate ones dbus-python considers valid.
py
diff --git a/test/unit/Base/ToolsTest.py b/test/unit/Base/ToolsTest.py index <HASH>..<HASH> 100644 --- a/test/unit/Base/ToolsTest.py +++ b/test/unit/Base/ToolsTest.py @@ -20,7 +20,7 @@ class PrintableListTest: assert 'pore.first' in s assert 'pore._second' not in s - +. class PrintableDictTest: ...
pep8 line spacing...bah1
py
diff --git a/backtrader/strategy.py b/backtrader/strategy.py index <HASH>..<HASH> 100644 --- a/backtrader/strategy.py +++ b/backtrader/strategy.py @@ -29,7 +29,7 @@ class MetaStrategy(LineIterator.__metaclass__): _obj, args, kwargs = super(MetaStrategy, cls).dopreinit(_obj, *args, **kwargs) _obj.env =...
Strategy - Sizer Allocation to preini If not ... parameters for it cannot be set during __init__
py
diff --git a/etc/reset.py b/etc/reset.py index <HASH>..<HASH> 100755 --- a/etc/reset.py +++ b/etc/reset.py @@ -30,8 +30,12 @@ class BaseDriver: async def clear(self): # ignore errors here because most likely no cluster is just deployed # yet + undeploy_args = [] + if (await run("hel...
Don't undeploy ide if it doesn't exist
py
diff --git a/urwid_datatable/listbox.py b/urwid_datatable/listbox.py index <HASH>..<HASH> 100644 --- a/urwid_datatable/listbox.py +++ b/urwid_datatable/listbox.py @@ -96,6 +96,8 @@ class ScrollingListBox(urwid.WidgetWrap): self.requery = False self.height = 0 + self.queued_keypress = None + ...
Queue keypress event when loading more data.
py
diff --git a/ipywebrtc/_version.py b/ipywebrtc/_version.py index <HASH>..<HASH> 100644 --- a/ipywebrtc/_version.py +++ b/ipywebrtc/_version.py @@ -1,6 +1,6 @@ __version_tuple__ = (0, 4, 2) -__version_tuple_js__ = (0, 4, 1) +__version_tuple_js__ = (0, 4, 2) __version__ = '0.4.2' -__version_js__ = '0.4.1' +__version_js...
Release <I> of js
py
diff --git a/pythran/analysis.py b/pythran/analysis.py index <HASH>..<HASH> 100644 --- a/pythran/analysis.py +++ b/pythran/analysis.py @@ -173,6 +173,7 @@ class ImportedIds(NodeAnalysis): def __init__(self): self.result = set() self.current_locals = set() + self.is_list = False su...
We can use ImportIds pass on a list
py
diff --git a/pymola/backends/casadi/api.py b/pymola/backends/casadi/api.py index <HASH>..<HASH> 100644 --- a/pymola/backends/casadi/api.py +++ b/pymola/backends/casadi/api.py @@ -125,6 +125,8 @@ def _save_model(model_folder: str, model_name: str, model: Model): # Generate C code library_name = '{}_{}'...
Debug-log current DLL being generated.
py
diff --git a/python/ccxt/base/exchange.py b/python/ccxt/base/exchange.py index <HASH>..<HASH> 100644 --- a/python/ccxt/base/exchange.py +++ b/python/ccxt/base/exchange.py @@ -624,6 +624,16 @@ class Exchange(object): return default_value @staticmethod + def safe_integer_product(dictionary, key, factor...
added safe_integer_product, safe_integer_product_2 to exchange.py
py
diff --git a/simplesqlite/_logger/_logger.py b/simplesqlite/_logger/_logger.py index <HASH>..<HASH> 100644 --- a/simplesqlite/_logger/_logger.py +++ b/simplesqlite/_logger/_logger.py @@ -41,4 +41,4 @@ def set_logger(is_enable: bool, propagation_depth: int = 2) -> None: def set_log_level(log_level): # deprecated...
Suppress unintended logging output
py
diff --git a/tests/test_fauxfloat.py b/tests/test_fauxfloat.py index <HASH>..<HASH> 100644 --- a/tests/test_fauxfloat.py +++ b/tests/test_fauxfloat.py @@ -50,20 +50,20 @@ NON_ZERO_OPS = [ ids=lambda op: op.__name__, ) @pytest.mark.parametrize( - "num_type, other_type", [ + "left_type, right_type", [ ...
tests/fauxfloat: Use left/right rather than num/other for binary ops
py
diff --git a/start.py b/start.py index <HASH>..<HASH> 100755 --- a/start.py +++ b/start.py @@ -58,7 +58,7 @@ def _init_logger(): f = '%(asctime)s.%(msecs)03d %(message)s' logging.basicConfig(stream=sys.stdout, format=f, level=logging.DEBUG, datefmt='%H:%M:%S') else: - logging.basicConfig(s...
Enabling debug logs only in daemon mode #<I>
py
diff --git a/account/forms.py b/account/forms.py index <HASH>..<HASH> 100644 --- a/account/forms.py +++ b/account/forms.py @@ -47,6 +47,10 @@ class SignupForm(forms.Form): widget=forms.TextInput(), required=True ) + email = forms.EmailField( + label=_("Email"), + widget=forms.Tex...
forms.SignupForm: move "email" before "password" Move the field "email" before "password". This way it will also appear before "password" on the signup view. Otherwise, by default, if using signup with email only, the "email" field appears after "password" and it looks awkward.
py
diff --git a/bark/middleware.py b/bark/middleware.py index <HASH>..<HASH> 100644 --- a/bark/middleware.py +++ b/bark/middleware.py @@ -74,7 +74,7 @@ def bark_filter(global_conf, **local_conf): except KeyError as exc: LOG.warn("Cannot configure proxy handling: option %s is " ...
Don't cover continue It seems that coverage checking doesn't properly count the continue statement, so mark it for exception from coverage statistics.
py
diff --git a/django_secrets/startup.py b/django_secrets/startup.py index <HASH>..<HASH> 100644 --- a/django_secrets/startup.py +++ b/django_secrets/startup.py @@ -46,7 +46,7 @@ def create_secrets_package(testing=False): def load_definitions(): try: # to load the secrets definitions for this project from...
this error is new in <I>
py
diff --git a/Lib/booleanOperations/booleanGlyph.py b/Lib/booleanOperations/booleanGlyph.py index <HASH>..<HASH> 100644 --- a/Lib/booleanOperations/booleanGlyph.py +++ b/Lib/booleanOperations/booleanGlyph.py @@ -178,7 +178,9 @@ class BooleanGlyph(object): func = getattr(manager, operation) if operati...
adding remove overlap to BooleanGlyph
py
diff --git a/vb_suite/reindex.py b/vb_suite/reindex.py index <HASH>..<HASH> 100644 --- a/vb_suite/reindex.py +++ b/vb_suite/reindex.py @@ -135,6 +135,11 @@ frame_drop_duplicates = Benchmark(statement, setup, name='frame_drop_duplicates', start_date=d...
TST: vbench for drop_duplicate with skipna set to False
py
diff --git a/tests/test_rotation.py b/tests/test_rotation.py index <HASH>..<HASH> 100644 --- a/tests/test_rotation.py +++ b/tests/test_rotation.py @@ -174,6 +174,16 @@ def test_backups_function(tmpdir, logger): assert len(tmpdir.listdir()) == 1 assert tmpdir.join('test.log').read() == '%d\n' % i +de...
Add test for backups at "log_to" init
py
diff --git a/cdpybio/star.py b/cdpybio/star.py index <HASH>..<HASH> 100644 --- a/cdpybio/star.py +++ b/cdpybio/star.py @@ -154,6 +154,9 @@ def make_sj_out_panel(sj_outD, total_jxn_cov_cutoff=20, statsfile=None): duplicated in the panel. """ + num_jxns = dict() + for k in sj_outD.keys(): + ...
Bug fix Fixed reporting of a stat in the star module.
py
diff --git a/salt/cloud/clouds/nova.py b/salt/cloud/clouds/nova.py index <HASH>..<HASH> 100644 --- a/salt/cloud/clouds/nova.py +++ b/salt/cloud/clouds/nova.py @@ -975,10 +975,10 @@ def create(vm_): 'profile': vm_['profile'], 'provider': vm_['driver'], 'instance_id': vm_['instance_id'], - ...
fixed event data for nova cloud provider
py
diff --git a/quilt/cli/unapplied.py b/quilt/cli/unapplied.py index <HASH>..<HASH> 100644 --- a/quilt/cli/unapplied.py +++ b/quilt/cli/unapplied.py @@ -16,30 +16,26 @@ # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software -# Foundatio...
Convert quilt.cli.unapplied into a Command class
py
diff --git a/angr/procedures/definitions/__init__.py b/angr/procedures/definitions/__init__.py index <HASH>..<HASH> 100644 --- a/angr/procedures/definitions/__init__.py +++ b/angr/procedures/definitions/__init__.py @@ -56,7 +56,7 @@ class SimLibrary(object): def _apply_metadata(self, proc, arch): if pro...
Fix bug in CC initialization in SimLibrary
py
diff --git a/salt/crypt.py b/salt/crypt.py index <HASH>..<HASH> 100644 --- a/salt/crypt.py +++ b/salt/crypt.py @@ -166,6 +166,13 @@ class Auth(object): key = RSA.load_key(self.rsa_path) return key + def gen_token(self, clear_tok): + ''' + Encrypt a string with the minion private...
Move gen_token into Auth class for more generic use
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,11 @@ import os +import sys from setuptools import setup +if sys.version_info < (3, 3): + print("Sorry, djangocms-lab-publications currently requires Python 3.3+.") + sys.exit(1) + # From: https://hynek.me/a...
Set minimum Python version to <I>, since Biopython doesn't support <I> <URL>
py
diff --git a/pycbc/ahope/legacy_ihope.py b/pycbc/ahope/legacy_ihope.py index <HASH>..<HASH> 100644 --- a/pycbc/ahope/legacy_ihope.py +++ b/pycbc/ahope/legacy_ihope.py @@ -170,6 +170,7 @@ class LegacySplitBankExec(Executable): class PyCBCInspiralJob(Job): def __init__(self, cp, exe_name, universe, ifo=None, out_di...
Increasing memory of pycbc jobs to 2GB
py
diff --git a/saltcloud/cli.py b/saltcloud/cli.py index <HASH>..<HASH> 100644 --- a/saltcloud/cli.py +++ b/saltcloud/cli.py @@ -295,6 +295,8 @@ class SaltCloud(parsers.SaltCloudParser): msg = 'There was a query error: {0}' self.handle_exception(msg, exc) + else: + se...
Error out if nothing was done, ie, wrong or erroneous arguments were passed.
py
diff --git a/pypika/__init__.py b/pypika/__init__.py index <HASH>..<HASH> 100644 --- a/pypika/__init__.py +++ b/pypika/__init__.py @@ -64,9 +64,9 @@ from .terms import ( Field, Interval, Not, + Parameter, Rollup, Tuple, - Parameter, ) # noinspection PyUnresolvedReferences from .utils i...
bumped version to <I>
py
diff --git a/etk/wikidata/value.py b/etk/wikidata/value.py index <HASH>..<HASH> 100644 --- a/etk/wikidata/value.py +++ b/etk/wikidata/value.py @@ -129,7 +129,7 @@ class QuantityValue(DataValue): def _v_name(self): upper_bound = self.upper_bound.value if self.upper_bound else '0' lower_bound = sel...
fix the bug where object id uses full unit instead of first letter
py
diff --git a/openquake/risklib/riskmodels.py b/openquake/risklib/riskmodels.py index <HASH>..<HASH> 100644 --- a/openquake/risklib/riskmodels.py +++ b/openquake/risklib/riskmodels.py @@ -440,8 +440,8 @@ def get_riskmodel(taxonomy, oqparam, **extra): for argname in argnames: if argname in known_args: ...
Improved check [skip hazardlib]
py
diff --git a/aprslib/__init__.py b/aprslib/__init__.py index <HASH>..<HASH> 100644 --- a/aprslib/__init__.py +++ b/aprslib/__init__.py @@ -25,10 +25,13 @@ Currently the library provides facilities to: # handles reloading if 'IS' in globals(): - modules = __import__('sys').modules - for m in modules.keys(): - ...
renamed reloading variables
py
diff --git a/pyemma/msm/tests/test_amm.py b/pyemma/msm/tests/test_amm.py index <HASH>..<HASH> 100644 --- a/pyemma/msm/tests/test_amm.py +++ b/pyemma/msm/tests/test_amm.py @@ -26,7 +26,6 @@ from __future__ import absolute_import import unittest import numpy as np -import scipy.sparse import warnings from msmtool...
removed parent test case class from namespace avoids the parent to be collected for testing
py
diff --git a/remind.py b/remind.py index <HASH>..<HASH> 100644 --- a/remind.py +++ b/remind.py @@ -48,6 +48,7 @@ class Remind(object): self._reminders = {} self._mtime = 0 self._alarm = alarm + self._update() def _parse_remind(self, filename, lines=''): """Calls remind ...
Update update logic an call it in init last_modified()
py
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index <HASH>..<HASH> 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -1716,6 +1716,7 @@ class Mastodon: self.connect_func = connect_func self.reconnect_async = reconnect_async self.reconnect_async...
Add is_receiving:
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ setup(name = "flubber", url = "http://github.com/saghul/flubber", description = "Cooperative multitasking and i/o for Python", long_description = open("README.r...
Added futures package to setup.py
py
diff --git a/redis/client.py b/redis/client.py index <HASH>..<HASH> 100644 --- a/redis/client.py +++ b/redis/client.py @@ -62,11 +62,12 @@ def parse_info(response): sub_dict[k] = v return sub_dict for line in response.splitlines(): - key, value = line.split(':') - try: - ...
Really compatible with the new info in redis <I> : ignore blank and comment lines
py
diff --git a/searx/engines/startpage.py b/searx/engines/startpage.py index <HASH>..<HASH> 100644 --- a/searx/engines/startpage.py +++ b/searx/engines/startpage.py @@ -37,7 +37,7 @@ search_url = base_url + 'do/search' # ads xpath //div[@id="results"]/div[@id="sponsored"]//div[@class="result"] # not ads: div[@class="re...
Fix the StartPage result title is showing the url Fix the issue <I> where StartPage result title is showing the url. <URL>
py
diff --git a/tests/test_web_response.py b/tests/test_web_response.py index <HASH>..<HASH> 100644 --- a/tests/test_web_response.py +++ b/tests/test_web_response.py @@ -436,3 +436,13 @@ class TestResponse(unittest.TestCase): resp = StreamResponse() resp.start(self.make_request('GET', '/')) self...
Add test for drain() before start()
py
diff --git a/app/preparation/pycolator.py b/app/preparation/pycolator.py index <HASH>..<HASH> 100644 --- a/app/preparation/pycolator.py +++ b/app/preparation/pycolator.py @@ -41,7 +41,7 @@ def filter_peptide_length(peptides, ns, minlen=0, maxlen=None): seq = get_peptide_seq(pep, ns) seq = strip_modifi...
Stringify pep output from filter_peptide_length
py
diff --git a/pymbar/bar.py b/pymbar/bar.py index <HASH>..<HASH> 100644 --- a/pymbar/bar.py +++ b/pymbar/bar.py @@ -51,7 +51,7 @@ import math import numpy import numpy.linalg from pymbar.utils import _logsum, ParameterError, ConvergenceError, BoundsError -from pymbar.exponential_averaging import EXP +from pymbar.exp ...
Fixed issue with EXP import.
py
diff --git a/slack/sansio.py b/slack/sansio.py index <HASH>..<HASH> 100644 --- a/slack/sansio.py +++ b/slack/sansio.py @@ -61,7 +61,7 @@ def raise_for_api_error(headers, data): Raises: :class:`slack.exceptions.SlackAPIError` """ - if not data["ok"]: + if not (data == 'ok' or data['ok']): # The...
Fix bug related to slack command response The api for slack command ephemeral responses returns "ok" instead of the json response all slack api's are supposed to return. This change allows both to work.
py
diff --git a/salt/renderers/pydsl.py b/salt/renderers/pydsl.py index <HASH>..<HASH> 100644 --- a/salt/renderers/pydsl.py +++ b/salt/renderers/pydsl.py @@ -338,7 +338,7 @@ For example: from __future__ import absolute_import import imp -from six import exec_ +from salt.utils.six import exec_ from salt.utils import p...
Replaced module six in file /salt/renderers/pydsl.py
py
diff --git a/couchbase/tests/base.py b/couchbase/tests/base.py index <HASH>..<HASH> 100644 --- a/couchbase/tests/base.py +++ b/couchbase/tests/base.py @@ -117,6 +117,7 @@ class MockResourceManager(TestResourceManager): super(MockResourceManager, self).__init__() self._config = config self._in...
Don't try to reinitialize mock if it failed before This makes test runs be shorter if there's something wrong with the mock. Change-Id: I0f<I>ebbb3c6adbd<I>ff<I>c<I>b<I>af<I> Reviewed-on: <URL>
py
diff --git a/transit/decoder.py b/transit/decoder.py index <HASH>..<HASH> 100644 --- a/transit/decoder.py +++ b/transit/decoder.py @@ -29,11 +29,13 @@ def to_uuid(x): def to_date(x): if isinstance(x, (long, int)): - return datetime.datetime.fromtimestamp(x / 1000.0, dateutil.tz.tzutc()) + return c...
Broke out conversion function to keep code dry
py
diff --git a/script/lib/util.py b/script/lib/util.py index <HASH>..<HASH> 100644 --- a/script/lib/util.py +++ b/script/lib/util.py @@ -206,6 +206,7 @@ def get_buildtools_executable(name): 'linux': 'linux64', 'linux2': 'linux64', 'win32': 'win', + 'cygwin': 'win', }[sys.platform] path = os.path.j...
build: Support cygwin in script/lib/util.py (#<I>) Running a build on Cygwin or MSYS2 otherwise fails.
py
diff --git a/src/__init__.py b/src/__init__.py index <HASH>..<HASH> 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -1341,7 +1341,7 @@ def is_class(buff): match, or for any errors. """ head = _unpack(">BBBB", buff) - print "0x%x 0x%x 0x%x 0x%x" % head + #print "0x%x 0x%x 0x%x 0x%x" % head r...
ah hah. Fixed.
py
diff --git a/tests/parser/test_sbd.py b/tests/parser/test_sbd.py index <HASH>..<HASH> 100644 --- a/tests/parser/test_sbd.py +++ b/tests/parser/test_sbd.py @@ -3,6 +3,7 @@ from __future__ import unicode_literals import pytest +@pytest.mark.models def test_single_period(EN): string = 'A test sentence.' wo...
* Mark SBD tests as requiring models
py
diff --git a/azure-sdk-testutils/setup.py b/azure-sdk-testutils/setup.py index <HASH>..<HASH> 100644 --- a/azure-sdk-testutils/setup.py +++ b/azure-sdk-testutils/setup.py @@ -1 +1,11 @@ -# Blank setup.py so this directory will be added to PYTHONPATH by azure_nosetests.py \ No newline at end of file +import os +from set...
Executable azure-sdk-testutils/setup.py file
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -39,6 +39,7 @@ classifiers = ['Development Status :: 4 - Beta', install_reqs = [ 'funcsigs>=0.4', + 'ipython>=4.0.0', 'matplotlib>=1.4.0', 'mock>=1.1.2', 'numpy>=1.9.1',
BLD: Adds IPython to setup.py
py
diff --git a/instaloader/structures.py b/instaloader/structures.py index <HASH>..<HASH> 100644 --- a/instaloader/structures.py +++ b/instaloader/structures.py @@ -339,9 +339,11 @@ class Post: """List of all lowercased profiles that are mentioned in the Post's caption, without preceeding @.""" if not s...
Fix Post.mentions including email addresses (#<I>) Earlier, if someone had an email address in the caption, those were provided as mentions in the Post.mentions attribute. With this update to the regular expression, email addresses are no longer ingested. Fixes #<I>.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ setup(name='salt', packages=['salt', 'salt.modules'], scripts=['scripts/salt-master', 'scripts/salt-minion'], - data_files=[('/etc/salt', + data_files=[('/etc/salt', ...
fix minor spacing issue in setup.py
py
diff --git a/satpy/readers/agri_l1.py b/satpy/readers/agri_l1.py index <HASH>..<HASH> 100644 --- a/satpy/readers/agri_l1.py +++ b/satpy/readers/agri_l1.py @@ -143,7 +143,7 @@ class HDF_AGRI_L1(HDF5FileHandler): elif calibration == 'radiance': raise NotImplementedError("Calibration to radiance is n...
Update satpy/readers/agri_l1.py Update style in AGRI reader.
py
diff --git a/reana_commons/version.py b/reana_commons/version.py index <HASH>..<HASH> 100755 --- a/reana_commons/version.py +++ b/reana_commons/version.py @@ -14,4 +14,4 @@ and parsed by ``setup.py``. from __future__ import absolute_import, print_function -__version__ = "0.6.0.dev20191209" +__version__ = "0.6.0.de...
release: <I>.de<I>
py
diff --git a/tests/test_open.py b/tests/test_open.py index <HASH>..<HASH> 100644 --- a/tests/test_open.py +++ b/tests/test_open.py @@ -1596,7 +1596,7 @@ class TestOpen(object): connection.disconnect(True) @pytest.mark.skipif(os.name == "nt", - reason="something about this an a...
Updated reasoning behind compound open tests on appveyor
py
diff --git a/shoebot/sbio/socket_server.py b/shoebot/sbio/socket_server.py index <HASH>..<HASH> 100644 --- a/shoebot/sbio/socket_server.py +++ b/shoebot/sbio/socket_server.py @@ -82,7 +82,7 @@ class SocketServer(object): def listener(self, sock, *args): """Asynchronous connection listener. Starts a handle...
Fix the socket server makefile call (#<I>)
py
diff --git a/lib/python/dxpy/__init__.py b/lib/python/dxpy/__init__.py index <HASH>..<HASH> 100644 --- a/lib/python/dxpy/__init__.py +++ b/lib/python/dxpy/__init__.py @@ -24,6 +24,7 @@ beforehand as applicable while using the format 'hostname:port' import os, json, requests, time from requests.exceptions import Conne...
also handle httplib.HTTPException
py
diff --git a/demosys/core/management/commands/runeffect.py b/demosys/core/management/commands/runeffect.py index <HASH>..<HASH> 100644 --- a/demosys/core/management/commands/runeffect.py +++ b/demosys/core/management/commands/runeffect.py @@ -2,20 +2,15 @@ Run a specific effect """ import demosys +from demosys.core....
Convert runeffect to a Command
py
diff --git a/pythonforandroid/recipes/libzmq/__init__.py b/pythonforandroid/recipes/libzmq/__init__.py index <HASH>..<HASH> 100644 --- a/pythonforandroid/recipes/libzmq/__init__.py +++ b/pythonforandroid/recipes/libzmq/__init__.py @@ -48,6 +48,13 @@ class LibZMQRecipe(Recipe): self.ctx.ndk_dir, sel...
manually copy libgnustl_shared needed
py
diff --git a/GPy/core/model.py b/GPy/core/model.py index <HASH>..<HASH> 100644 --- a/GPy/core/model.py +++ b/GPy/core/model.py @@ -339,10 +339,12 @@ class model(parameterised): ratio = (f1-f2)/(2*step*gradient) difference = np.abs((f1-f2)/2/step - gradient) if verbose:...
removed ticks and checkmarks from checkgrad() output, coloring param name instead
py
diff --git a/src/sos/step_executor.py b/src/sos/step_executor.py index <HASH>..<HASH> 100755 --- a/src/sos/step_executor.py +++ b/src/sos/step_executor.py @@ -1412,7 +1412,7 @@ class Base_Step_Executor: ofiles: sos_targets = self.expand_output_files( ...
Fix test on overlapping sos_step target
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -58,16 +58,16 @@ install_requires = [ 'setuptools', 'h5py >=2.10', 'numpy >=1.20', - 'scipy >=1.3, <1.7', - 'pandas >=0.25, <1.3', + 'scipy >=1.3', + 'pandas >=0.25', 'pyzmq <20.0', - 'psutil...
Removed upper bounds on the dependencies
py
diff --git a/alignak/macroresolver.py b/alignak/macroresolver.py index <HASH>..<HASH> 100644 --- a/alignak/macroresolver.py +++ b/alignak/macroresolver.py @@ -216,10 +216,12 @@ class MacroResolver(Borg): else: return unicode(value) except AttributeError: - # Raise a war...
Remove unresolved macro warning log
py
diff --git a/poetry/installation/executor.py b/poetry/installation/executor.py index <HASH>..<HASH> 100644 --- a/poetry/installation/executor.py +++ b/poetry/installation/executor.py @@ -119,6 +119,8 @@ class Executor(object): self._shutdown = True if self._shutdown: + # C...
Ensure tasks are cancelled when executor is shut down (#<I>)
py
diff --git a/kappa/event_source/s3.py b/kappa/event_source/s3.py index <HASH>..<HASH> 100644 --- a/kappa/event_source/s3.py +++ b/kappa/event_source/s3.py @@ -37,7 +37,7 @@ class S3EventSource(kappa.event_source.base.EventSource): { 'Id': self._make_notification_id(function.name), ...
Include environment at lambda function qualifier
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -36,7 +36,10 @@ setup( packages=find_packages(exclude=("tests",)), include_package_data=True, install_requires=["future>=0.16.0", "six>=1.11.0"], - extras_require={"languages": ["nltk>=3.2.5"], ":python_versi...
Prevent installing unsupported NTLK in Python <I>
py
diff --git a/flask_appbuilder/security/manager.py b/flask_appbuilder/security/manager.py index <HASH>..<HASH> 100644 --- a/flask_appbuilder/security/manager.py +++ b/flask_appbuilder/security/manager.py @@ -1185,6 +1185,9 @@ class BaseSecurityManager(AbstractSecurityManager): if self.auth_role_admi...
fix: Fixed an AttributeError in manager.py when a permission is null. (#<I>)
py
diff --git a/photutils/psf/photometry.py b/photutils/psf/photometry.py index <HASH>..<HASH> 100644 --- a/photutils/psf/photometry.py +++ b/photutils/psf/photometry.py @@ -604,8 +604,8 @@ class DAOPhotPSFPhotometry(IterativelySubtractedPSFPhotometry): groups, and then repeat until no more stars are detected or a gi...
clarify docstrings in DAOPhotPSFPhotometry [skip ci]
py
diff --git a/holoviews/plotting/bokeh/element.py b/holoviews/plotting/bokeh/element.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/bokeh/element.py +++ b/holoviews/plotting/bokeh/element.py @@ -1231,6 +1231,11 @@ class CompositeElementPlot(ElementPlot): with abbreviated_exception(): ...
Process colorbar option on CompositePlots (#<I>)
py
diff --git a/xdoctest/core.py b/xdoctest/core.py index <HASH>..<HASH> 100644 --- a/xdoctest/core.py +++ b/xdoctest/core.py @@ -836,6 +836,9 @@ def parse_google_docstr_examples(docstr, callname=None, modpath=None, lineno=1, example_blocks.append((type, block)) if type.startswith('Doctest'): ...
added script as valid tag (need to disable)
py
diff --git a/grace/task.py b/grace/task.py index <HASH>..<HASH> 100644 --- a/grace/task.py +++ b/grace/task.py @@ -143,6 +143,7 @@ class Task(object): print 'build\t\tBuilds the project and places the output in ./build/ProjectName.' print 'deploy\t\tFirst build and then deploy the project to the path'...
Bugfix * added autodeploy option to help output
py
diff --git a/thinrpc/server.py b/thinrpc/server.py index <HASH>..<HASH> 100644 --- a/thinrpc/server.py +++ b/thinrpc/server.py @@ -120,7 +120,7 @@ class _RpcServer(object): # skip 'self' arg argnames = fun.__code__.co_varnames[1:fun.__code__.co_argcount] - msg['sender'] = sender + msg[...
first arg passed to @RpcModule.Method funcs is the sending RemoteNode, regardless of what you call that argument
py
diff --git a/pyfolio/bayesian.py b/pyfolio/bayesian.py index <HASH>..<HASH> 100644 --- a/pyfolio/bayesian.py +++ b/pyfolio/bayesian.py @@ -215,7 +215,7 @@ def model_best(y1, y2, samples=1000): upper=sigma_high, testval=y1.std()) group2_std = pm.Uniform('group2_std', lower=sigma...
MAINT Do not allow for df of less than 2 so that variance stays finite.
py
diff --git a/abilian/services/indexing/service.py b/abilian/services/indexing/service.py index <HASH>..<HASH> 100644 --- a/abilian/services/indexing/service.py +++ b/abilian/services/indexing/service.py @@ -511,7 +511,7 @@ class WhooshIndexService(Service): except ValueError: # logger is here to giv...
indexing: log ValueError inside add_document() same as commit 2a<I>f5d<I>fcea7f9bc<I>e1e<I>e0f8a7
py
diff --git a/privileges/__init__.py b/privileges/__init__.py index <HASH>..<HASH> 100644 --- a/privileges/__init__.py +++ b/privileges/__init__.py @@ -1,5 +1,5 @@ VERSION = (0, 1, 0, "a", 1) # following PEP 386 -DEV_N = 1 +DEV_N = 2 POST_N = 0 @@ -31,6 +31,8 @@ def register(func): def has_privilege(user, pri...
anonymous users don't have any privileges
py
diff --git a/AI/dataTools/dataTools.py b/AI/dataTools/dataTools.py index <HASH>..<HASH> 100644 --- a/AI/dataTools/dataTools.py +++ b/AI/dataTools/dataTools.py @@ -2,6 +2,10 @@ # dataTools.py written by Duncan Murray 9/4/2014 (C) Acute Software # data tools for AIKIF +import os +import sys +import csv + def Da...
setting up datatools replacement for aspytk
py
diff --git a/tests/test_corpus.py b/tests/test_corpus.py index <HASH>..<HASH> 100644 --- a/tests/test_corpus.py +++ b/tests/test_corpus.py @@ -1349,7 +1349,7 @@ def test_dtm(corpora_en_serial_and_parallel_module, select, as_table, dtype, ret assert dtm.iloc[expected_labels.index('small1'), expected...
fixed problem in test_dtm
py
diff --git a/great_expectations/render/renderer/renderer.py b/great_expectations/render/renderer/renderer.py index <HASH>..<HASH> 100644 --- a/great_expectations/render/renderer/renderer.py +++ b/great_expectations/render/renderer/renderer.py @@ -138,3 +138,12 @@ class Renderer(object): return column...
Factor out _get_expectation_suite_name
py
diff --git a/yandextank/plugins/DataUploader/client.py b/yandextank/plugins/DataUploader/client.py index <HASH>..<HASH> 100644 --- a/yandextank/plugins/DataUploader/client.py +++ b/yandextank/plugins/DataUploader/client.py @@ -39,6 +39,12 @@ class APIClient(object): self.session.verify = False self.se...
Add https proxy check Issue #<I> Recovery Fix #<I>
py
diff --git a/django_freeradius/tests/test_api.py b/django_freeradius/tests/test_api.py index <HASH>..<HASH> 100644 --- a/django_freeradius/tests/test_api.py +++ b/django_freeradius/tests/test_api.py @@ -88,6 +88,9 @@ class TestApi(TestCase): self.assertEqual(response.status_code, 200) self.assertEqual...
[tests] Improved test_accounting_start_<I>
py
diff --git a/tests/test_io.py b/tests/test_io.py index <HASH>..<HASH> 100644 --- a/tests/test_io.py +++ b/tests/test_io.py @@ -38,6 +38,14 @@ class IoTest(unittest.TestCase): self.assertEquals(data_real, data_exp) data_real = read(source, skiprows=1) self.assertEquals(data_real, data_exp[1:])...
TST: Increase IO test coverage
py
diff --git a/girder/api/rest.py b/girder/api/rest.py index <HASH>..<HASH> 100644 --- a/girder/api/rest.py +++ b/girder/api/rest.py @@ -825,6 +825,8 @@ class Resource(object): handler = registeredHandler del nLengthRoutes[i] break + else: + raise Girde...
Handle no route found in removeRoute
py
diff --git a/crossbuild.py b/crossbuild.py index <HASH>..<HASH> 100755 --- a/crossbuild.py +++ b/crossbuild.py @@ -181,7 +181,10 @@ def build_osx_client(tarball_path, build_dir, dry_run=False, verbose=False): go_build( cmd_package, goroot, gopath, 'amd64', 'darwin', cgo=False, dry_run...
When installing on darwin, look in the bin/ dir for juju.
py
diff --git a/dynamic_rest/fields.py b/dynamic_rest/fields.py index <HASH>..<HASH> 100644 --- a/dynamic_rest/fields.py +++ b/dynamic_rest/fields.py @@ -85,6 +85,8 @@ class DynamicRelationField(DynamicField): return getattr(self.serializer_class.Meta, 'model', None) def bind(self, *args, **kwargs): + if sel...
prevent double-binding in RelationField
py
diff --git a/uri/uri.py b/uri/uri.py index <HASH>..<HASH> 100644 --- a/uri/uri.py +++ b/uri/uri.py @@ -274,8 +274,7 @@ class URI: summary = escape(self.summary), ) - def geturl(self): # API compatibility with urllib. - return str(self) + geturl = __str__ # API compatibility with urllib. @property ...
Simpler definition of the "geturl" accessor method.
py
diff --git a/cosmic_ray/cli.py b/cosmic_ray/cli.py index <HASH>..<HASH> 100644 --- a/cosmic_ray/cli.py +++ b/cosmic_ray/cli.py @@ -187,7 +187,7 @@ options: def handle_run(configuration): - """usage: cosmic-ray run [options] [--exclude-modules=P ...] (--timeout=T | --baseline=M) <session-name> <top-module> [-- <...
Added --dist flag to run command.
py
diff --git a/fermipy/lightcurve.py b/fermipy/lightcurve.py index <HASH>..<HASH> 100644 --- a/fermipy/lightcurve.py +++ b/fermipy/lightcurve.py @@ -160,7 +160,6 @@ def _process_lc_bin(itime, name, config, basedir, workdir, diff_sources, const_s print('Analysis failed in time range %i %i' % (time[...
recover from single failed in lc (#<I>)
py