diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/nodeconductor/iaas/handlers.py b/nodeconductor/iaas/handlers.py index <HASH>..<HASH> 100644 --- a/nodeconductor/iaas/handlers.py +++ b/nodeconductor/iaas/handlers.py @@ -32,10 +32,12 @@ def create_initial_security_groups(sender, instance=None, created=False, **kwarg if not created: return +...
Fix default security groups creation NC-<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -21,5 +21,5 @@ setup( author='James E', author_email='naught0@github.com', url='https://github.com/naught0/lolrune', - license='MIT', + license='MIT' )
trailing commas are for the birds
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup -setup(name='pylib', +setup(name='pylib_kenl380', version='0.8.8', description='Python shared library', url='https://github.com/kenlowrie/pylib',
Give it a unique name for PyPI pylib is already taken, so renamed to pylib_kenl<I>
py
diff --git a/pwnypack/shellcode/translate.py b/pwnypack/shellcode/translate.py index <HASH>..<HASH> 100644 --- a/pwnypack/shellcode/translate.py +++ b/pwnypack/shellcode/translate.py @@ -67,14 +67,23 @@ def translate(env, func, *args, **kwargs): stack.append(getattr(obj, func_code.co_names[op.arg])) ...
Allow translated shellcode to call with keyword.
py
diff --git a/holoviews/core/util.py b/holoviews/core/util.py index <HASH>..<HASH> 100644 --- a/holoviews/core/util.py +++ b/holoviews/core/util.py @@ -231,14 +231,18 @@ def deprecated_opts_signature(args, kwargs): Returns whether opts.apply_groups should be used (as a bool) and the corresponding options. ...
Add support for literal opts format (#<I>)
py
diff --git a/shinken/log.py b/shinken/log.py index <HASH>..<HASH> 100644 --- a/shinken/log.py +++ b/shinken/log.py @@ -206,6 +206,7 @@ class __ConsoleLogger: self._log(Log.DEBUG, msg, *args, **kwargs) def info(self, msg, *args, **kwargs): + kwargs.setdefault('display_level', False) self....
Fix: console_logger must not display level for INFO-level. INFO level is used for emitting state-logs, too.
py
diff --git a/webview/platforms/gtk.py b/webview/platforms/gtk.py index <HASH>..<HASH> 100755 --- a/webview/platforms/gtk.py +++ b/webview/platforms/gtk.py @@ -327,6 +327,9 @@ class BrowserView: response = dialog.run() if response == gtk.ResponseType.OK: + if dialog_type == SAVE_DIALOG: + ...
Update gtk.py Save file dialog should return one file not a tuple of files. This change is to keep window.create_file_dialog(webview.SAVE_DIALOG) standardized and returning a string of a single file on linux as it does in the other platoforms
py
diff --git a/salt/grains/core.py b/salt/grains/core.py index <HASH>..<HASH> 100644 --- a/salt/grains/core.py +++ b/salt/grains/core.py @@ -1299,6 +1299,7 @@ def os_data(): elif grains['kernel'] == 'Darwin': osrelease = __salt__['cmd.run']('sw_vers -productVersion') grains['os'] = 'MacOS' + ...
Give MacOS an 'os_family' grain - MacOS seemed to be the only OS without an os_family named. - Formulas based on os_family for cross platform were unnecessarily difficult because of this.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -10,4 +10,5 @@ setup(name='pywws', author_email='jim@jim-easterbrook.me.uk', url='http://code.google.com/p/pywws/', packages=['pywws'], + package_data={'pywws' : ['services/*.ini']}, )
Added 'services' config files to stuff that gets installed by setup.py.
py
diff --git a/test/test_model.py b/test/test_model.py index <HASH>..<HASH> 100644 --- a/test/test_model.py +++ b/test/test_model.py @@ -2,8 +2,8 @@ """ Test the model build """ -from pymodel import Model -from pymodel import Param +from pymodeler import Model +from pymodeler import Param class Parent(Model): ...
I guess nosetest is smarter than I am...
py
diff --git a/master/buildbot/reporters/http.py b/master/buildbot/reporters/http.py index <HASH>..<HASH> 100644 --- a/master/buildbot/reporters/http.py +++ b/master/buildbot/reporters/http.py @@ -112,4 +112,4 @@ class HttpStatusPush(HttpStatusPushBase): response = yield self._http.post("", json=self.format_fn(b...
TxRequestResponseWrapper has a 'code' property This should fix :bug:`<I>`
py
diff --git a/tests/test_sync.py b/tests/test_sync.py index <HASH>..<HASH> 100644 --- a/tests/test_sync.py +++ b/tests/test_sync.py @@ -573,4 +573,6 @@ class SyncTest(unittest.TestCase): run_peru_command(['sync', '--quiet'], self.test_dir) finally: sys.stderr = old_stderr - self...
stop assuming empty stderr in test_duplicate_keys_warning That test was getting confused by unrelated output on stderr, namely the warning where an asyncio coroutine takes too long. (This warning tends not to trigger for me until I test on Windows, where shelling out to git is slow.) Have the test look for a more spec...
py
diff --git a/sphinxcontrib/chapeldomain.py b/sphinxcontrib/chapeldomain.py index <HASH>..<HASH> 100644 --- a/sphinxcontrib/chapeldomain.py +++ b/sphinxcontrib/chapeldomain.py @@ -801,8 +801,8 @@ class ChapelDomain(Domain): # "Fuzzy" search mode. searchname = '.' + name ...
fix flake8 error Put boolean and at end of line, instead of beginning of line.
py
diff --git a/tests/test_puppetforge.py b/tests/test_puppetforge.py index <HASH>..<HASH> 100644 --- a/tests/test_puppetforge.py +++ b/tests/test_puppetforge.py @@ -323,7 +323,8 @@ class TestPuppetForgeBackendArchive(TestCaseBackendArchive): def setUp(self): super().setUp() - self.backend = PuppetF...
[tests] Modify puppetforge tests when fetching from archive This patch adds two different backend objects (one fetches data from remote a data source and the other one from an archive) in order to ensure that backend and method params are initialized in the same way independently from which method is called (fetch or ...
py
diff --git a/pandas/tests/io/test_parquet.py b/pandas/tests/io/test_parquet.py index <HASH>..<HASH> 100644 --- a/pandas/tests/io/test_parquet.py +++ b/pandas/tests/io/test_parquet.py @@ -17,6 +17,7 @@ from pandas.compat import is_platform_windows from pandas.compat.pyarrow import ( pa_version_under2p0, pa_ve...
COMPAT: Fix FutureWarning in tests with pyarrow <I> (#<I>)
py
diff --git a/test/test_zotero.py b/test/test_zotero.py index <HASH>..<HASH> 100644 --- a/test/test_zotero.py +++ b/test/test_zotero.py @@ -173,7 +173,7 @@ class ZoteroTests(unittest.TestCase): content_type='text/plain', body=self.keys_response) response = zot.items() - self.ass...
Decode test result to UTF-8 It's returned as b'whatever' in Py3, so we need to explicitly decode it, which is a no-op in Py2.
py
diff --git a/superset/db_engine_specs.py b/superset/db_engine_specs.py index <HASH>..<HASH> 100644 --- a/superset/db_engine_specs.py +++ b/superset/db_engine_specs.py @@ -317,7 +317,10 @@ class PrestoEngineSpec(BaseEngineSpec): if not indexes: return {} cols = indexes[0].get('column_names...
Fix partition query (#<I>)
py
diff --git a/basil/HL/i2c.py b/basil/HL/i2c.py index <HASH>..<HASH> 100644 --- a/basil/HL/i2c.py +++ b/basil/HL/i2c.py @@ -54,6 +54,8 @@ class i2c(RegisterHardwareLayer): return self.ADDR def set_size(self, value): + if self._mem_size < value: + raise ValueError('Size of data (%d b...
ENH: rise exception on too big read size
py
diff --git a/gns3server/web/web_server.py b/gns3server/web/web_server.py index <HASH>..<HASH> 100644 --- a/gns3server/web/web_server.py +++ b/gns3server/web/web_server.py @@ -137,7 +137,12 @@ class WebServer: if PortManager.instance().udp_ports: log.warning("UDP ports are still used {}".format(Por...
Use asyncio.all_tasks instead of deprecated method for Python <I> compatibility.
py
diff --git a/PySimpleGUI.py b/PySimpleGUI.py index <HASH>..<HASH> 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -224,7 +224,7 @@ class ToolTip: (inspired by https://stackoverflow.com/a/36221216) """ - def __init__(self, widget, text, timeout=1000): + def __init__(self, widget, text, timeout=DEFA...
Changed tooltip location. New window Disable / Enable - experimental
py
diff --git a/satpy/scene.py b/satpy/scene.py index <HASH>..<HASH> 100644 --- a/satpy/scene.py +++ b/satpy/scene.py @@ -1037,13 +1037,14 @@ class Scene(MetadataObject): Parameters ---------- - scene : satpy scene gvtype : gv plot type, optional, default gv.Image One of gv...
Add description of arguments to geoviews method docstring
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -53,6 +53,7 @@ install_reqs = [ 'scikit-learn>=0.17', 'empyrical>=0.1.11', 'statsmodels>=0.6.1', + 'jsonschema>=2.5.1', ] test_reqs = ['nose>=1.3.7', 'nose-parameterized>=0.5.0', 'runipy>=0.1.3']
BLD: Add missing jsonschema requirement. Required for reading with IPython.nbformat.
py
diff --git a/callhorizons/callhorizons.py b/callhorizons/callhorizons.py index <HASH>..<HASH> 100644 --- a/callhorizons/callhorizons.py +++ b/callhorizons/callhorizons.py @@ -212,8 +212,8 @@ class query(): Parameters ---------- - discreteepochs : list - list of floats or strings,...
Accept numpy array in set_discreteepochs
py
diff --git a/tests/llist_test.py b/tests/llist_test.py index <HASH>..<HASH> 100644 --- a/tests/llist_test.py +++ b/tests/llist_test.py @@ -368,7 +368,6 @@ class testsllist(unittest.TestCase): ref_result = ref[split:] + ref[:split] ll = sllist(ref) new_first = ll.nodeat(split) - ...
Removed unneccessary lines
py
diff --git a/aospy/calc.py b/aospy/calc.py index <HASH>..<HASH> 100644 --- a/aospy/calc.py +++ b/aospy/calc.py @@ -642,6 +642,9 @@ class Calc(object): os.makedirs(self.dir_archive) # tarfile 'append' mode won't overwrite the old file, which we want. # So open in 'read' mode, extract the f...
Bugfix: Create tar file on archive if not there already
py
diff --git a/km3pipe/hardware.py b/km3pipe/hardware.py index <HASH>..<HASH> 100644 --- a/km3pipe/hardware.py +++ b/km3pipe/hardware.py @@ -115,7 +115,7 @@ class Detector(object): except ValueError: det_id, self.version = first_line.split() self.det_id = int(det_id) - validi...
Be more liberal with km3net dataformat definitions
py
diff --git a/psiturk/dashboard_server.py b/psiturk/dashboard_server.py index <HASH>..<HASH> 100644 --- a/psiturk/dashboard_server.py +++ b/psiturk/dashboard_server.py @@ -203,7 +203,7 @@ def approve_worker(): if "assignmentId" in request.json: assignment_id = request.json["assignmentId"] se...
Fix reject_worker on approve bug.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -38,7 +38,7 @@ setup(name='python-textops', long_description=long_description, classifiers=[ "Intended Audience :: Developers", - "Development Status :: 3 - Alpha", + "Development Sta...
force sphinx version to <I>
py
diff --git a/art/test2.py b/art/test2.py index <HASH>..<HASH> 100644 --- a/art/test2.py +++ b/art/test2.py @@ -2,8 +2,6 @@ ''' >>> import os >>> import random ->>> import sys ->>> import codecs >>> from art import * >>> from art.art_param import TEST_FILTERED_FONTS >>> for i in sorted(TEST_FILTERED_FONTS):
fix : some unused import removed from test2
py
diff --git a/avatar/models.py b/avatar/models.py index <HASH>..<HASH> 100644 --- a/avatar/models.py +++ b/avatar/models.py @@ -16,7 +16,8 @@ try: except ImportError: import Image -from avatar import AVATAR_STORAGE_DIR, AVATAR_RESIZE_METHOD +from avatar import AVATAR_STORAGE_DIR, AVATAR_RESIZE_METHOD, \ + ...
Don't update the other avatars if the maximum is set to 1: it shouldn't happen.
py
diff --git a/noxfile.py b/noxfile.py index <HASH>..<HASH> 100644 --- a/noxfile.py +++ b/noxfile.py @@ -11,7 +11,7 @@ INIT_PY = ROOT.joinpath("src", "resolvelib", "__init__.py") nox.options.sessions = ["lint", "tests-3.8"] -@nox.session() +@nox.session(python="3.8") def lint(session): session.install(".[lint]...
Explicitly use Python <I> for lint and release
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 @@ -9,7 +9,7 @@ import os import sys from datetime import date -from pkg_resources import get_distribution +from importlib.metadata import version # -- Path setup ----------------...
docs(conf): replace pkg_resources with importlib The doc is build with python <I>, which includes the `importlib` API to get the package version. Its use is recommended by `setuptools-scm` for the doc.
py
diff --git a/eng/tox/install_depend_packages.py b/eng/tox/install_depend_packages.py index <HASH>..<HASH> 100644 --- a/eng/tox/install_depend_packages.py +++ b/eng/tox/install_depend_packages.py @@ -32,7 +32,8 @@ MINIMUM_VERSION_SUPPORTED_OVERRIDE = { 'msrest': '0.6.10', 'six': '1.9', 'typing-extensions'...
override mindependency for cryptography (#<I>)
py
diff --git a/fost_authn/authentication.py b/fost_authn/authentication.py index <HASH>..<HASH> 100644 --- a/fost_authn/authentication.py +++ b/fost_authn/authentication.py @@ -7,7 +7,8 @@ from django.conf import settings from fost_authn.signature import fost_hmac_signature -def _forbid(error = None): +def _forbid(e...
Forbid is always passed an error so it can be instrumented by tests through mocking.
py
diff --git a/packages/vaex-core/vaex/dataframe.py b/packages/vaex-core/vaex/dataframe.py index <HASH>..<HASH> 100644 --- a/packages/vaex-core/vaex/dataframe.py +++ b/packages/vaex-core/vaex/dataframe.py @@ -3348,10 +3348,10 @@ class DataFrame(object): parts += ["<td>%s</td>" % name] virtual = ...
Fixes the info panel where the string types were not being displayed (#<I>)
py
diff --git a/tests/test_logind.py b/tests/test_logind.py index <HASH>..<HASH> 100644 --- a/tests/test_logind.py +++ b/tests/test_logind.py @@ -134,13 +134,16 @@ class TestLogind(dbusmock.DBusTestCase): # Our inhibitor is held out = subprocess.check_output(['systemd-inhibit'], ...
tests: Adjust expected test output for systemd <I> The inhibitor listing looks quite different there, accept both variants.
py
diff --git a/bot/multithreading/scheduler.py b/bot/multithreading/scheduler.py index <HASH>..<HASH> 100644 --- a/bot/multithreading/scheduler.py +++ b/bot/multithreading/scheduler.py @@ -33,9 +33,7 @@ class SchedulerApi: "network", min_workers=0, max_workers=2, max_seconds_idle=DEFAULT_WORKER_POOL_MAX_SECO...
Use a normal worker for background, to avoid problems with it in a creating-destructing loop when being a pool
py
diff --git a/fast_arrow/__init__.py b/fast_arrow/__init__.py index <HASH>..<HASH> 100644 --- a/fast_arrow/__init__.py +++ b/fast_arrow/__init__.py @@ -34,3 +34,6 @@ from fast_arrow.resources.collection import Collection # dividend from fast_arrow.resources.dividend import Dividend + +import warnings +warnings.simpl...
feature #<I>. turn on deprecation warnings for fast_arrow.
py
diff --git a/nodeshot/views.py b/nodeshot/views.py index <HASH>..<HASH> 100755 --- a/nodeshot/views.py +++ b/nodeshot/views.py @@ -462,7 +462,7 @@ def generate_kml(request): # retrieve nodes in 3 different objects depending on the status active = Node.objects.filter(status = 'a').only('name', 'lng', 'la...
Fix issue #<I> reported by @gubi close #<I>
py
diff --git a/anonymoususage/tables/sequence.py b/anonymoususage/tables/sequence.py index <HASH>..<HASH> 100644 --- a/anonymoususage/tables/sequence.py +++ b/anonymoususage/tables/sequence.py @@ -8,6 +8,7 @@ from itertools import imap from operator import eq from collections import deque from .table import Table +fro...
use insert_row() in sequence and added use of RLock
py
diff --git a/src/toil/provisioners/clusterScaler.py b/src/toil/provisioners/clusterScaler.py index <HASH>..<HASH> 100644 --- a/src/toil/provisioners/clusterScaler.py +++ b/src/toil/provisioners/clusterScaler.py @@ -286,10 +286,9 @@ class ScalerThread(ExceptionalThread): totalNodes = len(self.scaler.jobBatc...
Fix: scaler threads not throttled at all
py
diff --git a/edisgo/io/generators_import.py b/edisgo/io/generators_import.py index <HASH>..<HASH> 100644 --- a/edisgo/io/generators_import.py +++ b/edisgo/io/generators_import.py @@ -327,9 +327,10 @@ def oedb(edisgo_object): _validate_generation() # update time series if they were already set - add_gener...
Only update time series when they already exist
py
diff --git a/salt/modules/glance.py b/salt/modules/glance.py index <HASH>..<HASH> 100644 --- a/salt/modules/glance.py +++ b/salt/modules/glance.py @@ -192,7 +192,7 @@ def _add_image(collection, image): return collection def image_create(name, location, profile=None, visibility='public', - protected=N...
keep args in same order as they were before
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -6,15 +6,12 @@ from setuptools import setup with open('README.rst') as readme_file: readme = readme_file.read() -with open('HISTORY.rst') as history_file: - history = history_file.read().replace('.. :changelog:', ''...
docs: Remove the changelog from long description
py
diff --git a/raven/utils/compat.py b/raven/utils/compat.py index <HASH>..<HASH> 100644 --- a/raven/utils/compat.py +++ b/raven/utils/compat.py @@ -54,6 +54,11 @@ def check_threads(): except ImportError: return + # When `threads` is passed in as a uwsgi option, + # `enable-threads` is implied on. +...
uwsgi: also allow `threads` conf setting (#<I>) uwsgi implicitly enables threads when `threads` are set without the need to set `enable-threads`. I've verified this behavior locally even when passing `--threads 0`. uwsgi only needs the key to exist.
py
diff --git a/python_anticaptcha/tasks.py b/python_anticaptcha/tasks.py index <HASH>..<HASH> 100644 --- a/python_anticaptcha/tasks.py +++ b/python_anticaptcha/tasks.py @@ -40,11 +40,17 @@ class NoCaptchaTaskProxylessTask(BaseTask): websiteSToken = None def __init__( - self, website_url, website_key, w...
Add support for recaptchaDataSValue in NoCaptchaTask*
py
diff --git a/panoptes_client/panoptes.py b/panoptes_client/panoptes.py index <HASH>..<HASH> 100644 --- a/panoptes_client/panoptes.py +++ b/panoptes_client/panoptes.py @@ -43,7 +43,7 @@ class Panoptes(object): def __init__( self, - endpoint='https://panoptes.zooniverse.org', + endpoint=None...
Fix setting endpoint in environment variable Closes #<I>
py
diff --git a/spyder/plugins/completion/languageserver/client.py b/spyder/plugins/completion/languageserver/client.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/completion/languageserver/client.py +++ b/spyder/plugins/completion/languageserver/client.py @@ -272,6 +272,13 @@ class LSPClient(QObject, LSPMethodProvid...
LSP: Pass USERPROFILE to the PyLS because some modules require it
py
diff --git a/data/streaming_test.py b/data/streaming_test.py index <HASH>..<HASH> 100755 --- a/data/streaming_test.py +++ b/data/streaming_test.py @@ -15,7 +15,7 @@ import sys, os, time, glob; srcPath = str(sys.argv[1]) targetPath = str(sys.argv[2]) waitTime = float(sys.argv[3]) -files = glob.glob(srcPath+"*") +file...
Sort files by modification date when testing streaming to preserve order
py
diff --git a/sos/collector/__init__.py b/sos/collector/__init__.py index <HASH>..<HASH> 100644 --- a/sos/collector/__init__.py +++ b/sos/collector/__init__.py @@ -667,6 +667,12 @@ class SoSCollector(SoSComponent): msg = ('Cluster type could not be determined and no nodes provided' '\nAb...
[collector] Use jbon cluster is none is determined but we have nodes If we end up with no cluster determination, but have a manual list of nodes provided, then attempt to continue by setting the cluster type to JBON (just a bunch of nodes - our 'none' cluster). This will not address situations where a cluster type ca...
py
diff --git a/exa/util/isotopes.py b/exa/util/isotopes.py index <HASH>..<HASH> 100644 --- a/exa/util/isotopes.py +++ b/exa/util/isotopes.py @@ -121,10 +121,10 @@ def _create(): setattr(ele, "_"+str(tope.A), tope) return ele - with _bz2.open(_path, "rb") as f: - iso = _DF(_json.loads(f.r...
Updated json reading for isotopes
py
diff --git a/delphi/apps/rest_api/api.py b/delphi/apps/rest_api/api.py index <HASH>..<HASH> 100644 --- a/delphi/apps/rest_api/api.py +++ b/delphi/apps/rest_api/api.py @@ -235,7 +235,7 @@ def createProjection(modelID): "value": median_value, } - result.results[n]["values"].appe...
Fix median values getting overridden by upper confidence band
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -10,6 +10,28 @@ from os.path import splitext from distutils.core import Extension +import distutils.sysconfig + + +distutils.sysconfig.get_config_vars() + + +def install_headers(): + dest_dir = path.join(sys.prefix, 'i...
* Try removing some compiler flags
py
diff --git a/asphalt/core/concurrent.py b/asphalt/core/concurrent.py index <HASH>..<HASH> 100644 --- a/asphalt/core/concurrent.py +++ b/asphalt/core/concurrent.py @@ -30,7 +30,7 @@ def executor(func_or_executor: Union[Executor, str, Callable[..., T_Retval]], *, Example use with the default executor (``None``):: ...
Fixed error in the docstring of asphalt.core.concurrent.executor()
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ class InstallHook(install): call, [sys.executable, '-m', 'calmjs.parse.parsers.optimize']) -version = '1.3.0' +version = '1.3.1' classifiers = """ Development Status :: 5 - Production/Stable
beginning calmjs.parse-<I> - should have done this like after the last release...
py
diff --git a/flask_micropub.py b/flask_micropub.py index <HASH>..<HASH> 100644 --- a/flask_micropub.py +++ b/flask_micropub.py @@ -135,6 +135,7 @@ class MicropubClient: 'me': me, 'client_id': self.client_id, 'redirect_uri': redirect_url, + 'response_type': 'code', ...
Include `response_type` in initial auth parameters micropub.rocks client tests die on initial authorization if `response_type=code` is not included in the original parameters
py
diff --git a/loginas/utils.py b/loginas/utils.py index <HASH>..<HASH> 100644 --- a/loginas/utils.py +++ b/loginas/utils.py @@ -13,6 +13,7 @@ signer = TimestampSigner() logger = logging.getLogger(__name__) +username_field = get_user_model().USERNAME_FIELD def login_as(user, request, store_original_user=True): ...
Support custom username field in logout (#<I>) * fix: Support custom User models with customized username fields. * Support customer username in logout as well.
py
diff --git a/cpp_coveralls/coverage.py b/cpp_coveralls/coverage.py index <HASH>..<HASH> 100644 --- a/cpp_coveralls/coverage.py +++ b/cpp_coveralls/coverage.py @@ -230,7 +230,7 @@ def parse_gcov_file(fobj, filename): coverage = [] ignoring = False for line in fobj: - report_fields = line.split(':',...
continue on errors decoding unsupported characters
py
diff --git a/salt/modules/mac_user.py b/salt/modules/mac_user.py index <HASH>..<HASH> 100644 --- a/salt/modules/mac_user.py +++ b/salt/modules/mac_user.py @@ -63,7 +63,7 @@ def _dscl(cmd, ctype='create'): def _first_avail_uid(): uids = set(x.pw_uid for x in pwd.getpwall()) - for idx in range(501, 2 ** 32): +...
Use smaller number for upper limit of mac_user's _first_avail_uid helper function Using 2^<I> as the upper limit causes an OverflowError when unit tests are run on a <I>-bit host. If your OS X host has over 4 billion users, I tip my hat to you.
py
diff --git a/troposphere/cloudfront.py b/troposphere/cloudfront.py index <HASH>..<HASH> 100644 --- a/troposphere/cloudfront.py +++ b/troposphere/cloudfront.py @@ -17,6 +17,17 @@ class ForwardedValues(AWSHelperFn): return self.data +class CacheBehavior(AWSProperty): + props = { + 'TargetOriginId':...
Add CloudFront CacheBehavior (fixes #<I>)
py
diff --git a/pmagpy/mapping/map_magic.py b/pmagpy/mapping/map_magic.py index <HASH>..<HASH> 100755 --- a/pmagpy/mapping/map_magic.py +++ b/pmagpy/mapping/map_magic.py @@ -148,7 +148,9 @@ meas_magic2_2_magic3_map = maps.all_maps['measurements'] meas_magic2_2_magic3_map.update(add_to_all) #measurement data translation ...
mapping update: make sure you map from number (old 3 col) —> measurement_number or from treat_step_num (new 3 col) —> measurement_number, see <I>c9bfc<I>d<I>e2f<I>d2e1b0c9e<I>
py
diff --git a/trunk/metpy/readers/mesonet.py b/trunk/metpy/readers/mesonet.py index <HASH>..<HASH> 100644 --- a/trunk/metpy/readers/mesonet.py +++ b/trunk/metpy/readers/mesonet.py @@ -103,10 +103,14 @@ def remote_mesonet_data(date_time=None, fields=None, site=None, #data too so that we can have a full 24 hour recor...
Put check for site in proper place alongside fetching yesterday's data. Make using current time to fetch mesonet data file account for lag in receiving data. git-svn-id: <URL>
py
diff --git a/phonopy/version.py b/phonopy/version.py index <HASH>..<HASH> 100644 --- a/phonopy/version.py +++ b/phonopy/version.py @@ -32,4 +32,4 @@ # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. -__version__ = "2.7.1" +__version__ = "2.8.0"
Set version <I> for development
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ if __name__ == '__main__': install_requires=[ 'typing', 'pyyaml', - 'trio', + 'trio~=0.4.0', 'include', ], extras_require={
fixed trio version for pypy3 compatibility
py
diff --git a/lib/git/cmd.py b/lib/git/cmd.py index <HASH>..<HASH> 100644 --- a/lib/git/cmd.py +++ b/lib/git/cmd.py @@ -51,11 +51,11 @@ class Git(MethodMissingMixin): return self.git_dir def execute(self, command, - istream = None, - with_status = False, - wit...
style: follow PEP 8 in git/cmd.py Keyword args shouldn't use spaces around the equals sign per PEP 8.
py
diff --git a/zish/core.py b/zish/core.py index <HASH>..<HASH> 100644 --- a/zish/core.py +++ b/zish/core.py @@ -18,10 +18,13 @@ class ZishException(Exception): class ZishLocationException(ZishException): - def __init__(self, line, character, message): + def __init__(self, line, character, description): ...
Line and character numbers unavailable in errors Now they're available as the properties 'line' and 'character' on ZishLocationException. The description of the exception is available as the property 'description'.
py
diff --git a/rebulk/pattern.py b/rebulk/pattern.py index <HASH>..<HASH> 100644 --- a/rebulk/pattern.py +++ b/rebulk/pattern.py @@ -110,9 +110,10 @@ class Pattern(object): :rtype: """ if yield_parent or self.format_all: - match.formatter = self.formatters.get(match.name, self._defau...
Add __parent__ and __children__ magic keys for validator and formatters
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -55,7 +55,11 @@ data_files = [ class custom_install(install): def run(self): install.run(self) - call(['gtk-update-icon-cache', theme_base]) + try: + # ignore failures since the tray ico...
Ignore errors in setup.py due to missing gtk-update-icon-cache utility The tray icon is designed to be an optional component of udiskie and its installation should not break the overall install process.
py
diff --git a/tensorflow_probability/python/distributions/joint_distribution.py b/tensorflow_probability/python/distributions/joint_distribution.py index <HASH>..<HASH> 100644 --- a/tensorflow_probability/python/distributions/joint_distribution.py +++ b/tensorflow_probability/python/distributions/joint_distribution.py @...
Add the ability to use a callable in `_map_measure_over_dists` in `JointDistribution`, in addition to the current ability to use an attribute by name. This functionality is specifically useful for another change, but should be generally useful. PiperOrigin-RevId: <I>
py
diff --git a/master/buildbot/www/service.py b/master/buildbot/www/service.py index <HASH>..<HASH> 100644 --- a/master/buildbot/www/service.py +++ b/master/buildbot/www/service.py @@ -23,6 +23,7 @@ from buildbot.www import sse from buildbot.www import ws from twisted.application import strports from twisted.internet ...
service: fix import failure in case of missing endpoint This happens when switching branches that does not contain a previously "setup.py develop"ed plugin
py
diff --git a/spyderlib/utils/codeanalysis.py b/spyderlib/utils/codeanalysis.py index <HASH>..<HASH> 100644 --- a/spyderlib/utils/codeanalysis.py +++ b/spyderlib/utils/codeanalysis.py @@ -24,7 +24,7 @@ from spyderlib import dependencies #============================================================================== #...
Code analysis: Add @todo marker (from doxygen) This is a part of issue #<I>.
py
diff --git a/hurricane/handlers/comet/handler.py b/hurricane/handlers/comet/handler.py index <HASH>..<HASH> 100644 --- a/hurricane/handlers/comet/handler.py +++ b/hurricane/handlers/comet/handler.py @@ -135,6 +135,8 @@ class UserAwareCometHandler(CometHandler): req = self.pending_requests.pop(msg['raw_data...
Give the UserAwareCometHandler a way to remove users with invalid sessions from the pending requests dictionary
py
diff --git a/pirc522/rfid.py b/pirc522/rfid.py index <HASH>..<HASH> 100644 --- a/pirc522/rfid.py +++ b/pirc522/rfid.py @@ -34,6 +34,8 @@ class RFID(object): reg_tx_control = 0x14 length = 16 + antenna_gain = 0x04 + authed = False irq = threading.Event() @@ -67,6 +69,7 @@ class RFID(object): ...
Add antenna gain adjustment This resolves #<I>
py
diff --git a/synapse/tests/test_cortex.py b/synapse/tests/test_cortex.py index <HASH>..<HASH> 100644 --- a/synapse/tests/test_cortex.py +++ b/synapse/tests/test_cortex.py @@ -2125,9 +2125,11 @@ class CortexTest(s_t_utils.SynTest): await core.eval('[ inet:asn=200 :name=visi ]').spin() await c...
make the :: test confirm the result. (#<I>)
py
diff --git a/morse_talk/encoding.py b/morse_talk/encoding.py index <HASH>..<HASH> 100644 --- a/morse_talk/encoding.py +++ b/morse_talk/encoding.py @@ -83,16 +83,16 @@ def encode(message, encoding_type='default'): if encoding_type == 'default': char = list(message) # char is a list of all the characters i...
changed the loop for checkpoints. 1. line <I>: word- adds more insight to the splitting. 2. line <I>: a simpler for loop to find the checkpoints. 3. line <I>: for each character in the input message rather than the unknown identifier char.
py
diff --git a/virtualchain/lib/blockchain/bitcoin_blockchain/blocks.py b/virtualchain/lib/blockchain/bitcoin_blockchain/blocks.py index <HASH>..<HASH> 100644 --- a/virtualchain/lib/blockchain/bitcoin_blockchain/blocks.py +++ b/virtualchain/lib/blockchain/bitcoin_blockchain/blocks.py @@ -110,7 +110,7 @@ class BlockchainD...
adapt to new interface for getting block headers
py
diff --git a/system_tests/pubsub.py b/system_tests/pubsub.py index <HASH>..<HASH> 100644 --- a/system_tests/pubsub.py +++ b/system_tests/pubsub.py @@ -177,6 +177,7 @@ class TestPubsub(unittest2.TestCase): while count > 0 and not topic.exists(): time.sleep(1) count -= 1 + self.a...
Assert created topic/subscription exists before use. Addresses: <URL>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -30,9 +30,7 @@ setup(name='bugwarrior', install_requires=[ "twiggy", "bitlyapi", - # We use requests ourselves, but we limit the version just so - # jira-python can use it correct...
Loosen version constraint on python-requests. Fixes #<I>.
py
diff --git a/luigi/task.py b/luigi/task.py index <HASH>..<HASH> 100644 --- a/luigi/task.py +++ b/luigi/task.py @@ -140,7 +140,7 @@ class BulkCompleteNotImplementedError(NotImplementedError): pylint thinks anything raising NotImplementedError needs to be implemented in any subclass. bulk_complete isn't like ...
Fix typo in docstring (#<I>) Typo in `BulkCompleteNotImplementedError`
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 @@ -170,7 +170,7 @@ def _build_lv_grid(ding0_grid, network): {'line': Line( id=_['branch'].id_db, ...
Bug fix line length in km instead of m
py
diff --git a/etcd3/client.py b/etcd3/client.py index <HASH>..<HASH> 100644 --- a/etcd3/client.py +++ b/etcd3/client.py @@ -324,7 +324,7 @@ class Etcd3Client(object): def keep_alive_lease(self, lease_id): keep_alive_request = etcdrpc.LeaseKeepAliveRequest(ID=lease_id) - request_stream = [keep_aliv...
Reduce number of keep alive requests to 1
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup -VERSION = "0.11.0" +VERSION = "0.12.0" setup(
- prepare for <I>
py
diff --git a/examples/new_member.py b/examples/new_member.py index <HASH>..<HASH> 100644 --- a/examples/new_member.py +++ b/examples/new_member.py @@ -1,4 +1,4 @@ -# This example requires the 'members' privileged intents +# This example requires the 'members' privileged intent import discord
Fix intents typo in new_member example
py
diff --git a/holoviews/core/pprint.py b/holoviews/core/pprint.py index <HASH>..<HASH> 100644 --- a/holoviews/core/pprint.py +++ b/holoviews/core/pprint.py @@ -19,6 +19,13 @@ class PrintUtils(object): tab = ' ' @classmethod + def serialize(cls, lines): + accumulator = [] + for level, line ...
Added serialize helper method to PrintUtils
py
diff --git a/mwparserfromhell/parser/tokenizer.py b/mwparserfromhell/parser/tokenizer.py index <HASH>..<HASH> 100644 --- a/mwparserfromhell/parser/tokenizer.py +++ b/mwparserfromhell/parser/tokenizer.py @@ -183,7 +183,7 @@ class Tokenizer(object): while True: this = self._read() if th...
Missed another call (<I> seconds -> <I> seconds for 1,<I>,<I> chars).
py
diff --git a/rq_scheduler/scheduler.py b/rq_scheduler/scheduler.py index <HASH>..<HASH> 100644 --- a/rq_scheduler/scheduler.py +++ b/rq_scheduler/scheduler.py @@ -270,7 +270,6 @@ class Scheduler(object): job.meta['repeat'] = int(repeat) - 1 queue = self.get_queue_for_job(job) - self.conne...
No need to add the qkeys the call also takes care of adding the `queue.key`
py
diff --git a/certsuite/cert.py b/certsuite/cert.py index <HASH>..<HASH> 100644 --- a/certsuite/cert.py +++ b/certsuite/cert.py @@ -34,7 +34,8 @@ webapi_results = None @wptserve.handlers.handler def connect_handler(request, response): response.headers.set("Content-Type", "text/html") - response.content = "<p><...
make the links legible on a mobile screen
py
diff --git a/ofp/v0x01/common/action.py b/ofp/v0x01/common/action.py index <HASH>..<HASH> 100644 --- a/ofp/v0x01/common/action.py +++ b/ofp/v0x01/common/action.py @@ -12,7 +12,7 @@ from ofp.v0x01.foundation import basic_types # Enums -class ActionType(enum.Enum): +class OFPActionType(enum.Enum): """Actions as...
[v0x<I>] Fix ActionType name to OFPActionType to follow spec
py
diff --git a/dev.py b/dev.py index <HASH>..<HASH> 100755 --- a/dev.py +++ b/dev.py @@ -123,6 +123,10 @@ def test(suites): warnings.filterwarnings(action='ignore', category=DeprecationWarning, module='webtest.*', message=msg3) + # Selenium tests client side code, so we only test on...
default to skip selenium tests everywhere but py<I>
py
diff --git a/src/transformers/tokenization_utils.py b/src/transformers/tokenization_utils.py index <HASH>..<HASH> 100644 --- a/src/transformers/tokenization_utils.py +++ b/src/transformers/tokenization_utils.py @@ -1126,8 +1126,7 @@ class PreTrainedTokenizer(object): input_ids = [] for ids_or_pair_i...
Fix batch_encode_plus (#<I>)
py
diff --git a/examples/lstm_chime.py b/examples/lstm_chime.py index <HASH>..<HASH> 100644 --- a/examples/lstm_chime.py +++ b/examples/lstm_chime.py @@ -66,5 +66,5 @@ e = theanets.Experiment( input_noise=0.6, max_gradient_norm=10, ) -e.train(batches(scipy.io.netcdf_file(open(TRAIN_NC))), - batches(scipy...
netcdf_file expects a filename not a file object file objects can be used but to do so the mode must be set to 'rb' (i.e. `scipy.io.netcdf_file(open(TRAIN_NC, 'rb'))` )
py
diff --git a/dci/auth_mechanism.py b/dci/auth_mechanism.py index <HASH>..<HASH> 100644 --- a/dci/auth_mechanism.py +++ b/dci/auth_mechanism.py @@ -166,7 +166,7 @@ class SignatureAuthMechanism(BaseMechanism): return signature.is_valid( their_signature=their_signature.encode('utf-8'), s...
Workaround an issue with werkzeug <I> Prior to werkzeug <I>, request.method was not systematically made uppercase to make it case-insensitive. Cf. <URL>
py
diff --git a/tensorflow_hub/keras_layer.py b/tensorflow_hub/keras_layer.py index <HASH>..<HASH> 100644 --- a/tensorflow_hub/keras_layer.py +++ b/tensorflow_hub/keras_layer.py @@ -116,12 +116,12 @@ class KerasLayer(tf.keras.layers.Layer): if hasattr(self._func, "trainable_variables"): for v in self._func.tra...
Replace set with ObjectIdentitySet to prepare for eq change in TF PiperOrigin-RevId: <I>
py
diff --git a/openquake/commonlib/source.py b/openquake/commonlib/source.py index <HASH>..<HASH> 100644 --- a/openquake/commonlib/source.py +++ b/openquake/commonlib/source.py @@ -700,7 +700,10 @@ class CompositeSourceModel(collections.Sequence): s = src.source_id self.i...
Added a comment [skip CI]
py
diff --git a/controller/deis/settings.py b/controller/deis/settings.py index <HASH>..<HASH> 100644 --- a/controller/deis/settings.py +++ b/controller/deis/settings.py @@ -155,10 +155,6 @@ AUTHENTICATION_BACKENDS = ( ) ANONYMOUS_USER_ID = -1 -ACCOUNT_EMAIL_REQUIRED = True -ACCOUNT_EMAIL_VERIFICATION = 'none' -ACCOUN...
ref(controller): remove several unused settings The ACCOUNT_* settings were not removed when django-allauth was, and DEFAULT_BUILD is not referenced anywhere.
py
diff --git a/test_isort.py b/test_isort.py index <HASH>..<HASH> 100644 --- a/test_isort.py +++ b/test_isort.py @@ -616,3 +616,14 @@ def test_multiline_import(): " import stuff, other_suff \\" " more_stuff") assert SortImports(file_contents=test_input).output =...
Add another test case, including a custom configuration
py
diff --git a/vext/__init__.py b/vext/__init__.py index <HASH>..<HASH> 100644 --- a/vext/__init__.py +++ b/vext/__init__.py @@ -1,4 +1,5 @@ import logging +import sys from os import environ from os.path import join @@ -8,14 +9,15 @@ VEXT_DEBUG_LOG = "VEXT_DEBUG_LOG" vext_pth = join(get_python_lib(), 'vext_importer...
Change how logging works again :)
py
diff --git a/grimoire_elk/enriched/git.py b/grimoire_elk/enriched/git.py index <HASH>..<HASH> 100644 --- a/grimoire_elk/enriched/git.py +++ b/grimoire_elk/enriched/git.py @@ -762,8 +762,10 @@ class GitEnrich(Enrich): except RepositoryError: logger.warning("No commits retrieved from {}, repo doesn'...
[enriched-git] Execute update_items when local repo commits are returned This code prevents to delete commits from the raw and enriched indexes when no commits are returned from the local Git repository. This change is needed to cover the cases when an error is thrown during the execution of `rev_list` or when the loc...
py
diff --git a/smr/uri.py b/smr/uri.py index <HASH>..<HASH> 100644 --- a/smr/uri.py +++ b/smr/uri.py @@ -51,6 +51,11 @@ URI_REGEXES = [ def get_uris(config): file_names = [] + if config.INPUT_DATA is None: + logging.error("you need to provide INPUT_DATA in config") + sys.exit(1) + if isinstanc...
validate INPUT_DATA and allow it to be a string (instead of a list)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -111,6 +111,7 @@ setup( 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', ...
Add Python <I> as supported in setup.py
py