diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/cassandra/cqlengine/columns.py b/cassandra/cqlengine/columns.py index <HASH>..<HASH> 100644 --- a/cassandra/cqlengine/columns.py +++ b/cassandra/cqlengine/columns.py @@ -328,7 +328,9 @@ class Text(Column): Defaults to 1 if this is a ``required`` column. Otherwise, None. :param int max...
Only enforce minimal length requirement if min_length is unset.
py
diff --git a/fireplace/actions.py b/fireplace/actions.py index <HASH>..<HASH> 100644 --- a/fireplace/actions.py +++ b/fireplace/actions.py @@ -365,6 +365,12 @@ class Play(GameAction): args = ("card", "target", "choose") type = PowSubType.PLAY + def _broadcast(self, entity, source, game, at, *args): + # Prevent c...
Prevent entities from triggering off their own summon/play
py
diff --git a/rejected/controller.py b/rejected/controller.py index <HASH>..<HASH> 100644 --- a/rejected/controller.py +++ b/rejected/controller.py @@ -7,6 +7,7 @@ import logging import signal import sys +from rejected import common from rejected import mcp from rejected import __version__ @@ -41,6 +42,7 @@ clas...
Add the null handler to the root logger to prevent Tornado from doing logging.basicConfig
py
diff --git a/lib/stsci/tools/check_files.py b/lib/stsci/tools/check_files.py index <HASH>..<HASH> 100644 --- a/lib/stsci/tools/check_files.py +++ b/lib/stsci/tools/check_files.py @@ -336,9 +336,9 @@ def stisExt2PrimKw(stisfiles): if isinstance(sfile, str): sfile = fits.open(sfile, mode='udpate') ...
Fix code to move keywords from SCI to PRIMARY
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -46,7 +46,7 @@ setup( author=meta['author'], author_email='mail@honzajavorek.cz', url='https://github.com/honzajavorek/redis-collections', - license=io.open('LICENSE', encoding='utf-8').read(), + license='...
Use license type in setup.py
py
diff --git a/trainerdex/leaderboard.py b/trainerdex/leaderboard.py index <HASH>..<HASH> 100644 --- a/trainerdex/leaderboard.py +++ b/trainerdex/leaderboard.py @@ -131,6 +131,7 @@ class WorldwideLeaderboard(BaseLeaderboard): class DiscordLeaderboard(BaseLeaderboard): def __init__(self, data: List[dict], clie...
Fixes "`DiscordLeaderboard` object has no attribute `client`"
py
diff --git a/examples/appengine/example.py b/examples/appengine/example.py index <HASH>..<HASH> 100644 --- a/examples/appengine/example.py +++ b/examples/appengine/example.py @@ -109,8 +109,10 @@ class HomeHandler(BaseHandler): def post(self): url = self.request.get('url') file = urllib2.urlopen(...
changed implementation of upload photo in the way it gets the access token and to redirect to photo after upload is done
py
diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_file_client.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_file_client.py index <HASH>..<HASH> 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_file_client.py +++ b/sdk/storage/azure-storage-file-sha...
fix function has duplicate type signatures mypy error (#<I>)
py
diff --git a/salt/modules/win_system.py b/salt/modules/win_system.py index <HASH>..<HASH> 100644 --- a/salt/modules/win_system.py +++ b/salt/modules/win_system.py @@ -448,10 +448,9 @@ def get_hostname(): salt 'minion-id' system.get_hostname ''' - cmd = 'wmic computersystem get name' + cmd = 'hostn...
Fix get_hostname to handle longer computer names
py
diff --git a/tests/base.py b/tests/base.py index <HASH>..<HASH> 100644 --- a/tests/base.py +++ b/tests/base.py @@ -9,6 +9,7 @@ from is_element_present import IsElementPresentTest from iframes import IFrameElementsTest from async_finder import AsyncFinderTests from within_elements import WithinElementsTest +from stat...
Added recently created test in the list of inherit test classes
py
diff --git a/pyspectral/rayleigh.py b/pyspectral/rayleigh.py index <HASH>..<HASH> 100644 --- a/pyspectral/rayleigh.py +++ b/pyspectral/rayleigh.py @@ -166,7 +166,7 @@ class Rayleigh(object): wvl = self.get_effective_wavelength(bandname) * 1000.0 coeff, wvl_coord, azid_coord = self.get_poly_coeff() -...
Simplify out of bounds check
py
diff --git a/src/openaccess_epub/ncx/ncx.py b/src/openaccess_epub/ncx/ncx.py index <HASH>..<HASH> 100644 --- a/src/openaccess_epub/ncx/ncx.py +++ b/src/openaccess_epub/ncx/ncx.py @@ -191,11 +191,13 @@ e try: child_title = child.getChildrenByTagName('title')[0] except IndexErro...
Changed behavior for sec to navPoint conversion. If they lack titles they will now not become navPoints
py
diff --git a/lib/stsci/tools/logutil.py b/lib/stsci/tools/logutil.py index <HASH>..<HASH> 100644 --- a/lib/stsci/tools/logutil.py +++ b/lib/stsci/tools/logutil.py @@ -178,8 +178,30 @@ class StreamTeeLogger(logging.Logger): self.set_stream(stream) self.addHandler(_LogTeeHandler()) - self.error...
Replaced hard-coded attributes for 'errors' and 'encoding' in logutil.StreamTeeLogger with properties, as provided by Erik. This should make the code more robust. git-svn-id: <URL>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ setup( author_email='dev@aaren.me', license='BSD 2-Clause', url='http://github.com/aaren/notedown', - install_requires=['ipython >= 3.0', 'jinja2', 'pandoc-attributes'], + install_requires=[...
fix requirements: now need nbconvert
py
diff --git a/bitshares/account.py b/bitshares/account.py index <HASH>..<HASH> 100644 --- a/bitshares/account.py +++ b/bitshares/account.py @@ -57,8 +57,12 @@ class Account(BlockchainObject): self.cache(account["name"]) if self.full: - account = self.blockchain.rpc.get_full_accounts( - ...
Issue #<I> Added bad API response for accounts list handling
py
diff --git a/nose2gae/__init__.py b/nose2gae/__init__.py index <HASH>..<HASH> 100644 --- a/nose2gae/__init__.py +++ b/nose2gae/__init__.py @@ -33,7 +33,7 @@ class Nose2GAE(events.Plugin): configSection = 'nose2-gae' commandLineSwitch = (None, 'with-gae', 'Run tests inside the Google Appengine sandbox') - ...
Don't prematurely parse arguments - could fail if the plugin is loaded but not activated
py
diff --git a/test/test_prechecks.py b/test/test_prechecks.py index <HASH>..<HASH> 100644 --- a/test/test_prechecks.py +++ b/test/test_prechecks.py @@ -26,6 +26,7 @@ class PrecheckTest(BrokerTestCase): }) self.assertEqual(response.status_code, http.HTTPStatus.PRECONDITION_FAILED) + print(r...
Add some output to test, to engage ci error
py
diff --git a/arq/worker.py b/arq/worker.py index <HASH>..<HASH> 100644 --- a/arq/worker.py +++ b/arq/worker.py @@ -151,7 +151,7 @@ class Worker: def __init__( self, - functions: Sequence[Function] = (), + functions: Sequence[Union[Function, Callable]] = (), *, queue_name:...
fix Worker typing (#<I>)
py
diff --git a/zipline/algorithm.py b/zipline/algorithm.py index <HASH>..<HASH> 100644 --- a/zipline/algorithm.py +++ b/zipline/algorithm.py @@ -499,6 +499,7 @@ class TradingAlgorithm(object): perf['daily_perf'].update( perf['daily_perf'].pop('recorded_vars') ) + ...
added cumulative risk measures to the datapanel produced from perf frames.
py
diff --git a/test/test_tram.py b/test/test_tram.py index <HASH>..<HASH> 100644 --- a/test/test_tram.py +++ b/test/test_tram.py @@ -71,10 +71,17 @@ class TestTRAM(unittest.TestCase): state_sequence = Markov_state_sequence log_R_K_i = np.log(R) + log_R_K_i_compare = np.zeros_like(log_R_K_i) + ...
[TRAM] completed logL unit test
py
diff --git a/ci/utils.py b/ci/utils.py index <HASH>..<HASH> 100644 --- a/ci/utils.py +++ b/ci/utils.py @@ -2,6 +2,8 @@ import time from datetime import timedelta from django.utils import timezone +from six.moves.urllib.parse import urlparse, parse_qs +from six import string_types import attr @@ -101,3 +103,14 ...
Add util to extract query params from a URL
py
diff --git a/intake/catalog/entry.py b/intake/catalog/entry.py index <HASH>..<HASH> 100644 --- a/intake/catalog/entry.py +++ b/intake/catalog/entry.py @@ -133,7 +133,7 @@ class CatalogEntry(DictSerialiseMixin): 'application/json': contents, 'text/plain': pretty_describe(contents) }, m...
Use underscored `_name` to avoid initialization.
py
diff --git a/qiskit/visualization/dag_visualization.py b/qiskit/visualization/dag_visualization.py index <HASH>..<HASH> 100644 --- a/qiskit/visualization/dag_visualization.py +++ b/qiskit/visualization/dag_visualization.py @@ -170,7 +170,8 @@ def dag_drawer(dag, scale=0.7, filename=None, style='color'): with t...
fix error when `dag_drawer` removes a temporary file that is still open (#<I>) * fix error when removing an image file that is still open * autopep
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -10,5 +10,7 @@ setup( packages=find_packages(), include_package_data=True, install_requires=['pyhamcrest'], + tests_requires=['pyhamcrest'], + test_suite="tests", zip_safe=False, )
re #<I> Updating setup.py for missing test deps. Updating setup.py because tests missing dependencies. Using this way, now `python setup.py test` can be run
py
diff --git a/tabledata/_core.py b/tabledata/_core.py index <HASH>..<HASH> 100644 --- a/tabledata/_core.py +++ b/tabledata/_core.py @@ -2,6 +2,7 @@ .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ +import copy import re from collections import OrderedDict, namedtuple from typing import Any, Dic...
Change to copy DataPropertyExtractor argument instead of assign
py
diff --git a/vent/core/network_tap/ncontrol/rest/create.py b/vent/core/network_tap/ncontrol/rest/create.py index <HASH>..<HASH> 100644 --- a/vent/core/network_tap/ncontrol/rest/create.py +++ b/vent/core/network_tap/ncontrol/rest/create.py @@ -60,7 +60,10 @@ class CreateR: except Exception as e: # pragma: ...
fix string to dict into redis issue
py
diff --git a/LiSE/LiSE/engine.py b/LiSE/LiSE/engine.py index <HASH>..<HASH> 100644 --- a/LiSE/LiSE/engine.py +++ b/LiSE/LiSE/engine.py @@ -1570,6 +1570,8 @@ class Engine(AbstractEngine, gORM): self.add_character(name, data, **kwargs) return self.character[name] + new_graph = new_character + ...
Add new_graph as an alias of new_character
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -22,4 +22,8 @@ setup( license='MIT', packages=find_packages(exclude=['tests']), install_requires=['six', 'decorator', 'funcsigs'], + classifiers=[ + 'Programming Language :: Python :: 2', + 'Pro...
Added Py2/3 classifiers.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -90,10 +90,10 @@ setup( ], data_files = [ ## this does not appear to actually put anything into the egg... + ('examples', recursive_glob('src/examples', '*.py')), + ('configs', recursive_glob('...
fixing examples and configs in the egg
py
diff --git a/scss/__init__.py b/scss/__init__.py index <HASH>..<HASH> 100644 --- a/scss/__init__.py +++ b/scss/__init__.py @@ -36,7 +36,7 @@ xCSS: """ -from scss_meta import BUILD_INFO, PROJECT, VERSION, AUTHOR, AUTHOR_EMAIL, LICENSE +from scss_meta import BUILD_INFO, PROJECT, VERSION, REVISION, URL, AUTHOR, AUTHO...
Added pyScss version information variables
py
diff --git a/gnupg/gnupg.py b/gnupg/gnupg.py index <HASH>..<HASH> 100644 --- a/gnupg/gnupg.py +++ b/gnupg/gnupg.py @@ -171,11 +171,6 @@ def _make_binary_stream(s, encoding): rv = StringIO(s) return rv -def _today(): - """Get the current date as a string in the form %Y-%m-%d.""" - now_string = date...
Remove function _today() from gnupg.py.
py
diff --git a/tests/refresh_token/test_models.py b/tests/refresh_token/test_models.py index <HASH>..<HASH> 100644 --- a/tests/refresh_token/test_models.py +++ b/tests/refresh_token/test_models.py @@ -18,10 +18,21 @@ class AbstractRefreshTokenTests(UserTestCase): def test_generate_token(self): token = sel...
Added test_get_token
py
diff --git a/src/landslide/macro.py b/src/landslide/macro.py index <HASH>..<HASH> 100644 --- a/src/landslide/macro.py +++ b/src/landslide/macro.py @@ -50,7 +50,7 @@ class CodeHighlightingMacro(Macro): Pygments. """ code_blocks_re = re.compile( - r'(<pre.+?>(<code>)?\s?!(\w+?)\n(.*?)(</code>)?</...
Code blocks regex now captures all pygments short-names
py
diff --git a/src/ossos-pipeline/ossos/plant.py b/src/ossos-pipeline/ossos/plant.py index <HASH>..<HASH> 100755 --- a/src/ossos-pipeline/ossos/plant.py +++ b/src/ossos-pipeline/ossos/plant.py @@ -1,6 +1,6 @@ import fcntl import os -import random +from numpy import random from astropy.table import Table import numpy ...
Made the mag distribution a step-function with <I> coming from mag<<I> and <I>% from mag>=<I> The flux distributoin of planted sources needs to be solid enough near the transition to 0 completeness such that we can measure the shape. Also, we don't want too many bright sources in planted images that the operator looks...
py
diff --git a/notifications/templatetags/notifications_tags.py b/notifications/templatetags/notifications_tags.py index <HASH>..<HASH> 100644 --- a/notifications/templatetags/notifications_tags.py +++ b/notifications/templatetags/notifications_tags.py @@ -9,8 +9,10 @@ register = Library() def notifications_unread(conte...
bugfix for wrong user unread notification count
py
diff --git a/dvc/repo/install.py b/dvc/repo/install.py index <HASH>..<HASH> 100644 --- a/dvc/repo/install.py +++ b/dvc/repo/install.py @@ -17,7 +17,7 @@ def pre_commit_install(scm: "Git") -> None: with modify_yaml(config_path) as config: entry = { "repo": "https://github.com/iterative/dvc", -...
fix: hooks install alongside pre-commit tool
py
diff --git a/bonsai/py/model.py b/bonsai/py/model.py index <HASH>..<HASH> 100644 --- a/bonsai/py/model.py +++ b/bonsai/py/model.py @@ -176,6 +176,12 @@ class PyComprehension(PyExpression): self.expr = expr self.iters = iters + def _children(self): + yield self.expr + + for iter in s...
Adding some _children() methods
py
diff --git a/launch_control/utils/json/pod.py b/launch_control/utils/json/pod.py index <HASH>..<HASH> 100644 --- a/launch_control/utils/json/pod.py +++ b/launch_control/utils/json/pod.py @@ -86,10 +86,6 @@ class PlainOldData(IComplexJSONType): def get_json_class_name(cls): return cls.__name__ - @clas...
Remove empty implementation of PlainOldData.get_json_attr_types() This is expected as this method is really not implemented in this class
py
diff --git a/python/tensorflow/ner/create_models.py b/python/tensorflow/ner/create_models.py index <HASH>..<HASH> 100644 --- a/python/tensorflow/ner/create_models.py +++ b/python/tensorflow/ner/create_models.py @@ -7,9 +7,9 @@ import argparse def create_graph(output_path, number_of_tags, embeddings_dimension, number...
Fixed return and wrote raise for the tensorflow version exception
py
diff --git a/api/db.py b/api/db.py index <HASH>..<HASH> 100644 --- a/api/db.py +++ b/api/db.py @@ -11,14 +11,5 @@ from . import app from mongoengine import connect from flask.ext.mongoengine import MongoEngine -connect(app.config['MONGODB_DB'], host=app.config['MONGODB_URI']) +connect(app.config['API_DB_NAME'], hos...
removed namecoin db indexes and updated name of API DB
py
diff --git a/gtts/tests/test_token.py b/gtts/tests/test_token.py index <HASH>..<HASH> 100644 --- a/gtts/tests/test_token.py +++ b/gtts/tests/test_token.py @@ -1,3 +1,5 @@ +# coding=UTF-8 + import unittest from gtts import gToken @@ -22,17 +24,17 @@ class TestToken(unittest.TestCase): def test_token_accentuat...
Make tests compatible with Python <I> string handling.
py
diff --git a/custodia/httpd/server.py b/custodia/httpd/server.py index <HASH>..<HASH> 100644 --- a/custodia/httpd/server.py +++ b/custodia/httpd/server.py @@ -9,6 +9,7 @@ import socket import ssl import struct import sys +import warnings import six @@ -25,10 +26,21 @@ except ImportError: from urllib.parse ...
Warn users about missing systemd bindings Python systemd bindings are an optional component. Custodia used to silently ignore systemd features like sd_notify and sd_listen_fds, when the bindings could not be imported. Now Custodia prints a warning when it detects NOTIFY_SOCKET or LISTEN_FDS env vars.
py
diff --git a/src/googleclouddebugger/version.py b/src/googleclouddebugger/version.py index <HASH>..<HASH> 100644 --- a/src/googleclouddebugger/version.py +++ b/src/googleclouddebugger/version.py @@ -4,4 +4,4 @@ # The major version should only change on breaking changes. Minor version # changes go between regular upda...
Increment python agent minor version to <I> ------------- Created by MOE: <URL>
py
diff --git a/datacats/environment.py b/datacats/environment.py index <HASH>..<HASH> 100644 --- a/datacats/environment.py +++ b/datacats/environment.py @@ -58,6 +58,7 @@ class Environment(object): self.extension_dir = extension_dir self.ckan_version = ckan_version self.port = int(port if port ...
Report proper address when on Linux and using --host command.
py
diff --git a/mir_eval/util.py b/mir_eval/util.py index <HASH>..<HASH> 100644 --- a/mir_eval/util.py +++ b/mir_eval/util.py @@ -639,30 +639,6 @@ def validate_events(events, max_time=30000.): raise ValueError('Events should be in increasing order.') -def filter_labeled_intervals(intervals, labels): - r'''...
This function is no longer used in mir_eval
py
diff --git a/openquake/commonlib/readinput.py b/openquake/commonlib/readinput.py index <HASH>..<HASH> 100644 --- a/openquake/commonlib/readinput.py +++ b/openquake/commonlib/readinput.py @@ -555,11 +555,14 @@ def get_composite_source_model(oqparam, in_memory=True): csm = source.CompositeSourceModel(gsim_lt, source...
Better check on duplicated sources [skip CI]
py
diff --git a/src/python/pants/backend/jvm/subsystems/shader.py b/src/python/pants/backend/jvm/subsystems/shader.py index <HASH>..<HASH> 100644 --- a/src/python/pants/backend/jvm/subsystems/shader.py +++ b/src/python/pants/backend/jvm/subsystems/shader.py @@ -237,7 +237,7 @@ class Shader(object): cls.register_jvm...
Upgrade default jarjar to <I>. (#<I>) This picks up asm fixes from and closes <URL>
py
diff --git a/cartoframes/_version.py b/cartoframes/_version.py index <HASH>..<HASH> 100644 --- a/cartoframes/_version.py +++ b/cartoframes/_version.py @@ -1 +1 @@ -__version__ = '1.0b7' +__version__ = '1.0rc1.dev'
Bump to rc1.dev
py
diff --git a/tests/test_repository.py b/tests/test_repository.py index <HASH>..<HASH> 100644 --- a/tests/test_repository.py +++ b/tests/test_repository.py @@ -82,10 +82,7 @@ def test_tag_pattern(tags, tag_prefix, tag_pattern, expected_tags): for selected_tag_ref in selected_tag_ref_list: selected_...
test: refactor assert condition to make it simpler
py
diff --git a/opinel/utils.py b/opinel/utils.py index <HASH>..<HASH> 100644 --- a/opinel/utils.py +++ b/opinel/utils.py @@ -98,18 +98,11 @@ def add_common_argument(parser, default_args, argument_name): default=[], nargs='+', help='Nam...
Follow up to issue #<I> -- deprecate with_gov and with_cn arguments in favor of partition_name
py
diff --git a/modelx/core/space.py b/modelx/core/space.py index <HASH>..<HASH> 100644 --- a/modelx/core/space.py +++ b/modelx/core/space.py @@ -1105,8 +1105,7 @@ class StaticSpaceImpl(BaseSpaceImpl, EditableSpaceContainerImpl): name, formula=None, refs=None, - source=None, - argu...
FAC: Remove redundant param from StaticSpaceImpl
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ rootdir = os.path.abspath(os.path.dirname(__file__)) long_description = open(os.path.join(rootdir, 'README')).read() setup(name='Spartacus', - version='2.62', + version='2.63', description='...
<I>: Packaging to pip
py
diff --git a/productmd/composeinfo.py b/productmd/composeinfo.py index <HASH>..<HASH> 100644 --- a/productmd/composeinfo.py +++ b/productmd/composeinfo.py @@ -41,6 +41,11 @@ from productmd.common import Header import six +if six.PY3: + def cmp(a, b): + return (a > b) - (a < b) + + # order matters - used...
Fix flake8 errors in composeinfo.py.
py
diff --git a/pytmx/pytmx.py b/pytmx/pytmx.py index <HASH>..<HASH> 100644 --- a/pytmx/pytmx.py +++ b/pytmx/pytmx.py @@ -105,7 +105,7 @@ types = defaultdict(lambda: six.u) _str = six.u types.update({ - "version": float, + "version": str, "orientation": _str, "width": float, "height": float,
change version from float to str new versions of tiled use a x.y.z format, so casting as a float no longer works.
py
diff --git a/opencage/geocoder.py b/opencage/geocoder.py index <HASH>..<HASH> 100644 --- a/opencage/geocoder.py +++ b/opencage/geocoder.py @@ -1,19 +1,19 @@ -import requests, json +import requests class OpenCageGeocode: - url = 'http://prototype.opencagedata.com/geocode/v1/json' - key = '' + url = 'http://prototy...
here we go replace tabs with spaces
py
diff --git a/confindr/confindr.py b/confindr/confindr.py index <HASH>..<HASH> 100644 --- a/confindr/confindr.py +++ b/confindr/confindr.py @@ -669,8 +669,9 @@ if __name__ == '__main__': help='Number of threads to run analysis with.') parser.add_argument('-n', '--number_subsamples', ...
Upped default number of subsamples to 5. In silico testing was showing too much variation with only 3
py
diff --git a/pybliometrics/scopus/abstract_retrieval.py b/pybliometrics/scopus/abstract_retrieval.py index <HASH>..<HASH> 100644 --- a/pybliometrics/scopus/abstract_retrieval.py +++ b/pybliometrics/scopus/abstract_retrieval.py @@ -310,7 +310,9 @@ class AbstractRetrieval(Retrieval): @property def idxterms(se...
Better explain idxterms
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -57,7 +57,7 @@ except ImportError: print "Proper 'develop' support unavailable." setup( - name="pyvex", version="3.12", description="A Python interface to libVEX and VEX IR.", + name="pyvex", version='4.5.9.9', d...
ticked version number to <I>
py
diff --git a/gnupg.py b/gnupg.py index <HASH>..<HASH> 100644 --- a/gnupg.py +++ b/gnupg.py @@ -429,7 +429,7 @@ def _is_allowed(input): assert _allowed.issubset(_possible), \ '_allowed is not subset of known options, difference: %s' \ % _allowed.difference(_possible) - except Assert...
Remove a comment about pre-Python<I> compatibility, since we don't care.
py
diff --git a/master/buildbot/libvirtbuildslave.py b/master/buildbot/libvirtbuildslave.py index <HASH>..<HASH> 100644 --- a/master/buildbot/libvirtbuildslave.py +++ b/master/buildbot/libvirtbuildslave.py @@ -160,6 +160,38 @@ class LibVirtSlave(AbstractLatentBuildSlave): self.domain = None + self.read...
Cope with orphaned build slaves When insubstantiate_after_build is False you can get orphan slaves that are duplicated when you restart buildbot. This prevents that by enumerating existing VM's and attempting to match them to defined slaves.
py
diff --git a/cobra/io/sbml.py b/cobra/io/sbml.py index <HASH>..<HASH> 100644 --- a/cobra/io/sbml.py +++ b/cobra/io/sbml.py @@ -148,8 +148,7 @@ def create_cobra_model_from_sbml_file(sbml_filename, old_sbml=False, legacy_meta except: warn("charge of %s is not a number (%s)" % (tmp_metabolite...
sbml bugfix for detecting conflicting charges Should check for 0, not None, now that getCharge is only read if isSet is True
py
diff --git a/peri/conf.py b/peri/conf.py index <HASH>..<HASH> 100644 --- a/peri/conf.py +++ b/peri/conf.py @@ -5,8 +5,8 @@ import copy CONF_FILE = os.path.join(os.path.expanduser("~"), ".peri.json") default_conf = { - "fftw_threads": -1, - "fftw_wisdom": os.path.join(os.path.expanduser("~"), ".fftw_wisdom.pkl...
chaning some conf keys around while breaking compatibility
py
diff --git a/src/discoursegraphs/readwrite/rst/rs3/rs3tree.py b/src/discoursegraphs/readwrite/rst/rs3/rs3tree.py index <HASH>..<HASH> 100644 --- a/src/discoursegraphs/readwrite/rst/rs3/rs3tree.py +++ b/src/discoursegraphs/readwrite/rst/rs3/rs3tree.py @@ -113,8 +113,7 @@ class RSTTree(object): # This happen...
use logging.INFO to inform about corpus errors
py
diff --git a/angr/engines/light/engine.py b/angr/engines/light/engine.py index <HASH>..<HASH> 100644 --- a/angr/engines/light/engine.py +++ b/angr/engines/light/engine.py @@ -146,8 +146,10 @@ class SimEngineLightVEX(SimEngineLight): def _handle_Unop(self, expr): handler = None - simop = vex_opera...
Fix an exception thrown upon unsupported VEX unops. Closes #<I>. (#<I>) Thanks @mephi<I> for reporting this bug.
py
diff --git a/salt/states/apt.py b/salt/states/apt.py index <HASH>..<HASH> 100644 --- a/salt/states/apt.py +++ b/salt/states/apt.py @@ -1,5 +1,6 @@ ''' Package management operations specific to APT- and DEB-based systems +==================================================================== ''' # Import python libs
Change to header Apparently a header is required to have it included in the "Full list of builtin state modules".
py
diff --git a/widgets.py b/widgets.py index <HASH>..<HASH> 100644 --- a/widgets.py +++ b/widgets.py @@ -359,6 +359,12 @@ class WTextEntry(Editor): return super().handle_edit_key(key) + def handle_mouse(self, x, y): + if self.just_started: + self.just_started = False + self.re...
widgets: WTextEntry: Reset just_started status on mouse click.
py
diff --git a/securesystemslib/gpg/constants.py b/securesystemslib/gpg/constants.py index <HASH>..<HASH> 100644 --- a/securesystemslib/gpg/constants.py +++ b/securesystemslib/gpg/constants.py @@ -16,6 +16,7 @@ handling """ import logging +import os import securesystemslib.gpg.rsa as rsa import securesystemslib....
Allow to provide GPG client through env
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ from wheel.bdist_wheel import bdist_wheel here = path.abspath(path.dirname(__file__)) root = 'xlmhg' description = 'XL-mHG: A Semiparametric Test for Enrichment' -version = '2.4.5' +version = '2.4.6' long_...
fix wheel tag bug affecting mac Python <I> builds
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,14 @@ try: from setuptools import setup, Extension + # Required for compatibility with pip (issue #177) + from setuptools.command.install import install except ImportError: from distutils.core import...
Fix #<I>: make setup.py compatible with `pip install`
py
diff --git a/cdrouter/devices.py b/cdrouter/devices.py index <HASH>..<HASH> 100644 --- a/cdrouter/devices.py +++ b/cdrouter/devices.py @@ -195,7 +195,9 @@ class DevicesService(object): schema = DeviceSchema(exclude=('attachments_dir', 'default_ip', 'default_login', 'default_password', ...
Exclude device connect/power fields from list output
py
diff --git a/tests/test_mbar.py b/tests/test_mbar.py index <HASH>..<HASH> 100644 --- a/tests/test_mbar.py +++ b/tests/test_mbar.py @@ -110,3 +110,15 @@ def test_general_expectations(): u_n = u_kn[:2, :] state_list = np.array([[0, 0], [1, 0], [2, 0], [2, 1]],int) [A_i, d2A_ij] = mbar.computeGe...
Added extra tests for two state checks.
py
diff --git a/astroid/rebuilder.py b/astroid/rebuilder.py index <HASH>..<HASH> 100644 --- a/astroid/rebuilder.py +++ b/astroid/rebuilder.py @@ -387,10 +387,7 @@ class TreeRebuilder(object): # parent is a astroid.nodes.Function node newnode = new.Decorators() _lineno_parent(node, newnode, paren...
Remove decorator support for Python < <I>, since it's dead code anyway.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ setup( 'requests_oauthlib>=0.3.3', 'tlslite>=0.4.4'], setup_requires=['sphinx', 'requests_oauthlib'], - tests_require=['unittest-xml-reporting', 'requests>=1...
switched to the renamed xmlrunner, which is patched and under our control.
py
diff --git a/sem/runner.py b/sem/runner.py index <HASH>..<HASH> 100644 --- a/sem/runner.py +++ b/sem/runner.py @@ -179,8 +179,9 @@ class SimulationRunner(object): smoothing=0, bar_format=bar_format) with pbar as progress_bar: - ...
Fix progress bar with ns3 build script
py
diff --git a/pyrsistent/_pmap.py b/pyrsistent/_pmap.py index <HASH>..<HASH> 100644 --- a/pyrsistent/_pmap.py +++ b/pyrsistent/_pmap.py @@ -402,9 +402,6 @@ class PMap(object): self.set(key, val) def set(self, key, val): - if len(self._buckets_evolver) < 0.67 * self._size: - ...
Fix #<I>, fix performance bug when setting elements in maps and adding elements to sets
py
diff --git a/manage.py b/manage.py index <HASH>..<HASH> 100755 --- a/manage.py +++ b/manage.py @@ -1,6 +1,23 @@ #!/usr/bin/env python -import os -os.environ['DJANGO_SETTINGS_MODULE'] = 'mailer.test_settings' -from django.core import management +DEFAULT_SETTINGS = dict( + INSTALLED_APPS=[ + "django.contrib.au...
Fixed manage.py so that it can be used again
py
diff --git a/barf/barf/arch/arm/armtranslator.py b/barf/barf/arch/arm/armtranslator.py index <HASH>..<HASH> 100644 --- a/barf/barf/arch/arm/armtranslator.py +++ b/barf/barf/arch/arm/armtranslator.py @@ -801,11 +801,13 @@ class ArmTranslator(object): arm_operand = instruction.operands[0] if isinstanc...
ARM: Branch: Expanded target's address size to store the original address shifted by 8.
py
diff --git a/pymc/gp/step_methods.py b/pymc/gp/step_methods.py index <HASH>..<HASH> 100644 --- a/pymc/gp/step_methods.py +++ b/pymc/gp/step_methods.py @@ -173,11 +173,11 @@ class GPEvaluationGibbs(pm.Metropolis): self.children_no_data = copy.copy(self.children) if isinstance(eps_p_f, pm.Vari...
Guarding against gotcha in GPEvaluationGibbs
py
diff --git a/openquake/calculators/tests/__init__.py b/openquake/calculators/tests/__init__.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/tests/__init__.py +++ b/openquake/calculators/tests/__init__.py @@ -63,7 +63,7 @@ def columns(line): class CalculatorTestCase(unittest.TestCase): - OVERWRITE_EXP...
Restored False [skip CI]
py
diff --git a/source/rafcon/mvc/views/state_machines_editor.py b/source/rafcon/mvc/views/state_machines_editor.py index <HASH>..<HASH> 100644 --- a/source/rafcon/mvc/views/state_machines_editor.py +++ b/source/rafcon/mvc/views/state_machines_editor.py @@ -69,7 +69,7 @@ class PlusAddNotebook(gtk.Notebook): if pb...
Fix issue #<I> Do not propagate middle mouse click event after handling it by closing the state machine
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -173,6 +173,7 @@ console or advanced editor, in your own software. """, download_url=__website_url__ + "#fh5co-download", author="The Spyder Project Contributors", + author_email="ccordoba12@gmail.com", ...
Add author email to setup args
py
diff --git a/pyeapi/client.py b/pyeapi/client.py index <HASH>..<HASH> 100644 --- a/pyeapi/client.py +++ b/pyeapi/client.py @@ -581,10 +581,15 @@ class Node(object): raise TypeError('config mode commands not supported') results = list() + # IMPORTANT: There are two keys (response, result) ...
Update enable return dict - Fix #<I> - Note - the result key was adding to the dict when strict equals True. The response key will be removed in a later version. Please update any scripts that are using response.
py
diff --git a/tests/server/blueprints/cases/test_cases_views.py b/tests/server/blueprints/cases/test_cases_views.py index <HASH>..<HASH> 100644 --- a/tests/server/blueprints/cases/test_cases_views.py +++ b/tests/server/blueprints/cases/test_cases_views.py @@ -128,7 +128,7 @@ def test_rerun_monitor(app, institute_obj, mo...
Update tests/server/blueprints/cases/test_cases_views.py
py
diff --git a/dolo/algos/dtcscc/gssa.py b/dolo/algos/dtcscc/gssa.py index <HASH>..<HASH> 100644 --- a/dolo/algos/dtcscc/gssa.py +++ b/dolo/algos/dtcscc/gssa.py @@ -145,6 +145,8 @@ def gssa(model, maxit=100, tol=1e-8, initial_dr=None, verbose=False, if verbose: print(err) + it += 1 + r...
increment iteration counter in gssa
py
diff --git a/salt/modules/debian_service.py b/salt/modules/debian_service.py index <HASH>..<HASH> 100644 --- a/salt/modules/debian_service.py +++ b/salt/modules/debian_service.py @@ -100,6 +100,7 @@ def restart(name): cmd = 'service {0} restart'.format(name) return not __salt__['cmd.retcode'](cmd) + def re...
Fixed debian_service.status method Changes based on discussion from pull-req #<I> (<URL>) - if signature argument is set, use it to do a process lookup - if signature argument is not set, use the startup script with "status" argument It's base on the rh_service.status method behavior.
py
diff --git a/extras.py b/extras.py index <HASH>..<HASH> 100644 --- a/extras.py +++ b/extras.py @@ -3,6 +3,12 @@ import requests import os +api_root = 'http://ws.audioscrobbler.com/2.0/' + def user_tracks(user_name): - resp = requests.get('http://ws.audioscrobbler.com/2.0/?method=user.getrecenttracks&user=' + us...
Separate api root and add user_weekly_tracks method
py
diff --git a/aioxmpp/muc/service.py b/aioxmpp/muc/service.py index <HASH>..<HASH> 100644 --- a/aioxmpp/muc/service.py +++ b/aioxmpp/muc/service.py @@ -37,6 +37,7 @@ import aioxmpp.im.conversation import aioxmpp.im.dispatcher import aioxmpp.im.p2p import aioxmpp.im.service +import aioxmpp.utils from aioxmpp.utils ...
muc: add proxy properties for timeout controls
py
diff --git a/law/parameter.py b/law/parameter.py index <HASH>..<HASH> 100644 --- a/law/parameter.py +++ b/law/parameter.py @@ -14,8 +14,8 @@ import luigi from law.notification import notify_mail -# globally make luigi's BoolParameter parsing explicit, https://github.com/spotify/luigi/pull/2427 -luigi.BoolParameter...
Better way to set explicit bool parsing.
py
diff --git a/examples/mnist-autoencoder.py b/examples/mnist-autoencoder.py index <HASH>..<HASH> 100644 --- a/examples/mnist-autoencoder.py +++ b/examples/mnist-autoencoder.py @@ -27,6 +27,6 @@ read = lambda s: cPickle.load(gzip.open(s)) net = lmj.tnn.main( lmj.tnn.Autoencoder, - lambda *_: [(x, y.astype('int...
Do not pass labels in to autoencoder.
py
diff --git a/fretboard/settings.py b/fretboard/settings.py index <HASH>..<HASH> 100644 --- a/fretboard/settings.py +++ b/fretboard/settings.py @@ -1,7 +1,7 @@ from django.conf import settings from django.contrib.sites.models import Site -def current_site(): +def get_current_site(): """ Helper function to ...
function. it's a function
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -69,7 +69,6 @@ setup( "test": [ "pytest>=5.2.2,<6.1.0", "pytest-asyncio>=0.10,<0.15", - "aiohttp~=3.6.2", "beautifulsoup4>=4.8.1,<4.10.0", "asgiref~=3.2.3...
Removed aiohttp from test dependencies It wasn't being used.
py
diff --git a/blockstack/blockstackd.py b/blockstack/blockstackd.py index <HASH>..<HASH> 100644 --- a/blockstack/blockstackd.py +++ b/blockstack/blockstackd.py @@ -2915,11 +2915,16 @@ def run_blockstackd(): if args.num_required: num_required = int(args.num_required) + print "Synchronizing from s...
give helpful pre- and post-sync feedback
py
diff --git a/bdata/__init__.py b/bdata/__init__.py index <HASH>..<HASH> 100644 --- a/bdata/__init__.py +++ b/bdata/__init__.py @@ -1,2 +1,6 @@ from bdata.bdata import bdata from bdata import mudpy + +__all__ = ['bdata','mudpy'] +__version__ = '1.1.2' +__author__ = 'Derek Fujimoto'
added version number to __init__
py
diff --git a/vstutils/utils.py b/vstutils/utils.py index <HASH>..<HASH> 100644 --- a/vstutils/utils.py +++ b/vstutils/utils.py @@ -216,6 +216,9 @@ class Lock(KVExchanger): time.sleep(0.01) raise self.AcquireLockException(err_msg) + def get(self): # nocv + return self.cache.get(self.ke...
Fix bug with celery beat prolongation
py
diff --git a/tests/utils/helpers.py b/tests/utils/helpers.py index <HASH>..<HASH> 100644 --- a/tests/utils/helpers.py +++ b/tests/utils/helpers.py @@ -907,6 +907,15 @@ def get_fake_risk_job(risk_cfg, hazard_cfg, output_type="curve", hazard_job, "Test Hazard output", "gmf"), lt_realization=...
Fixed a very subtle initialization bug breaking risk/event_based/core_test.py
py
diff --git a/overpy/__init__.py b/overpy/__init__.py index <HASH>..<HASH> 100644 --- a/overpy/__init__.py +++ b/overpy/__init__.py @@ -1164,13 +1164,33 @@ class RelationMember(object): role = data.get("role") attributes = {} - ignore = ["type", "ref", "role"] + ignore = ["geometry", "t...
src - Parse relation member with gemotry from json
py
diff --git a/fireplace/cards/blackrock/collectible.py b/fireplace/cards/blackrock/collectible.py index <HASH>..<HASH> 100644 --- a/fireplace/cards/blackrock/collectible.py +++ b/fireplace/cards/blackrock/collectible.py @@ -29,6 +29,20 @@ class BRM_009: return value - self.game.minionsKilledThisTurn +# Axe Flinge...
Implement Axe Flinger and Dragon Egg
py
diff --git a/src/setup.py b/src/setup.py index <HASH>..<HASH> 100644 --- a/src/setup.py +++ b/src/setup.py @@ -25,7 +25,7 @@ setup( author_email = 'team@projexsoftware.com', maintainer = 'Projex Software', maintainer_email = 'team@projexsoftware.com', - description = '''''', + description = 'Bindin...
Update setup.py Adding description string to setup.py so that project is not listed as `UNKNOWN` in `pypi`
py
diff --git a/src/toil/job.py b/src/toil/job.py index <HASH>..<HASH> 100644 --- a/src/toil/job.py +++ b/src/toil/job.py @@ -802,7 +802,7 @@ class Job(object): memory=float(config.defaultMemory) if self.memory is None else self.memory, cores=float(config.defaultCores) if self.cores is None else ...
Fix: `preemptable` requirement wrongly cast to float
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ REQUIREMENTS = [ 'django-revproxy[diazo]>=0.9.5', # Async Signals - 'celery[redis]>=3.1', + 'celery[redis]>=3.1.2', ### Move out of colab (as plugins): @@ -42,7 +42,7 @@ EXCLUDE_FROM_P...
Bump both Celery and Colab version
py