diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/udiskie/udisks1.py b/udiskie/udisks1.py index <HASH>..<HASH> 100644 --- a/udiskie/udisks1.py +++ b/udiskie/udisks1.py @@ -208,7 +208,7 @@ class OnlineDevice(DeviceBase): for filename in self._proxy.property.DeviceFileById: parts = filename.split('/') if parts[-2] == 'by-i...
Fix careless incompatibility between UDisks versions
py
diff --git a/timepiece/views.py b/timepiece/views.py index <HASH>..<HASH> 100644 --- a/timepiece/views.py +++ b/timepiece/views.py @@ -1064,7 +1064,7 @@ def create_edit_person_time_sheet(request, person_id=None): @render_with('timepiece/time-sheet/payroll/summary.html') @utils.date_filter def payroll_summary(request...
issue <I>: payroll filters for entries with approved status
py
diff --git a/extended_choices/choices.py b/extended_choices/choices.py index <HASH>..<HASH> 100644 --- a/extended_choices/choices.py +++ b/extended_choices/choices.py @@ -64,9 +64,6 @@ class Choices: ... ) >>> CHOICES_ALIGNEMENT.GOOD 40 - - Last but not least you should...
removed a not insightful comment in the documentation
py
diff --git a/minion/__init__.py b/minion/__init__.py index <HASH>..<HASH> 100644 --- a/minion/__init__.py +++ b/minion/__init__.py @@ -1,3 +1,3 @@ from minion.core import Application from minion.request import Response -__version__ = "0.1.0-dev" +__version__ = "0.1.0"
Why not, let's type some numbers.
py
diff --git a/qtpy/QtCore.py b/qtpy/QtCore.py index <HASH>..<HASH> 100644 --- a/qtpy/QtCore.py +++ b/qtpy/QtCore.py @@ -28,6 +28,8 @@ if PYQT6: QCoreApplication.exec_ = QCoreApplication.exec QEventLoop.exec_ = QEventLoop.exec QThread.exec_ = QThread.exec + + QLibraryInfo.location = QLibraryInfo.pat...
make QLibraryInfo.location works (found while trying to patch Pyzo for PyQt6-<I>)
py
diff --git a/ospd/ospd.py b/ospd/ospd.py index <HASH>..<HASH> 100644 --- a/ospd/ospd.py +++ b/ospd/ospd.py @@ -633,7 +633,8 @@ class OSPDaemon(object): logger.info('{0}: Scan stopped.'.format(scan_id)) return simple_response_str('stop_scan', 200, 'OK') - def stop_scan(self, scan_id): + @static...
Make stop_scan a staticmethod.
py
diff --git a/sos/plugins/libvirt.py b/sos/plugins/libvirt.py index <HASH>..<HASH> 100644 --- a/sos/plugins/libvirt.py +++ b/sos/plugins/libvirt.py @@ -56,7 +56,7 @@ class Libvirt(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin): else: self.add_copy_spec("/var/log/libvirt") - if os.path.e...
[libvirt] use join_sysroot() before calling os.path.exists The libvirt plugin tests for the presence of files. Use join_sysroot() to ensure the correct path is tested.
py
diff --git a/doctr/__main__.py b/doctr/__main__.py index <HASH>..<HASH> 100644 --- a/doctr/__main__.py +++ b/doctr/__main__.py @@ -13,7 +13,7 @@ which you should insert into your .travis.yml. Then, on Travis, for the build where you build your docs, add - - doctr deploy . --built-docs path/to/built/html/ + -...
Render code in docs properly
py
diff --git a/tests/plugins/test_compress.py b/tests/plugins/test_compress.py index <HASH>..<HASH> 100644 --- a/tests/plugins/test_compress.py +++ b/tests/plugins/test_compress.py @@ -12,6 +12,11 @@ from atomic_reactor.util import ImageName from tests.constants import INPUT_IMAGE, MOCK +try: + from six import in...
Use six.integer_types (or a tuple of int and long) in tests
py
diff --git a/tests/conftest.py b/tests/conftest.py index <HASH>..<HASH> 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -9,7 +9,7 @@ data_files = [ ] -@pytest.yield_fixture(autouse=True) +@pytest.fixture(autouse=True) def temporary_working_directory(tmpdir): for filename in data_files: fil...
pytest: update deprecated fixture (#<I>)
py
diff --git a/sysconfig.py b/sysconfig.py index <HASH>..<HASH> 100644 --- a/sysconfig.py +++ b/sysconfig.py @@ -318,6 +318,11 @@ def parse_makefile(fn, g=None): fp.close() + # strip spurious spaces + for k, v in done.items(): + if isinstance(v, str): + done[k] = v.strip() + # save t...
Merged revisions <I> via svnmerge from svn+ssh://<EMAIL>/python/branches/py3k ........ r<I> | antoine.pitrou | <I>-<I>-<I> <I>:<I>:<I> <I> (dim., <I> oct. <I>) | 3 lines Issue #<I>: Fix building C extensions with non-default LDFLAGS. ........
py
diff --git a/treeherder/webapp/api/bugzilla.py b/treeherder/webapp/api/bugzilla.py index <HASH>..<HASH> 100644 --- a/treeherder/webapp/api/bugzilla.py +++ b/treeherder/webapp/api/bugzilla.py @@ -24,7 +24,8 @@ class BugzillaViewSet(viewsets.ViewSet): params = request.data url = settings.BZ_API_...
Bug <I> - add an accept header to the bug filer's request to bugzilla
py
diff --git a/stanza/pipeline/depparse_processor.py b/stanza/pipeline/depparse_processor.py index <HASH>..<HASH> 100644 --- a/stanza/pipeline/depparse_processor.py +++ b/stanza/pipeline/depparse_processor.py @@ -36,7 +36,7 @@ class DepparseProcessor(UDProcessor): self._trainer = Trainer(pretrain=self.pretrain, ...
any instead of all - should cover empty lists, plus is more useful anyway
py
diff --git a/drf_auto_endpoint/decorators.py b/drf_auto_endpoint/decorators.py index <HASH>..<HASH> 100644 --- a/drf_auto_endpoint/decorators.py +++ b/drf_auto_endpoint/decorators.py @@ -23,7 +23,7 @@ def custom_action(method='GET', type='request', icon_class=None, btn_class=None, if action is not None: ...
:bug: preserve wizard name in DRF<I>+
py
diff --git a/girder/utility/server.py b/girder/utility/server.py index <HASH>..<HASH> 100644 --- a/girder/utility/server.py +++ b/girder/utility/server.py @@ -82,11 +82,7 @@ def configureServer(test=False, plugins=None, curConfig=None): curConfig.update(appconf) if test: - # Force some config params ...
Ensure other [server] block config file variables are not overwritten
py
diff --git a/angr/project.py b/angr/project.py index <HASH>..<HASH> 100644 --- a/angr/project.py +++ b/angr/project.py @@ -88,16 +88,21 @@ class Project(object): """ # Step 1: Load the binary + if load_options is None: load_options = {} + if isinstance(thing, cle.Loader): ...
Simple tweaks to pass a file stream object into CLE if one is passed into Project
py
diff --git a/imgaug/augmenters/meta.py b/imgaug/augmenters/meta.py index <HASH>..<HASH> 100644 --- a/imgaug/augmenters/meta.py +++ b/imgaug/augmenters/meta.py @@ -3544,7 +3544,7 @@ class SomeOf(Augmenter, list): str(self.random_order), augs_str, self.deterministic) -def OneOf(children, name=None, deter...
Switch OneOf from function to class
py
diff --git a/pulsectl/pulsectl.py b/pulsectl/pulsectl.py index <HASH>..<HASH> 100644 --- a/pulsectl/pulsectl.py +++ b/pulsectl/pulsectl.py @@ -127,6 +127,8 @@ class PulseObject(object): self.proplist[c.force_str(k)] = c.force_str(c.pa.proplist_gets(struct.proplist, k)) if hasattr(struct, 'volume'): self....
Add base_volume property to sinks and sources
py
diff --git a/test/test_bdbagit.py b/test/test_bdbagit.py index <HASH>..<HASH> 100644 --- a/test/test_bdbagit.py +++ b/test/test_bdbagit.py @@ -374,7 +374,7 @@ class TestSingleProcessValidation(SelfCleaningTestCase): bad_paths = ( r'C:\win32\cmd.exe', '\\\\?\\C:\\', - ...
Fix an issue with test_unsafe_directory_entries_raise_error in unit tests on some Windows systems.
py
diff --git a/src/python/sikuli.py b/src/python/sikuli.py index <HASH>..<HASH> 100644 --- a/src/python/sikuli.py +++ b/src/python/sikuli.py @@ -90,7 +90,7 @@ class SikuliLibrary(object): if len(jarList) != 1: raise Exception('Sikuli jar package should be exist in lib folder') sikuliJar = j...
fix command format for launching java process
py
diff --git a/data-processing/csv2mongo.py b/data-processing/csv2mongo.py index <HASH>..<HASH> 100644 --- a/data-processing/csv2mongo.py +++ b/data-processing/csv2mongo.py @@ -44,7 +44,7 @@ if __name__ == '__main__': actions[field]['date-format'] = args['date_format'][i] i = i + 1 ...
using printf style to create strings, rather than javascript style
py
diff --git a/blockstack_client/backend/drivers/_skel.py b/blockstack_client/backend/drivers/_skel.py index <HASH>..<HASH> 100644 --- a/blockstack_client/backend/drivers/_skel.py +++ b/blockstack_client/backend/drivers/_skel.py @@ -146,7 +146,7 @@ import logging from common import get_logger, DEBUG from ConfigParser i...
Update log name of driver skeleton
py
diff --git a/conan/packager.py b/conan/packager.py index <HASH>..<HASH> 100644 --- a/conan/packager.py +++ b/conan/packager.py @@ -12,7 +12,7 @@ from six import iteritems class ConanMultiPackager(object): """ Help to generate common builds (setting's combinations), adjust the environment, - and run conan tes...
Changed deprecated conan test to conan test_package
py
diff --git a/phypno/ioeeg/ktlx.py b/phypno/ioeeg/ktlx.py index <HASH>..<HASH> 100644 --- a/phypno/ioeeg/ktlx.py +++ b/phypno/ioeeg/ktlx.py @@ -730,8 +730,8 @@ class Ktlx(): n['value'].keys() allnote.append(n['value']) except AttributeError: - lg.info('Note o...
change log level in ktlx
py
diff --git a/openquake/risk/probabilistic_event_based.py b/openquake/risk/probabilistic_event_based.py index <HASH>..<HASH> 100644 --- a/openquake/risk/probabilistic_event_based.py +++ b/openquake/risk/probabilistic_event_based.py @@ -209,7 +209,7 @@ class AggregateLossCurve(object): """Return the losses used ...
Updated doc; refactored code Former-commit-id: d4e<I>d2ad6a<I>bac<I>a<I>f<I>cd<I>cae9e<I>
py
diff --git a/management/commands/batch_import.py b/management/commands/batch_import.py index <HASH>..<HASH> 100644 --- a/management/commands/batch_import.py +++ b/management/commands/batch_import.py @@ -86,7 +86,7 @@ class Command(BaseCommand): tags = [] if options['dirnames']: - ...
Fixed bug with batch import and auto tagging
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ license: GNU-GPL2 from setuptools import setup setup(name='arguments', - version='64', + version='65', description='Argument parser based on docopt', url='https://github.com/erikdejonge...
Thursday <I> July <I> (week:<I> day:<I>), <I>:<I>:<I>
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 @@ -6,7 +6,7 @@ from pybel.examples import egf_graph from indra.statements import * from indra.sources import bel from indra.sources.bel impor...
Adapt to name changes in bel.api, add descriptive comment
py
diff --git a/striplog/striplog.py b/striplog/striplog.py index <HASH>..<HASH> 100644 --- a/striplog/striplog.py +++ b/striplog/striplog.py @@ -439,6 +439,7 @@ class Striplog(object): @classmethod def _build_list_of_Intervals(cls, data_dict, + s...
allow stop in loading from csv
py
diff --git a/src/fonduer/parser/parser.py b/src/fonduer/parser/parser.py index <HASH>..<HASH> 100644 --- a/src/fonduer/parser/parser.py +++ b/src/fonduer/parser/parser.py @@ -251,7 +251,7 @@ class ParserUDF(UDF): return_sentences += [y for y in self.parse(document, text)] yield from retu...
change the exception to make sure parser run end to end
py
diff --git a/tests/test.py b/tests/test.py index <HASH>..<HASH> 100644 --- a/tests/test.py +++ b/tests/test.py @@ -60,6 +60,23 @@ def test_revert(): eq_(preset_test.mult(4), P.mult(4)) +def test_contains(): + + P = presets.Preset(preset_test) + P['b'] = 3 + + assert 'b' in P + assert 'c' not in P +...
added a test for setter-getter
py
diff --git a/psqlextra/expressions.py b/psqlextra/expressions.py index <HASH>..<HASH> 100644 --- a/psqlextra/expressions.py +++ b/psqlextra/expressions.py @@ -86,3 +86,28 @@ class HStoreRef(expressions.F): self.key ) return expression + +class NonGroupableFunc(expressions.Func): + """A...
Support for Postgres's MIN(..) and MAX(..) functions
py
diff --git a/Lib/glyphsLib/casting.py b/Lib/glyphsLib/casting.py index <HASH>..<HASH> 100644 --- a/Lib/glyphsLib/casting.py +++ b/Lib/glyphsLib/casting.py @@ -32,6 +32,7 @@ CUSTOM_INT_PARAMS = frozenset(( 'ascender', 'blueShift', 'capHeight', 'descender', 'hheaAscender', 'hheaDescender', 'hheaLineGap', 'macin...
casting.py: add missing 'openTypeHheaCaretOffset' to CUSTOM_INT_PARAMS 'openTypeHheaCaretSlopeRise' and 'openTypeHheaCaretSlopeRun' are already there; only 'openTypeHheaCaretOffset' was missing from the hhea caret group.
py
diff --git a/pymatgen/analysis/structure_analyzer.py b/pymatgen/analysis/structure_analyzer.py index <HASH>..<HASH> 100644 --- a/pymatgen/analysis/structure_analyzer.py +++ b/pymatgen/analysis/structure_analyzer.py @@ -28,7 +28,7 @@ from pymatgen import PeriodicSite from pymatgen import Element, Specie, Composition f...
cleanup structure_analyzer to allow infinite vertices in voronoi construction for slabs
py
diff --git a/kappa/scripts/cli.py b/kappa/scripts/cli.py index <HASH>..<HASH> 100755 --- a/kappa/scripts/cli.py +++ b/kappa/scripts/cli.py @@ -159,6 +159,6 @@ def event_sources(ctx, command): ctx.enable_event_sources() click.echo('done') elif command == 'disable': - click.echo('enabling ev...
typo in "event_sources disable" cli-command
py
diff --git a/pyblish_qml/models.py b/pyblish_qml/models.py index <HASH>..<HASH> 100644 --- a/pyblish_qml/models.py +++ b/pyblish_qml/models.py @@ -454,7 +454,7 @@ class ItemModel(AbstractModel): item.isProcessing = False item.currentProgress = 1 item.processed = True - ...
improve fix: fix instance Warning state behavior in GUI
py
diff --git a/salt/cloud/clouds/ec2.py b/salt/cloud/clouds/ec2.py index <HASH>..<HASH> 100644 --- a/salt/cloud/clouds/ec2.py +++ b/salt/cloud/clouds/ec2.py @@ -104,7 +104,7 @@ from salt.exceptions import ( try: import Crypto # PKCS1_v1_5 was added in PyCrypto 2.5 - from Crypto.Cipher import PKCS1_v1_5 + ...
disable faulty lint call
py
diff --git a/src/pyshark/capture/file_capture.py b/src/pyshark/capture/file_capture.py index <HASH>..<HASH> 100644 --- a/src/pyshark/capture/file_capture.py +++ b/src/pyshark/capture/file_capture.py @@ -1,6 +1,4 @@ from pyshark.capture.capture import Capture -# from pyshark.capture.capture_exceptions import * - cla...
removed commented import statement from a previous iteration.
py
diff --git a/volapi/chat.py b/volapi/chat.py index <HASH>..<HASH> 100644 --- a/volapi/chat.py +++ b/volapi/chat.py @@ -163,7 +163,7 @@ class ChatMessage(str): @property def green(self): - return self.user + return self.user and not self.purple @property def staff(self):
New meaning for green in ChatMessage -> opposite of purple now
py
diff --git a/demo/main.py b/demo/main.py index <HASH>..<HASH> 100644 --- a/demo/main.py +++ b/demo/main.py @@ -255,7 +255,7 @@ class HomePage(webapp.RequestHandler): rpc = model.conn.async_get( datastore_rpc.Configuration(on_completion=AccountsCallBack), keys) - eventloop.queue_rpc(rpc) + event...
Check success of rpc everywhere.
py
diff --git a/src/transformers/models/levit/configuration_levit.py b/src/transformers/models/levit/configuration_levit.py index <HASH>..<HASH> 100644 --- a/src/transformers/models/levit/configuration_levit.py +++ b/src/transformers/models/levit/configuration_levit.py @@ -137,7 +137,7 @@ class LevitOnnxConfig(OnnxConfig)...
Fix repo consistency (#<I>)
py
diff --git a/photutils/tests/test_aperture_photometry.py b/photutils/tests/test_aperture_photometry.py index <HASH>..<HASH> 100644 --- a/photutils/tests/test_aperture_photometry.py +++ b/photutils/tests/test_aperture_photometry.py @@ -623,11 +623,11 @@ def test_basic_circular_aperture_photometry_unit(): ...
Hack, so test will pass with travis (that picks up an old astropy stable). Need to revoke when they fix the issue
py
diff --git a/yt_array.py b/yt_array.py index <HASH>..<HASH> 100644 --- a/yt_array.py +++ b/yt_array.py @@ -346,7 +346,8 @@ class YTArray(np.ndarray): if registry is None: pass else: - input_array.units.registry = registry + uni...
Create a new unit object when creating an array with a registry This prevents mutating unit objects underneath an already-created unit, causing havoc that is nonlocal to this code path. --HG-- branch : yt
py
diff --git a/playhouse/djpeewee.py b/playhouse/djpeewee.py index <HASH>..<HASH> 100644 --- a/playhouse/djpeewee.py +++ b/playhouse/djpeewee.py @@ -109,7 +109,8 @@ class DjangoTranslator(object): db_column=model_field.column) elif converted: - attrs[model_field.name...
Fix #<I>, add support for db_column in djpeewee
py
diff --git a/graphene/test/__init__.py b/graphene/test/__init__.py index <HASH>..<HASH> 100644 --- a/graphene/test/__init__.py +++ b/graphene/test/__init__.py @@ -1,3 +1,4 @@ +from promise import Promise, is_thenable import six from graphql.error import format_error as format_graphql_error from graphql.error import ...
Improved Test Framework to support promises as returned GraphQL execution
py
diff --git a/blockstack/lib/config.py b/blockstack/lib/config.py index <HASH>..<HASH> 100644 --- a/blockstack/lib/config.py +++ b/blockstack/lib/config.py @@ -87,9 +87,11 @@ if os.environ.get("BLOCKSTACK_TEST") == "1": FIRST_BLOCK_MAINNET = 373601 -if os.environ.get("BLOCKSTACK_TEST", None) is not None and os.envi...
merge from rc-<I>
py
diff --git a/tests/test_profile.py b/tests/test_profile.py index <HASH>..<HASH> 100644 --- a/tests/test_profile.py +++ b/tests/test_profile.py @@ -157,4 +157,16 @@ def test_BasicDatasetProfiler_on_titanic(): expected_evrs.pop("meta") evrs.pop("meta") + + # We know that python 2 does not guarantee the ord...
Remove partial_unexpected_counts from snapshot test
py
diff --git a/nodeconductor/structure/views.py b/nodeconductor/structure/views.py index <HASH>..<HASH> 100644 --- a/nodeconductor/structure/views.py +++ b/nodeconductor/structure/views.py @@ -706,7 +706,6 @@ class ResourceViewSet(mixins.ListModelMixin, resource_models = {k: v for k, v in resource_models.ite...
Rewrite resources count based on SummaryQuerySet
py
diff --git a/test_functools.py b/test_functools.py index <HASH>..<HASH> 100644 --- a/test_functools.py +++ b/test_functools.py @@ -118,7 +118,7 @@ class TestMethodCache: class ClassUnderTest: @property @method_cache - def mything(self): + def mything(self): # pr...
Mark test code as nocover as it's xfailed.
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 @@ -389,21 +389,21 @@ def _extract_parameters_from_callback(func: Callable[..., Any], globalns: Dict[s except AttributeError: ...
Copy internal attributes for command decorator state This allows for copies to not clear the state the decorators had set prior.
py
diff --git a/examples/storage_systems_store_serv.py b/examples/storage_systems_store_serv.py index <HASH>..<HASH> 100644 --- a/examples/storage_systems_store_serv.py +++ b/examples/storage_systems_store_serv.py @@ -21,9 +21,7 @@ # THE SOFTWARE. ### -from pprint import pprint from hpOneView.oneview_client import On...
Removed unused imports from Storage Pool example Conflicts: CHANGELOG.md tests/unit/resources/security/test_users.py
py
diff --git a/salt/states/ceph.py b/salt/states/ceph.py index <HASH>..<HASH> 100644 --- a/salt/states/ceph.py +++ b/salt/states/ceph.py @@ -41,10 +41,12 @@ def quorum(name, **kwargs): Example usage in sls file: -quorum: - sesceph.quorum: - - require: - - sesceph: mon_running + . code-block:: yaml ...
salt.states.ceph: Mark up the YAML. The state method should have the YAML marked up.
py
diff --git a/pyemma/coordinates/tests/test_featurereader.py b/pyemma/coordinates/tests/test_featurereader.py index <HASH>..<HASH> 100644 --- a/pyemma/coordinates/tests/test_featurereader.py +++ b/pyemma/coordinates/tests/test_featurereader.py @@ -90,8 +90,8 @@ class TestFeatureReader(unittest.TestCase): # re...
[tests] fixed bug in test_featurereader
py
diff --git a/audioread/rawread.py b/audioread/rawread.py index <HASH>..<HASH> 100644 --- a/audioread/rawread.py +++ b/audioread/rawread.py @@ -24,7 +24,7 @@ TARGET_WIDTH = 2 class UnsupportedError(DecodeError): - """File is neither an AIFF nor a WAV file.""" + """File is not an AIFF, WAV, or Au file.""" ...
Update docstrings in rawread
py
diff --git a/rest_framework_tracking/base_mixins.py b/rest_framework_tracking/base_mixins.py index <HASH>..<HASH> 100644 --- a/rest_framework_tracking/base_mixins.py +++ b/rest_framework_tracking/base_mixins.py @@ -112,8 +112,7 @@ class BaseLoggingMixin(object): method = request.method.lower() try: ...
fix(): fix pylint
py
diff --git a/paramiko/agent.py b/paramiko/agent.py index <HASH>..<HASH> 100644 --- a/paramiko/agent.py +++ b/paramiko/agent.py @@ -130,15 +130,22 @@ class AgentProxyThread(threading.Thread): if len(data) != 0: self.__inr.send(data) else: + ...
Fix bug that leaves fds in select after EOF received
py
diff --git a/postcard_creator/postcard_creator_swissid.py b/postcard_creator/postcard_creator_swissid.py index <HASH>..<HASH> 100644 --- a/postcard_creator/postcard_creator_swissid.py +++ b/postcard_creator/postcard_creator_swissid.py @@ -143,8 +143,8 @@ class PostcardCreatorSwissId(PostcardCreatorBase): sel...
properly log orderId, return payload without model from send
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( version = version, description = 'A comprehensive Python module for handling Monero cryptocurrency', url = 'https://github.com/emesik/monero-python/', - long_description = open('README.rst...
Read the README.rst with UTF8
py
diff --git a/src/feat/database/document.py b/src/feat/database/document.py index <HASH>..<HASH> 100644 --- a/src/feat/database/document.py +++ b/src/feat/database/document.py @@ -400,10 +400,19 @@ class LinkedDocuments(object): self._links.remove(r) def first(self, type_name): - '''Return doc...
Add useful helper providing iterator over document links by type.
py
diff --git a/cmd2.py b/cmd2.py index <HASH>..<HASH> 100755 --- a/cmd2.py +++ b/cmd2.py @@ -450,6 +450,8 @@ class Cmd(cmd.Cmd): >>> c.case_insensitive = True >>> c._init_parser() >>> print (c.parser.parseString('').dump()) + [] + >>> print (c.parser.parseString('').dump()) ...
must puzzle out parsing of quoted strings
py
diff --git a/dataswim/data/transform.py b/dataswim/data/transform.py index <HASH>..<HASH> 100644 --- a/dataswim/data/transform.py +++ b/dataswim/data/transform.py @@ -37,12 +37,18 @@ class Transform(): if self.autoprint is True: self.ok("Setting dataframe to columns", " ".join(fields)) - def ...
Check columns existence in drop method before processing
py
diff --git a/frojd_fabric/recipes/django_frojd.py b/frojd_fabric/recipes/django_frojd.py index <HASH>..<HASH> 100644 --- a/frojd_fabric/recipes/django_frojd.py +++ b/frojd_fabric/recipes/django_frojd.py @@ -1,3 +1,9 @@ -""" -TODO: Create customized recipe for the frojd demo server -""" +from frojd_fabric.hooks import h...
Created recipe that includes django but adds a uwsgi restart
py
diff --git a/constant_sorrow/constants.py b/constant_sorrow/constants.py index <HASH>..<HASH> 100644 --- a/constant_sorrow/constants.py +++ b/constant_sorrow/constants.py @@ -11,7 +11,7 @@ from . import _digest_length class _Constant: __repr_content = None __bool_repr = None - __uses_default_repr = False ...
Defaults were set backward - default starts as True, then changes to False.
py
diff --git a/backtrader/strategy.py b/backtrader/strategy.py index <HASH>..<HASH> 100644 --- a/backtrader/strategy.py +++ b/backtrader/strategy.py @@ -326,7 +326,8 @@ class Strategy(six.with_metaclass(MetaStrategy, StrategyBase)): analyzer._stop() # change operators back to stage 1 - self...
Disabled return to operator stage1 in strategy
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -48,6 +48,10 @@ class UploadCommand(BaseCommand): description = "Build and publish the package." def run(self): + self._run( + "Installing upload dependencies…", + [sys.executable, "-m"...
Fix setup.py upload command to run anywhere
py
diff --git a/htmresearch/encoders/cio_encoder.py b/htmresearch/encoders/cio_encoder.py index <HASH>..<HASH> 100644 --- a/htmresearch/encoders/cio_encoder.py +++ b/htmresearch/encoders/cio_encoder.py @@ -173,7 +173,7 @@ class CioEncoder(LanguageEncoder): encoding = self.getUnionEncoding(text) else: - ...
use Cio text endpoint by default
py
diff --git a/get-poetry.py b/get-poetry.py index <HASH>..<HASH> 100644 --- a/get-poetry.py +++ b/get-poetry.py @@ -119,6 +119,7 @@ def temporary_directory(*args, **kwargs): class Installer: + CURRENT_PYTHON = sys.executable METADATA_URL = 'https://pypi.org/pypi/poetry/json' VERSION_REGEX = re.compile(...
Suggested fix for Issue #<I> (#<I>) * Install using Python version running get-poetry.py script. * Fix Homebrew distutils issue. * Revert --install-options; breaks building wheels.
py
diff --git a/cocaine/asio/service.py b/cocaine/asio/service.py index <HASH>..<HASH> 100644 --- a/cocaine/asio/service.py +++ b/cocaine/asio/service.py @@ -212,7 +212,7 @@ class AbstractService(object): self._session += 1 self._writableStream.write([methodId, self._session, args]) ...
`Chain` object returned from `Service` now initialized with service's event loop.
py
diff --git a/cbamf/comp/exactpsf.py b/cbamf/comp/exactpsf.py index <HASH>..<HASH> 100644 --- a/cbamf/comp/exactpsf.py +++ b/cbamf/comp/exactpsf.py @@ -706,6 +706,11 @@ class ChebyshevLineScanConfocalPSF(ExactLineScanConfocalPSF): planner_effort=self.fftw_planning_level) def __getstate__(self...
fixing bug in cheb line scan psf pickle
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -11,12 +11,13 @@ # All configuration values have a default; values that are commented out # serve to show the default. -import vcversioner - -# If extensions (or modules to document with autodoc) are in ano...
Oh come on readthedocs. I hope this does it!
py
diff --git a/salt/engines/docker_events.py b/salt/engines/docker_events.py index <HASH>..<HASH> 100644 --- a/salt/engines/docker_events.py +++ b/salt/engines/docker_events.py @@ -1,22 +1,16 @@ -# -*- coding: utf-8 -*- """ Send events from Docker events :Depends: Docker API >= 1.22 """ - -# Import Python Libs -fro...
Drop Py2 and six on salt/engines/docker_events.py
py
diff --git a/mpyq.py b/mpyq.py index <HASH>..<HASH> 100755 --- a/mpyq.py +++ b/mpyq.py @@ -294,7 +294,7 @@ class MPQArchive(object): print("-----------------------") print(" Offset ArchSize RealSize Flags") for entry in self.block_table: - print('{0:0>8X} {1:0>8} {2:>8} {3:>8X}'....
Don't prefix with 0 when printing archive size
py
diff --git a/src/robotsuite/__init__.py b/src/robotsuite/__init__.py index <HASH>..<HASH> 100644 --- a/src/robotsuite/__init__.py +++ b/src/robotsuite/__init__.py @@ -347,7 +347,11 @@ def RobotTestSuite(*paths, **kw): """Build up a test suite similarly to doctest.DocFileSuite """ suite = unittest.TestSui...
Revert the default zope.testrunner level and support setting it via environment variable
py
diff --git a/vstutils/management/commands/web.py b/vstutils/management/commands/web.py index <HASH>..<HASH> 100644 --- a/vstutils/management/commands/web.py +++ b/vstutils/management/commands/web.py @@ -114,6 +114,9 @@ class Command(BaseCommand): def handle(self, *uwsgi_args, **opts): super().handle(*uwsg...
Add PATH to environment if it venv
py
diff --git a/tests/unit/algorithms/GenericTransportTest.py b/tests/unit/algorithms/GenericTransportTest.py index <HASH>..<HASH> 100644 --- a/tests/unit/algorithms/GenericTransportTest.py +++ b/tests/unit/algorithms/GenericTransportTest.py @@ -50,7 +50,6 @@ class GenericTransportTest: assert alg.settings["solve...
PEP8 fix, forgot to turn flake8 on, really a time saver!
py
diff --git a/microraiden/microraiden/client/client.py b/microraiden/microraiden/client/client.py index <HASH>..<HASH> 100644 --- a/microraiden/microraiden/client/client.py +++ b/microraiden/microraiden/client/client.py @@ -196,7 +196,7 @@ class Client: store = json.load(channels_file) ...
compatibility: Changed JSONDecodeError to ValueError
py
diff --git a/tests/test_mapbox.py b/tests/test_mapbox.py index <HASH>..<HASH> 100644 --- a/tests/test_mapbox.py +++ b/tests/test_mapbox.py @@ -22,9 +22,6 @@ def test_multi_results(): g = geocoder.mapbox(location) assert len(g) == 5 - expected_result = 'Ontario Court of Justice, 15 Victoria, Ottawa, Ontar...
test of maptbox more flexible (data is changing too often)
py
diff --git a/pysat/_instrument.py b/pysat/_instrument.py index <HASH>..<HASH> 100644 --- a/pysat/_instrument.py +++ b/pysat/_instrument.py @@ -496,8 +496,8 @@ class Instrument(object): self.data = self._curr_data.copy() self.meta = self._curr_meta.copy() else: - self.data = DataFrame(N...
Removed situation where a seasonal analysis that ended on a day wih no data resulted in no metadata. If a day with no data is loaded, then there is no update to metadata.
py
diff --git a/minio/api.py b/minio/api.py index <HASH>..<HASH> 100644 --- a/minio/api.py +++ b/minio/api.py @@ -139,12 +139,11 @@ class Minio: # pylint: disable=too-many-public-methods # Load CA certificates from SSL_CERT_FILE file if set timeout = timedelta(minutes=5).seconds - ca_certs = os...
Ignore cert addition if custom httpclient is passed (#<I>)
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -13,7 +13,7 @@ sys.path.insert(0, basedir) # --- Load __about__ info ---------------------------------------------------- about = {} -with open(os.path.join(basedir, 'flake8_aaa', '__about__.py')) as f: +wi...
Adjust doc config to find __about__ in new src dir
py
diff --git a/ariba/clusters.py b/ariba/clusters.py index <HASH>..<HASH> 100644 --- a/ariba/clusters.py +++ b/ariba/clusters.py @@ -168,7 +168,7 @@ class Clusters: if self.verbose: print('Temporary directory:', self.tmp_dir) - for i in [x for x in dir(signal) if x.startswith("SIG") and x n...
Changed SIGPIPE signal handling
py
diff --git a/rest_framework_json_api/renderers.py b/rest_framework_json_api/renderers.py index <HASH>..<HASH> 100644 --- a/rest_framework_json_api/renderers.py +++ b/rest_framework_json_api/renderers.py @@ -95,7 +95,12 @@ class JSONRenderer(renderers.JSONRenderer): if isinstance(data, dict) and data.get('links...
Format the root API links as per the spec. Closes #<I>
py
diff --git a/holoviews/plotting/plot.py b/holoviews/plotting/plot.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/plot.py +++ b/holoviews/plotting/plot.py @@ -70,6 +70,7 @@ class Plot(param.Parameterized): @classmethod def lookup_options(cls, obj, group): + plot_class = None try: ...
Fix to only filter plot options if the plot class is found
py
diff --git a/dipper/sources/OMIM.py b/dipper/sources/OMIM.py index <HASH>..<HASH> 100644 --- a/dipper/sources/OMIM.py +++ b/dipper/sources/OMIM.py @@ -462,7 +462,7 @@ class OMIM(OMIMSource): # end adding causative genes/features if ent['entry']['status'] in ['moved', 'removed']: - ...
Jenkins lint caught an error
py
diff --git a/tests/misc/test_pyflakes.py b/tests/misc/test_pyflakes.py index <HASH>..<HASH> 100644 --- a/tests/misc/test_pyflakes.py +++ b/tests/misc/test_pyflakes.py @@ -5,11 +5,14 @@ # published by the Free Software Foundation import os +import re import glob import sys import subprocess import unittest +fr...
setup.py quality: make work with python3
py
diff --git a/dwave/cloud/api/client.py b/dwave/cloud/api/client.py index <HASH>..<HASH> 100644 --- a/dwave/cloud/api/client.py +++ b/dwave/cloud/api/client.py @@ -61,9 +61,9 @@ class LoggingSession(BaseUrlSession): except Exception as exc: logger.debug("[%s] request failed with %r", callee, exc) ...
Fix RequestTimeout in LoggingSession to include request
py
diff --git a/twarc.py b/twarc.py index <HASH>..<HASH> 100755 --- a/twarc.py +++ b/twarc.py @@ -2,7 +2,6 @@ from __future__ import print_function -import io import os import sys import json @@ -266,10 +265,12 @@ class Twarc(object): self.client = None self.connect() - def search(self, q, m...
added `result_type` option to `search()` with default value of `recent`; removed unused import
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from libsubmit.version import VERSION install_requires = [ 'ipyparallel', 'boto3', - 'azure' + 'azure', 'haikunator', 'python-novaclient' ]
Fixing missing comma in setup
py
diff --git a/holoviews/core/data/dask.py b/holoviews/core/data/dask.py index <HASH>..<HASH> 100644 --- a/holoviews/core/data/dask.py +++ b/holoviews/core/data/dask.py @@ -140,9 +140,16 @@ class DaskInterface(PandasInterface): data = [] groupby = columns.data.groupby(dimensions) - ind_array = ...
Optimized dask interface groupby implementation
py
diff --git a/src/pytesseract.py b/src/pytesseract.py index <HASH>..<HASH> 100755 --- a/src/pytesseract.py +++ b/src/pytesseract.py @@ -168,7 +168,7 @@ def save(image): image, extension = prepare(image) input_file_name = f.name + extsep + extension - image.save(input_file_name, for...
delete format kwarg (#<I>) `prepare` func sets `format` attr to image. Then, in `save` func, `input_file_name` is parsed and used in `format` kwarg to save the image This caused `multiple values for keyword argument 'format'` error
py
diff --git a/python/pyspark/conf.py b/python/pyspark/conf.py index <HASH>..<HASH> 100644 --- a/python/pyspark/conf.py +++ b/python/pyspark/conf.py @@ -33,7 +33,7 @@ u'My app' >>> sc.sparkHome == None True ->>> conf = SparkConf() +>>> conf = SparkConf(loadDefaults=False) >>> conf.setSparkHome("/path") <pyspark.con...
[FIX] do not load defaults when testing SparkConf in pyspark The default constructor loads default properties, which can fail the test.
py
diff --git a/squad/core/notification.py b/squad/core/notification.py index <HASH>..<HASH> 100644 --- a/squad/core/notification.py +++ b/squad/core/notification.py @@ -230,8 +230,12 @@ def send_admin_notification(status, project): txt = render_to_string('squad/notification/failed_test_jobs.txt', data) messag...
core/notification: avoid duplicated "X FAILED TEST JOBS" notifications This reuses the infrastructue that is already used to avoid duplicate test results notifications. Fixes #<I>
py
diff --git a/zappa/zappa.py b/zappa/zappa.py index <HASH>..<HASH> 100755 --- a/zappa/zappa.py +++ b/zappa/zappa.py @@ -163,7 +163,7 @@ REDIRECT_RESPONSE_TEMPLATE = "" API_GATEWAY_REGIONS = ['us-east-1', 'us-west-2', 'eu-west-1', 'ap-northeast-1'] LAMBDA_REGIONS = ['us-east-1', 'us-west-2', 'eu-west-1', 'ap-northeast-...
.dist-info dir is needed for cryptography package cryptography uses pkg_resources.iter_entry_points routine to locate available cryptographic backends.
py
diff --git a/flask_appbuilder/security/views.py b/flask_appbuilder/security/views.py index <HASH>..<HASH> 100644 --- a/flask_appbuilder/security/views.py +++ b/flask_appbuilder/security/views.py @@ -379,9 +379,13 @@ class AuthLDAPView(AuthView): form=form, ...
Removed auth API from ldap auth view
py
diff --git a/filer/admin/folderadmin.py b/filer/admin/folderadmin.py index <HASH>..<HASH> 100644 --- a/filer/admin/folderadmin.py +++ b/filer/admin/folderadmin.py @@ -399,6 +399,8 @@ class FolderAdmin(PrimitivePermissionAwareModelAdmin): 'search_string': ' '.join(search_terms), 'q': urlquote(q...
folder admin: add missing search results querysets to context search_form.html template makes use of these variables, but they were not set in the context.
py
diff --git a/gargoyle/models.py b/gargoyle/models.py index <HASH>..<HASH> 100644 --- a/gargoyle/models.py +++ b/gargoyle/models.py @@ -216,6 +216,9 @@ class SwitchProxy(object): class SwitchManager(ModelDict): _registry = {} + def __repr__(self): + return "<%s: %s (%s)>" % (self.__class__.__name__...
Better repr for Gargoyle's custom ModelDict
py
diff --git a/treenav/templatetags/treenav_tags.py b/treenav/templatetags/treenav_tags.py index <HASH>..<HASH> 100644 --- a/treenav/templatetags/treenav_tags.py +++ b/treenav/templatetags/treenav_tags.py @@ -1,7 +1,6 @@ from django import template from django.core.cache import cache from django.template.loader import...
#<I> - Changed new_context() in treenav_tags.py to return a dict instead of Context/RequestContext object.
py
diff --git a/master/buildbot/www/oauth2.py b/master/buildbot/www/oauth2.py index <HASH>..<HASH> 100644 --- a/master/buildbot/www/oauth2.py +++ b/master/buildbot/www/oauth2.py @@ -331,14 +331,17 @@ class GitHubAuth(OAuth2Auth): response=data) teams = set() ...
Supplimentary fix for GH team membership check. Github had a bug in their GraphQL API where if one organization restricted access for OAuth apps to read internal team data, then the returned response would have no data for all organizations the user is a member of. This has now been fixed, and check for None has been...
py
diff --git a/kronos/__init__.py b/kronos/__init__.py index <HASH>..<HASH> 100644 --- a/kronos/__init__.py +++ b/kronos/__init__.py @@ -14,6 +14,7 @@ from django.conf import settings from kronos.utils import read_crontab, write_crontab, delete_crontab from kronos.version import __version__ import six +from django.uti...
Use the autodiscover_modules to load modules with cron.py Before it was trying to import .cron from all apps from INSTALLED_APPS, but this missed the new AppConfig apps, which are in INSTALLED_APPS as objects and not modules. Django uses autodiscover_modules internally for models.py (for example), so it should work on...
py
diff --git a/paramiko/transport.py b/paramiko/transport.py index <HASH>..<HASH> 100644 --- a/paramiko/transport.py +++ b/paramiko/transport.py @@ -244,7 +244,7 @@ class Transport (threading.Thread): self.channels_seen = { } # (id -> True) self.channel_counter = 1 self.window_size = 655...
[project @ Arch-1:<EMAIL><I>-master-shake%paramiko--dev--1--patch-<I>] raise the max packet size so that the max sftp packet will fit
py