diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/pymagicc/io.py b/pymagicc/io.py index <HASH>..<HASH> 100644 --- a/pymagicc/io.py +++ b/pymagicc/io.py @@ -1514,7 +1514,7 @@ class _Writer(object): else: def _convert_to_decimal_year(itime): - # MAGICC dates are either middle of start of month + # conver...
Update following comment from @lewisjared
py
diff --git a/skosprovider/tests/test_providers.py b/skosprovider/tests/test_providers.py index <HASH>..<HASH> 100644 --- a/skosprovider/tests/test_providers.py +++ b/skosprovider/tests/test_providers.py @@ -431,3 +431,12 @@ class SimpleCsvProviderTests(unittest.TestCase): self.assertIsInstance(eb.notes[0], Not...
Add unit test for case sensitivity with csv provider.
py
diff --git a/sos/R/kernel.py b/sos/R/kernel.py index <HASH>..<HASH> 100644 --- a/sos/R/kernel.py +++ b/sos/R/kernel.py @@ -246,9 +246,11 @@ class sos_R: for name in names: if name.startswith('_'): self.sos_kernel.warn('Variable {} is passed from SoS to kernel {} as {}'.format(name...
Fix passing variables from SoS to R with variables starting with _
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,9 @@ setup( install_requires=[ 'ase', 'pypif', - 'requests' ], - packages=find_packages(exclude=('tests', 'docs')) + extras_require={ + 'report': ["requests"], + }, + ...
Move requests to extras Since `quality_report` is `False` by default.
py
diff --git a/annoying/fields.py b/annoying/fields.py index <HASH>..<HASH> 100644 --- a/annoying/fields.py +++ b/annoying/fields.py @@ -23,11 +23,16 @@ try: except: basestring = str +try: + from django.db.transaction import atomic +except ImportError: + from django.db.transaction import commit_on_success a...
Make AutoOnetoOneField Thread safe Uses the <I> compatible version of this from PR #<I>
py
diff --git a/tests/test_render.py b/tests/test_render.py index <HASH>..<HASH> 100644 --- a/tests/test_render.py +++ b/tests/test_render.py @@ -20,6 +20,9 @@ def test_dictionnary_dependent_validity(dictionnary_node): or (isinstance(dependent, str) and dependent in keys) \ or (isinstance(depende...
[mod] make sure boolean keys are not rendered
py
diff --git a/salt/modules/virt.py b/salt/modules/virt.py index <HASH>..<HASH> 100644 --- a/salt/modules/virt.py +++ b/salt/modules/virt.py @@ -173,6 +173,7 @@ def vm_info(vm_=None): 'cputime': int(raw[4]), 'disks': get_disks(vm_), 'graphics': get_graphics(vm_), + ...
Add missing network info to vm_info
py
diff --git a/GPy/kern/rbf.py b/GPy/kern/rbf.py index <HASH>..<HASH> 100644 --- a/GPy/kern/rbf.py +++ b/GPy/kern/rbf.py @@ -239,13 +239,13 @@ class rbf(kernpart): psi2 = np.empty((N,M,M)) psi2_Zdist_sq = self._psi2_Zdist_sq - half_log_psi2_denom = 0.5*np.log(self._psi2_denom).squeeze() + ...
rbf computation of psi2 now works if there's only one datum
py
diff --git a/benchmark/venv.py b/benchmark/venv.py index <HASH>..<HASH> 100644 --- a/benchmark/venv.py +++ b/benchmark/venv.py @@ -133,7 +133,7 @@ def run_cmd(cmd): def virtualenv_name(): - text = sys.executable + sys.version + data = sys.executable + sys.version version = sys.version_info if has...
hash also requirements.txt to name the venv
py
diff --git a/bids/variables/entities.py b/bids/variables/entities.py index <HASH>..<HASH> 100644 --- a/bids/variables/entities.py +++ b/bids/variables/entities.py @@ -80,10 +80,11 @@ class RunInfo(RunInfo_): pass -class NodeIndex(Node): +class NodeIndex(object): """Represents the top level in a BIDS hiera...
BUG: Call to __init__ of super class is missed Use "top_of_bids_heirarchy", None as initializers for Node object. Change inheritance for NodeIndex from Node to object.
py
diff --git a/statsd/__init__.py b/statsd/__init__.py index <HASH>..<HASH> 100644 --- a/statsd/__init__.py +++ b/statsd/__init__.py @@ -19,7 +19,7 @@ __all__ = [ ] __package_name__ = 'python-statsd' -__version__ = '1.7.1' +__version__ = '1.7.2' __author__ = 'Rick van Hattem' __author_email__ = 'Wolph@wol.ph' __de...
added pypy, pypy3 and python<I> support
py
diff --git a/src/foremast/awslambda/api_gateway_event/api_gateway_event.py b/src/foremast/awslambda/api_gateway_event/api_gateway_event.py index <HASH>..<HASH> 100644 --- a/src/foremast/awslambda/api_gateway_event/api_gateway_event.py +++ b/src/foremast/awslambda/api_gateway_event/api_gateway_event.py @@ -11,6 +11,7 @@...
moved functions into api_gateway
py
diff --git a/src/streamlink/stream/hls.py b/src/streamlink/stream/hls.py index <HASH>..<HASH> 100644 --- a/src/streamlink/stream/hls.py +++ b/src/streamlink/stream/hls.py @@ -370,7 +370,7 @@ class HLSStream(HTTPStream): continue external_audio = preferred_audio or default_audio - ...
stream.hls: only support external audio tracks if ffmpeg is available
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ tests_require = [ 'pydocstyle>=2.0.0', 'pytest-cov>=1.8.0', 'pytest-pep8>=1.0.6', - 'pytest>=2.8.0', + 'pytest>=4.0.0,<5.0.0', 'mock>=1.3.0', ]
setup: pin pytest version (closes #<I>)
py
diff --git a/src/tests/parser_test.py b/src/tests/parser_test.py index <HASH>..<HASH> 100644 --- a/src/tests/parser_test.py +++ b/src/tests/parser_test.py @@ -408,6 +408,7 @@ def test_nested_class(): assert str(inner_class) == 'in public nested class `InnerClass`' +@pytest.mark.skipif(six.PY2, reason='`raise f...
Don't test `raise from` in Python 2.x.
py
diff --git a/colab/settings.py b/colab/settings.py index <HASH>..<HASH> 100644 --- a/colab/settings.py +++ b/colab/settings.py @@ -213,6 +213,7 @@ MIDDLEWARE_CLASSES = ( 'django_mobile.middleware.MobileDetectionMiddleware', 'django_mobile.middleware.SetFlavourMiddleware', 'colab.tz.middleware.TimezoneMid...
Enabled RemoteUserMiddleware
py
diff --git a/python/dllib/src/test/dev/modules.py b/python/dllib/src/test/dev/modules.py index <HASH>..<HASH> 100644 --- a/python/dllib/src/test/dev/modules.py +++ b/python/dllib/src/test/dev/modules.py @@ -90,3 +90,10 @@ test_load_caffe = Module( "test.load_caffe_test" ] ) + +test_tensorflow = Module( +...
refine tensorflow support doc (#<I>) * refine tensorflow support * meet review * add tensorflow saver to python api and refine docs
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,10 +3,10 @@ import sdist_upip setup(name='picoweb', - version='1.3', + version='1.3.1', description="A very lightweight, memory-efficient async web framework \ for MicroPython.org and its uasyncio mod...
setup.py: Release <I>, include README as long description.
py
diff --git a/metpy/plots/_mpl.py b/metpy/plots/_mpl.py index <HASH>..<HASH> 100644 --- a/metpy/plots/_mpl.py +++ b/metpy/plots/_mpl.py @@ -273,7 +273,9 @@ if not hasattr(Axes, 'scattertext'): """ full_transform = self.get_transform() - transData - XY = full_transform.transform(np....
Adjust the TextCollection to convert units appropriately. Resolves issues with Pandas DatetimeIndex.
py
diff --git a/pyoko/form.py b/pyoko/form.py index <HASH>..<HASH> 100644 --- a/pyoko/form.py +++ b/pyoko/form.py @@ -8,7 +8,7 @@ both from models or standalone forms # # This file is licensed under the GNU General Public License v3 # (GPLv3). See LICENSE.txt for details. -from collections import OrderedDict +from col...
changed attribute dict to defaultdict(list)
py
diff --git a/rootpy/tree/tree.py b/rootpy/tree/tree.py index <HASH>..<HASH> 100644 --- a/rootpy/tree/tree.py +++ b/rootpy/tree/tree.py @@ -87,6 +87,7 @@ class Tree(Plottable, Object, ROOT.TTree): Plottable.__init__(self) self.build_buffer() + self.__initialized = True def build_buffer(...
better attr handling for Tree classes
py
diff --git a/pmxbot/storage.py b/pmxbot/storage.py index <HASH>..<HASH> 100644 --- a/pmxbot/storage.py +++ b/pmxbot/storage.py @@ -1,11 +1,8 @@ import os -try: - from pysqlite2 import dbapi2 as sqlite -except ImportError: - from sqlite3 import dbapi2 as sqlite class SQLiteStorage(object): def __init__(self...
Moved sqlite imports into SQLiteStorage class
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from os import path from distutils.version import LooseVersion from setuptools import find_packages, setup -VERSION = '1.20.4' +VERSION = '1.21.0' # Import README.md into long_description pwd = path.abspat...
Bump package version to <I>
py
diff --git a/irclib.py b/irclib.py index <HASH>..<HASH> 100644 --- a/irclib.py +++ b/irclib.py @@ -743,7 +743,7 @@ class ServerConnection(Connection): def part(self, channels, message=""): """Send a PART command.""" - if type(channels) == types.StringType: + if type(channels) == types.StringType ...
also accept types.UnicodeType
py
diff --git a/sample/src/app/app.py b/sample/src/app/app.py index <HASH>..<HASH> 100644 --- a/sample/src/app/app.py +++ b/sample/src/app/app.py @@ -9,10 +9,7 @@ app = Flask(__name__) @app.route("/env") def environment(): - properties = [] - for k,v in sorted(os.environ.iteritems()): - properties.append(k + "=" + v)...
Return env as dict rather than array of properties
py
diff --git a/tests/test_lib.py b/tests/test_lib.py index <HASH>..<HASH> 100755 --- a/tests/test_lib.py +++ b/tests/test_lib.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +import pytest import ssdeep @@ -19,6 +20,12 @@ class TestFunctions(object): assert res == "3:AXGBicFlIHBGcL6wCrFQEv:AXGH6xLsr2C" def...
test - Additional test for hash_from_file()
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -18,6 +18,8 @@ del sys.path[0] src_files = tuple(chain(*map(lambda x: find_c_files(x)[0], SRC_DIRS))) cargs = ('/O2' if iswindows else '-O3').split() +if not iswindows: + cargs.append('-std=c99') def discover_tests...
Add -std=c<I> to setup.py builds as well
py
diff --git a/plugins/models.py b/plugins/models.py index <HASH>..<HASH> 100644 --- a/plugins/models.py +++ b/plugins/models.py @@ -33,6 +33,9 @@ class PluginManager(models.Manager): def get_plugin(self, plugin): return self.get(name=get_plugin_name(plugin)) + def get_plugins_of(self, point): + ...
Added utility method get_plugins_of
py
diff --git a/msmtools/generation/api.py b/msmtools/generation/api.py index <HASH>..<HASH> 100644 --- a/msmtools/generation/api.py +++ b/msmtools/generation/api.py @@ -29,9 +29,11 @@ Created on Jan 8, 2014 ''' from __future__ import absolute_import +import warnings import math import numpy as np import scipy.stat...
added sparse matrix support in generation
py
diff --git a/salt/utils/http.py b/salt/utils/http.py index <HASH>..<HASH> 100644 --- a/salt/utils/http.py +++ b/salt/utils/http.py @@ -15,8 +15,8 @@ from salt._compat import ElementTree as ET import ssl try: - from ssl import CertificateError - from ssl import match_hostname + from ssl import CertificateEr...
More linting, and fixing hardcoded host
py
diff --git a/mypolr/cli.py b/mypolr/cli.py index <HASH>..<HASH> 100644 --- a/mypolr/cli.py +++ b/mypolr/cli.py @@ -105,7 +105,7 @@ class MypolrCli: def make_ini_getter(self): config = ConfigParser() - config.read(self.config_file) + config.read(str(self.config_file)) def get_ini...
Fix error with reading config file: str(Path)
py
diff --git a/zarr/tests/test_hierarchy.py b/zarr/tests/test_hierarchy.py index <HASH>..<HASH> 100644 --- a/zarr/tests/test_hierarchy.py +++ b/zarr/tests/test_hierarchy.py @@ -626,18 +626,18 @@ class TestGroup(unittest.TestCase): β”‚ └── quux β”‚ └── baz[...] └── foo""") - eq(sg1...
Refresh tree tests to use repr As we now return a `TreeHierarchy` object instead of a `str`, we have to take the `repr` of this object to get a `str` that we can compare in the old `tree` tests. Hence we tweak the tests in this way to get them passing again.
py
diff --git a/compliance_checker/__init__.py b/compliance_checker/__init__.py index <HASH>..<HASH> 100644 --- a/compliance_checker/__init__.py +++ b/compliance_checker/__init__.py @@ -1 +1 @@ -__version__ = "2.0.0" +__version__ = "2.1.0"
Updates version to <I>
py
diff --git a/src/saml2/__init__.py b/src/saml2/__init__.py index <HASH>..<HASH> 100644 --- a/src/saml2/__init__.py +++ b/src/saml2/__init__.py @@ -786,3 +786,27 @@ def extension_element_to_element(extension_element, translation_functions, return None +def extension_elements_to_elements(exte...
Converting extension elemenst into elements
py
diff --git a/napi/magics.py b/napi/magics.py index <HASH>..<HASH> 100644 --- a/napi/magics.py +++ b/napi/magics.py @@ -1,5 +1,3 @@ -from ast import fix_missing_locations as fml - from IPython.core.magic import Magics, magics_class, line_magic from IPython import get_ipython @@ -38,22 +36,23 @@ class NapiMagics(Magi...
Removed unused import and revised napi magic.
py
diff --git a/sllurp/llrp_proto.py b/sllurp/llrp_proto.py index <HASH>..<HASH> 100644 --- a/sllurp/llrp_proto.py +++ b/sllurp/llrp_proto.py @@ -222,10 +222,10 @@ ROReportTrigger_Name2Type = { ModeIndex_Name2Type = { ## TODO flesh out this table by looking at capabilities from different ## readers + 'FM0': ...
ModeIndex for FM0 is 0 (at least for speedway R<I>)
py
diff --git a/test/test_torconfig.py b/test/test_torconfig.py index <HASH>..<HASH> 100644 --- a/test/test_torconfig.py +++ b/test/test_torconfig.py @@ -1132,6 +1132,24 @@ DnkEGTrOUFZ7CbDp+SM18BjmFXI2n0bFJEznXFhH+Awz finally: shutil.rmtree(d, ignore_errors=True) + def test_single_client_ioerror...
test .clients with an ioerror
py
diff --git a/pandas/core/arrays/integer.py b/pandas/core/arrays/integer.py index <HASH>..<HASH> 100644 --- a/pandas/core/arrays/integer.py +++ b/pandas/core/arrays/integer.py @@ -571,10 +571,6 @@ class IntegerArray(BaseMaskedArray): if np.isnan(result): return libmissing.NA - # if we have...
CLN: redundant code in IntergerArray._reduce (#<I>)
py
diff --git a/salt/master.py b/salt/master.py index <HASH>..<HASH> 100644 --- a/salt/master.py +++ b/salt/master.py @@ -792,7 +792,7 @@ class AESFuncs(object): if any(key not in load for key in ('id', 'tgt', 'fun')): return False ret = {} - checker = salt.utils.minions.CkMinions(__o...
Change master mine to handle opts and the right exception sig in mine
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,4 @@ +import os.path import platform from setuptools import setup @@ -8,11 +9,16 @@ install_requires = [] if version < ('2', '7'): install_requires.append('ordereddict>=1.1') +base_path = os.path.dirname(os...
Use absolute path in setup.py
py
diff --git a/malcolm/core/process.py b/malcolm/core/process.py index <HASH>..<HASH> 100644 --- a/malcolm/core/process.py +++ b/malcolm/core/process.py @@ -60,7 +60,7 @@ class Process(Loggable): num_threads = 8 else: num_threads = 128 - self._thread_pool = ThreadPool()#num_threa...
Restore number of threads, maybe it will solve threaded deadlock?
py
diff --git a/examples/bartlett1932/experiment.py b/examples/bartlett1932/experiment.py index <HASH>..<HASH> 100644 --- a/examples/bartlett1932/experiment.py +++ b/examples/bartlett1932/experiment.py @@ -22,7 +22,7 @@ class Bartlett1932(Experiment): if not self.networks(): self.setup() - ...
Bartlett: give mega fix even though it doesn't seem to need it
py
diff --git a/pysnmp/smi/builder.py b/pysnmp/smi/builder.py index <HASH>..<HASH> 100644 --- a/pysnmp/smi/builder.py +++ b/pysnmp/smi/builder.py @@ -320,8 +320,11 @@ class MibBuilder: except error.MibNotFoundError: if self.__mibCompiler: debug.logger & debug.flagBld and ...
catch and report possible MIB compilation errors
py
diff --git a/c7n/resources/account.py b/c7n/resources/account.py index <HASH>..<HASH> 100644 --- a/c7n/resources/account.py +++ b/c7n/resources/account.py @@ -500,7 +500,7 @@ class RequestLimitIncrease(BaseAction): permissions = ('support:CreateCase',) default_subject = 'Raise the account limit of {service}...
account increase-limit action - adding region field to the increase request (#<I>)
py
diff --git a/utils/github2el.py b/utils/github2el.py index <HASH>..<HASH> 100755 --- a/utils/github2el.py +++ b/utils/github2el.py @@ -151,7 +151,7 @@ def getRichPull(pull): def usersToES(pulls): - elasticsearch_type = "pullrequests_users" + elasticsearch_type = "users" # github global users for logi...
Added pagination support when loading github users from ES.
py
diff --git a/salt/daemons/flo/core.py b/salt/daemons/flo/core.py index <HASH>..<HASH> 100644 --- a/salt/daemons/flo/core.py +++ b/salt/daemons/flo/core.py @@ -1667,6 +1667,7 @@ class SaltRaetBeacon(ioflo.base.deeding.Deed): Ioinits = {'opts': '.salt.opts', 'modules': '.salt.loader.modules', ...
Add beacon events to the minion event bus - raet
py
diff --git a/tensorflow_probability/python/distributions/mvn_linear_operator.py b/tensorflow_probability/python/distributions/mvn_linear_operator.py index <HASH>..<HASH> 100644 --- a/tensorflow_probability/python/distributions/mvn_linear_operator.py +++ b/tensorflow_probability/python/distributions/mvn_linear_operator....
Add a check to more efficiently compute kronecker factored variances to MVN linear operator. PiperOrigin-RevId: <I>
py
diff --git a/exchangelib/folders/known_folders.py b/exchangelib/folders/known_folders.py index <HASH>..<HASH> 100644 --- a/exchangelib/folders/known_folders.py +++ b/exchangelib/folders/known_folders.py @@ -618,6 +618,14 @@ class System(NonDeleteableFolderMixin, Folder): __slots__ = tuple() +class System1(NonD...
Add System1 folder class to known folders (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -35,6 +35,7 @@ setup( "tqdm", "retrying", "rdflib>=4.2.1", + "MyCapytain" ], long_description=read("README.md"), )
added MyCapytain dependency to setup.py
py
diff --git a/LiSE/LiSE/node.py b/LiSE/LiSE/node.py index <HASH>..<HASH> 100644 --- a/LiSE/LiSE/node.py +++ b/LiSE/LiSE/node.py @@ -243,7 +243,10 @@ class UserDescriptor: def __get__(self, instance, owner): mapping = self.usermapping(instance) it = iter(mapping) - k = next(it) + try:...
Give a better exception when you ask a node's user and it has none
py
diff --git a/centinel/vpn/ipvanish.py b/centinel/vpn/ipvanish.py index <HASH>..<HASH> 100644 --- a/centinel/vpn/ipvanish.py +++ b/centinel/vpn/ipvanish.py @@ -40,7 +40,7 @@ def create_config_files(directory): os.remove(zip_path) # copy ca and key to root path shutil.copyfile(os.path.join(unzip_path, 'ca....
fixed minor ipvanish filename issue
py
diff --git a/redis/__init__.py b/redis/__init__.py index <HASH>..<HASH> 100644 --- a/redis/__init__.py +++ b/redis/__init__.py @@ -38,7 +38,7 @@ def int_or_str(value): return value -__version__ = "4.1.0rc1" +__version__ = "4.1.0rc2" VERSION = tuple(map(int_or_str, __version__.split('.')))
Pre-<I>rc2 version bump (#<I>)
py
diff --git a/flask_uwsgi_websocket/websocket.py b/flask_uwsgi_websocket/websocket.py index <HASH>..<HASH> 100644 --- a/flask_uwsgi_websocket/websocket.py +++ b/flask_uwsgi_websocket/websocket.py @@ -87,13 +87,12 @@ class WebSocket(object): uwsgi_args = ' '.join(['--{0} {1}'.format(k,v) for k,v in kwargs.items(...
Move print to include ENV & autoreload
py
diff --git a/doc/source/conf.py b/doc/source/conf.py index <HASH>..<HASH> 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -38,7 +38,7 @@ sys.path.append(os.path.abspath('../bin')) # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') o...
Remove unused pngmath Sphinx extension There's no RST file that uses ".. math" and thus the pngmath Sphinx extension is not used and can get removed. Change-Id: I3ea4b<I>c8ac3c<I>f<I>e<I>
py
diff --git a/src/nupic/database/ClientJobsDAO.py b/src/nupic/database/ClientJobsDAO.py index <HASH>..<HASH> 100755 --- a/src/nupic/database/ClientJobsDAO.py +++ b/src/nupic/database/ClientJobsDAO.py @@ -522,8 +522,9 @@ class ClientJobsDAO(object): # DB Name suffix suffix = Configuration.get('nupic.cluster.dat...
Fixed Username Regex in ClientJobsDAO
py
diff --git a/raiden/ui/cli.py b/raiden/ui/cli.py index <HASH>..<HASH> 100644 --- a/raiden/ui/cli.py +++ b/raiden/ui/cli.py @@ -177,8 +177,8 @@ def app(address, ) discovery = ContractDiscovery( - blockchain_service, - decode_hex(discovery_contract_address) # FIXME: double encoding + blo...
Fix initialization of DiscoveryContract in CLI
py
diff --git a/salt/minion.py b/salt/minion.py index <HASH>..<HASH> 100644 --- a/salt/minion.py +++ b/salt/minion.py @@ -483,8 +483,13 @@ class MinionBase(object): log.warning('Master is set to disable, skipping connection') self.connected = False raise tornado.gen.Return((None, Non...
Always try to discover master(s) early, as long as minion is not disabled
py
diff --git a/monolithe/specifications/repositorymanager.py b/monolithe/specifications/repositorymanager.py index <HASH>..<HASH> 100644 --- a/monolithe/specifications/repositorymanager.py +++ b/monolithe/specifications/repositorymanager.py @@ -257,7 +257,7 @@ class RepositoryManager (object): if mode == MODE_...
Fix a bug in extends override
py
diff --git a/python/pyspark/sql/context.py b/python/pyspark/sql/context.py index <HASH>..<HASH> 100644 --- a/python/pyspark/sql/context.py +++ b/python/pyspark/sql/context.py @@ -471,12 +471,11 @@ class HiveContext(SQLContext): .. note:: Deprecated in 2.0.0. Use SparkSession.builder.enableHiveSupport().getOrCreate...
[SPARK-<I>][PYSPARK][SQL] fix HiveContext warning bug ## What changes were proposed in this pull request? move the `HiveContext` deprecate warning printing statement into `HiveContext` constructor. so that this warning will appear only when we use `HiveContext` otherwise this warning will always appear if we referenc...
py
diff --git a/pyextend/__init__.py b/pyextend/__init__.py index <HASH>..<HASH> 100644 --- a/pyextend/__init__.py +++ b/pyextend/__init__.py @@ -8,4 +8,4 @@ :license: GNU, see LICENSE for more details. """ -__version__ = '0.1.22' +__version__ = '0.1.23'
update version num, upload to pypi
py
diff --git a/skyfield/tests/test_timelib.py b/skyfield/tests/test_timelib.py index <HASH>..<HASH> 100644 --- a/skyfield/tests/test_timelib.py +++ b/skyfield/tests/test_timelib.py @@ -2,7 +2,7 @@ import numpy as np from assay import assert_raises from pytz import timezone from skyfield.constants import DAY_S -from sk...
Added test for new tuple error for takes_julian_date decorator
py
diff --git a/lifxlan/msgtypes.py b/lifxlan/msgtypes.py index <HASH>..<HASH> 100644 --- a/lifxlan/msgtypes.py +++ b/lifxlan/msgtypes.py @@ -541,7 +541,6 @@ class GetDeviceChain(Message): target_addr = BROADCAST_MAC super(GetDeviceChain, self).__init__(MSG_IDS[GetDeviceChain], target_addr, source_id, se...
fixed unint -> uint typo
py
diff --git a/rejester/workers.py b/rejester/workers.py index <HASH>..<HASH> 100644 --- a/rejester/workers.py +++ b/rejester/workers.py @@ -891,6 +891,8 @@ class ForkWorker(Worker): continue # So either someone else is doing its work or it's just overdue environment = self.task...
Don't crash the worker if it can't heartbeat
py
diff --git a/yarl/__init__.py b/yarl/__init__.py index <HASH>..<HASH> 100644 --- a/yarl/__init__.py +++ b/yarl/__init__.py @@ -1,5 +1,5 @@ from ._url import URL, cache_clear, cache_configure, cache_info -__version__ = "1.5.1" +__version__ = "1.6.0a0" __all__ = ("URL", "cache_clear", "cache_configure", "cache_info...
Mark again as <I>a0
py
diff --git a/yangson/instance.py b/yangson/instance.py index <HASH>..<HASH> 100644 --- a/yangson/instance.py +++ b/yangson/instance.py @@ -36,6 +36,10 @@ class StructuredValue: class ArrayValue(StructuredValue, list): """Array values corresponding to YANG lists and leaf-lists.""" + def __init__(self, ts: dat...
Improved constructors of ArrayValue and ObjectValue
py
diff --git a/progressbar/__init__.py b/progressbar/__init__.py index <HASH>..<HASH> 100644 --- a/progressbar/__init__.py +++ b/progressbar/__init__.py @@ -71,7 +71,7 @@ from progressbar.widgets import * __author__ = 'Rick van Hattem' __author_email__ = 'Rick.van.Hattem@Fawo.nl' __date__ = str(date.today()) -__versio...
added python 3 support, fixes #5
py
diff --git a/pyqode/core/api/code_edit.py b/pyqode/core/api/code_edit.py index <HASH>..<HASH> 100644 --- a/pyqode/core/api/code_edit.py +++ b/pyqode/core/api/code_edit.py @@ -877,7 +877,8 @@ class CodeEdit(QtWidgets.QPlainTextEdit): elif event.key() == QtCore.Qt.Key_Backtab: self.un_indent...
Fix Ctrl+Home (jump to first line) Fix OpenCobolIDE/OpenCobolIDE#<I>
py
diff --git a/holoviews/plotting/bokeh/util.py b/holoviews/plotting/bokeh/util.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/bokeh/util.py +++ b/holoviews/plotting/bokeh/util.py @@ -53,7 +53,8 @@ def convert_timestamp(timestamp): """ Converts bokehJS timestamp to datetime64. """ - return np.d...
Apply utc offset to bokeh callback datetimes (#<I>)
py
diff --git a/demosys/project/base.py b/demosys/project/base.py index <HASH>..<HASH> 100644 --- a/demosys/project/base.py +++ b/demosys/project/base.py @@ -126,6 +126,14 @@ class BaseProject: raise ValueError("Cannot find {0} with label '{1}'.\nExisting {0} labels: {2}".format( resource_ty...
Provide an easy way for timelines to get runnable effects
py
diff --git a/pycoin/networks.py b/pycoin/networks.py index <HASH>..<HASH> 100644 --- a/pycoin/networks.py +++ b/pycoin/networks.py @@ -51,6 +51,9 @@ NETWORKS = ( # MZC Mazacoin mainnet: xprv/xpub NetworkValues("Mazacoin", "mainnet", "MZC", b'\xe0', b'\x32', b'\9', h2b("0488ADE4"), h2b("0488B21E")), + # V...
added wif, address, and bip<I>-prefix values for Vertcoin mainnet -- vtcp vtcv
py
diff --git a/flask_rbac/__init__.py b/flask_rbac/__init__.py index <HASH>..<HASH> 100644 --- a/flask_rbac/__init__.py +++ b/flask_rbac/__init__.py @@ -178,8 +178,9 @@ class RBAC(object): endpoint = request.endpoint resource = self.app.view_functions.get(endpoint, None) + if not resource: - ...
modified a wrong design, change <I> to <I> when permission check is failed, and change http code from <I> to <I> when the resource is None.
py
diff --git a/tests/test_yubico.py b/tests/test_yubico.py index <HASH>..<HASH> 100644 --- a/tests/test_yubico.py +++ b/tests/test_yubico.py @@ -152,6 +152,17 @@ class TestYubicoVerifySingle(unittest.TestCase): else: self.fail('Exception was not thrown') + def test_verify_multi_different_device...
Add test for verify_multi and different device ids.
py
diff --git a/tests/test_bootstrap.py b/tests/test_bootstrap.py index <HASH>..<HASH> 100644 --- a/tests/test_bootstrap.py +++ b/tests/test_bootstrap.py @@ -147,7 +147,7 @@ class TestBootstrapBasic(BaseClassSetupBootstrap, unittest.TestCase): returns the expected values, which should be: `empty", `service_only`,...
repairted test on number of bootstraps
py
diff --git a/mechanicalsoup/stateful_browser.py b/mechanicalsoup/stateful_browser.py index <HASH>..<HASH> 100644 --- a/mechanicalsoup/stateful_browser.py +++ b/mechanicalsoup/stateful_browser.py @@ -15,8 +15,7 @@ class StatefulBrowser(Browser): It is the primary tool in MechanicalSoup for interfacing with websites...
stateful_browser.py: simplify __init__ interface Given that we are documenting the parameters of `Browser.__init__` in StatefulBrowser, it might be preferable to explicitly list the parameters in both interfaces. However, `StatefulBrowser.__init__` had already gotten out-of-sync, so for ease of maintainability, we imp...
py
diff --git a/troposphere/ec2.py b/troposphere/ec2.py index <HASH>..<HASH> 100644 --- a/troposphere/ec2.py +++ b/troposphere/ec2.py @@ -464,9 +464,9 @@ class Volume(AWSObject): 'AutoEnableIO': (boolean, False), 'AvailabilityZone': (basestring, True), 'Encrypted': (boolean, False), - 'Io...
Size/IOPS should be positive_integers (#<I>) This isn't <I>% correct, only because positive_integers allows for a value of 0, but changing that functionality seems like it'd break things elsewhere.
py
diff --git a/edisgo/data/import_data.py b/edisgo/data/import_data.py index <HASH>..<HASH> 100644 --- a/edisgo/data/import_data.py +++ b/edisgo/data/import_data.py @@ -561,7 +561,7 @@ def _attach_aggregated(network, grid, aggregated, ding0_grid): gen) ...
Add la_id to line name to make it unique, #<I>
py
diff --git a/bcbio/ngsalign/star.py b/bcbio/ngsalign/star.py index <HASH>..<HASH> 100644 --- a/bcbio/ngsalign/star.py +++ b/bcbio/ngsalign/star.py @@ -89,7 +89,7 @@ def align(fastq_file, pair_file, ref_file, names, align_dir, data): if dd.get_fusion_caller(data): if "arriba" in dd.get_fusion_calle...
Only use WithinBAM when arriba is the fusion caller. The new arriba-specific parameters mean we can't do both WithinBAM and Junctions.
py
diff --git a/esp8266/tests/onewire.py b/esp8266/tests/onewire.py index <HASH>..<HASH> 100644 --- a/esp8266/tests/onewire.py +++ b/esp8266/tests/onewire.py @@ -1,5 +1,3 @@ -import time -import pyb import _onewire as _ow class OneWire: @@ -127,7 +125,9 @@ class DS18B20: # connect 1-wire temp sensors to GPIO12 for ...
esp<I>/tests/onewire.py: Don't run test on import.
py
diff --git a/warcio/warcwriter.py b/warcio/warcwriter.py index <HASH>..<HASH> 100644 --- a/warcio/warcwriter.py +++ b/warcio/warcwriter.py @@ -167,9 +167,11 @@ class BaseWARCWriter(object): length=length) def create_revisit_record(self, uri, digest, refers_to_uri, refers_t...
removed the mutable default value for warc_header_dict keyword arg in BaseWARCWriter:create_revisit_record and BaseWARCWriter:create_warc_record (#<I>)
py
diff --git a/tilequeue/queue/message.py b/tilequeue/queue/message.py index <HASH>..<HASH> 100644 --- a/tilequeue/queue/message.py +++ b/tilequeue/queue/message.py @@ -82,7 +82,7 @@ class SingleMessagePerCoordTracker(object): one-to-one mapping between queue handles and coordinates """ - def track(self, q...
fix crash on using the single queue type The single and multiple message per coord tracker queues are used interchangeable on a config value, but the methods have not the same count of arguments. This commit fixes the resulting crash by adding the missing, unused parameter to the track function of the SingleMessagePer...
py
diff --git a/wonambi/ioeeg/abf.py b/wonambi/ioeeg/abf.py index <HASH>..<HASH> 100644 --- a/wonambi/ioeeg/abf.py +++ b/wonambi/ioeeg/abf.py @@ -118,7 +118,7 @@ class Abf: shape=(self.n_chan, self.n_samples), offset=self.head) dat = data[chan, max((begsam, 0)):min((endsam, self.n_samples...
use only subset of chan in setting gain for abf files
py
diff --git a/leancloud/file_.py b/leancloud/file_.py index <HASH>..<HASH> 100644 --- a/leancloud/file_.py +++ b/leancloud/file_.py @@ -133,7 +133,7 @@ class File(object): base64.encode(self._source, output) self._source.seek(0) output.seek(0) - hex_octet = lambda: hex(i...
Fix: off-by-one random generation erro in hex_octet #<I> The original hex_octet has probability 6% of generating octet less-than-4 characters, which is not well-formed to use in file key. @see comments on #<I>.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -32,5 +32,5 @@ setup( package_dir = {'__meneco__' : 'src'}, package_data = {'__meneco__' : ['encodings/*.lp']}, scripts = ['meneco.py'], - install_requires = ['pyasp == 1.4.4'] + install_requir...
Force usage of pyasp <I> pyasp <I> appears to have problems with gringo3 and clasp binaries
py
diff --git a/src/setup.py b/src/setup.py index <HASH>..<HASH> 100644 --- a/src/setup.py +++ b/src/setup.py @@ -5,6 +5,9 @@ # python setup.py bdist_rpm # +# follow notes from https://packaging.python.org/distributing/#id69 +# and release with `python setup.py sdist upload` + from setuptools import setup, find_packa...
inline some notes on packaing/releasing
py
diff --git a/Exscript/util/mail.py b/Exscript/util/mail.py index <HASH>..<HASH> 100644 --- a/Exscript/util/mail.py +++ b/Exscript/util/mail.py @@ -103,7 +103,7 @@ def _get_var_from_header_line(line): def _cleanup_mail_addresses(receipients): if isinstance(receipients, list): receipients = ','.join(receip...
Exscript.util.mail: allow newlines as email address separator
py
diff --git a/docs/source/conf.py b/docs/source/conf.py index <HASH>..<HASH> 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -38,7 +38,9 @@ notebooks = [ 'DentateGyrus.ipynb', ] for nb in notebooks: - urlretrieve(notebooks_url + nb, nb) + try: + urlretrieve(notebooks_url + nb, nb) + ...
catch non-retrievable notebooks (e.g. w/o inet connection)
py
diff --git a/publications/admin_views/import_bibtex.py b/publications/admin_views/import_bibtex.py index <HASH>..<HASH> 100644 --- a/publications/admin_views/import_bibtex.py +++ b/publications/admin_views/import_bibtex.py @@ -156,7 +156,10 @@ def import_bibtex(request): messages.info(request, msg) # redirect...
Redirect to change page after single BibTex upload
py
diff --git a/shap/models/_teacher_forcing_logits.py b/shap/models/_teacher_forcing_logits.py index <HASH>..<HASH> 100644 --- a/shap/models/_teacher_forcing_logits.py +++ b/shap/models/_teacher_forcing_logits.py @@ -30,4 +30,16 @@ class TeacherForcingLogits(Model): self.model_agnostic = True # init...
added call function to teacher forcing logits to generate logits and calculate log odds
py
diff --git a/instana/options.py b/instana/options.py index <HASH>..<HASH> 100644 --- a/instana/options.py +++ b/instana/options.py @@ -9,7 +9,16 @@ class Options(object): log_level = logging.WARN def __init__(self, **kwds): + """ Initialize Options + Respect any environment variables that may ...
Have Options respect any standard env vars that are set.
py
diff --git a/click_shell/__init__.py b/click_shell/__init__.py index <HASH>..<HASH> 100644 --- a/click_shell/__init__.py +++ b/click_shell/__init__.py @@ -14,4 +14,4 @@ __all__ = [ '__version__', ] -__version__ = "2.0.dev0" +__version__ = "3.0.dev0"
Updating version for <I> development
py
diff --git a/lib/layer.py b/lib/layer.py index <HASH>..<HASH> 100644 --- a/lib/layer.py +++ b/lib/layer.py @@ -47,7 +47,7 @@ class BaseLayer: print "Unable to find id {0}".format(original_id) def match(self, lon, lat): - epsilon = 0.001 + epsilon = 0.002 query = "SELECT id FR...
Increased tollerance to find closest node when given a coordinate
py
diff --git a/anyconfig/backends.py b/anyconfig/backends.py index <HASH>..<HASH> 100644 --- a/anyconfig/backends.py +++ b/anyconfig/backends.py @@ -97,16 +97,18 @@ def groupby_key(itr, keyfunc): def uniq(iterable): - """ + """sorted + uniq + + .. note:: + sorted(set(iterable), key=iterable.index) can...
refactor: rewrite sort + uniq function
py
diff --git a/mot/__version__.py b/mot/__version__.py index <HASH>..<HASH> 100755 --- a/mot/__version__.py +++ b/mot/__version__.py @@ -1,4 +1,4 @@ -VERSION = '0.2.41' +VERSION = '0.2.42' _items = VERSION.split('-') VERSION_NUMBER_PARTS = tuple(int(i) for i in _items[0].split('.'))
New version, containing the Subplex method
py
diff --git a/sendgrid/helpers/mail/email.py b/sendgrid/helpers/mail/email.py index <HASH>..<HASH> 100644 --- a/sendgrid/helpers/mail/email.py +++ b/sendgrid/helpers/mail/email.py @@ -1,17 +1,19 @@ +try: + import rfc822 +except ImportError: + import email.utils as rfc822 + + class Email(object): def __init...
Email cleanup - move import to top of file for consistency - simplify __init__ logic: make it more clear that there are two categories of input (old v. new-style), and take advantage of default Nones.
py
diff --git a/discord/channel.py b/discord/channel.py index <HASH>..<HASH> 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -280,7 +280,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable): while True: try: - msg = yield from iterator.get()...
Fix TextChannel.purge not working.
py
diff --git a/osm_field/widgets.py b/osm_field/widgets.py index <HASH>..<HASH> 100644 --- a/osm_field/widgets.py +++ b/osm_field/widgets.py @@ -77,6 +77,8 @@ class OSMWidget(TextInput): 'data-lat-field': '{}-{}'.format(prefix, attrs.get('data-lat-field', self.attrs['data-lat-field'])), ...
Properly render widgets in formsets
py
diff --git a/test_recovery.py b/test_recovery.py index <HASH>..<HASH> 100755 --- a/test_recovery.py +++ b/test_recovery.py @@ -225,7 +225,7 @@ def main(): else: restore_missing_state_server(env, backup_file) except: - dump_env_logs(env, bootstrap_host, + dump...
Do not try to get logs from a machine that should not exist at the end of the test; get every log from every machine.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -29,5 +29,6 @@ setup(name='persephone', 'scikit-learn==0.19.1', 'pympi-ling==1.69', 'pylint==1.8.2', + 'mypy==0.560', ], )
Added mypy to setup.py dependencies.
py
diff --git a/pysolr.py b/pysolr.py index <HASH>..<HASH> 100644 --- a/pysolr.py +++ b/pysolr.py @@ -864,11 +864,12 @@ class Solr(object): terms = result.get("terms", {}) res = {} - # in Solr 1.x the value of terms is a flat list: - # ["field_name", ["dance",23,"dancers",10,"dancing",8...
Cleanup comment This suppresses a commented-code warning and also makes it easier to understand
py
diff --git a/cwltool/draft2tool.py b/cwltool/draft2tool.py index <HASH>..<HASH> 100644 --- a/cwltool/draft2tool.py +++ b/cwltool/draft2tool.py @@ -338,7 +338,9 @@ class CommandLineTool(Process): globpatterns.extend(aslist(gb)) for gb in globpatterns: - if g...
Enable concatenating input paths with suffix strings
py