diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/tests/transports/tests.py b/tests/transports/tests.py index <HASH>..<HASH> 100644 --- a/tests/transports/tests.py +++ b/tests/transports/tests.py @@ -7,7 +7,7 @@ from raven.base import Client from raven.transport import Transport import datetime -import time +import calendar import pytz @@ -76,7 +...
one more try at fixing buggy test case w.r.t timezones. time.mktime doesn't know about timezones, but calendar.gmtime does
py
diff --git a/spyder/app/tests/test_mainwindow.py b/spyder/app/tests/test_mainwindow.py index <HASH>..<HASH> 100644 --- a/spyder/app/tests/test_mainwindow.py +++ b/spyder/app/tests/test_mainwindow.py @@ -559,8 +559,8 @@ def test_get_help_ipython_console(main_window, qtbot): @pytest.mark.slow @flaky(max_runs=3) -@pyt...
Testing: Skip test on Windows because it's segfaulting
py
diff --git a/indra/tests/test_pybel_api.py b/indra/tests/test_pybel_api.py index <HASH>..<HASH> 100644 --- a/indra/tests/test_pybel_api.py +++ b/indra/tests/test_pybel_api.py @@ -27,8 +27,10 @@ def test_process_jgif(): # Clean up os.remove(test_file) + assert pbp.statements assert isinstance(pbp.sta...
Test if stmt list is empty, all sources are from bel
py
diff --git a/httprunner/response.py b/httprunner/response.py index <HASH>..<HASH> 100644 --- a/httprunner/response.py +++ b/httprunner/response.py @@ -26,6 +26,8 @@ class ResponseObject(object): try: if key == "json": value = self.resp_obj.json() + elif key == "cookies"...
get response cookies dict in debugtalk.py
py
diff --git a/tests/unit/cloud/__init__.py b/tests/unit/cloud/__init__.py index <HASH>..<HASH> 100644 --- a/tests/unit/cloud/__init__.py +++ b/tests/unit/cloud/__init__.py @@ -1,9 +1,7 @@ -# -*- coding: utf-8 -*- """ tests.unit.cloud ~~~~~~~~~~~~~~~~ """ -from __future__ import absolute_import, print_functio...
Drop Py2 and six on tests/unit/cloud/__init__.py
py
diff --git a/tests/test-scout2.py b/tests/test-scout2.py index <HASH>..<HASH> 100644 --- a/tests/test-scout2.py +++ b/tests/test-scout2.py @@ -19,6 +19,9 @@ class TestScout2Class: creds = read_creds_from_environment_variables() self.profile_name = 'travislike' if creds['AccessKeyId'] == None else None...
Subsequent runs should use --local
py
diff --git a/nestly/scripts/nestrun.py b/nestly/scripts/nestrun.py index <HASH>..<HASH> 100755 --- a/nestly/scripts/nestrun.py +++ b/nestly/scripts/nestrun.py @@ -44,6 +44,7 @@ def invoke(max_procs, data, json_files): procs[proc.pid] = proc, g pid, _ = os.wait() + logging.info("Finish...
Log PID when process starts, PID when stops
py
diff --git a/isso/utils/__init__.py b/isso/utils/__init__.py index <HASH>..<HASH> 100644 --- a/isso/utils/__init__.py +++ b/isso/utils/__init__.py @@ -14,7 +14,10 @@ from string import ascii_letters, digits from werkzeug.wrappers import Request from werkzeug.exceptions import BadRequest -import ipaddress +try: + ...
Support Python2 ipaddr library.
py
diff --git a/delocate/tests/test_scripts.py b/delocate/tests/test_scripts.py index <HASH>..<HASH> 100644 --- a/delocate/tests/test_scripts.py +++ b/delocate/tests/test_scripts.py @@ -208,5 +208,7 @@ def test_wheel(): shutil.copy2(fixed_wheel, 'wheel_copy.ext') code, stdout, stderr = run_command( ...
TST: add tests for delocate-wheel output
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,8 @@ setup(name='caniusepython3', packages=['caniusepython3', 'caniusepython3.test'], include_package_data=True, install_requires=['distlib', 'setuptools', 'packaging', 'pip', # Input flexibilit...
Add backports.functools_lru_cache as a dependency Closes #<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,13 +1,11 @@ # -*- coding: utf-8 -*- -from distutils.core import setup +from setuptools import setup setup( name='pycep-correios', version='1.0.0', keywords='correios setuptools development cep', - pack...
[FIX] import setup.py.
py
diff --git a/src/views/ui_graph.py b/src/views/ui_graph.py index <HASH>..<HASH> 100644 --- a/src/views/ui_graph.py +++ b/src/views/ui_graph.py @@ -63,5 +63,5 @@ class Ui_Graph(object): def retranslateUi(self, Graph): pass -from matplotlibwidget import MatplotlibWidget +from widgets.matplotlibwidget ...
Corrected path for matplotlib in src/views/ui_graph.py
py
diff --git a/isort/api.py b/isort/api.py index <HASH>..<HASH> 100644 --- a/isort/api.py +++ b/isort/api.py @@ -356,9 +356,9 @@ def sort_file( except FileNotFoundError: pass except ExistingSyntaxErrors: - warn("{file_path} unable to sort due to existing s...
Make sure that warnings are formatting properly
py
diff --git a/etk/run_core_kafka.py b/etk/run_core_kafka.py index <HASH>..<HASH> 100644 --- a/etk/run_core_kafka.py +++ b/etk/run_core_kafka.py @@ -48,10 +48,10 @@ def run_serial_cdrs(core, consumer, producer, producer_topic, indexing=False): # will exit once timeout for msg in consumer: cdr = msg.val...
fix bug in getting doc_id
py
diff --git a/scanpy/tools/PhenoGraph.py b/scanpy/tools/PhenoGraph.py index <HASH>..<HASH> 100644 --- a/scanpy/tools/PhenoGraph.py +++ b/scanpy/tools/PhenoGraph.py @@ -38,8 +38,7 @@ def phenograph( data, If False, use a Gaussian kernel :param primary_metric: D...
Update PhenoGraph.py
py
diff --git a/modelx/__init__.py b/modelx/__init__.py index <HASH>..<HASH> 100644 --- a/modelx/__init__.py +++ b/modelx/__init__.py @@ -20,7 +20,7 @@ Attributes: """ -VERSION = (0, 0, 26, "dev") +VERSION = (0, 1, 0) __version__ = ".".join([str(x) for x in VERSION]) from modelx.core.api import * # must come after...
DIST: Release <I>
py
diff --git a/appkit/app.py b/appkit/app.py index <HASH>..<HASH> 100755 --- a/appkit/app.py +++ b/appkit/app.py @@ -28,8 +28,8 @@ class App(object): gtk_window = Gtk.Window() gtk_window.set_title('AppKit') webkit_web_view = WebKit.WebView() - screen = Gdk.Screen() - zoom_level = ...
Proper way to use gdk to get screen size
py
diff --git a/src/_parsers.py b/src/_parsers.py index <HASH>..<HASH> 100644 --- a/src/_parsers.py +++ b/src/_parsers.py @@ -376,7 +376,8 @@ def _is_allowed(input): '--export', '--export-secret-keys', '--export-secret-subkeys', - ...
Minor and unnecessary obsessive compulsive code formatting change.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ import os import sys #import setuptools -#from setuptools import setup +from setuptools import setup #from setuptools.command.install import install import numpy as np @@ -14,7 +14,7 @@ from numpy.distutil...
Fixed bug when building using numpy >= <I>. Incremented version.
py
diff --git a/tests/test_nested_choice_calcs.py b/tests/test_nested_choice_calcs.py index <HASH>..<HASH> 100644 --- a/tests/test_nested_choice_calcs.py +++ b/tests/test_nested_choice_calcs.py @@ -349,3 +349,26 @@ class ComputationalSetUp(unittest.TestCase): self.assertAlmostEqual(penalized_log_likelihood, funct...
Added tests for converting between the nest parameters used in the code and the nest parameters used in calculations.
py
diff --git a/phovea_security_flask/dummy_store.py b/phovea_security_flask/dummy_store.py index <HASH>..<HASH> 100644 --- a/phovea_security_flask/dummy_store.py +++ b/phovea_security_flask/dummy_store.py @@ -5,7 +5,7 @@ __author__ = 'Samuel Gratzl' def hash_password(password, salt): - return hashlib.sha512(passwor...
encode unicode-objects before hashing
py
diff --git a/faststat/faststat.py b/faststat/faststat.py index <HASH>..<HASH> 100644 --- a/faststat/faststat.py +++ b/faststat/faststat.py @@ -38,14 +38,20 @@ class PyStats(object): @property def variance(self): + if self.n < 2: + return float("nan") return self.m2 / (self.n - 1) ...
fixing to return NaN instead of raising errors for extremely small n when not all stats are defined yet
py
diff --git a/tests/test_service_layers.py b/tests/test_service_layers.py index <HASH>..<HASH> 100644 --- a/tests/test_service_layers.py +++ b/tests/test_service_layers.py @@ -216,7 +216,8 @@ class TestServiceLayers(unittest.TestCase): ) # add created layer to deletion - self.li_fixtures_to_de...
delete both service and dataset metadata instaed of only the layer
py
diff --git a/juju/application.py b/juju/application.py index <HASH>..<HASH> 100644 --- a/juju/application.py +++ b/juju/application.py @@ -80,10 +80,12 @@ class Application(model.ModelEntity): workload status and highlight the most relevant (severity). """ status = self.safe_data['status']['c...
Handle application set status Because pylibjuju has an internal cache, very similar to how juju model cache works, we need to correctly handle when the application status is set by the charm author, vs how the application is dervied via the unit status.
py
diff --git a/secedgar/utils/exceptions.py b/secedgar/utils/exceptions.py index <HASH>..<HASH> 100644 --- a/secedgar/utils/exceptions.py +++ b/secedgar/utils/exceptions.py @@ -12,7 +12,7 @@ class EDGARFieldError(Exception): This error is thrown when an invalid field is given to an endpoint. """ - def __in...
MAINT: No cover for exceptions
py
diff --git a/tests/test_client.py b/tests/test_client.py index <HASH>..<HASH> 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -470,7 +470,7 @@ class SSHClientTest(unittest.TestCase): self.tc = paramiko.SSHClient() self.tc.set_missing_host_key_policy(paramiko.RejectPolicy()) - ...
One change overlooked by merge, as it's new
py
diff --git a/nodeconductor/quotas/fields.py b/nodeconductor/quotas/fields.py index <HASH>..<HASH> 100644 --- a/nodeconductor/quotas/fields.py +++ b/nodeconductor/quotas/fields.py @@ -225,15 +225,19 @@ class AggregatorQuotaField(QuotaField): quota = scope.quotas.get(name=self.name) current_value = geta...
Do not save quota if usage was not changed - nc-<I>
py
diff --git a/openquake/calculators/post_risk.py b/openquake/calculators/post_risk.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/post_risk.py +++ b/openquake/calculators/post_risk.py @@ -180,12 +180,12 @@ class PostRiskCalculator(base.RiskCalculator): self.build_datasets(builder, oq.aggregate_b...
Fixed a small regression in ebrisk
py
diff --git a/gns3server/controller/__init__.py b/gns3server/controller/__init__.py index <HASH>..<HASH> 100644 --- a/gns3server/controller/__init__.py +++ b/gns3server/controller/__init__.py @@ -78,8 +78,9 @@ class Controller: """ Reload the controller configuration from disk """ + i...
Create the controller config at first controller start
py
diff --git a/nicfit/app.py b/nicfit/app.py index <HASH>..<HASH> 100644 --- a/nicfit/app.py +++ b/nicfit/app.py @@ -1,20 +1,21 @@ import sys import logging +import traceback from .logger import getLogger from ._argparse import ArgumentParser from .util import initGetText -log = getLogger(__name__) - try: ...
chg: Use ``print`` nistead of logging for uncaught exceptions
py
diff --git a/python/remove_duplicates.py b/python/remove_duplicates.py index <HASH>..<HASH> 100755 --- a/python/remove_duplicates.py +++ b/python/remove_duplicates.py @@ -100,8 +100,8 @@ class GPSSpeedErrorFinder: """ speed_gps = exif_reader.get_speed() if speed_gps is None: - self._la...
Missing GPS Speed tag is handled correctly.
py
diff --git a/tensorflow_datasets/core/dataset_builder.py b/tensorflow_datasets/core/dataset_builder.py index <HASH>..<HASH> 100644 --- a/tensorflow_datasets/core/dataset_builder.py +++ b/tensorflow_datasets/core/dataset_builder.py @@ -125,6 +125,7 @@ class DatasetBuilder(object): ValueError: If the user defines ...
bug fix, set default mode in download_and_prepare before it is read. PiperOrigin-RevId: <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -17,13 +17,13 @@ setup( etc. """, license='MIT', - version='0.1.7', + version='0.1.8', author='James Johnson', maintainer='James Johnson', author_email='d0c.s4vage@gmail.com', url='https:...
bumping to <I> version
py
diff --git a/andes/core/model.py b/andes/core/model.py index <HASH>..<HASH> 100644 --- a/andes/core/model.py +++ b/andes/core/model.py @@ -1763,11 +1763,12 @@ class Model: self.calls.f = to_jit(self.calls.f, **kwargs) self.calls.g = to_jit(self.calls.g, **kwargs) + self.calls.sns = to_jit(sel...
Allow precompination of non-sequential VarService.
py
diff --git a/ELiDE/ELiDE/app.py b/ELiDE/ELiDE/app.py index <HASH>..<HASH> 100644 --- a/ELiDE/ELiDE/app.py +++ b/ELiDE/ELiDE/app.py @@ -372,7 +372,7 @@ class ELiDEApp(App): self.manager.current = 'mainmenu' if ( os.environ['KIVY_NO_ARGS'] or sys.argv[-2] == '-' - ) and os.path.e...
Only open directories in ELiDE, not files
py
diff --git a/gns3server/compute/docker/__init__.py b/gns3server/compute/docker/__init__.py index <HASH>..<HASH> 100644 --- a/gns3server/compute/docker/__init__.py +++ b/gns3server/compute/docker/__init__.py @@ -157,7 +157,8 @@ class Docker(BaseManager): """ images = [] for image in (yield fro...
Fix a crash with some docker images Fix #<I>
py
diff --git a/salt/utils/event.py b/salt/utils/event.py index <HASH>..<HASH> 100644 --- a/salt/utils/event.py +++ b/salt/utils/event.py @@ -980,6 +980,8 @@ class EventReturn(multiprocessing.Process): self.event.fire_event({}, 'salt/event_listen/start') try: for event in events: + ...
Handle 'salt/event/exit' in event loop ...to guarantee always exit on break
py
diff --git a/tomodachi/helpers/crontab.py b/tomodachi/helpers/crontab.py index <HASH>..<HASH> 100644 --- a/tomodachi/helpers/crontab.py +++ b/tomodachi/helpers/crontab.py @@ -177,7 +177,7 @@ def get_next_datetime(crontab_notation: str, now_date: datetime.datetime) -> Opt tz = now_date.tzinfo # type: Any ca...
Fixes issue where schedule invoker would crash if it was invoked on second 0
py
diff --git a/src/aioice/ice.py b/src/aioice/ice.py index <HASH>..<HASH> 100644 --- a/src/aioice/ice.py +++ b/src/aioice/ice.py @@ -795,8 +795,10 @@ class Connection: self, component: int, addresses: List[str], timeout: int = 5 ) -> List[Candidate]: candidates = [] - loop = asyncio.get_ev...
[ice] gather STUN candidates for each component separately
py
diff --git a/loam/internal.py b/loam/internal.py index <HASH>..<HASH> 100644 --- a/loam/internal.py +++ b/loam/internal.py @@ -23,7 +23,7 @@ class Switch(argparse.Action): def zsh_version(): - """Try to guess zsh version, returns (0, 0) on failure.""" + """Try to guess zsh version, return (0, 0) on failure."...
Fix docstring of zsh_version
py
diff --git a/RAPIDpy/gis/muskingum.py b/RAPIDpy/gis/muskingum.py index <HASH>..<HASH> 100644 --- a/RAPIDpy/gis/muskingum.py +++ b/RAPIDpy/gis/muskingum.py @@ -107,7 +107,8 @@ def CreateMuskingumKfacFile(in_drainage_line, raise Exception("ERROR: Invalid length units supplied. Supported units are m and km.") ...
added ndmin=2 when reading connectivity file for case with only 1 row
py
diff --git a/components/display.py b/components/display.py index <HASH>..<HASH> 100644 --- a/components/display.py +++ b/components/display.py @@ -13,14 +13,16 @@ origin source code licensed under MIT License """ - +import sys import time +import logging try: import pygame except ImportError: #...
exit if Pygame is not installed
py
diff --git a/hpcbench/benchmark/stream.py b/hpcbench/benchmark/stream.py index <HASH>..<HASH> 100644 --- a/hpcbench/benchmark/stream.py +++ b/hpcbench/benchmark/stream.py @@ -14,8 +14,10 @@ from hpcbench.api import ( class StreamExtractor(MetricsExtractor): """Ignore stdout until this line""" - STDOUT_IGNORE...
stream benchmark: wait for different strings before reading results
py
diff --git a/examples/GAN/Image2Image.py b/examples/GAN/Image2Image.py index <HASH>..<HASH> 100755 --- a/examples/GAN/Image2Image.py +++ b/examples/GAN/Image2Image.py @@ -191,7 +191,9 @@ def sample(datadir, model_path): imgs = glob.glob(os.path.join(datadir, '*.jpg')) ds = ImageFromFile(imgs, channel=3, shu...
Image2Image resize at test time. fix #<I>
py
diff --git a/src/radical/entk/appman/wfprocessor.py b/src/radical/entk/appman/wfprocessor.py index <HASH>..<HASH> 100644 --- a/src/radical/entk/appman/wfprocessor.py +++ b/src/radical/entk/appman/wfprocessor.py @@ -585,7 +585,7 @@ class WFprocessor(object): self._logger.info('Terminating dequeue-th...
fixed pylint/flake8 warning
py
diff --git a/harpoon/ship/builder.py b/harpoon/ship/builder.py index <HASH>..<HASH> 100644 --- a/harpoon/ship/builder.py +++ b/harpoon/ship/builder.py @@ -42,6 +42,8 @@ class BuildProgressStream(ProgressStream): elif "status" in line_detail: self.interpret_status(line_detail["status"]) ...
Be aware of the aux line_detail
py
diff --git a/salt/runners/vault.py b/salt/runners/vault.py index <HASH>..<HASH> 100644 --- a/salt/runners/vault.py +++ b/salt/runners/vault.py @@ -55,6 +55,9 @@ def generate_token(minion_id, signature, impersonated_by_master=False): 'num_uses': 1, 'metadata': audit_data ...
Fix bug with vault runner creating token on empty policy
py
diff --git a/pmagpy/pmagplotlib.py b/pmagpy/pmagplotlib.py index <HASH>..<HASH> 100755 --- a/pmagpy/pmagplotlib.py +++ b/pmagpy/pmagplotlib.py @@ -703,7 +703,7 @@ def plotZED(ZED,datablock,angle,s,units): if AngleX[-1]==0:AngleX[-1]=0.01 pylab.text(AngleX[-1]+(AngleX[-1]/abs(AngleX[-1]))*.1,AngleY[-1]+(AngleY...
modified: pmagpy/pmagplotlib.py => fixed normalization problem in plotZED
py
diff --git a/edisgo/examples/example.py b/edisgo/examples/example.py index <HASH>..<HASH> 100644 --- a/edisgo/examples/example.py +++ b/edisgo/examples/example.py @@ -11,7 +11,7 @@ network = Network.import_from_ding0( ) # export to pypsa -network.analyze(mode='mv') +# network.analyze(mode='mv') # MV generators ...
Comment call of analyze() No export to PyPSA is performed
py
diff --git a/endesive/signer.py b/endesive/signer.py index <HASH>..<HASH> 100644 --- a/endesive/signer.py +++ b/endesive/signer.py @@ -191,6 +191,12 @@ def sign(datau, key, cert, othercerts, hashalgo, attrs=True, signed_value=None, ] datas['content']['signer_infos'][0]['unsigned_attrs...
Raise exception when timestamp is invalid
py
diff --git a/pyinfra/cli.py b/pyinfra/cli.py index <HASH>..<HASH> 100644 --- a/pyinfra/cli.py +++ b/pyinfra/cli.py @@ -181,6 +181,9 @@ def dump_state(state): print() print('--> Operation order:') print(json.dumps(state.op_order, indent=4, default=json_encode)) + print() + print('--> Gathered facts:...
Add gathered facts to debug output.
py
diff --git a/src/ai/backend/client/kernel.py b/src/ai/backend/client/kernel.py index <HASH>..<HASH> 100644 --- a/src/ai/backend/client/kernel.py +++ b/src/ai/backend/client/kernel.py @@ -162,6 +162,7 @@ class Kernel: } if cls.session.config.version >= 'v4.20190615': params.update({ + ...
Let owner_access_key parameter available when starting a session * Admins can pass -o or --owner-access-key parameter in "start" command to create a session on behalf of user (access_key). * This parameter is not present in "run" command, purposely. Admins can create/delete a user session, but cannot execute code usin...
py
diff --git a/rest_framework_jwt/utils.py b/rest_framework_jwt/utils.py index <HASH>..<HASH> 100644 --- a/rest_framework_jwt/utils.py +++ b/rest_framework_jwt/utils.py @@ -49,7 +49,5 @@ def jwt_decode_handler(token): return jwt.decode( token, api_settings.JWT_SECRET_KEY, - api_settings.JWT_...
removed code causing issue #<I> - not really a fix, but it fixes it...
py
diff --git a/quilt/push.py b/quilt/push.py index <HASH>..<HASH> 100644 --- a/quilt/push.py +++ b/quilt/push.py @@ -36,7 +36,8 @@ class Push(Command): self.db = Db(quilt_pc) self.series = Series(quilt_patches) - def _apply_patch(self, patch_name, force=False): + def _apply_patch(self, patch, fo...
Pass Patch obj instead if patch name The push apply_patch method now must accept a Patch object instead of the patch name.
py
diff --git a/www/tests/test_numbers.py b/www/tests/test_numbers.py index <HASH>..<HASH> 100644 --- a/www/tests/test_numbers.py +++ b/www/tests/test_numbers.py @@ -55,6 +55,9 @@ assert 3*a == 12+6j assert 1.0+a == 5+2j assert 2.0-a == -2-2j assert 3.0*a == 12+6j +assert abs(3 + 4j) == 5 +assert abs(4 + 3j) == 5.0 +as...
added some test for absolute of complex numbers
py
diff --git a/core/polyaxon/connections/gcp/gcs.py b/core/polyaxon/connections/gcp/gcs.py index <HASH>..<HASH> 100644 --- a/core/polyaxon/connections/gcp/gcs.py +++ b/core/polyaxon/connections/gcp/gcs.py @@ -144,8 +144,8 @@ class GCSService(GCPService, StoreMixin): for blob in _blobs: name ...
GCS: Fix deletion of directories containing empty files
py
diff --git a/querybuilder/query.py b/querybuilder/query.py index <HASH>..<HASH> 100644 --- a/querybuilder/query.py +++ b/querybuilder/query.py @@ -489,6 +489,18 @@ class Query(object): def order_by(self, field=None, table=None, desc=False): """ + Adds an order by clause to the query by adding a `...
* Added docs to order_by
py
diff --git a/spyder_notebook/notebookplugin.py b/spyder_notebook/notebookplugin.py index <HASH>..<HASH> 100644 --- a/spyder_notebook/notebookplugin.py +++ b/spyder_notebook/notebookplugin.py @@ -48,7 +48,7 @@ class NotebookPlugin(SpyderPluginWidget): """IPython Notebook plugin.""" CONF_SECTION = 'notebook...
Plugin: Use correct type for CONF_DEFAULTS
py
diff --git a/salt/modules/vsphere.py b/salt/modules/vsphere.py index <HASH>..<HASH> 100644 --- a/salt/modules/vsphere.py +++ b/salt/modules/vsphere.py @@ -201,6 +201,25 @@ def get_proxy_type(): return __pillar__['proxy']['proxytype'] +def _get_proxy_connection_details(): + ''' + Returns the connection de...
Added modules.vsphere._get_proxy_connection_details - returns the connection details of the following proxies: esxi
py
diff --git a/src/distro/distro.py b/src/distro/distro.py index <HASH>..<HASH> 100755 --- a/src/distro/distro.py +++ b/src/distro/distro.py @@ -1056,12 +1056,10 @@ class LinuxDistribution: # stripped, etc.), so the tokens are now either: # * variable assignments: var=value # * comm...
Removes unnecessary `else..pass` statement in os-release parsing
py
diff --git a/phy/io/kwik_model.py b/phy/io/kwik_model.py index <HASH>..<HASH> 100644 --- a/phy/io/kwik_model.py +++ b/phy/io/kwik_model.py @@ -294,14 +294,16 @@ class KwikModel(BaseModel): """Create a waveform loader.""" n_samples = (self._metadata['extract_s_before'], self._meta...
Added filter margin in waveform loader.
py
diff --git a/AppiumLibrary/keywords/_touch.py b/AppiumLibrary/keywords/_touch.py index <HASH>..<HASH> 100644 --- a/AppiumLibrary/keywords/_touch.py +++ b/AppiumLibrary/keywords/_touch.py @@ -45,8 +45,12 @@ class _TouchKeywords(KeywordGroup): _*NOTE: *_ Android 'Swipe' is not working properly, use ``o...
Issue #<I> Add int cast to parameters start_x, start_y, offset_x, offset_y in swipe function Note : Direct call from Robotframework cast str into int Call from swipe_by_percent_method cast float to int
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -64,11 +64,12 @@ install_requires = [ 'ligotimegps >= 1.2.1', ] -# if setuptools is too old and we are building an EL7 -# distribution, empty the install_requires, -# the spec file will handle dependencies anyway +# if...
setup.py: catch PEP_<I> for debian jessie
py
diff --git a/models/phase3_eval/process_data.py b/models/phase3_eval/process_data.py index <HASH>..<HASH> 100644 --- a/models/phase3_eval/process_data.py +++ b/models/phase3_eval/process_data.py @@ -217,7 +217,7 @@ def get_midas_data(data, pkn_abs, out_file='MD-korkut.csv'): if c.find('-') != -1: ...
Fix index in string processing for MIDAS Lead digit was chopped off due to indexing off by one error.
py
diff --git a/scrubadub/filth/base.py b/scrubadub/filth/base.py index <HASH>..<HASH> 100644 --- a/scrubadub/filth/base.py +++ b/scrubadub/filth/base.py @@ -27,7 +27,7 @@ class Filth(object): def __init__(self, beg: Optional[int] = None, end: Optional[int] = None, text: Optional[str] = None, matc...
add **kwargs to Filth.__init__ to improve compatability between versions of the api, add a DeprecationWarning
py
diff --git a/pysimplevcs/git_util.py b/pysimplevcs/git_util.py index <HASH>..<HASH> 100644 --- a/pysimplevcs/git_util.py +++ b/pysimplevcs/git_util.py @@ -22,5 +22,9 @@ def git_init(*args, **kwargs): def git_clone(*args, **kwargs): output = _run_subcommand("clone", *args, **kwargs) - if len(output) != 0: - ...
Fixes #2: Handle non-empty output from "git clone" command
py
diff --git a/ptpython/layout.py b/ptpython/layout.py index <HASH>..<HASH> 100644 --- a/ptpython/layout.py +++ b/ptpython/layout.py @@ -1,6 +1,6 @@ from __future__ import unicode_literals -from prompt_toolkit.enums import DEFAULT_BUFFER +from prompt_toolkit.enums import DEFAULT_BUFFER, SEARCH_BUFFER from prompt_tool...
Only show search highlighting when the search is the current input buffer.
py
diff --git a/bandicoot/core.py b/bandicoot/core.py index <HASH>..<HASH> 100755 --- a/bandicoot/core.py +++ b/bandicoot/core.py @@ -237,7 +237,7 @@ class User(object): nb_contacts = bc.individual.number_of_contacts(self, interaction='callandtext', groupby=None) nb_contacts = nb_contacts['allweek']['a...
Fix issue with User.describe not counting contacts
py
diff --git a/SoftLayer/API.py b/SoftLayer/API.py index <HASH>..<HASH> 100644 --- a/SoftLayer/API.py +++ b/SoftLayer/API.py @@ -298,7 +298,7 @@ class BaseClient(object): results = transports.SoftLayerListResult(results, len(results)) else: yield results - ...
Fix compatibility with Python <I> Simply replace the raise statement with return. All tests pass with Python <I> here with the change.
py
diff --git a/core/containers.py b/core/containers.py index <HASH>..<HASH> 100755 --- a/core/containers.py +++ b/core/containers.py @@ -84,9 +84,9 @@ class FCSample(BaseSample): given a single channel plots a histogram given two channels produces a 2d plot kind : 'scatter', 'histogram'...
FCSample.plot applies single supplied transform to all channels. Updated docstring
py
diff --git a/alphalens/plotting.py b/alphalens/plotting.py index <HASH>..<HASH> 100644 --- a/alphalens/plotting.py +++ b/alphalens/plotting.py @@ -849,7 +849,7 @@ def plot_quantile_average_cumulative_return(avg_cumulative_returns, if std_bar: std = q_ret.loc[(quantile, 'std')] ...
MAINT: compatibility with matplotlib <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -5,6 +5,8 @@ descriptions. """ import os from abc import abstractmethod +# Disabling checks due to https://github.com/PyCQA/pylint/issues/73 +from distutils.command.clean import clean # pylint: disable=E0401,E0611 from su...
Fixing setup.py clean command
py
diff --git a/formats/folia.py b/formats/folia.py index <HASH>..<HASH> 100644 --- a/formats/folia.py +++ b/formats/folia.py @@ -2862,6 +2862,18 @@ class AbstractSpanAnnotation(AbstractAnnotation, AllowGenerateID): else: return super(AbstractSpanAnnotation,self).append(child, *args, **kwargs) + ...
added hasannotation() and annotation() to AbstractSpanAnnotation, since it supports nesting
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 @@ -32,9 +32,11 @@ MOCK_MODULES = [ 'numpy', 'scipy', 'scipy.ndimage', + 'scipy.ndimage.filters', 'skimage', 'skimage.morphology', 'skimage.io', + 's...
Added mock modules to sphinx conf.py.
py
diff --git a/discord/app_commands/commands.py b/discord/app_commands/commands.py index <HASH>..<HASH> 100644 --- a/discord/app_commands/commands.py +++ b/discord/app_commands/commands.py @@ -1310,7 +1310,7 @@ def command( def context_menu(*, name: str = MISSING) -> Callable[[ContextMenuCallback], ContextMenu]: - ...
A small grammar fix app_commands.context_menu This just makes it so it adheres with the rule that `an` goes before a word that begins with a vowel.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ with open('LICENSE') as fl: setup( name='CurrencyConverter', - version='0.13.7', + version='0.13.8', author='Alex Prengère', author_email='alexprengere@gmail.com', url='https://githu...
Bump to version <I>
py
diff --git a/gwpy/cli/coherence.py b/gwpy/cli/coherence.py index <HASH>..<HASH> 100644 --- a/gwpy/cli/coherence.py +++ b/gwpy/cli/coherence.py @@ -39,6 +39,7 @@ class Coherence(CliProduct): self.arg_ax_xlf(parser) self.arg_ax_liny(parser) self.arg_plot(parser) + self.xaxis_is_freq = Tr...
gwpy/cli/coherence.py: Labels use parentheses not square brackets
py
diff --git a/LiSE/node.py b/LiSE/node.py index <HASH>..<HASH> 100644 --- a/LiSE/node.py +++ b/LiSE/node.py @@ -150,7 +150,7 @@ class Node(gorm.graph.Node, rule.RuleFollower): return self._cache_keys() (branch, tick) = self.engine.time - yield from self._keycache[branch][tick] + ...
Prevent RuntimeError I think it was caused by the same stat being set and got from the remote process in too short a timeframe
py
diff --git a/version.py b/version.py index <HASH>..<HASH> 100755 --- a/version.py +++ b/version.py @@ -1,2 +1,2 @@ #/usr/bin/env python -VERSION = '1.3.0-s1114' +VERSION = '1.3.0-s1121'
Ready for version <I>-s<I>
py
diff --git a/pysat/tests/test_instruments.py b/pysat/tests/test_instruments.py index <HASH>..<HASH> 100644 --- a/pysat/tests/test_instruments.py +++ b/pysat/tests/test_instruments.py @@ -35,12 +35,15 @@ def remove_files(inst): 'ensure temp directory is used'))) -def generate_instrumen...
STY: use None as default kwarg
py
diff --git a/salt/cloud/clouds/xen.py b/salt/cloud/clouds/xen.py index <HASH>..<HASH> 100644 --- a/salt/cloud/clouds/xen.py +++ b/salt/cloud/clouds/xen.py @@ -7,6 +7,7 @@ XenServer Cloud Driver The XenServer driver is designed to work with a Citrix XenServer. Requires XenServer SDK +(can be downloaded from https://...
added link to citrix SDK download
py
diff --git a/pyghmi/ipmi/oem/lenovo/imm.py b/pyghmi/ipmi/oem/lenovo/imm.py index <HASH>..<HASH> 100644 --- a/pyghmi/ipmi/oem/lenovo/imm.py +++ b/pyghmi/ipmi/oem/lenovo/imm.py @@ -265,8 +265,8 @@ class IMMClient(object): raise Exception('Unsupported property value') propname = propname.encode('utf-...
Fix mistake in IMM set property There was a mistake in the code to attempt length calculation. Change-Id: I<I>dbd<I>ec<I>d<I>a<I>c<I>fd0d<I>
py
diff --git a/scot/ooapi.py b/scot/ooapi.py index <HASH>..<HASH> 100644 --- a/scot/ooapi.py +++ b/scot/ooapi.py @@ -63,7 +63,7 @@ class Workspace(object): `plot_f_range` : (int, int) Lower and upper frequency limits for plotting. Defaults to [0, fs/2]. """ - def __init__(self, var, locations=None, ...
Set reducedim to None by default in Workspace
py
diff --git a/azure-storage-common/azure/storage/common/_auth.py b/azure-storage-common/azure/storage/common/_auth.py index <HASH>..<HASH> 100644 --- a/azure-storage-common/azure/storage/common/_auth.py +++ b/azure-storage-common/azure/storage/common/_auth.py @@ -84,7 +84,7 @@ class _StorageSharedKeyAuthentication(_Stor...
Include empty string values Empty query strings are included in the path but they are not signed. This change will make sure that all the query params that's not `None` are signed.
py
diff --git a/debugtools/templatetags/debug_tags.py b/debugtools/templatetags/debug_tags.py index <HASH>..<HASH> 100644 --- a/debugtools/templatetags/debug_tags.py +++ b/debugtools/templatetags/debug_tags.py @@ -6,6 +6,7 @@ __author__ = "Diederik van der Boor" __license__ = "Apache License, Version 2" from django.co...
Trap ObjectDoesNotExist as well, to print inherited models properly.
py
diff --git a/src/test/test_Astral.py b/src/test/test_Astral.py index <HASH>..<HASH> 100644 --- a/src/test/test_Astral.py +++ b/src/test/test_Astral.py @@ -50,6 +50,7 @@ def test_Astral_SolarElevation(): elevation = dd.solar_elevation(dt, 51.5, -0.12) assert abs(elevation - 9.97) < 0.1 + def test_Astral...
Added extra blank line between test functions
py
diff --git a/deluge_client/client.py b/deluge_client/client.py index <HASH>..<HASH> 100644 --- a/deluge_client/client.py +++ b/deluge_client/client.py @@ -176,7 +176,10 @@ class DelugeRPCClient(object): if self.deluge_version == 2: exception_type, exception_msg, _, traceback = data ...
now all decode_utf8 cases should be covered
py
diff --git a/pandas/tests/test_frame.py b/pandas/tests/test_frame.py index <HASH>..<HASH> 100644 --- a/pandas/tests/test_frame.py +++ b/pandas/tests/test_frame.py @@ -3851,6 +3851,16 @@ class TestDataFrame(unittest.TestCase, CheckIndexing, 'three,3,6\r\n') self.assertEqual(buf.getvalue(), ...
Another test for DataFrame.to_csv: the default line terminator should remain \n
py
diff --git a/wal_e/blobstore/s3/s3_util.py b/wal_e/blobstore/s3/s3_util.py index <HASH>..<HASH> 100644 --- a/wal_e/blobstore/s3/s3_util.py +++ b/wal_e/blobstore/s3/s3_util.py @@ -55,7 +55,8 @@ def uri_put_file(creds, uri, fp, content_type=None, conn=None): k.content_type = content_type storage_class = o...
Fix storage class support Thanks to these comments. It probably never worked. <URL>
py
diff --git a/conference_scheduler/tests/test_scheduler.py b/conference_scheduler/tests/test_scheduler.py index <HASH>..<HASH> 100644 --- a/conference_scheduler/tests/test_scheduler.py +++ b/conference_scheduler/tests/test_scheduler.py @@ -64,7 +64,23 @@ def test_session_with_multiple_tags_has_violations( solut...
Add test for events being scheduled in violation of their availability
py
diff --git a/cleverhans/attacks.py b/cleverhans/attacks.py index <HASH>..<HASH> 100644 --- a/cleverhans/attacks.py +++ b/cleverhans/attacks.py @@ -232,7 +232,8 @@ class FastGradientMethod(Attack): return fgm(x, self.model.get_probs(x), y=y, eps=self.eps, ord=self.ord, clip_min=self.clip_m...
fixed pep8 in attacks.py
py
diff --git a/etcd3gw/client.py b/etcd3gw/client.py index <HASH>..<HASH> 100644 --- a/etcd3gw/client.py +++ b/etcd3gw/client.py @@ -117,13 +117,15 @@ class Etcd3Client(object): json={"TTL": ttl, "ID": 0}) return Lease(int(result['ID']), client=self) - def lock(self, id=str(uuid....
Make the package reproducible Whilst working on the Reproducible Builds effort [0] we noticed that python-etcd3gw could not be built reproducibly. This is because one of the function signatures used a non- deterministic / random default value that was rendered by the documentation system at build time and thus varied...
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -69,5 +69,5 @@ setup( 'Topic :: Utilities', ], obsoletes=['earth_distance'], - tests_require=['nose2', 'expect'], + tests_require=['nose2', 'expecter'], )
Fixed expecter reference in setup.py's tests_requires.
py
diff --git a/tornado/iostream.py b/tornado/iostream.py index <HASH>..<HASH> 100644 --- a/tornado/iostream.py +++ b/tornado/iostream.py @@ -265,13 +265,13 @@ class BaseIOStream(object): self._maybe_run_close_callback() def _maybe_run_close_callback(self): - if (self.closed() and self._close_callba...
Clear the IOStream buffers on close even when there is no close callback. Closes #<I>. (again)
py
diff --git a/oscrypto/_win/tls.py b/oscrypto/_win/tls.py index <HASH>..<HASH> 100644 --- a/oscrypto/_win/tls.py +++ b/oscrypto/_win/tls.py @@ -27,6 +27,7 @@ from .._tls import ( raise_no_issuer, raise_self_signed, raise_verification, + raise_weak_signature, ) from .asymmetric import load_certificate...
Have Windows use raise_weak_signature() also
py
diff --git a/songpal/main.py b/songpal/main.py index <HASH>..<HASH> 100644 --- a/songpal/main.py +++ b/songpal/main.py @@ -58,8 +58,8 @@ logging.getLogger("websockets.protocol").setLevel(logging.WARNING) pass_dev = click.make_pass_decorator(Protocol) -@click.group(invoke_without_command=True) -@click.option("--end...
make endpoint optional for discover, remove automatic invocation of status as the event loop is already running at that point
py
diff --git a/salt/modules/zabbix.py b/salt/modules/zabbix.py index <HASH>..<HASH> 100644 --- a/salt/modules/zabbix.py +++ b/salt/modules/zabbix.py @@ -1531,6 +1531,7 @@ def template_get(name=None, host=None, templateids=None, **connection_args): except KeyError: return ret + def run_query(method, p...
Newline for correct lint
py
diff --git a/zipline/assets/assets.py b/zipline/assets/assets.py index <HASH>..<HASH> 100644 --- a/zipline/assets/assets.py +++ b/zipline/assets/assets.py @@ -267,13 +267,9 @@ class AssetFinder(object): # Update the metadata object with the new sid self.insert_metadata(identifier=identifier, s...
BUG: The 'file_name' metadata arg now overwrites 'symbol', if it is given This is to fix the issue where 'GOOG_L's metadata lists its symbol as 'GOOG'. To resolve this, the 'file_name' is used as the canonical symbol, if it is given.
py
diff --git a/gwpy/timeseries/statevector.py b/gwpy/timeseries/statevector.py index <HASH>..<HASH> 100644 --- a/gwpy/timeseries/statevector.py +++ b/gwpy/timeseries/statevector.py @@ -368,7 +368,7 @@ class StateVector(TimeSeries): bit """ if bits is None: - bits = [b for b in se...
StateVector.get_bit_series: don't use 'is not (a or b)'
py
diff --git a/saltcloud/config.py b/saltcloud/config.py index <HASH>..<HASH> 100644 --- a/saltcloud/config.py +++ b/saltcloud/config.py @@ -325,10 +325,11 @@ def apply_vm_profiles_config(providers, overrides, defaults=None): log.error( 'The {0!r} profile is trying to extend data from {1!r} ...
If a profile extending another can't find it, remove it from the listing.
py