diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/gui/videotreeview.py b/gui/videotreeview.py index <HASH>..<HASH> 100644 --- a/gui/videotreeview.py +++ b/gui/videotreeview.py @@ -223,7 +223,9 @@ class VideoTreeModel(QtCore.QAbstractItemModel): info += " " + _("(%d subtitles)") % int(movie.totalSubs) if not len(mo...
improve TODO about clicking in expand +) and not showing results
py
diff --git a/demands/__init__.py b/demands/__init__.py index <HASH>..<HASH> 100644 --- a/demands/__init__.py +++ b/demands/__init__.py @@ -11,6 +11,7 @@ log = logging.getLogger(__name__) class HTTPServiceError(AssertionError): def __init__(self, response): + self.response = respose try: ...
Add response to HTTPServiceError
py
diff --git a/karabo_bridge/server.py b/karabo_bridge/server.py index <HASH>..<HASH> 100644 --- a/karabo_bridge/server.py +++ b/karabo_bridge/server.py @@ -143,8 +143,7 @@ class ServerInThread(Sender): """ super().__init__(endpoint, sock=sock, protocol_version=protocol_version, ...
set daemon at instantiation
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -18,13 +18,13 @@ setup( "escapism>=1.0", "josepy>=1.4.0", "jupyterhub>=0.8", - "jwcrypto>=1.0", - "oauthlib>=3.1", - "oauthenticator>=0.13.0", - "pem>=20.1.0", - "p...
re lock dependencies related to jwt
py
diff --git a/gwpy/detector/units.py b/gwpy/detector/units.py index <HASH>..<HASH> 100644 --- a/gwpy/detector/units.py +++ b/gwpy/detector/units.py @@ -158,7 +158,7 @@ units.add_enabled_units(units.imperial) # 1) alternative names registry = units.get_current_unit_registry().registry for unit, aliases in [ - (...
gwpy.detector: fixed bug in unit aliasing need commas to make a tuple!
py
diff --git a/treenode/version.py b/treenode/version.py index <HASH>..<HASH> 100644 --- a/treenode/version.py +++ b/treenode/version.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -__version__ = '0.2.0' +__version__ = '0.2.1'
Updated version [ci skip]
py
diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py index <HASH>..<HASH> 100644 --- a/tests/unit/conftest.py +++ b/tests/unit/conftest.py @@ -132,6 +132,7 @@ def create_image(image_id, with_pixels=False): logical_channel_1.illumination = illumination logical_channel_1.mode = acquisition_mode log...
Need to link the LogicalChannel
py
diff --git a/raiden_contracts/tests/test_channel_settle.py b/raiden_contracts/tests/test_channel_settle.py index <HASH>..<HASH> 100644 --- a/raiden_contracts/tests/test_channel_settle.py +++ b/raiden_contracts/tests/test_channel_settle.py @@ -142,11 +142,20 @@ def test_settle_channel_state( # Some manual checks ...
Fix failing test after setTotalWithdraw removal
py
diff --git a/satpy/tests/test_multiscene.py b/satpy/tests/test_multiscene.py index <HASH>..<HASH> 100644 --- a/satpy/tests/test_multiscene.py +++ b/satpy/tests/test_multiscene.py @@ -577,10 +577,4 @@ def test_save_mp4(smg, tmp_path): "txt": "Test {start_time:%Y-%m-%d %H...
Replace assert_called_with with direct args check In the mock for testing decorating a multiscene, replace the assertion that it's called with a particular dataset to more direct argument checking. Any assert_calls with a numpy array is unreliable, because assert_called_with will use an equality operator which may fa...
py
diff --git a/torchvision/transforms/transforms.py b/torchvision/transforms/transforms.py index <HASH>..<HASH> 100644 --- a/torchvision/transforms/transforms.py +++ b/torchvision/transforms/transforms.py @@ -34,6 +34,8 @@ _pil_interpolation_to_str = { Image.BILINEAR: 'PIL.Image.BILINEAR', Image.BICUBIC: 'PIL.I...
interpolations added (#<I>)
py
diff --git a/pylint/lint.py b/pylint/lint.py index <HASH>..<HASH> 100644 --- a/pylint/lint.py +++ b/pylint/lint.py @@ -236,8 +236,8 @@ MSGS = { def _cpu_count() -> int: """Use sched_affinity if available for virtualized or containerized environments.""" sched_getaffinity = getattr(os, "sched_getaffinity", No...
using-constant-test has a false positive when using getattr(), so disable that error locally
py
diff --git a/test_path.py b/test_path.py index <HASH>..<HASH> 100644 --- a/test_path.py +++ b/test_path.py @@ -33,27 +33,18 @@ import pytest import packaging.version import path +from path import Path from path import TempDir from path import matchers from path import SpecialResolver from path import Multi -P...
Remove multi-Path-class fixture.
py
diff --git a/master/docs/bbdocs/ext.py b/master/docs/bbdocs/ext.py index <HASH>..<HASH> 100644 --- a/master/docs/bbdocs/ext.py +++ b/master/docs/bbdocs/ext.py @@ -110,7 +110,8 @@ class BBRefTargetDirective(Directive): try: todocname, targetname = targets[target] except KeyError: - ...
Transform a print into real warning
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -38,12 +38,19 @@ with open('README.rst') as fobj: long_description = readme_note + fobj.read() install_requires = [ - 'tornado>=4.0,<5', # https://pagure.io/python-daemon/issue/18 'python-daemon<2.2.0', ...
Update tornado requirement for new enough python versions
py
diff --git a/bundles.py b/bundles.py index <HASH>..<HASH> 100644 --- a/bundles.py +++ b/bundles.py @@ -26,12 +26,14 @@ pdfjs = Bundle( "js/previewer/pdf_viewer.js", filters="uglifyjs", output="gen/previewer/pdf.js", - name="20-previewer-pdf.js" + name="previewer-pdf.js", + weight=20 ) pdfcss...
assets: bundles with weight * Changes the ordering of the bundles using a weight attribute. * Adds more debugging helps for the assets as html comments.
py
diff --git a/bokeh/plotting_helpers.py b/bokeh/plotting_helpers.py index <HASH>..<HASH> 100644 --- a/bokeh/plotting_helpers.py +++ b/bokeh/plotting_helpers.py @@ -340,6 +340,9 @@ def _new_xy_plot(x_range=None, y_range=None, plot_width=None, plot_height=None, if k.startswith(prefix): setatt...
pass on toolbar location in plotting.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ def long_desc(): setup( name='shellish', - version='0.5.0', + version='0.4.0', description='A framework for CLI/shell programs.', author='Justin Mayfield', author_email='tooker@gmail...
Retrograde version to <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ sql = ['sqlalchemy>=1.2.0b3, <1.2.99', 'sqlalchemy-migrate>=0.11, <0.11.99'] postgres = ['psycopg2>=2.7, <2.7.99'] + sql redshift = ['sqlalchemy-redshift>=0.7, <0.7.99'] + sql redis = ['redis>=2.10, <2.10.99'...
accept new versions of boto and pandas
py
diff --git a/examples/run_squad.py b/examples/run_squad.py index <HASH>..<HASH> 100644 --- a/examples/run_squad.py +++ b/examples/run_squad.py @@ -37,7 +37,8 @@ from pytorch_transformers import (WEIGHTS_NAME, BertConfig, XLMConfig, XLMForQuestionAnswering, ...
Added DistilBERT to run_squad script
py
diff --git a/Decorators.py b/Decorators.py index <HASH>..<HASH> 100644 --- a/Decorators.py +++ b/Decorators.py @@ -80,12 +80,16 @@ def queue_main_thread_sync(f): # eg the name e = threading.Event() def sync_f(f, event): - f() - event.set() + try: + ...
Fixed random 5s freeze bug. In queue_main_thread_sync, threading.enumerate()[0] was assumed to be main thread. Isn't necessarily (esp. in win?). Now using name of thread instead. svn r<I>
py
diff --git a/helpers.py b/helpers.py index <HASH>..<HASH> 100644 --- a/helpers.py +++ b/helpers.py @@ -362,6 +362,11 @@ def find_project_by_short_name(short_name, pbclient, all=None): def check_api_error(api_response): """Check if returned API response contains an error.""" + if 'status' not in api_response:...
Additional error checking on API calls; See #<I>
py
diff --git a/sphinxcontrib/datatemplates/cli.py b/sphinxcontrib/datatemplates/cli.py index <HASH>..<HASH> 100644 --- a/sphinxcontrib/datatemplates/cli.py +++ b/sphinxcontrib/datatemplates/cli.py @@ -74,7 +74,7 @@ def main(): make_list_table_from_mappings=helpers. make_list_table_from_mappings,...
cli: fix linter warning by removing trailing comma
py
diff --git a/giotto/controllers/irc_.py b/giotto/controllers/irc_.py index <HASH>..<HASH> 100644 --- a/giotto/controllers/irc_.py +++ b/giotto/controllers/irc_.py @@ -3,7 +3,6 @@ import socket import string import os import traceback -from werkzeug.serving import run_with_reloader try: import irc.bot @@ -180,...
removed werkzeug from irc controller
py
diff --git a/tests/api_test.py b/tests/api_test.py index <HASH>..<HASH> 100644 --- a/tests/api_test.py +++ b/tests/api_test.py @@ -37,5 +37,5 @@ class APITest(unittest.TestCase): def wrong_api_key_test(self): # Test the wrong API key - with self.assertRaises(APIAuthenticationError): - ...
Correct use of with statement for py < <I>
py
diff --git a/glymur/test/test_jp2k.py b/glymur/test/test_jp2k.py index <HASH>..<HASH> 100644 --- a/glymur/test/test_jp2k.py +++ b/glymur/test/test_jp2k.py @@ -646,6 +646,16 @@ class TestJp2k(unittest.TestCase): with self.assertWarns(UserWarning) as cw: imp.reload(glymur) + def...
Added XMP test. closes #<I>
py
diff --git a/procrunner/__init__.py b/procrunner/__init__.py index <HASH>..<HASH> 100644 --- a/procrunner/__init__.py +++ b/procrunner/__init__.py @@ -363,6 +363,20 @@ class ReturnObject(dict, _ReturnObjectParent): self.stdout = self["stdout"] self.stderr = self["stderr"] + def __eq__(self, other...
Override few magic functions in return object define equality, mark object as unhashable again as it is mutable.
py
diff --git a/PyFunceble/engine/database/migrations/old2new.py b/PyFunceble/engine/database/migrations/old2new.py index <HASH>..<HASH> 100644 --- a/PyFunceble/engine/database/migrations/old2new.py +++ b/PyFunceble/engine/database/migrations/old2new.py @@ -253,7 +253,7 @@ class CleanupOldTables: statement = ...
Fix issue with the deletion of old entries. This patch fix <URL>
py
diff --git a/custodian/cp2k/validators.py b/custodian/cp2k/validators.py index <HASH>..<HASH> 100644 --- a/custodian/cp2k/validators.py +++ b/custodian/cp2k/validators.py @@ -33,9 +33,12 @@ class ChargedDefectValidator(Validator): def __init__(self, output_file='cp2k.out'): self.output_file = output_fil...
Don't auto load. Don't trip validator if metallic but neutral.
py
diff --git a/fades/pipmanager.py b/fades/pipmanager.py index <HASH>..<HASH> 100644 --- a/fades/pipmanager.py +++ b/fades/pipmanager.py @@ -42,7 +42,7 @@ class PipManager(): basedir = os.path.join(BaseDirectory.xdg_data_home, 'fades') self.pip_installer_fname = os.path.join(basedir, "get-pip.py") - ...
pipmanager don't use --ignore-installed any more
py
diff --git a/glances/plugins/glances_processlist.py b/glances/plugins/glances_processlist.py index <HASH>..<HASH> 100644 --- a/glances/plugins/glances_processlist.py +++ b/glances/plugins/glances_processlist.py @@ -322,10 +322,6 @@ class Plugin(GlancesPlugin): try: # XXX: remove `cmdline != ['']` ...
Electron processes displayed wrong in process list (remove debug message) #<I>
py
diff --git a/cmsplugin_cascade/plugin_base.py b/cmsplugin_cascade/plugin_base.py index <HASH>..<HASH> 100644 --- a/cmsplugin_cascade/plugin_base.py +++ b/cmsplugin_cascade/plugin_base.py @@ -153,7 +153,13 @@ class CascadePluginBaseMetaclass(CascadePluginMixinMetaclass, CMSPluginBaseMetac attrs['name'] = ma...
added _ring_plugin_bases which autodetects it’s JS relationship
py
diff --git a/jmboyourwords/models.py b/jmboyourwords/models.py index <HASH>..<HASH> 100644 --- a/jmboyourwords/models.py +++ b/jmboyourwords/models.py @@ -4,7 +4,7 @@ from django.contrib.auth.models import User from django.contrib.sites.models import Site from jmboyourwords.managers import PublishedManager -from jm...
use pummel version of sanitize_html
py
diff --git a/whatthepatch/apply.py b/whatthepatch/apply.py index <HASH>..<HASH> 100644 --- a/whatthepatch/apply.py +++ b/whatthepatch/apply.py @@ -86,6 +86,7 @@ def apply_diff(diff, text, use_patch=False): for old, new, line in diff.changes: # might have to check for line is None here for ed scripts ...
Fix an edge case where someone has EDITED THEIR DIFF OUTPUT >:(
py
diff --git a/formlayout.py b/formlayout.py index <HASH>..<HASH> 100644 --- a/formlayout.py +++ b/formlayout.py @@ -656,6 +656,10 @@ def fedit(data, title="", comment="", icon=None, parent=None, apply=None): timer.start(1000) elif QApplication.startingUp(): _app = QApplication([]) + transla...
Add the built-in Qt i<I>n
py
diff --git a/optlang/cplex_interface.py b/optlang/cplex_interface.py index <HASH>..<HASH> 100644 --- a/optlang/cplex_interface.py +++ b/optlang/cplex_interface.py @@ -469,14 +469,14 @@ class Configuration(interface.MathematicalProgrammingConfiguration): error_stream_handler = ErrorStreamHandler(logger) ...
fix: disable results and logging with cplex verbosity=0
py
diff --git a/calloway/settings.py b/calloway/settings.py index <HASH>..<HASH> 100644 --- a/calloway/settings.py +++ b/calloway/settings.py @@ -170,5 +170,5 @@ NATIVE_TAGS = ( ADMIN_TOOLS_MENU = 'calloway.menu.CustomMenu' STORY_RELATION_MODELS = ['massmedia.audio', 'massmedia.image', 'massmedia.document', - 'mass...
pull quote stuff and other story relations added
py
diff --git a/svtplay_dl.py b/svtplay_dl.py index <HASH>..<HASH> 100755 --- a/svtplay_dl.py +++ b/svtplay_dl.py @@ -841,6 +841,10 @@ class Tv4play(): sa = list(ss.getiterator("item")) else: sa = list(ss.iter("item")) + + if xml.find("live").text: + self.live =...
tv4play: add support for live streams
py
diff --git a/attitude/coordinates/__init__.py b/attitude/coordinates/__init__.py index <HASH>..<HASH> 100644 --- a/attitude/coordinates/__init__.py +++ b/attitude/coordinates/__init__.py @@ -17,11 +17,12 @@ def cartesian(spherical): return x,y,z def centered(coordinates): - try: - assert coordinates.s...
Simplified routine for centering coordinate distribution
py
diff --git a/phypno/viz/base.py b/phypno/viz/base.py index <HASH>..<HASH> 100644 --- a/phypno/viz/base.py +++ b/phypno/viz/base.py @@ -68,7 +68,7 @@ class Viz(): self._fig.show(True) app.process_events() - img = read_pixels(region=region) # self._fig.render(region=region) + img = read...
read_pixels uses viewport, not region as argument
py
diff --git a/gwpy/data/array.py b/gwpy/data/array.py index <HASH>..<HASH> 100644 --- a/gwpy/data/array.py +++ b/gwpy/data/array.py @@ -165,6 +165,17 @@ class Array(Quantity): prefixstr, arrstr, indent, metadata) # ------------------------------------------- + # Pickle helpers + + def dumps(sel...
Array: override dumps and tostring to enable pickling
py
diff --git a/syncthing/__init__.py b/syncthing/__init__.py index <HASH>..<HASH> 100644 --- a/syncthing/__init__.py +++ b/syncthing/__init__.py @@ -6,8 +6,8 @@ VERSION = (0, 1, 0) SYNCTHING_VERSION = (0, 11, 2) -from syncthing.interface import Interface -from syncthing.syncthing import Syncthing +from .interface imp...
fixed imports for python2 and 3
py
diff --git a/doctr/travis.py b/doctr/travis.py index <HASH>..<HASH> 100644 --- a/doctr/travis.py +++ b/doctr/travis.py @@ -162,8 +162,11 @@ def setup_GitHub_push(deploy_repo, auth_type='deploy_key', full_key_path='github canpush = False print("Setting git attributes") - # Should we add some user.emai...
Set user.email in Travis Otherwise, newer versions of git (which Travis apparently now has) will fail. Fixes #<I>.
py
diff --git a/securitycenter/modules.py b/securitycenter/modules.py index <HASH>..<HASH> 100644 --- a/securitycenter/modules.py +++ b/securitycenter/modules.py @@ -438,7 +438,7 @@ class Scan(Module): reports=None): assets = assets or [] - ips = ips or [] + ips = ",".join(ips or []) ...
scan::add takes comma separated string of ips
py
diff --git a/Twper/Twper.py b/Twper/Twper.py index <HASH>..<HASH> 100644 --- a/Twper/Twper.py +++ b/Twper/Twper.py @@ -4,12 +4,14 @@ from coala_utils.decorators import generate_ordering import random import aiohttp import asyncio -from fake_useragent import UserAgent +from user_agent import generate_user_agent ...
Switched to user_agent package for up-to-date UA strings; fixed exception type in query_single_page
py
diff --git a/gns3server/version.py b/gns3server/version.py index <HASH>..<HASH> 100644 --- a/gns3server/version.py +++ b/gns3server/version.py @@ -23,8 +23,8 @@ # or negative for a release candidate or beta (after the base version # number has been incremented) -__version__ = "2.1.12" -__version_info__ = (2, 1, 12,...
Development on <I>dev1
py
diff --git a/molo/core/templatetags/core_tags.py b/molo/core/templatetags/core_tags.py index <HASH>..<HASH> 100644 --- a/molo/core/templatetags/core_tags.py +++ b/molo/core/templatetags/core_tags.py @@ -685,7 +685,10 @@ def get_next_article(context, article): section = article.get_parent_section() articles = ...
fixed test_next_article_main_language to order articles
py
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index <HASH>..<HASH> 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -3611,6 +3611,25 @@ class Project(SaveMixin, ObjectDeleteMixin, RESTObject): path = '/projects/%d/mirror/pull' % self.get_id() self.manager.gitlab.http_post(pat...
Add support for project transfers from the projects interface. (#<I>) See <URL>
py
diff --git a/fs/archive/isofs/__init__.py b/fs/archive/isofs/__init__.py index <HASH>..<HASH> 100644 --- a/fs/archive/isofs/__init__.py +++ b/fs/archive/isofs/__init__.py @@ -24,7 +24,7 @@ from .. import base from .utils import iso_path_slugify -class _ISOFile(io.RawIOBase): +class ISOFile(io.RawIOBase): de...
Make ISOFile a public class
py
diff --git a/python/thunder/util/load.py b/python/thunder/util/load.py index <HASH>..<HASH> 100644 --- a/python/thunder/util/load.py +++ b/python/thunder/util/load.py @@ -4,7 +4,7 @@ Utilities for loading and preprocessing data import pyspark -from numpy import array, mean, cumprod, append, mod, ceil, size +from n...
Added linear and nonlinear (polynomial) detrending for preprocessing
py
diff --git a/python/jsbeautifier.py b/python/jsbeautifier.py index <HASH>..<HASH> 100755 --- a/python/jsbeautifier.py +++ b/python/jsbeautifier.py @@ -225,7 +225,7 @@ class Beautifier: self.output[-1] == ' '\ or self.output[-1] == self.indent_string \ or (eat_new...
Vastly improve python speed Processing time on a 2 MB benchmark js dropped from minute to <I>s.
py
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index <HASH>..<HASH> 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -1447,7 +1447,7 @@ class GroupBy(_GroupBy): @Appender(_common_see_also) def ohlc(self) -> DataFrame: """ - Compu...
DOC: update ohlc docstring so that it reflects the real use #<I> (#<I>)
py
diff --git a/lib/linearfit.py b/lib/linearfit.py index <HASH>..<HASH> 100644 --- a/lib/linearfit.py +++ b/lib/linearfit.py @@ -382,8 +382,8 @@ def geomap_rscale(xyin,xyref): yshift = yi0 - (-xr0*sthetay + yr0*cthetay) rotmat = np.array([[cthetax,sthetax],[-sthetay,cthetay]]) - P = np.array([cthetax,s...
Corrected problem with reported coeffs for fit from new 'geomap_rscale()' function in linearfit. git-svn-id: <URL>
py
diff --git a/examples/aws_sns_registration_service.py b/examples/aws_sns_registration_service.py index <HASH>..<HASH> 100644 --- a/examples/aws_sns_registration_service.py +++ b/examples/aws_sns_registration_service.py @@ -20,10 +20,10 @@ class AWSSNSRegistrationService(object): logger = logging.getLogger('log.{}'...
Replaced deprecated kwargs declaration in example
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ from setuptools import setup, find_packages setup(name = "svg.charts", - version = "2.0", + version = "2.0.1", description = "Python SVG Charting Library", long_description = open('readme.txt').read(...
Bumped to <I> after release of <I> Removed src directory
py
diff --git a/deis/settings.py b/deis/settings.py index <HASH>..<HASH> 100644 --- a/deis/settings.py +++ b/deis/settings.py @@ -4,6 +4,7 @@ Django settings for the Deis project. from __future__ import unicode_literals import os.path +import sys import tempfile PROJECT_ROOT = os.path.normpath(os.path.join(os.path...
add dynamic confd settings lookup (with local_settings override)
py
diff --git a/libtmux/test.py b/libtmux/test.py index <HASH>..<HASH> 100644 --- a/libtmux/test.py +++ b/libtmux/test.py @@ -4,6 +4,7 @@ import logging import os import tempfile import time +import warnings from typing import Optional from .exc import WaitTimeout @@ -24,6 +25,10 @@ def retry(seconds: Optional[floa...
chore: Add DeprecationWarning for retry()
py
diff --git a/river/models/fields/state.py b/river/models/fields/state.py index <HASH>..<HASH> 100644 --- a/river/models/fields/state.py +++ b/river/models/fields/state.py @@ -23,10 +23,9 @@ classes = [] class StateField(models.ForeignKey): - def __init__(self, state_model=State, object_manager=WorkflowObjectMan...
#<I>: object_manager argument is removed from state field because there is no automatic injection of workflow manager. It should be used explicitly.
py
diff --git a/sphinx_gallery/gen_rst.py b/sphinx_gallery/gen_rst.py index <HASH>..<HASH> 100644 --- a/sphinx_gallery/gen_rst.py +++ b/sphinx_gallery/gen_rst.py @@ -589,9 +589,13 @@ def generate_file_rst(fname, target_dir, src_dir, gallery_conf): example_rst += text2string(bcontent) + '\n' ...
Render Jupyter Notebooks from not executed scripts
py
diff --git a/test/test_smbus.py b/test/test_smbus.py index <HASH>..<HASH> 100644 --- a/test/test_smbus.py +++ b/test/test_smbus.py @@ -1,4 +1,4 @@ -from smbus import SMBus, ffi, list_to_smbus_data, smbus_data_to_list +from smbus import SMBus import py def pytest_funcarg__smbus(*args, **kwargs): @@ -52,6 +52,10 @@ d...
move imports to the the corresponding tests
py
diff --git a/setuptools/package_index.py b/setuptools/package_index.py index <HASH>..<HASH> 100755 --- a/setuptools/package_index.py +++ b/setuptools/package_index.py @@ -806,7 +806,8 @@ class PackageIndex(Environment): os.system("svn checkout%s -q %s %s" % (creds, url, filename)) return filename - ...
Make PackageIndex._vcs_split_rev_from_url a static method (as it doesn't have any instance or class references).
py
diff --git a/sos/plugins/pacemaker.py b/sos/plugins/pacemaker.py index <HASH>..<HASH> 100644 --- a/sos/plugins/pacemaker.py +++ b/sos/plugins/pacemaker.py @@ -74,12 +74,16 @@ class Pacemaker(Plugin): "/var/lib/pacemaker/cib/cib.xml", # Pacemaker 2.x default log locations - "/var/l...
[pacemaker] Collect Pacemaker <I> log locations Upstream changed the intended new log locations in the Pacemaker <I> release cycle, so add them (they will stay the same in the <I> final release). Keep the /var/log/cluster locations added previously, as many users prefer to configure those. Resolves: #<I>
py
diff --git a/psamm/tests/test_command.py b/psamm/tests/test_command.py index <HASH>..<HASH> 100644 --- a/psamm/tests/test_command.py +++ b/psamm/tests/test_command.py @@ -20,7 +20,6 @@ from __future__ import unicode_literals import sys -import io import os import argparse import shutil @@ -622,8 +621,8 @@ class ...
Fixed test case for test_run_vis_recolor
py
diff --git a/examples/PennTreebank/PTB-LSTM.py b/examples/PennTreebank/PTB-LSTM.py index <HASH>..<HASH> 100755 --- a/examples/PennTreebank/PTB-LSTM.py +++ b/examples/PennTreebank/PTB-LSTM.py @@ -150,7 +150,7 @@ def get_config(): [ScalarStats(['cost'], prefix='test')], tower_name='InferenceTowerTest'), ...
fix deprecated usage in examples
py
diff --git a/web/core/application.py b/web/core/application.py index <HASH>..<HASH> 100755 --- a/web/core/application.py +++ b/web/core/application.py @@ -187,7 +187,17 @@ class Application(object): if callable(handler): args = list(request.remainder) if args and args[0] == '': del args[0] - kwargs = g...
WebOb differences for endpoint kwargs.
py
diff --git a/nurbs/Surface.py b/nurbs/Surface.py index <HASH>..<HASH> 100644 --- a/nurbs/Surface.py +++ b/nurbs/Surface.py @@ -200,8 +200,9 @@ class Surface(object): del self._mSurfPts2D[:] def read_ctrlpts(self, filename=''): - # Clean up the control points lists, if necessary + # Cle...
Surface::read_ctrlpts should also clean up the surf points before running
py
diff --git a/python_modules/dagster/dagster/core/test_utils.py b/python_modules/dagster/dagster/core/test_utils.py index <HASH>..<HASH> 100644 --- a/python_modules/dagster/dagster/core/test_utils.py +++ b/python_modules/dagster/dagster/core/test_utils.py @@ -1,5 +1,6 @@ import datetime import os +import sys import t...
Log original exception before trying to clean up a test instace Summary: Right now if a test fails and then the cleanup fails it only logs the cleanup fail, making it hard to track down errors. Add the original exception to the logs before attempting to clean up. Test Plan: Simulate a failure in poll_for_step_start()...
py
diff --git a/holoviews/core/options.py b/holoviews/core/options.py index <HASH>..<HASH> 100644 --- a/holoviews/core/options.py +++ b/holoviews/core/options.py @@ -123,15 +123,14 @@ class Options(param.Parameterized): def __init__(self, key=None, allowed_keywords=None, **kwargs): - - allowed_keywords = s...
Moved super call to bottom of Options constructor A bad interaction between param and nosetests would inexplicably cause AttributeError: 'Options' object has no attribute 'kwargs in Options.__repr__ when running nosetests.
py
diff --git a/asammdf/gui/widgets/file.py b/asammdf/gui/widgets/file.py index <HASH>..<HASH> 100644 --- a/asammdf/gui/widgets/file.py +++ b/asammdf/gui/widgets/file.py @@ -480,7 +480,11 @@ class FileWidget(QtWidgets.QWidget): else: for i, group in enumerate(self.mdf.groups): channe...
show channel group comment in the channels tree
py
diff --git a/titlecase/__init__.py b/titlecase/__init__.py index <HASH>..<HASH> 100755 --- a/titlecase/__init__.py +++ b/titlecase/__init__.py @@ -71,7 +71,7 @@ def create_wordlist_filter(path_to_config=None): """ if path_to_config is None: path_to_config = pathlib.Path.home() / ".titlecase.txt" - ...
manually coerce pathlib string Prior to py<I>, pathlib wouldn't implicitly convert
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ AUTHOR = "Erin O'Connell" VERSION = "0.2.1" # What packages are required for this module to be executed? -REQUIRED = ["requests", "keyboard"] +REQUIRED = ["requests", "keyboard", "pyobjc-framework-Quartz; sy...
added Qaurtz to the required list when platform is darwin
py
diff --git a/troposphere/__init__.py b/troposphere/__init__.py index <HASH>..<HASH> 100644 --- a/troposphere/__init__.py +++ b/troposphere/__init__.py @@ -1,10 +1,11 @@ -# Copyright (c) 2011-2012, Mark Peek <mark@peek.org> +# Copyright (c) 2011-2013, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE f...
Ensure that resource names are alphanumeric
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,9 @@ extra_cflags = [] extra_link_args = [] if platform.uname().system == 'Windows': - extra_cflags = ['/O2'] + # For MSVC only + if "MSC" in platform.python_compiler(): + extra_cflags = ['/O2'] ...
Fix build with mingw python /O2 compiler option is not valid for gcc or clang in mingw. So, check if the python is used in MSVC environment.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -21,22 +21,14 @@ ENCODING = "utf8" pkg_info = {} -class ReleaseCommand(setuptools.Command): - user_options = [] +def get_release_command_class(): + try: + from releasecmd import ReleaseCommand + except Imp...
Replace ReleaseCommand class with the releasecmd package
py
diff --git a/openquakeserver/engine/views.py b/openquakeserver/engine/views.py index <HASH>..<HASH> 100644 --- a/openquakeserver/engine/views.py +++ b/openquakeserver/engine/views.py @@ -13,7 +13,7 @@ METHOD_NOT_ALLOWED = 405 JSON = 'application/json' IGNORE_FIELDS = ('base_path', 'export_dir', 'owner') -GEOM_FIELD...
engine/views: Added risk-related geom field names to GEOM_FIELDS constant.
py
diff --git a/WrightTools/diagrams/WMEL.py b/WrightTools/diagrams/WMEL.py index <HASH>..<HASH> 100644 --- a/WrightTools/diagrams/WMEL.py +++ b/WrightTools/diagrams/WMEL.py @@ -53,7 +53,7 @@ class Subplot: ls=linestyle, zorder=5) # add state names - if type(state_names) == l...
Autopep8 with more agression diagrams
py
diff --git a/tests/test_io.py b/tests/test_io.py index <HASH>..<HASH> 100644 --- a/tests/test_io.py +++ b/tests/test_io.py @@ -1,7 +1,10 @@ import pytest from pikepdf import Pdf +from pikepdf._cpphelpers import fspath from io import BytesIO +from shutil import copy +import sys @pytest.fixture @@ -30,3 +33,11 ...
Add test to check that we do not overwrite input file
py
diff --git a/gorilla/extensionsregistrar.py b/gorilla/extensionsregistrar.py index <HASH>..<HASH> 100644 --- a/gorilla/extensionsregistrar.py +++ b/gorilla/extensionsregistrar.py @@ -35,6 +35,17 @@ class ExtensionsRegistrar(object): List of packages and modules to scan recursively. patch : bool, o...
Add missing sections from the docstring.
py
diff --git a/test/test_buffer.py b/test/test_buffer.py index <HASH>..<HASH> 100644 --- a/test/test_buffer.py +++ b/test/test_buffer.py @@ -172,3 +172,10 @@ def test_get_exceptions(): @with_setup(setup=cleanup) def test_contains(): ok(vim.current.buffer in vim.buffers) + +@with_setup(setup=cleanup) +def test_set_...
Add test that replacing an entire Range does exactly that
py
diff --git a/lib/process.py b/lib/process.py index <HASH>..<HASH> 100644 --- a/lib/process.py +++ b/lib/process.py @@ -171,13 +171,13 @@ def mprocess(name, config_path, port=None, timeout=180): return (proc.pid, host) -def kill_mprocess(pid, timeout=10): +def kill_mprocess(pid, timeout=20): """kill proces...
kill mongod/mongos process with '-2' signal instead of '-<I>'; change timeout from <I> to <I> seconds
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -21,8 +21,9 @@ setup( packages=find_packages("src"), include_package_data=True, python_requires=">=3.6", - install_requires=["fonttools[ufo,lxml] >= 3.34.0", "attrs >= 18.2.0"], + install_requires=["fontto...
make lxml optional requiring lxml is too heavy-handed, given that fonttools itself doesn't require and neither does defcon (which is similar to ufoLib2). There still isn't a pre-compiled wheel for lxml for Python <I> on PyPI. Better to keep it optional, i.e. 'pip install ufoLib2[lxml]'.
py
diff --git a/pusherclient/connection.py b/pusherclient/connection.py index <HASH>..<HASH> 100755 --- a/pusherclient/connection.py +++ b/pusherclient/connection.py @@ -19,6 +19,7 @@ class Connection(Thread): self.event_callbacks = {} + self.disconnect_called = False self.needs_reconnect = Fa...
Add flag to signal disconnection, as assignment to the needs_reconnect flag can race with on_error.
py
diff --git a/frames.py b/frames.py index <HASH>..<HASH> 100644 --- a/frames.py +++ b/frames.py @@ -7,7 +7,7 @@ __all__ = [ import sys -NATIVE = True if hasattr(sys, '_getframe') else False +NATIVE = hasattr(sys, '_getframe') if not NATIVE: try:
Simplifying `NATIVE` check No need to turn bools into bools.
py
diff --git a/contrib/pytest_twisted/__init__.py b/contrib/pytest_twisted/__init__.py index <HASH>..<HASH> 100644 --- a/contrib/pytest_twisted/__init__.py +++ b/contrib/pytest_twisted/__init__.py @@ -1,5 +1,6 @@ """ TODO: + + switching on this plugin breaks 'setup_method' mechanism which then is not previously call...
[svn r<I>] Added comment due to the breaking of the setup_method() mechanism. --HG-- branch : trunk
py
diff --git a/rqalpha/model/asset_position.py b/rqalpha/model/asset_position.py index <HASH>..<HASH> 100644 --- a/rqalpha/model/asset_position.py +++ b/rqalpha/model/asset_position.py @@ -227,7 +227,7 @@ class AssetPosition(AbstractPosition): else: if trade.position_effect == POSITION_EFFECT.CLOSE_...
AssetPosition support exercise trade
py
diff --git a/telldus/telldus.py b/telldus/telldus.py index <HASH>..<HASH> 100644 --- a/telldus/telldus.py +++ b/telldus/telldus.py @@ -51,6 +51,15 @@ class TelldusCore(object): device.set_parameter(key, value) return device + def send_raw_command(self, command, reserved=0): + return se...
Extend TellusCore with some more methods
py
diff --git a/Lib/ufo2ft/featureWriters/baseFeatureWriter.py b/Lib/ufo2ft/featureWriters/baseFeatureWriter.py index <HASH>..<HASH> 100644 --- a/Lib/ufo2ft/featureWriters/baseFeatureWriter.py +++ b/Lib/ufo2ft/featureWriters/baseFeatureWriter.py @@ -154,7 +154,13 @@ class BaseFeatureWriter: raise NotImplementedEr...
BaseFeatureWriter: _insert() may also insert anchorDefs
py
diff --git a/OpenPNM/Base/__Base__.py b/OpenPNM/Base/__Base__.py index <HASH>..<HASH> 100644 --- a/OpenPNM/Base/__Base__.py +++ b/OpenPNM/Base/__Base__.py @@ -354,9 +354,14 @@ class Base(dict): r''' List the OpenPNM methods on the object ''' + header = '-'*80 a = [] [...
Improved output of OpenPNM_methods
py
diff --git a/tests/test_generic_processor.py b/tests/test_generic_processor.py index <HASH>..<HASH> 100644 --- a/tests/test_generic_processor.py +++ b/tests/test_generic_processor.py @@ -1706,6 +1706,9 @@ class TestImportToRichRootDelete(TestImportToPackDelete): class TestImportToRichRootDeleteNew(TestImportToPackDe...
Add missing test cases for multilevel deletes in 2a dn <I>-rich-root fast imports.
py
diff --git a/anytemplate/api.py b/anytemplate/api.py index <HASH>..<HASH> 100644 --- a/anytemplate/api.py +++ b/anytemplate/api.py @@ -1,5 +1,5 @@ # -# Copyright (C) 2015 Satoru SATOH <ssato @ redhat.com> +# Copyright (C) 2015 - 2018 Satoru SATOH <ssato @ redhat.com> # License: MIT # # Suppress warning of list_engi...
enhancement: support to load template from stdin '-'
py
diff --git a/IndexedRedis/fields/pickle.py b/IndexedRedis/fields/pickle.py index <HASH>..<HASH> 100644 --- a/IndexedRedis/fields/pickle.py +++ b/IndexedRedis/fields/pickle.py @@ -25,7 +25,9 @@ except NameError: class IRPickleField(IRField): ''' - IRPickleField - A field which pickles its data before storage and l...
Add note to IRPickleField that it currently doesnt support strings/bytes
py
diff --git a/tests/test_objects.py b/tests/test_objects.py index <HASH>..<HASH> 100644 --- a/tests/test_objects.py +++ b/tests/test_objects.py @@ -28,7 +28,6 @@ from txmongo.gridfs import GridFS, GridIn, GridOut, GridOutIterator, errors from txmongo._gridfs.errors import NoFile from twisted.trial import unittest fro...
one more check for py3 removed
py
diff --git a/torchvision/datasets/lsun.py b/torchvision/datasets/lsun.py index <HASH>..<HASH> 100644 --- a/torchvision/datasets/lsun.py +++ b/torchvision/datasets/lsun.py @@ -67,7 +67,7 @@ class LSUN(VisionDataset): Args: root (string): Root directory for the database files. classes (string or li...
fix lsun docstring example (#<I>)
py
diff --git a/ontrack-delivery/utils.py b/ontrack-delivery/utils.py index <HASH>..<HASH> 100644 --- a/ontrack-delivery/utils.py +++ b/ontrack-delivery/utils.py @@ -1,7 +1,9 @@ -import os +import subprocess def run_command(executable, args): - co_code = os.spawnv(os.P_WAIT, executable, args) + arguments = [exe...
Release: Using `subprocess` to launch commands
py
diff --git a/yowsup/demos/cli/layer.py b/yowsup/demos/cli/layer.py index <HASH>..<HASH> 100644 --- a/yowsup/demos/cli/layer.py +++ b/yowsup/demos/cli/layer.py @@ -181,10 +181,11 @@ class YowsupCliLayer(Cli, YowInterfaceLayer): entity = ListGroupsIqProtocolEntity() self.toLower(entity) - #...
Fixed #<I> Leave a group in cli demo
py
diff --git a/setuptools/command/test.py b/setuptools/command/test.py index <HASH>..<HASH> 100644 --- a/setuptools/command/test.py +++ b/setuptools/command/test.py @@ -72,10 +72,6 @@ class test(Command): "You may specify a module or a suite, but not both" ) - self.test_args = [self...
Calculate test_args on demand rather than setting an attribute.
py
diff --git a/photutils/aperture/mask.py b/photutils/aperture/mask.py index <HASH>..<HASH> 100644 --- a/photutils/aperture/mask.py +++ b/photutils/aperture/mask.py @@ -48,6 +48,33 @@ class ApertureMask: """ return self.data.shape + def get_overlap_slices(self, shape): + """ + Get sli...
Add get_overlap_slices to ApertureMask
py
diff --git a/ecstatic/conf.py b/ecstatic/conf.py index <HASH>..<HASH> 100644 --- a/ecstatic/conf.py +++ b/ecstatic/conf.py @@ -6,8 +6,3 @@ class EcstaticConf(AppConf): COLLECT_BUILT = True BUILD_INCLUDES = ['*'] BUILD_EXCLUDES = ['CVS', '.*', '*~'] - - class Meta: - required = [ - 'B...
Remove BUILD_ROOT requirement
py
diff --git a/flake8_eradicate.py b/flake8_eradicate.py index <HASH>..<HASH> 100644 --- a/flake8_eradicate.py +++ b/flake8_eradicate.py @@ -63,7 +63,6 @@ class Checker(object): 'this may result in false positives' ), action='store_true', - type=None, par...
Fix for latest flake8 Resolves #<I> - `store_true` + `type` doesn't make sense
py
diff --git a/hydra_base/db/model.py b/hydra_base/db/model.py index <HASH>..<HASH> 100644 --- a/hydra_base/db/model.py +++ b/hydra_base/db/model.py @@ -1364,7 +1364,7 @@ class Project(Base, Inspect): network_projects_i = network_project_qry.outerjoin(Network).outerjoin(NetworkOwner).filter( Network...
Remove order_by from project query as it was causing an error and it was not necessary
py
diff --git a/nyawc/Crawler.py b/nyawc/Crawler.py index <HASH>..<HASH> 100644 --- a/nyawc/Crawler.py +++ b/nyawc/Crawler.py @@ -124,7 +124,7 @@ class Crawler: while not self.__stopped: time.sleep(1) except (KeyboardInterrupt, SystemExit): - pass + self.__crawl...
Run crawler stop callback on sigint. Fixed OrderDict mutated during iteration bug on crawler stop while not all threads are finished.
py