diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/pipenv/cli/command.py b/pipenv/cli/command.py index <HASH>..<HASH> 100644 --- a/pipenv/cli/command.py +++ b/pipenv/cli/command.py @@ -324,14 +324,13 @@ def lock(ctx, state, **kwargs): pre = state.installstate.pre if emit_requirements: secho( - """ - Warning: The loc...
Fixed lock -r warning being logged to stdout instead of stderr
py
diff --git a/textx/cli.py b/textx/cli.py index <HASH>..<HASH> 100644 --- a/textx/cli.py +++ b/textx/cli.py @@ -2,6 +2,7 @@ from __future__ import unicode_literals import sys import click +import pkg_resources from textx import metamodel_from_file, TextXError from textx.export import metamodel_export, model_export ...
refs #<I> Registering textx extension points command and command groups.
py
diff --git a/drf_dynamic_fields/__init__.py b/drf_dynamic_fields/__init__.py index <HASH>..<HASH> 100644 --- a/drf_dynamic_fields/__init__.py +++ b/drf_dynamic_fields/__init__.py @@ -4,6 +4,7 @@ Mixin to dynamically select only a subset of fields per DRF resource. import warnings from django.conf import settings +f...
Adding cached_property to the fields method
py
diff --git a/IndexedRedis/fields/b64.py b/IndexedRedis/fields/b64.py index <HASH>..<HASH> 100644 --- a/IndexedRedis/fields/b64.py +++ b/IndexedRedis/fields/b64.py @@ -19,6 +19,11 @@ except NameError: class IRBase64Field(IRField): ''' IRBase64Field - Encode/Decode data automatically into base64 for storage and fro...
Ensure the value on Base<I> field is ALWAYS bytes (not just after fetch from storage). Add a note, and suggest using IRFieldChain to PROPERLY have value be other types.
py
diff --git a/tests/test_seqrepo.py b/tests/test_seqrepo.py index <HASH>..<HASH> 100644 --- a/tests/test_seqrepo.py +++ b/tests/test_seqrepo.py @@ -29,7 +29,6 @@ def test_seqrepo_dir_not_exist(tmpdir_factory): dir = str(tmpdir_factory.mktemp('seqrepo')) + "-IDONTEXIST" with pytest.raises(OSError) as ex: ...
Removed the exception text comparison. The text is depending what operating system is. The exception is still same anyway and it's checked at with-part
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ except (OSError, subprocess.CalledProcessError, IOError) as e: try: with open(version_py, 'r') as f: d = dict() - exec(f, d) + exec(f.read(), d) vers...
Attempt to fix setup.py on python3
py
diff --git a/src/feat/database/emu.py b/src/feat/database/emu.py index <HASH>..<HASH> 100644 --- a/src/feat/database/emu.py +++ b/src/feat/database/emu.py @@ -259,7 +259,20 @@ class Database(common.ConnectionManager, log.LogProxy, ChangeListener, result.append(dict(error="not_found")) return d...
Define a method to load a fixture on emu database.
py
diff --git a/openquake/hazardlib/geo/polygon.py b/openquake/hazardlib/geo/polygon.py index <HASH>..<HASH> 100644 --- a/openquake/hazardlib/geo/polygon.py +++ b/openquake/hazardlib/geo/polygon.py @@ -108,6 +108,8 @@ class Polygon(object): # need to cut off the last point -- it repeats the first one pol...
Restored _bbox initialization
py
diff --git a/satpy/readers/abi_l1b.py b/satpy/readers/abi_l1b.py index <HASH>..<HASH> 100644 --- a/satpy/readers/abi_l1b.py +++ b/satpy/readers/abi_l1b.py @@ -73,6 +73,11 @@ class NC_ABI_L1B(BaseFileHandler): self.calibrate(radiances, key) + # convert to satpy standard units + if units == 'W ...
Add unit conversion to ABI reader so generic composites work better
py
diff --git a/src/wa_kat/connectors/aleph.py b/src/wa_kat/connectors/aleph.py index <HASH>..<HASH> 100755 --- a/src/wa_kat/connectors/aleph.py +++ b/src/wa_kat/connectors/aleph.py @@ -4,6 +4,8 @@ # Interpreter version: python 2.7 # # Imports ===================================================================== +from ...
#<I>: Added parsing of the author from the Authority database.
py
diff --git a/instabot/bot/bot_unfollow.py b/instabot/bot/bot_unfollow.py index <HASH>..<HASH> 100644 --- a/instabot/bot/bot_unfollow.py +++ b/instabot/bot/bot_unfollow.py @@ -46,6 +46,7 @@ def unfollow_non_followers(self, n_to_unfollows=None): self.logger.info("Unfollowing non-followers.") self.console_print(...
Fix bug with slicing a set
py
diff --git a/sitetree/sitetreeapp.py b/sitetree/sitetreeapp.py index <HASH>..<HASH> 100644 --- a/sitetree/sitetreeapp.py +++ b/sitetree/sitetreeapp.py @@ -69,8 +69,9 @@ class SiteTree(): # Resolve item's URL. sitetree_item.url_resolved = self.url(sitetree_item) # Resolve item perm...
Item access_restricted Fix If item.access_restricted has been set to False we will not get all permissions to item. Optimization :D
py
diff --git a/emase/EMfactory.py b/emase/EMfactory.py index <HASH>..<HASH> 100755 --- a/emase/EMfactory.py +++ b/emase/EMfactory.py @@ -173,7 +173,7 @@ class EMfactory: time1 = time.time() delmin, s = divmod(int(time1 - time0), 60) h, m = divmod(delmin, 60) - ...
Termination checking has been changed to a simpler scheme
py
diff --git a/napalm_base/base.py b/napalm_base/base.py index <HASH>..<HASH> 100644 --- a/napalm_base/base.py +++ b/napalm_base/base.py @@ -65,7 +65,12 @@ class NetworkDriver(object): We need to make sure the connection is closed properly and the configuration DB is released (unlocked). """ - ...
Adding check to __del__ to ignore exception if socket was already closed (#<I>)
py
diff --git a/suds/umx/typed.py b/suds/umx/typed.py index <HASH>..<HASH> 100644 --- a/suds/umx/typed.py +++ b/suds/umx/typed.py @@ -74,7 +74,8 @@ class Typed(Core): known = self.resolver.known(content.node) frame = Frame(content.type, resolved=known) self.resolver.push(frame) - ...
Set class name to resolved (true) type using the resolver.
py
diff --git a/pandas/tests/frame/test_arithmetic.py b/pandas/tests/frame/test_arithmetic.py index <HASH>..<HASH> 100644 --- a/pandas/tests/frame/test_arithmetic.py +++ b/pandas/tests/frame/test_arithmetic.py @@ -1523,7 +1523,16 @@ def test_dataframe_blockwise_slicelike(): df2 = df1.copy() df2.iloc[0, [1, 3, 7]...
TST: additional regression cases for slicing blockwise op (GH<I>) (#<I>)
py
diff --git a/utils/multires/generate.py b/utils/multires/generate.py index <HASH>..<HASH> 100755 --- a/utils/multires/generate.py +++ b/utils/multires/generate.py @@ -121,7 +121,7 @@ if vaov == -1: if args.cubeSize != 0: cubeSize = args.cubeSize else: - cubeSize = 8 * int(origWidth / math.pi / 8) + cubeSiz...
Partial panorama default cube size fix Change computation of cube size - taking haov into account
py
diff --git a/cms_bootstrap3/__init__.py b/cms_bootstrap3/__init__.py index <HASH>..<HASH> 100644 --- a/cms_bootstrap3/__init__.py +++ b/cms_bootstrap3/__init__.py @@ -1 +1 @@ -__version__ = '0.0.2' +__version__ = '0.1.0'
Bumpt to version <I>
py
diff --git a/paegan/transport/shoreline.py b/paegan/transport/shoreline.py index <HASH>..<HASH> 100644 --- a/paegan/transport/shoreline.py +++ b/paegan/transport/shoreline.py @@ -91,7 +91,7 @@ class Shoreline(object): # If the current point lies outside of our current shapefile index, # re-query the...
Intersect should re-index if it's never been indexed
py
diff --git a/aiomanhole/__init__.py b/aiomanhole/__init__.py index <HASH>..<HASH> 100644 --- a/aiomanhole/__init__.py +++ b/aiomanhole/__init__.py @@ -1,6 +1,7 @@ import asyncio import contextlib import functools +import sys import traceback from codeop import CommandCompiler @@ -110,9 +111,9 @@ class Interactiv...
Use the system wide prompts when available.
py
diff --git a/srtm/main.py b/srtm/main.py index <HASH>..<HASH> 100644 --- a/srtm/main.py +++ b/srtm/main.py @@ -111,11 +111,14 @@ class FileHandler: def get_srtm_dir(self): """ The default path to store files. """ # Local cache path: - if not mod_os.environ.has_key('HOME'): + result ...
Update main.py Changed FileHandler.get_srtm_dir() to check for 'HOMEPATH' environment variable if 'HOME' fails before raising an exception.
py
diff --git a/djstripe/models/core.py b/djstripe/models/core.py index <HASH>..<HASH> 100644 --- a/djstripe/models/core.py +++ b/djstripe/models/core.py @@ -739,6 +739,17 @@ class Customer(StripeModel): @classmethod def _manipulate_stripe_object_hook(cls, data): + + # stripe adds a deleted attribute if...
Added the deleted key to the Customer data dict This is done so that Customers can be updated locally depending on whether they have been deleted upstream or not.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,11 +2,15 @@ from setuptools import setup, find_packages from codecs import open from os import path + here = path.abspath(path.dirname(__file__)) -# Get the long description from the README file -with open(path.join(...
md not supported for pypi so convert to rst
py
diff --git a/tests/benchmark/test_custream.py b/tests/benchmark/test_custream.py index <HASH>..<HASH> 100644 --- a/tests/benchmark/test_custream.py +++ b/tests/benchmark/test_custream.py @@ -6,7 +6,7 @@ from . benchmark import AbstractBenchmarkTest class TestCUDAStream(AbstractBenchmarkTest, unittest.TestCase): ...
Fix test: expect a float It doesn't really matter since `unittest.TestCase.assertEqual` doesn't mind.
py
diff --git a/rest_framework_jwt/authentication.py b/rest_framework_jwt/authentication.py index <HASH>..<HASH> 100644 --- a/rest_framework_jwt/authentication.py +++ b/rest_framework_jwt/authentication.py @@ -1,18 +1,11 @@ import jwt - from django.utils.encoding import smart_text from django.utils.translation import u...
user import problem for custom users issue fixed
py
diff --git a/cassandra/protocol.py b/cassandra/protocol.py index <HASH>..<HASH> 100644 --- a/cassandra/protocol.py +++ b/cassandra/protocol.py @@ -560,7 +560,10 @@ class QueryMessage(_MessageType): if self.timestamp is not None: flags |= _PROTOCOL_TIMESTAMP - write_byte(f, flags) + ...
<I>: expand QUERY/EXECUTE/BATCH flags from [byte] to [int]
py
diff --git a/aptly/publisher/__main__.py b/aptly/publisher/__main__.py index <HASH>..<HASH> 100644 --- a/aptly/publisher/__main__.py +++ b/aptly/publisher/__main__.py @@ -138,6 +138,7 @@ def action_promote(client, source, target, components=None, recreate=False, if packages: # We are only going to promo...
Error if no packages were promoted during promote action
py
diff --git a/bson.py b/bson.py index <HASH>..<HASH> 100644 --- a/bson.py +++ b/bson.py @@ -115,6 +115,13 @@ def _validate_ref(data): _validate_code = _validate_string +# still not sure what is actually stored here, but i know how big it is... +def _validate_code_w_scope(data): + _logger.debug("validating code w...
validator for code_w_scope
py
diff --git a/src/doc/conf.py b/src/doc/conf.py index <HASH>..<HASH> 100644 --- a/src/doc/conf.py +++ b/src/doc/conf.py @@ -175,7 +175,8 @@ htmlhelp_basename = 'AstralDoc' # -- Options for LaTeX output -------------------------------------------------- # The paper size ('letter' or 'a4'). -latex_paper_size = 'a4' +#...
Changed to use latex_elements dictionary
py
diff --git a/test/PBS/test_pbs_queue.py b/test/PBS/test_pbs_queue.py index <HASH>..<HASH> 100644 --- a/test/PBS/test_pbs_queue.py +++ b/test/PBS/test_pbs_queue.py @@ -240,11 +240,12 @@ sh: # do not wait for jobs 'wait_for_task': True, 'default_queue': 'docker', + ...
Fix PBS test when remote host already has a result
py
diff --git a/tests/test_configargparse.py b/tests/test_configargparse.py index <HASH>..<HASH> 100644 --- a/tests/test_configargparse.py +++ b/tests/test_configargparse.py @@ -921,6 +921,7 @@ class TestMisc(TestCase): expected_config_file_contents.strip()) self.assertRaisesRegex(ValueError, "Couldn...
Close temporary files in tests. The file handle `cfg_f` in `testConstructor_WriteOutConfigFileArgs`, `testConstructor_WriteOutConfigFileArgs2` and `testConstructor_WriteOutConfigFileArgsLong` was never closed. Both unittest and `pytest -Wd` reported this as a warning.
py
diff --git a/glue/LSCsegFindServer.py b/glue/LSCsegFindServer.py index <HASH>..<HASH> 100644 --- a/glue/LSCsegFindServer.py +++ b/glue/LSCsegFindServer.py @@ -358,6 +358,7 @@ class ServerHandler(SocketServer.BaseRequestHandler): ifoSegList = [] try: + # open a database cursor c = db.curs...
fix closing of cursor for coincident connections
py
diff --git a/src/you_get/common.py b/src/you_get/common.py index <HASH>..<HASH> 100644 --- a/src/you_get/common.py +++ b/src/you_get/common.py @@ -36,7 +36,8 @@ def tr(s): if default_encoding == 'utf-8': return s else: - return str(s.encode('utf-8'))[2:-1] + return s + #return st...
Disable special conversion for non-UTF encoding. - Windows users should take care of their code page themselves
py
diff --git a/zxb.py b/zxb.py index <HASH>..<HASH> 100755 --- a/zxb.py +++ b/zxb.py @@ -162,6 +162,8 @@ def main(argv): parser.add_option("--explicit", action="store_true", dest="explicit", default=False, help="Requires all variables and functions to be declared before used") + parser.add_option("...
Added -D option ZXBasic will now support -D (Define) option
py
diff --git a/cmd2.py b/cmd2.py index <HASH>..<HASH> 100755 --- a/cmd2.py +++ b/cmd2.py @@ -424,7 +424,7 @@ class Cmd(cmd.Cmd): editor = 'notepad' else: for editor in ['gedit', 'kate', 'vim', 'emacs', 'nano', 'pico']: - if not subprocess.Popen(['which', editor], stdout=s...
was detecting first absent editor, not first presnt
py
diff --git a/gevent_zeromq/_zmq.py b/gevent_zeromq/_zmq.py index <HASH>..<HASH> 100644 --- a/gevent_zeromq/_zmq.py +++ b/gevent_zeromq/_zmq.py @@ -80,9 +80,9 @@ class Socket(socket.Socket): self.__readable.wait() def send(self, data, flags=0, copy=True, track=False): + # Marker as to if we've enc...
moved saw_eagains out of loop..
py
diff --git a/citrination_client/data/tests/test_data_client.py b/citrination_client/data/tests/test_data_client.py index <HASH>..<HASH> 100644 --- a/citrination_client/data/tests/test_data_client.py +++ b/citrination_client/data/tests/test_data_client.py @@ -148,15 +148,14 @@ def test_dataset_update(): siz...
Change the delete test to use total_num_hits vs len(hits)
py
diff --git a/testing/test_pdb.py b/testing/test_pdb.py index <HASH>..<HASH> 100644 --- a/testing/test_pdb.py +++ b/testing/test_pdb.py @@ -1193,13 +1193,13 @@ HOOK! def test_unicode_bug(): def fn(): set_trace() - x = "this is plan ascii" + x = "this is plain ascii" y = "this contai...
Fix typo in tests: "plan ascii"
py
diff --git a/python/chronos/src/bigdl/chronos/regression/base_predictor.py b/python/chronos/src/bigdl/chronos/regression/base_predictor.py index <HASH>..<HASH> 100644 --- a/python/chronos/src/bigdl/chronos/regression/base_predictor.py +++ b/python/chronos/src/bigdl/chronos/regression/base_predictor.py @@ -20,7 +20,7 @@...
Add sub-folder ray_tune in zoo.automl.search and move ray_tune_search_engine there (#<I>) * add subfolder ray_tune and mv ray_tune_search_engine * move ray tune utils * rename search.util to search.utils
py
diff --git a/testproject/testproject/settings.py b/testproject/testproject/settings.py index <HASH>..<HASH> 100644 --- a/testproject/testproject/settings.py +++ b/testproject/testproject/settings.py @@ -156,3 +156,5 @@ LOGGING = { }, } } + +TEST_RUNNER = 'django.test.runner.DiscoverRunner'
Avoid Django to raise warnings for test runners.
py
diff --git a/dedupe/clustering.py b/dedupe/clustering.py index <HASH>..<HASH> 100644 --- a/dedupe/clustering.py +++ b/dedupe/clustering.py @@ -113,7 +113,6 @@ def clusterConstrained(dupes,threshold=.6): row_size, col_size = len(row_order), len(col_order) scored_pairs = numpy.asarray(biadjacenc...
Remove threshold from CLusteringConstrained
py
diff --git a/client/utils/auth.py b/client/utils/auth.py index <HASH>..<HASH> 100755 --- a/client/utils/auth.py +++ b/client/utils/auth.py @@ -88,6 +88,7 @@ def make_token_post(server, data): error='Authentication Failed', error_description=str(e)) if 'error' in body: + log.error(b...
re-auth if any auth errors happen while performing auth
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,10 +1,14 @@ from setuptools import setup +from sys import version_info with open('README.rst') as f: long_description = f.read() +install_requires = ['futures >== 3.0.0'] if version_info.major == 2 else [] + ...
use sys.version_info to detect futures requirement
py
diff --git a/pyca/__main__.py b/pyca/__main__.py index <HASH>..<HASH> 100644 --- a/pyca/__main__.py +++ b/pyca/__main__.py @@ -31,8 +31,8 @@ OPTIONS: CONFIGURATION: PyCA will try to find a configuration in the following order: - Configuration specified on the command line - - /etc/pyca.conf - ./etc/pyca.c...
Fix Configuration Load Order This patch fixes the documentation, describing in which order the pyCA is looking for configuration files.
py
diff --git a/bika/lims/browser/batch/batchbook.py b/bika/lims/browser/batch/batchbook.py index <HASH>..<HASH> 100644 --- a/bika/lims/browser/batch/batchbook.py +++ b/bika/lims/browser/batch/batchbook.py @@ -207,7 +207,7 @@ class BatchBookView(BikaListingView): for d_a in distinct: keyword = d_a.ge...
Tniy error fix about not-callable in batchbook.
py
diff --git a/test/unit/test_filters.py b/test/unit/test_filters.py index <HASH>..<HASH> 100644 --- a/test/unit/test_filters.py +++ b/test/unit/test_filters.py @@ -460,6 +460,13 @@ class FilterTest(): for i in range(1, N): assert np.sum(label == i) <= 10 + def test_hold_peaks_input(self): + ...
unit test for hold_peaks input types is added [ci skip]
py
diff --git a/pandas/core/series.py b/pandas/core/series.py index <HASH>..<HASH> 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -1120,7 +1120,7 @@ class Series(base.IndexOpsMixin, generic.NDFrame): Returns ------- - repeated_series : Series + Series Newly...
DOC: small doc fix to Series.repeat (#<I>)
py
diff --git a/cinje/block/module.py b/cinje/block/module.py index <HASH>..<HASH> 100644 --- a/cinje/block/module.py +++ b/cinje/block/module.py @@ -59,7 +59,7 @@ class Module(object): mapping = deque(context.mapping) mapping.reverse() - mapping = deque(pformat(list(mapping), indent=0, width=105, compact=True)...
Compact representation is new in Python 3, so don't rely on it.
py
diff --git a/salt/loader.py b/salt/loader.py index <HASH>..<HASH> 100644 --- a/salt/loader.py +++ b/salt/loader.py @@ -781,8 +781,8 @@ class Loader(object): not str(mod.__name__).startswith('salt.loaded.int.grain') ): mod.__salt__ = funcs - elif hasattr(mod, '__...
This time I banged my head on the table extra-hard.
py
diff --git a/bcbio/variation/effects.py b/bcbio/variation/effects.py index <HASH>..<HASH> 100644 --- a/bcbio/variation/effects.py +++ b/bcbio/variation/effects.py @@ -183,7 +183,7 @@ def _get_dbnsfp(data): """ dbnsfp_file = tz.get_in(("genome_resources", "variation", "dbnsfp"), data) if dbnsfp_file and o...
Added extra dbNSFP fields added some more interesting fields for vep annotations
py
diff --git a/celerytask/tasks.py b/celerytask/tasks.py index <HASH>..<HASH> 100755 --- a/celerytask/tasks.py +++ b/celerytask/tasks.py @@ -214,7 +214,14 @@ def run_api_refresh(): corp = EveManager.get_corporation_info_by_id(character.corporation_id) main_corp_id...
Added blue -> member handling to celerytask
py
diff --git a/tensor2tensor/data_generators/gym_problems.py b/tensor2tensor/data_generators/gym_problems.py index <HASH>..<HASH> 100644 --- a/tensor2tensor/data_generators/gym_problems.py +++ b/tensor2tensor/data_generators/gym_problems.py @@ -53,7 +53,7 @@ flags.DEFINE_boolean("only_use_ae_for_policy", False, def st...
Putting StackAndSkipWrapper as defaul
py
diff --git a/pupa/scrape/helpers.py b/pupa/scrape/helpers.py index <HASH>..<HASH> 100644 --- a/pupa/scrape/helpers.py +++ b/pupa/scrape/helpers.py @@ -8,13 +8,13 @@ class Legislator(Person): _is_legislator = True __slots__ = ('post_id', 'party', 'chamber', '_contact_details', 'role') - def __init__(self,...
Allow setting Legislator#role in initializer
py
diff --git a/robosuite/utils/control_utils.py b/robosuite/utils/control_utils.py index <HASH>..<HASH> 100644 --- a/robosuite/utils/control_utils.py +++ b/robosuite/utils/control_utils.py @@ -243,5 +243,5 @@ def set_goal_orientation(delta, else: euler[idx] = orientation_limi...
Quick fix in indices on OSC controller orientation limits (#<I>)
py
diff --git a/khard/config.py b/khard/config.py index <HASH>..<HASH> 100644 --- a/khard/config.py +++ b/khard/config.py @@ -140,7 +140,9 @@ class Config: """Set the attributes from the internal config instance on self.""" general = self.config["general"] self.debug = general["debug"] - ...
Properly split $EDITOR env variable Before this was taken as a string and passed to `subprocess.Popen`. This worked when `$EDITOR` was just a command with no arguments appended. When arguments are appended `subprocess.Popen` requires them to be passed as a list. This commit introduces the logic for splitting the `$EDI...
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,10 +7,10 @@ from setuptools import setup setup( name='py509', version='0.0.3', - description="Framework and utility code for running public key infrastructure at home.", + description="Framework and utility code fo...
Adjust homepage link to point at github repo.
py
diff --git a/salt/client/ssh/__init__.py b/salt/client/ssh/__init__.py index <HASH>..<HASH> 100644 --- a/salt/client/ssh/__init__.py +++ b/salt/client/ssh/__init__.py @@ -383,11 +383,22 @@ class SSH(object): for host in running: if not running[host]['thread'].is_alive(): ...
Fix race condition in salt-ssh cleanup Conflicts: salt/client/ssh/__init__.py
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -109,6 +109,10 @@ class Python3TestCase(BaseTest): def test_python_version(self): self.assertEqual(self.virtual_env_obj.python, self.python) + self.assertEqual( + os.path.dirname(self.python),...
Assert that the correct pip is being used
py
diff --git a/dimod/core/polysampler.py b/dimod/core/polysampler.py index <HASH>..<HASH> 100644 --- a/dimod/core/polysampler.py +++ b/dimod/core/polysampler.py @@ -17,18 +17,31 @@ import abc from six import add_metaclass -__all__ = 'PolySampler', +from dimod.core.composite import Composite +from dimod.higherorder.p...
Refactor Poly ABC * PolySampler now has .sample_hising and .sample_hubo mixin properties * Added ComposedPolySampler ABC
py
diff --git a/stancache/stancache.py b/stancache/stancache.py index <HASH>..<HASH> 100644 --- a/stancache/stancache.py +++ b/stancache/stancache.py @@ -1,5 +1,6 @@ import os -import dill as pickle +import pickle +import dill import pystan import hashlib import base64 @@ -24,7 +25,7 @@ def _mkdir_if_not_exists(path):...
use dill only for computing hash
py
diff --git a/kubespawner/spawner.py b/kubespawner/spawner.py index <HASH>..<HASH> 100644 --- a/kubespawner/spawner.py +++ b/kubespawner/spawner.py @@ -651,9 +651,7 @@ class KubeSpawner(Spawner): # the IP the hub is listening on (such as 0.0.0.0) is not the IP where # it can be reached by the pods (suc...
Get rid of extrenous print statements
py
diff --git a/representative_image/representative_image.py b/representative_image/representative_image.py index <HASH>..<HASH> 100644 --- a/representative_image/representative_image.py +++ b/representative_image/representative_image.py @@ -2,6 +2,7 @@ from pelican import signals from pelican.contents import Content, Ar...
PEP8ifying and wiping out trailing spaces.
py
diff --git a/skorch/callbacks/scoring.py b/skorch/callbacks/scoring.py index <HASH>..<HASH> 100644 --- a/skorch/callbacks/scoring.py +++ b/skorch/callbacks/scoring.py @@ -12,7 +12,7 @@ from skorch.utils import data_from_dataset from skorch.utils import is_skorch_dataset from skorch.utils import to_numpy from skorch....
Remove unnecessary Dataset import in scoring.py.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -10,11 +10,8 @@ def long_description(): as this module. """ base_path = os.path.dirname(os.path.realpath(__file__)) - readme = io.open(os.path.join(base_path, 'README.rst'), encoding='utf-8') - try: - ...
Simpler reading of README in setup.py
py
diff --git a/samples/compute-account-value.py b/samples/compute-account-value.py index <HASH>..<HASH> 100755 --- a/samples/compute-account-value.py +++ b/samples/compute-account-value.py @@ -51,7 +51,11 @@ with btceapi.KeyHandler(key_file, resaveOnDeletion=True) as handler: for o in orders: ...
Actually fixes what the previous commit purported to fix. :)
py
diff --git a/nolds/measures.py b/nolds/measures.py index <HASH>..<HASH> 100644 --- a/nolds/measures.py +++ b/nolds/measures.py @@ -876,7 +876,7 @@ def rs(data, n): # find ranges r = np.max(y, axis=1) - np.min(y, axis=1) # find standard deviation - s = np.std(seqs, axis=1) + s = np.std(seqs, axis=1, ddof=1) ...
uses standard deviation based on sample variance (because mean is also estimated from data itself)
py
diff --git a/steam_idle/page_parser.py b/steam_idle/page_parser.py index <HASH>..<HASH> 100644 --- a/steam_idle/page_parser.py +++ b/steam_idle/page_parser.py @@ -74,6 +74,7 @@ class FetchImages(multiprocessing.Process): ''' def __init__(self, task_queue, image_path): super(FetchImages, self).__init_...
Add logging to FetchImages
py
diff --git a/test.py b/test.py index <HASH>..<HASH> 100644 --- a/test.py +++ b/test.py @@ -110,6 +110,7 @@ def test_upload(): assert job_id_2 > job_id job_result = PROJECT.wait_for(job_id_2) if job_result['success'] is not True: + job_result = int(job_result) for job_number in range(1, jo...
Oh, you can't add integers to strings?
py
diff --git a/java-webrisk/synth.py b/java-webrisk/synth.py index <HASH>..<HASH> 100644 --- a/java-webrisk/synth.py +++ b/java-webrisk/synth.py @@ -16,6 +16,8 @@ import synthtool.languages.java as java +AUTOSYNTH_MULTIPLE_COMMITS = True + versions = ['v1beta1', 'v1'] service = 'webrisk'
chore: enable context aware commits (#<I>)
py
diff --git a/pywinusb/hid/core.py b/pywinusb/hid/core.py index <HASH>..<HASH> 100644 --- a/pywinusb/hid/core.py +++ b/pywinusb/hid/core.py @@ -724,7 +724,7 @@ class HidDevice(HidDeviceBaseClass): # but, this might have a collision with report_id = 0 if not hid_device_path_exists(self.device_p...
Fix exception from thread.join Remove the call to close from _process_raw_report, since this causes the InputReportProcessingThread to join itself. The application using the hid handle is responsible for closing this handle.
py
diff --git a/src/ansiblelint/cli.py b/src/ansiblelint/cli.py index <HASH>..<HASH> 100644 --- a/src/ansiblelint/cli.py +++ b/src/ansiblelint/cli.py @@ -228,7 +228,7 @@ def get_cli_parser() -> argparse.ArgumentParser: '-v', dest='verbosity', action='count', - help="Increase verbosity lev...
Clarify that verbosity can be incremented (#<I>) Makes it clear that -v can be repeated in order to increase the verbosity of the tool.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ try: from setuptools import setup except ImportError, excp: from distutils.core import setup - + import pefile import os @@ -28,5 +28,6 @@ setup(name = 'pefile', 'Programming Language :: P...
-Added Mandiant's ordlookup to resolve the names for some symbols that are exported only by ordinal numbers.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ version = '%d.%d.%d' % (Major, Feature, Bug) setup(name='spglm', #name of package version=version, description='sparse generalized linear models', #short <80chr description - url='https://github.co...
changing url to .../pysal/spglm in setup.py
py
diff --git a/openupgradelib/openupgrade.py b/openupgradelib/openupgrade.py index <HASH>..<HASH> 100644 --- a/openupgradelib/openupgrade.py +++ b/openupgradelib/openupgrade.py @@ -255,6 +255,8 @@ def rename_models(cr, model_spec): 'WHERE relation = %s', (new, old,)) cr.execute('UPDATE ir_mod...
[ADD] when renaming a model, also move link in ir_attachment
py
diff --git a/xdot/ui/__init__.py b/xdot/ui/__init__.py index <HASH>..<HASH> 100644 --- a/xdot/ui/__init__.py +++ b/xdot/ui/__init__.py @@ -1,3 +1,11 @@ __all__ = ['actions', 'animation', 'colors', 'elements', 'pen', 'window'] +import sys + +try: + import gi +except ImportError: + sys.stderr.write('error: PyGOb...
Provide more helpful error message when gi import fails. It's a common problem for those installing xdot.py from PyPI, as it's not available there, hence we can't depend upon it. See also: - <URL>
py
diff --git a/app/drivers/prottable/qvality.py b/app/drivers/prottable/qvality.py index <HASH>..<HASH> 100644 --- a/app/drivers/prottable/qvality.py +++ b/app/drivers/prottable/qvality.py @@ -7,6 +7,8 @@ class ProttableQvalityDriver(QvalityDriver): def __init__(self, **kwargs): super(ProttableQvalityDriver...
Not forget to make qvality understand that lower scores are better!
py
diff --git a/py/selenium/webdriver/remote/webdriver.py b/py/selenium/webdriver/remote/webdriver.py index <HASH>..<HASH> 100644 --- a/py/selenium/webdriver/remote/webdriver.py +++ b/py/selenium/webdriver/remote/webdriver.py @@ -51,7 +51,7 @@ class WebDriver(object): if desired_capabilities is None: ...
DavidBurns updating the check for on the command_executor to allow unicode. Fixes issue <I> r<I>
py
diff --git a/ginga/misc/Callback.py b/ginga/misc/Callback.py index <HASH>..<HASH> 100644 --- a/ginga/misc/Callback.py +++ b/ginga/misc/Callback.py @@ -18,7 +18,11 @@ class Callbacks(object): self.cb = {} def clear_callback(self, name): - self.cb[name] = [] + try: + self.cb[name]...
Modified the clear_callback() To actually clear list of callbacks and handle KeyError
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -33,8 +33,8 @@ sys.path.insert(0, os.path.abspath('./sphinxext')) extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.mathjax', - 'ipython_directive', - 'ipython_console_highlighting', + 'IPyth...
[ci skip] more rtd
py
diff --git a/ctfile/ctfile.py b/ctfile/ctfile.py index <HASH>..<HASH> 100644 --- a/ctfile/ctfile.py +++ b/ctfile/ctfile.py @@ -610,9 +610,23 @@ class SDfile(CTfile): """ def __init__(self): """SDfile initializer.""" - super(SDfile, self).__init__() + @classmethod + def from_molfile(c...
Added alternative constructor: create SDfile from Molfile.
py
diff --git a/tests/test_loading.py b/tests/test_loading.py index <HASH>..<HASH> 100644 --- a/tests/test_loading.py +++ b/tests/test_loading.py @@ -3,6 +3,7 @@ from django.test.utils import override_settings from django_core.utils.loading import get_class_from_settings from django_core.utils.loading import get_class_f...
added test for loading function from settings string.
py
diff --git a/parser.py b/parser.py index <HASH>..<HASH> 100644 --- a/parser.py +++ b/parser.py @@ -29,7 +29,7 @@ class Parser: break self.add_object(st[start:i-1]) c = st[i];i+=1 - elif b'a'<=c<=b'z' or b'A'<=c<=b'Z' or b'0'<=c<=b'9' or c in b'._': + elif b'a'<=c<=b'z' or b'A'<=c<=b'Z' or b'0'...
Support raw tokens starting with a minus sign
py
diff --git a/tests/optimization_test.py b/tests/optimization_test.py index <HASH>..<HASH> 100644 --- a/tests/optimization_test.py +++ b/tests/optimization_test.py @@ -87,19 +87,5 @@ class WarmupCosineWithRestartsTest(unittest.TestCase): self.assertTrue(np.allclose(expected_zeros, 0)) -class TestSchedulePlo...
- replaced OpenAIGPTAdam with OpenAIAdam in docs
py
diff --git a/l20n/parser.py b/l20n/parser.py index <HASH>..<HASH> 100644 --- a/l20n/parser.py +++ b/l20n/parser.py @@ -58,7 +58,7 @@ class Parser(): ws1 = self.get_ws() if self.content[0] == '>': self.content = self.content[1:] - entity = ast.Entity(id) + entity = as...
update Member/AttrExpression parser to recognize computed state and fix a bug where entity without attributes did not get index stored
py
diff --git a/tchannel/socket.py b/tchannel/socket.py index <HASH>..<HASH> 100644 --- a/tchannel/socket.py +++ b/tchannel/socket.py @@ -40,3 +40,6 @@ class SocketConnection(Connection): def next(self): return next(self.reader) + + # Python 3. Yay. + __next__ = next
next == __next__
py
diff --git a/pymunin/__init__.py b/pymunin/__init__.py index <HASH>..<HASH> 100644 --- a/pymunin/__init__.py +++ b/pymunin/__init__.py @@ -15,7 +15,7 @@ __author__ = "Ali Onur Uyar" __copyright__ = "Copyright 2011, Ali Onur Uyar" __credits__ = ["Samuel Stauffer"] __license__ = "GPL" -__version__ = "0.9.1" +__version...
Bump up version for bug fix release for PyPI.
py
diff --git a/src/wa_kat/zeo/request_info.py b/src/wa_kat/zeo/request_info.py index <HASH>..<HASH> 100755 --- a/src/wa_kat/zeo/request_info.py +++ b/src/wa_kat/zeo/request_info.py @@ -105,7 +105,25 @@ class RequestInfo(Persistent): @transaction_manager def get_log(self): - return "\n".join( + #...
#<I>: Log improved.
py
diff --git a/testing/test_nodes.py b/testing/test_nodes.py index <HASH>..<HASH> 100644 --- a/testing/test_nodes.py +++ b/testing/test_nodes.py @@ -88,7 +88,7 @@ def test__check_initialpaths_for_relpath() -> None: assert nodes._check_initialpaths_for_relpath(session, sub) == "file" - outside = Path("/outside...
tests: Use less conflicting name for directory Otherwise, if e.g. /outside is used for a Docker container, the test will fail
py
diff --git a/appinst/platforms/osx.py b/appinst/platforms/osx.py index <HASH>..<HASH> 100644 --- a/appinst/platforms/osx.py +++ b/appinst/platforms/osx.py @@ -113,9 +113,18 @@ class OSX(object): else: name = shortcut['name'] path = os.path.join(shortcut['menu_dir'], name) - ...
fixed bug when trying to reinstall an application
py
diff --git a/src/hszinc/parser.py b/src/hszinc/parser.py index <HASH>..<HASH> 100644 --- a/src/hszinc/parser.py +++ b/src/hszinc/parser.py @@ -13,6 +13,7 @@ from datatypes import Quantity, Coordinate, Ref, Bin, Uri, MARKER, STR_SUB from zoneinfo import timezone import datetime import iso8601 +import re URI_META =...
parser: Add missed re import
py
diff --git a/sporco/admm/cbpdn.py b/sporco/admm/cbpdn.py index <HASH>..<HASH> 100644 --- a/sporco/admm/cbpdn.py +++ b/sporco/admm/cbpdn.py @@ -1380,6 +1380,13 @@ class ConvTwoBlockCnstrnt(admm.ADMMTwoBlockCnstrnt): + def getcoef(self): + """Get final coefficient array.""" + + return self.X + + + ...
Added missing getcoef methods
py
diff --git a/gwpy/signal/window.py b/gwpy/signal/window.py index <HASH>..<HASH> 100644 --- a/gwpy/signal/window.py +++ b/gwpy/signal/window.py @@ -56,6 +56,8 @@ def canonical_name(name): >>> canonical_name('ksr') 'kaiser' """ + if name == 'planck': # make sure to handle the Planck window function + ...
Adding support for signal.window.planck() into canonical_name and recommended_overlap
py
diff --git a/salt/runner.py b/salt/runner.py index <HASH>..<HASH> 100644 --- a/salt/runner.py +++ b/salt/runner.py @@ -310,7 +310,6 @@ class Runner(RunnerClient): log.info('Running in async mode. Results of this execution may ' 'be collected by attaching to the master ...
If we want returns, maybe we shouldn't exit first
py
diff --git a/sirmordred/config.py b/sirmordred/config.py index <HASH>..<HASH> 100644 --- a/sirmordred/config.py +++ b/sirmordred/config.py @@ -336,6 +336,18 @@ class Config(): "default": False, "type": bool, "description": "Enable kafka menu" + ...
[config] Load gitlab panels by the setup.cfg This code extends the setup.cfg to load gitlab merge and issue panels on demand. When enabled (set to true), the attributes `gitlab_merges` and `gitlab_issues` allow to load the corresponding panels. By default these attributes are disables.
py
diff --git a/b3j0f/schema/test/base.py b/b3j0f/schema/test/base.py index <HASH>..<HASH> 100644 --- a/b3j0f/schema/test/base.py +++ b/b3j0f/schema/test/base.py @@ -95,7 +95,7 @@ class CLSSchemaMaker(UTCase): self.assertEqual(TestSchema.a, 'a') self.assertIsInstance(TestSchema.b, Schema) - self...
:fix: base UTs
py
diff --git a/wpull/version.py b/wpull/version.py index <HASH>..<HASH> 100644 --- a/wpull/version.py +++ b/wpull/version.py @@ -32,5 +32,5 @@ def get_version_tuple(string): return major, minor, patch, level, serial -__version__ = '2.0.2' +__version__ = '2.0.3' version_info = get_version_tuple(__version__)
Bump to <I>. Less crashy than ever!
py
diff --git a/collatex-pythonport/collatex/core_functions.py b/collatex-pythonport/collatex/core_functions.py index <HASH>..<HASH> 100644 --- a/collatex-pythonport/collatex/core_functions.py +++ b/collatex-pythonport/collatex/core_functions.py @@ -4,7 +4,7 @@ Created on May 3, 2014 @author: Ronald Haentjens Dekker """...
Add missing import to core_functions.py Fixes most broken tests in experimental branch TODO: The two near_matching test modules still error out
py
diff --git a/tests/test_mpv.py b/tests/test_mpv.py index <HASH>..<HASH> 100755 --- a/tests/test_mpv.py +++ b/tests/test_mpv.py @@ -674,7 +674,7 @@ class CommandTests(MpvTestCase): handler = mock.Mock() self.m.property_observer('sub-text')(handler) - self.m.loadfile(TESTVID, sub_file='sub_test...
Make tests run when called through setup.py from root dir
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -49,6 +49,7 @@ setup( '_static/metpy_150x150.png', '_static/unidata_75x75.png', '_static/unidata_150x150.png']}, + python_requires='>=2.7, !=3.0.*, !=3...
MNT: Add python_requires to setup.py This will be more important once we drop <I>.
py
diff --git a/dwave/cloud/cli.py b/dwave/cloud/cli.py index <HASH>..<HASH> 100644 --- a/dwave/cloud/cli.py +++ b/dwave/cloud/cli.py @@ -20,6 +20,7 @@ import logging import datetime import click +import requests.exceptions from timeit import default_timer as timer from datetime import datetime, timedelta @@ -209,...
Check for (private) cert verify fail; direct user to KB article
py